/* ShopVerse - Design System & Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FAFAFA; --bg-alt: #F5F5F5; --surface: #FFFFFF; --surface-hover: #F9F9F9;
  --text: #111111; --text-secondary: #555555; --text-muted: #888888;
  --primary: #111111; --primary-hover: #333333; --primary-light: #F0F0F0;
  --accent: #E85D3A; --accent-hover: #D04E2D; --accent-light: #FFF0EC;
  --success: #16A34A; --success-light: #DCFCE7;
  --warning: #EAB308; --warning-light: #FEF9C3;
  --error: #DC2626; --error-light: #FEE2E2;
  --border: #E5E5E5; --border-light: #F0F0F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 4px; --radius: 8px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
  --font: 'Inter','Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif;
  --transition: 200ms cubic-bezier(0.16,1,0.3,1);
  --header-h: 56px; --nav-h: 44px;
  --container: 1280px;
}
[data-theme="dark"] {
  --bg: #0A0A0A; --bg-alt: #111111; --surface: #1A1A1A; --surface-hover: #222222;
  --text: #F5F5F5; --text-secondary: #A0A0A0; --text-muted: #666666;
  --primary: #F5F5F5; --primary-hover: #CCCCCC; --primary-light: #1A1A1A;
  --border: #2A2A2A; --border-light: #1E1E1E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.4);
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 0.875rem; }
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; transition: all var(--transition); border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-hover); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: #f0f0f0; }
.btn-lg { padding: 14px 28px; font-size: 0.9375rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ========== HEADER ========== */
.header { position: sticky; top: 0; z-index: 100; background: var(--surface); }
.header-top { background: var(--primary); color: var(--bg); padding: 6px 0; font-size: 0.75rem; text-align: center; }
[data-theme="dark"] .header-top { background: #222; color: #ccc; }
.header-main { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; color: var(--text); flex-shrink: 0; }
.logo em { font-style: normal; color: var(--accent); }
.header-search { flex: 1; max-width: 560px; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.header-search svg { margin-left: 12px; color: var(--text-muted); flex-shrink: 0; }
.header-search input { flex: 1; border: none; background: none; padding: 10px 12px; outline: none; color: var(--text); }
.search-btn { padding: 10px 20px; background: var(--primary); color: var(--bg); font-weight: 500; font-size: 0.875rem; border: none; cursor: pointer; transition: background var(--transition); }
.search-btn:hover { background: var(--primary-hover); }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); }
.header-action-btn:hover { background: var(--bg); color: var(--text); }
.action-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; background: var(--accent); color: #fff; border-radius: 9px; font-size: 0.625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); }
.theme-toggle:hover { background: var(--bg); color: var(--text); }
.header-nav { border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; height: var(--nav-h); gap: 0; overflow-x: auto; }
.nav-link { padding: 0 18px; height: var(--nav-h); display: flex; align-items: center; font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--text); }

/* ========== MOBILE MENU ========== */
.mobile-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--surface); z-index: 1001; transition: right 300ms ease; overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mobile-close { font-size: 1.5rem; color: var(--text); }
.mobile-menu-links { padding: 12px 0; }
.mobile-menu-links a { display: block; padding: 12px 20px; font-size: 0.9375rem; color: var(--text); border-bottom: 1px solid var(--border-light); }
.mobile-menu-links a:hover { background: var(--bg); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; }
.mobile-overlay.open { display: block; }

/* ========== VIEWS ========== */
.view { display: none; min-height: 60vh; padding: 32px 0; }
.view.active { display: block; }
.page-title { font-size: 1.75rem; margin-bottom: 8px; }
.page-subtitle { color: var(--text-secondary); margin-bottom: 32px; }

/* ========== HERO ========== */
.hero { position: relative; padding: 80px 0; background: linear-gradient(135deg, #f8f4f0 0%, #f0ebe4 100%); overflow: hidden; }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1a1816 0%, #161412 100%); }
.hero-bg { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(circle at 25% 25%, var(--text) 1px, transparent 1px); background-size: 40px 40px; }
.hero-content { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.hero-tag { display: inline-block; padding: 4px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== SECTIONS ========== */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.375rem; }
.section-link { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.section-link:hover { color: var(--accent); }

/* ========== CATEGORY GRID ========== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; font-size: 0.8125rem; font-weight: 500; transition: all var(--transition); }
.cat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon { color: var(--text-secondary); }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card-img { aspect-ratio: 1; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-img svg { width: 48px; height: 48px; color: var(--text-muted); }
.product-card-badge { position: absolute; top: 10px; left: 10px; padding: 2px 8px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: 0.6875rem; font-weight: 600; }
.product-card-wishlist { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; transition: all var(--transition); }
.product-card:hover .product-card-wishlist { opacity: 1; }
.product-card-wishlist svg { width: 16px; height: 16px; color: var(--text-secondary); }
.product-card-wishlist.active svg { fill: var(--accent); color: var(--accent); }
.product-card-body { padding: 14px; }
.product-card-brand { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 4px; }
.product-card-name { font-size: 0.875rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { display: flex; align-items: center; gap: 8px; }
.product-card-price .current { font-size: 0.9375rem; font-weight: 600; }
.product-card-price .original { font-size: 0.8125rem; color: var(--text-muted); text-decoration: line-through; }
.product-card-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 0.75rem; color: var(--text-muted); }
.product-card-rating .stars { color: #F59E0B; }

/* ========== PROMO GRID ========== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card { border-radius: var(--radius-lg); padding: 40px; min-height: 200px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.promo-dark { background: #1a1a1a; color: #fff; }
.promo-gradient { background: linear-gradient(135deg, var(--accent), #F59E0B); color: #fff; }
.promo-content { position: relative; z-index: 1; }
.promo-tag { display: inline-block; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-bottom: 8px; }
.promo-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.promo-card p { font-size: 0.875rem; opacity: 0.8; margin-bottom: 16px; }

/* ========== TRUST SECTION ========== */
.trust-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { color: var(--text-secondary); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.875rem; }
.trust-item span { font-size: 0.75rem; color: var(--text-muted); }

/* ========== SHOP LAYOUT ========== */
.shop-layout { display: flex; gap: 32px; }
.filters-sidebar { width: 240px; flex-shrink: 0; }
.filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filters-clear { font-size: 0.8125rem; color: var(--accent); }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.filter-title { display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 12px; }
.filter-arrow { font-size: 0.75rem; color: var(--text-muted); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-options label { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.filter-options input { accent-color: var(--primary); }
.shop-main { flex: 1; min-width: 0; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.shop-result-count { font-size: 0.875rem; color: var(--text-secondary); }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { font-size: 0.8125rem; color: var(--text-secondary); }
.shop-sort select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 0.8125rem; }
.filter-toggle-btn { display: none; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8125rem; color: var(--text); background: var(--surface); }

/* ========== PRODUCT DETAIL ========== */
.breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-gallery { display: grid; gap: 12px; }
.gallery-main { aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main svg { width: 80px; height: 80px; color: var(--text-muted); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-info h1 { font-size: 1.5rem; margin-bottom: 8px; }
.product-info .brand { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.product-info .price { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.product-info .price .original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.product-info .rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.875rem; color: var(--text-secondary); }
.product-info .rating .stars { color: #F59E0B; }
.product-info .description { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.product-options { margin-bottom: 24px; }
.product-options label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8125rem; background: var(--surface); color: var(--text); transition: all var(--transition); }
.size-btn:hover, .size-btn.active { border-color: var(--primary); background: var(--primary); color: var(--bg); }
.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.product-meta { font-size: 0.8125rem; color: var(--text-muted); }
.product-meta span { display: block; margin-bottom: 4px; }
.product-reviews { margin-bottom: 48px; }
.product-reviews h3 { margin-bottom: 20px; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.review-name { font-weight: 500; font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.related-products { margin-top: 48px; }

/* ========== CART ========== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cart-item-img { width: 100px; height: 100px; background: var(--bg-alt); border-radius: var(--radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-item-img svg { width: 32px; height: 32px; color: var(--text-muted); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; margin-bottom: 4px; }
.cart-item-variant { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-price { font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.cart-item-qty button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); font-size: 1rem; }
.cart-item-qty span { width: 40px; text-align: center; font-size: 0.875rem; font-weight: 500; }
.cart-item-remove { font-size: 0.8125rem; color: var(--text-muted); margin-left: auto; align-self: flex-start; }
.cart-item-remove:hover { color: var(--error); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; position: sticky; top: 120px; }
.cart-summary h3 { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px; font-size: 1.0625rem; font-weight: 600; }
.cart-summary .btn { margin-top: 16px; }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state svg { color: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

/* ========== CHECKOUT ========== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.checkout-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.checkout-section h3 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.8125rem; font-weight: 500; }
.form-group input, .form-group select { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); outline: none; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.payment-options { display: flex; gap: 12px; margin-bottom: 20px; }
.payment-option { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; transition: all var(--transition); }
.payment-option:hover, .payment-option.active { border-color: var(--primary); }
.payment-option input { display: none; }
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; position: sticky; top: 120px; }

/* ========== CATEGORIES PAGE ========== */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: all var(--transition); cursor: pointer; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-card svg { width: 40px; height: 40px; color: var(--text-secondary); margin-bottom: 12px; }
.category-card h3 { margin-bottom: 4px; }
.category-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* ========== DEALS ========== */
.deals-hero { text-align: center; padding: 40px; background: var(--accent); color: #fff; border-radius: var(--radius-lg); margin-bottom: 32px; }
.deals-hero h1 { color: #fff; }
.deals-hero p { opacity: 0.9; }

/* ========== BRANDS ========== */
.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: all var(--transition); }
.brand-card:hover { border-color: var(--primary); }
.brand-card h3 { margin-bottom: 4px; }
.brand-card p { font-size: 0.8125rem; color: var(--text-muted); }

/* ========== ACCOUNT ========== */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.account-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; }
.account-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; margin: 0 auto 12px; }
.account-user h4 { margin-bottom: 2px; }
.account-user span { font-size: 0.8125rem; color: var(--text-muted); }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius); font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition); }
.account-nav a:hover, .account-nav a.active { background: var(--bg); color: var(--text); }
.account-logout { color: var(--error) !important; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--bg); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* ========== AUTH ========== */
.auth-container { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; }
.auth-card h1 { text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; align-items: center; justify-content: space-between; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.auth-link { font-size: 0.8125rem; color: var(--accent); }
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--surface); padding: 0 16px; font-size: 0.8125rem; color: var(--text-muted); }
.auth-social { display: flex; gap: 12px; }
.social-btn { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500; background: var(--surface); color: var(--text); transition: all var(--transition); }
.social-btn:hover { border-color: var(--primary); background: var(--bg); }
.auth-footer { text-align: center; font-size: 0.875rem; color: var(--text-secondary); margin-top: 24px; }

/* ========== ERROR PAGE ========== */
.error-page { text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: 5rem; font-weight: 800; color: var(--text-muted); }
.error-page p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 32px; }

/* ========== FOOTER ========== */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); margin-top: 12px; max-width: 280px; }
.footer-links h4 { margin-bottom: 16px; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { display: block; font-size: 0.8125rem; color: var(--text-secondary); padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-muted); text-align: center; }

/* ========== TOAST ========== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; background: var(--text); color: var(--bg); border-radius: var(--radius); font-size: 0.875rem; box-shadow: var(--shadow-lg); animation: toastIn 300ms ease; }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--error); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 48px 0; }
  .hero-title { font-size: 2rem; }
  .promo-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { flex-direction: column; }
  .filters-sidebar { display: none; width: 100%; }
  .filters-sidebar.open { display: block; }
  .filter-toggle-btn { display: flex; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: auto; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body { padding: 10px; }
  .product-card-name { font-size: 0.8125rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
