/* ===== EVOLI HOME - ANA STIL ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #c9a96e;
    --primary-dark: #a07840;
    --secondary: #2d2d2d;
    --text: #333;
    --text-light: #777;
    --bg: #fff;
    --bg-gray: #f7f6f3;
    --border: #e8e8e8;
    --success: #27ae60;
    --error: #e74c3c;
    --info: #3498db;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
    --transition: all .25s ease;
    --font: 'Inter', sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: var(--font); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TOPBAR ===== */
.topbar { background: var(--secondary); color: #ccc; font-size: .8rem; padding: .4rem 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ===== HEADER ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; }

.logo { flex-shrink: 0; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--secondary); letter-spacing: -0.5px; }
.logo-text span { color: var(--primary); }

.search-form { flex: 1; max-width: 400px; display: flex; border: 2px solid var(--border); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.search-form:focus-within { border-color: var(--primary); }
.search-form input { flex: 1; padding: .55rem 1rem; border: none; outline: none; font-size: .9rem; background: transparent; }
.search-form button { background: var(--primary); border: none; padding: .55rem 1rem; cursor: pointer; color: #fff; display: flex; align-items: center; transition: var(--transition); }
.search-form button:hover { background: var(--primary-dark); }

.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a { padding: .5rem .9rem; border-radius: 6px; font-weight: 500; font-size: .9rem; color: var(--text); transition: var(--transition); }
.main-nav a:hover, .main-nav a.active { background: var(--bg-gray); color: var(--primary); }

.cart-btn { display: flex; align-items: center; gap: .4rem; padding: .55rem 1rem; background: var(--secondary); color: #fff; border-radius: 50px; font-size: .9rem; font-weight: 500; transition: var(--transition); position: relative; white-space: nowrap; }
.cart-btn:hover { background: var(--primary); }
.cart-count { background: var(--primary); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .5rem; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); padding: 1rem 1.5rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }

/* ===== FLASH MESSAGES ===== */
.flash-message { padding: .8rem 0; font-size: .9rem; font-weight: 500; }
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-info { background: #d1ecf1; color: #0c5460; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.8rem; border-radius: 50px; font-size: .9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: #444; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--bg-gray); }
.btn-large { padding: .9rem 2.2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: 1rem; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #faf8f4 0%, #f0ebe3 100%); padding: 5rem 1.5rem; display: flex; align-items: center; gap: 3rem; max-width: 1200px; margin: 0 auto; min-height: 500px; }
.hero-content { flex: 1; }
.hero-tag { background: var(--primary); color: #fff; padding: .3rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 600; display: inline-block; margin-bottom: 1.2rem; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; color: var(--secondary); margin-bottom: 1rem; }
.hero-content h1 span { color: var(--primary); }
.hero-content p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; max-width: 400px; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img { max-height: 350px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.1)); }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-gray { background: var(--bg-gray); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.7rem; font-weight: 700; color: var(--secondary); }
.section-header p { color: var(--text-light); }
.section-header.centered { display: block; text-align: center; margin-bottom: 2rem; }
.section-header.centered h2 { font-size: 1.7rem; font-weight: 700; color: var(--secondary); margin-bottom: .4rem; }
.section-header.centered p { color: var(--text-light); margin-top: .3rem; }
.view-all { color: var(--primary); font-weight: 600; font-size: .9rem; transition: var(--transition); }
.view-all:hover { color: var(--primary-dark); }

/* ===== CATEGORIES GRID ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.5rem 1rem; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); transition: var(--transition); cursor: pointer; }
.category-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-gray); border-radius: 50%; color: var(--primary); }
.category-icon svg { width: 24px; height: 24px; }
.category-card span { font-size: .85rem; font-weight: 600; color: var(--secondary); text-align: center; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }

.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-image { display: block; position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg-gray); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.badge-sale, .badge-featured { position: absolute; top: .7rem; padding: .25rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.badge-sale { right: .7rem; background: var(--error); color: #fff; }
.badge-featured { left: .7rem; background: var(--primary); color: #fff; }
.product-card-body { padding: 1rem; }
.product-card-cat { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-card-body h3 { font-size: .95rem; font-weight: 600; margin: .3rem 0 .5rem; line-height: 1.4; }
.product-card-body h3 a:hover { color: var(--primary); }
.product-card-price { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.old-price { font-size: .85rem; color: var(--text-light); text-decoration: line-through; }
.btn-add-cart { width: 100%; padding: .6rem; background: var(--secondary); color: #fff; border: none; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-add-cart:hover:not(:disabled) { background: var(--primary); }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }

/* ===== BANNER MID ===== */
.banner-mid { background: linear-gradient(135deg, var(--secondary) 0%, #444 100%); padding: 3rem 1.5rem; text-align: center; }
.banner-mid-content h2 { font-size: 2rem; color: #fff; margin-bottom: .5rem; }
.banner-mid-content p { color: #ccc; margin-bottom: 1.5rem; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.feature-card { background: #fff; padding: 2rem 1.5rem; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: .8rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--secondary); }
.feature-card p { font-size: .85rem; color: var(--text-light); }
.feature-card a, .feature-card * { color: inherit; text-decoration: none; }

/* ===== PAGE BANNER ===== */
.page-banner { background: var(--bg-gray); padding: 2.5rem 1.5rem; border-bottom: 1px solid var(--border); }
.page-banner h1 { font-size: 1.8rem; font-weight: 700; color: var(--secondary); margin-bottom: .4rem; }
.breadcrumb { font-size: .85rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== SHOP LAYOUT ===== */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 1.5rem; }
.shop-sidebar { position: sticky; top: 90px; height: fit-content; }
.sidebar-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--secondary); padding-bottom: .5rem; border-bottom: 2px solid var(--primary); }
.cat-list li { margin-bottom: .3rem; }
.cat-list a { display: block; padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; color: var(--text); transition: var(--transition); }
.cat-list a:hover, .cat-list a.active { background: var(--bg-gray); color: var(--primary); font-weight: 600; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.result-count { font-size: .9rem; color: var(--text-light); }
.sort-form select { padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; cursor: pointer; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.empty-state p { color: var(--text-light); margin-bottom: 1.5rem; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0 4rem; }
.main-image { background: var(--bg-gray); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-images { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.thumb-images img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid var(--border); transition: var(--transition); }
.thumb-images img:hover, .thumb-images img.active { border-color: var(--primary); }
.product-category { font-size: .8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.product-info h1 { font-size: 1.8rem; font-weight: 700; color: var(--secondary); margin: .4rem 0 1rem; line-height: 1.3; }
.product-price-block { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.price-main { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.price-old { font-size: 1.1rem; color: var(--text-light); text-decoration: line-through; }
.badge-discount { background: var(--error); color: #fff; padding: .2rem .6rem; border-radius: 4px; font-size: .8rem; font-weight: 700; }
.stock-badge { display: inline-block; padding: .35rem .9rem; border-radius: 50px; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.in-stock { background: #d4edda; color: var(--success); }
.out-stock { background: #f8d7da; color: var(--error); }
.product-desc { font-size: .95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-gray); border-radius: 8px; }
.add-to-cart-form { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-control button { background: var(--bg-gray); border: none; width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input { width: 55px; border: none; text-align: center; font-size: 1rem; font-weight: 600; outline: none; }
.product-meta { font-size: .85rem; color: var(--text-light); margin-top: .8rem; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; padding: 2rem 1.5rem 4rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: .8rem 1rem; border-bottom: 2px solid var(--border); font-size: .85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 1rem; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.cart-product a { font-weight: 600; font-size: .95rem; }
.cart-product a:hover { color: var(--primary); }
.qty-input { width: 65px; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: .9rem; }
.remove-btn { color: var(--error); font-size: 1.4rem; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; transition: var(--transition); }
.remove-btn:hover { background: var(--error); color: #fff; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: fit-content; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--primary); }
.summary-row { display: flex; justify-content: space-between; padding: .6rem 0; font-size: .95rem; }
.summary-row.total-row { font-size: 1.1rem; font-weight: 700; border-top: 2px solid var(--border); padding-top: 1rem; margin-top: .5rem; color: var(--secondary); }
.free-shipping { color: var(--success); font-weight: 600; }
.free-shipping-info { background: #fff3cd; color: #856404; padding: .7rem; border-radius: 6px; font-size: .85rem; margin: .5rem 0; text-align: center; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 2rem 1.5rem 4rem; }
.checkout-form-wrap h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.checkout-form .form-group { margin-bottom: 1.2rem; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--secondary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: 8px; font-size: .9rem; transition: var(--transition); background: #fff; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.payment-info { margin: 1.5rem 0 1rem; }
.payment-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .8rem; }
.payment-option { padding: .9rem 1rem; border: 2px solid var(--border); border-radius: 8px; display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.payment-option.selected { border-color: var(--primary); background: #fdf8f0; }
.order-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; height: fit-content; position: sticky; top: 90px; }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .8rem; border-bottom: 2px solid var(--primary); }
.summary-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.summary-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.summary-item-info { flex: 1; }
.summary-item-info small { display: block; color: var(--text-light); }
.alert { padding: .9rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert ul { padding-left: 1.2rem; }

/* ===== ORDER SUCCESS ===== */
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.order-confirm-box { background: var(--bg-gray); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; text-align: left; }
.status-badge { display: inline-block; padding: .25rem .7rem; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== FOOTER ===== */
.site-footer { background: var(--secondary); color: #ccc; padding: 3.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; align-items: start; }
.footer-col p { font-size: .9rem; margin-top: .5rem; line-height: 1.8; }
.footer-logo .logo-text { color: #fff; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid #444; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .9rem; color: #bbb; transition: var(--transition); }
.footer-col ul a:hover { color: var(--primary); }
.security-badges { display: flex; flex-direction: column; gap: .5rem; }
.security-badge { font-size: .85rem; padding: .4rem .8rem; background: rgba(255,255,255,.05); border-radius: 6px; }
.footer-bottom { border-top: 1px solid #444; padding: 1.2rem 0; text-align: center; font-size: .85rem; color: #888; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
    .hero-image { display: none; }
    .hero-content p { max-width: 100%; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .search-form { display: none; }
    .topbar-inner span:first-child, .topbar-inner span:last-child { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .checkout-form .form-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
