:root {
  --primary: #1a1a2e;
  --accent: #c8a951;
  --accent-light: #f0d98a;
  --accent-dark: #a07c2a;
  --bg: #f8f7f4;
  --bg-card: #ffffff;
  --bg-secondary: #f1ede4;
  --text: #1a1a2e;
  --text-muted: #6b6b80;
  --text-light: #9b9baa;
  --border: #e2ddd5;
  --border-strong: #c8c0b0;
  --success: #2d7a4f;
  --danger: #c0392b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --header-h: 140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ──────────────────────────────────────────────────────────────── */
#header { position: sticky; top: 0; z-index: 1000; background: var(--bg-card); box-shadow: var(--shadow); }

.header-top { background: var(--primary); color: rgba(255,255,255,0.75); font-size: 12px; padding: 6px 0; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.header-top span i { margin-right: 5px; color: var(--accent); }

.header-main { padding: 14px 0; border-bottom: 1px solid var(--border); }
.header-main-inner { display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; cursor: pointer; }
.logo-icon { width: 46px; height: 46px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 20px; }
.logo-name { display: block; font-family: 'Playfair Display', serif; font-size: 20px; color: var(--primary); line-height: 1.1; }
.logo-tagline { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

.search-bar { flex: 1; position: relative; max-width: 520px; }
.search-bar input { width: 100%; padding: 11px 16px 11px 42px; border: 1.5px solid var(--border); border-radius: 50px; font-size: 14px; background: var(--bg); color: var(--text); transition: var(--transition); outline: none; font-family: inherit; }
.search-bar input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(200,169,81,0.15); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; pointer-events: none; }
.search-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 200; max-height: 380px; overflow-y: auto; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: var(--transition); }
.search-item:hover { background: var(--bg-secondary); }
.search-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); }
.search-item-info .name { font-size: 13px; font-weight: 500; }
.search-item-info .meta { font-size: 11px; color: var(--text-muted); }
.search-item-info .price { font-size: 13px; font-weight: 600; color: var(--accent-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; position: relative; }
.btn-icon { background: none; border: none; width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer; font-size: 16px; color: var(--text); transition: var(--transition); display: flex; align-items: center; justify-content: center; position: relative; }
.btn-icon:hover { background: var(--bg-secondary); color: var(--accent-dark); }
.cart-btn { position: relative; }
.badge { position: absolute; top: 4px; right: 4px; background: var(--accent); color: var(--primary); font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.user-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 200px; z-index: 300; overflow: hidden; }
.user-menu-header { padding: 12px 14px; font-size: 13px; font-weight: 600; background: var(--bg-secondary); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; color: var(--primary); }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; cursor: pointer; color: var(--text); transition: var(--transition); }
.user-menu a:hover { background: var(--bg-secondary); }
.user-menu a.danger { color: var(--danger); }
.user-menu a i { width: 16px; color: var(--text-muted); }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ─── NAV ────────────────────────────────────────────────────────────────── */
#mainNav { background: var(--primary); }
.nav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 13px 14px; color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link i { font-size: 13px; }

.nav-dropdown-wrap { display: flex; align-items: center; gap: 2px; }
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { padding-right: 22px; }
.nav-dropdown > .nav-link::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: 0.6; }
.nav-dropdown:hover .nav-submenu { display: block; }
.nav-submenu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 200px; z-index: 500; overflow: hidden; }
.nav-submenu a { display: block; padding: 10px 16px; font-size: 13px; color: var(--text); cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--bg-secondary); }
.nav-submenu a:last-child { border-bottom: none; }
.nav-submenu a:hover { background: var(--bg-secondary); color: var(--accent-dark); padding-left: 22px; }

/* ─── MODALS ─────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; padding: 28px; position: relative; animation: fadeSlideUp 0.2s ease; max-height: 90vh; overflow-y: auto; }
.modal-product { max-width: 900px; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg-secondary); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--text-muted); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); color: var(--text); }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.auth-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 16px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-muted); margin-bottom: -1px; transition: var(--transition); }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--accent); }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
.form-group input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); font-family: inherit; transition: var(--transition); outline: none; background: var(--bg); }
.form-group input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(200,169,81,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { font-size: 12px; color: var(--danger); margin-bottom: 12px; padding: 8px 12px; background: #fef2f2; border-radius: 6px; border-left: 3px solid var(--danger); }
.form-note { font-size: 12px; color: var(--text-muted); background: var(--bg-secondary); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.form-note i { color: var(--accent-dark); margin-right: 5px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: #2c2c4a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,26,46,0.25); }
.btn-accent { background: var(--accent); color: var(--primary); border: none; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: none; color: var(--text); border: 1.5px solid var(--border); padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-icon-sm { background: none; border: 1px solid var(--border); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-muted); transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon-sm:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--bg-secondary); }
.btn-icon-sm.active { background: #fef3f3; border-color: #f5a0a0; color: var(--danger); }
.full { width: 100%; justify-content: center; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2c2c4a 60%, #1a2040 100%); color: #fff; padding: 80px 0; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(200,169,81,0.2); color: var(--accent-light); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 50px; border: 1px solid rgba(200,169,81,0.3); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 48px; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: rotate(-3deg); }
.hero-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 18px; backdrop-filter: blur(8px); }
.hero-card-icon { font-size: 28px; margin-bottom: 8px; color: var(--accent); }
.hero-card p { font-size: 12px; color: rgba(255,255,255,0.6); }
.hero-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--primary); }
.section-header h2 span { color: var(--accent-dark); }
.section-header p { color: var(--text-muted); font-size: 14px; }

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); cursor: pointer; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-img { aspect-ratio: 4/3; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-img-placeholder { font-size: 40px; color: var(--border-strong); }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--primary); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-wishlist { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); border: 1px solid var(--border); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: var(--text-muted); transition: var(--transition); }
.product-wishlist:hover, .product-wishlist.active { color: var(--danger); border-color: #f5a0a0; background: #fff; }
.product-info { padding: 14px; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.product-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.product-tag { font-size: 11px; background: var(--bg-secondary); color: var(--text-muted); padding: 2px 8px; border-radius: 50px; border: 1px solid var(--border); }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 19px; font-weight: 700; color: var(--primary); }
.product-price .cents { font-size: 13px; }
.product-stock { font-size: 11px; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }
.add-cart-btn { background: var(--primary); color: #fff; border: none; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 14px; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.add-cart-btn:hover { background: var(--accent); color: var(--primary); }

/* ─── CATALOG LAYOUT ─────────────────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-section h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; font-size: 13px; color: var(--text); }
.filter-option input { accent-color: var(--primary); cursor: pointer; }
.filter-option:hover { color: var(--accent-dark); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 80px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; text-align: center; font-family: inherit; outline: none; }
.price-range input:focus { border-color: var(--accent); }
.catalog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: gap; gap: 12px; }
.catalog-title { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--primary); }
.catalog-meta { font-size: 13px; color: var(--text-muted); }
.sort-select { padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; font-family: inherit; color: var(--text); background: var(--bg); cursor: pointer; outline: none; }
.sort-select:focus { border-color: var(--accent); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page-btn { background: var(--bg-card); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text); transition: var(--transition); font-family: inherit; }
.page-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── CATEGORY CARDS ─────────────────────────────────────────────────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; cursor: pointer; transition: var(--transition); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); background: linear-gradient(135deg, var(--primary) 0%, #2c2c4a 100%); color: #fff; }
.cat-card:hover .cat-icon { color: var(--accent); }
.cat-card:hover .cat-name { color: #fff; }
.cat-card:hover .cat-count { color: rgba(255,255,255,0.6); }
.cat-icon { font-size: 28px; color: var(--primary); margin-bottom: 10px; transition: var(--transition); }
.cat-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; transition: var(--transition); }
.cat-count { font-size: 11px; color: var(--text-muted); transition: var(--transition); }

/* ─── PRODUCT DETAIL ─────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-gallery { background: var(--bg-secondary); border-radius: var(--radius-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--border-strong); }
.detail-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-dark); font-weight: 700; margin-bottom: 6px; }
.detail-name { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--primary); margin-bottom: 12px; line-height: 1.2; }
.detail-price { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.detail-price small { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.detail-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.detail-specs { background: var(--bg-secondary); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.detail-specs h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-item { font-size: 13px; }
.spec-item .spec-label { color: var(--text-muted); }
.spec-item .spec-value { font-weight: 500; color: var(--text); }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qty-input { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { background: var(--bg-secondary); border: none; width: 36px; height: 44px; cursor: pointer; font-size: 16px; color: var(--text); transition: var(--transition); }
.qty-btn:hover { background: var(--border); }
.qty-val { width: 44px; height: 44px; border: none; text-align: center; font-size: 15px; font-weight: 600; font-family: inherit; background: #fff; color: var(--text); outline: none; }

/* ─── CART PAGE ──────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 16px; align-items: center; }
.cart-item-img { width: 80px; height: 70px; background: var(--bg-secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--border-strong); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 17px; font-weight: 700; color: var(--primary); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 18px; color: var(--primary); }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--text-muted); }
.summary-line.total { font-size: 17px; font-weight: 700; color: var(--primary); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty i { font-size: 60px; color: var(--border-strong); margin-bottom: 20px; }
.cart-empty h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: var(--text-muted); }

/* ─── BLOG ───────────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-img { height: 180px; background: linear-gradient(135deg, var(--primary), #2c2c4a); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--accent); }
.blog-content { padding: 18px; }
.blog-date { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); font-weight: 600; margin-bottom: 8px; }
.blog-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary); margin-bottom: 10px; line-height: 1.3; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.blog-author { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 20px; color: var(--primary); }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 42px; height: 42px; background: var(--primary); color: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--text-muted); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 22px; color: var(--primary); }
.form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text); font-family: inherit; transition: var(--transition); outline: none; background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select:focus, .form-group textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(200,169,81,0.12); }

/* ─── ACCOUNT ────────────────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.account-nav { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px; position: sticky; top: calc(var(--header-h) + 16px); }
.account-nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); transition: var(--transition); }
.account-nav-item:hover { background: var(--bg-secondary); color: var(--accent-dark); }
.account-nav-item.active { background: var(--primary); color: #fff; }
.account-nav-item i { width: 16px; }
.account-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.account-panel h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 24px; color: var(--primary); }
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-id { font-size: 13px; font-weight: 600; color: var(--primary); }
.order-date { font-size: 12px; color: var(--text-muted); }
.order-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; background: #e8f5ef; color: var(--success); text-transform: uppercase; letter-spacing: 0.5px; }
.order-total { font-size: 16px; font-weight: 700; color: var(--primary); }

/* ─── TRUST BADGES ───────────────────────────────────────────────────────── */
.trust-bar { background: var(--primary); color: rgba(255,255,255,0.85); padding: 20px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.trust-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.trust-item p { font-size: 12px; opacity: 0.65; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 60px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-logo i { color: var(--accent); margin-right: 8px; }
.footer-grid > div > p { font-size: 13px; line-height: 1.7; }
.footer-grid h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.footer-grid ul li a { color: rgba(255,255,255,0.65); cursor: pointer; transition: var(--transition); }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-grid ul li i { color: var(--accent); width: 14px; flex-shrink: 0; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition); cursor: pointer; }
.social-links a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.loading { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; color: var(--border-strong); }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--primary); color: #fff; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; z-index: 9999; display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease; max-width: 320px; }
.toast.success i { color: #5cb85c; }
.toast.error i { color: #f5a0a0; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.page-title { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--primary); margin-bottom: 8px; }
.page-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb i { font-size: 10px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 600px) {
  .header-main-inner { flex-wrap: wrap; }
  .search-bar { order: 3; flex: 0 0 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
}
