/* ============================================
   TM Smart Hub — Smart Home Store
   Design System: Clean white + teal accent
   Niche: Smart home automation devices
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-bg: #f8fafb;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f7;
  --color-surface-elevated: #ffffff;
  --color-border: #e2e8ed;
  --color-border-light: #cbd5e0;
  --color-text-primary: #1a2b3c;
  --color-text-secondary: #5a6b7d;
  --color-text-muted: #94a3b0;
  --color-accent: #0d9488;
  --color-accent-hover: #0a7a72;
  --color-accent-fg: #ffffff;
  --color-accent-light: #e6f7f5;
  --color-accent-glow: rgba(13, 148, 136, 0.12);
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-error: #dc2626;
  --color-sale: #dc2626;
  --color-gold: #f59e0b;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --container-max: 1280px;
}

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); width: 100%; }

/* --- Announcement Bar --- */
.announcement-bar { background: var(--color-accent); color: #fff; text-align: center; padding: 10px var(--space-lg); font-size: 13px; font-weight: 500; letter-spacing: 0.2px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 12px 24px; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 600; font-size: 15px; transition: all var(--transition-base); white-space: nowrap; text-align: center; line-height: 1.4; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: 0 4px 12px var(--color-accent-glow); transform: translateY(-1px); }
.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-ghost:hover { color: var(--color-accent); border-color: var(--color-accent); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; font-family: var(--font-heading); }
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-new { background: var(--color-success); color: #fff; }
.badge-out { background: var(--color-text-muted); color: #fff; }
.badge-accent { background: var(--color-accent-light); color: var(--color-accent); }

/* --- Navigation --- */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--space-lg); }
.nav-logo { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-text-primary); display: flex; align-items: center; gap: var(--space-sm); white-space: nowrap; }
.nav-logo span { color: var(--color-accent); }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); transition: color var(--transition-fast); position: relative; }
.nav-links a:hover { color: var(--color-accent); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width var(--transition-base); }
.nav-links a:hover::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition-base); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.nav-dropdown-menu a:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text-secondary); transition: all var(--transition-fast); position: relative; }
.nav-icon-btn:hover { color: var(--color-accent); background: var(--color-surface-alt); }
.nav-icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count:empty { display: none; }

/* --- Search --- */
.search-wrap { position: relative; }
.search-input { width: 100%; padding: 10px 16px 10px 40px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-primary); font-size: 14px; transition: border-color var(--transition-fast); }
.search-input:focus { border-color: var(--color-accent); outline: none; }
.search-input::placeholder { color: var(--color-text-muted); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; z-index: 100; display: none; }
.search-results.show { display: block; }
.search-item { display: flex; align-items: center; gap: var(--space-md); padding: 10px var(--space-md); border-bottom: 1px solid var(--color-border); transition: background var(--transition-fast); }
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.search-item-info { flex: 1; }
.search-item-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.search-item-price { font-size: 13px; color: var(--color-accent); font-family: var(--font-mono); }
.search-item:last-child { border-bottom: none; }

/* --- Hamburger / Mobile Menu --- */
.hamburger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: all var(--transition-base); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { position: fixed; top: 0; left: -100%; width: 85%; max-width: 360px; height: 100vh; background: var(--color-surface); border-right: 1px solid var(--color-border); z-index: 2000; transition: left var(--transition-slow); overflow-y: auto; padding: var(--space-xl) var(--space-lg); }
.mobile-menu.open { left: 0; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1999; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: var(--space-lg); right: var(--space-lg); font-size: 24px; color: var(--color-text-secondary); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-xl); }
.mobile-menu nav a { font-size: 16px; font-weight: 500; color: var(--color-text-primary); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.mobile-menu nav a:hover { color: var(--color-accent); }

/* --- Hero --- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(248,250,251,0.92) 0%, rgba(248,250,251,0.5) 50%, rgba(248,250,251,0.1) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: var(--space-3xl) 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 6px 16px; background: var(--color-accent-light); border: 1px solid var(--color-accent); border-radius: var(--radius-full); color: var(--color-accent); font-size: 13px; font-weight: 600; font-family: var(--font-heading); margin-bottom: var(--space-lg); }
.hero-title { font-family: var(--font-heading); font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.1; color: var(--color-text-primary); margin-bottom: var(--space-lg); max-width: 640px; }
.hero-subtitle { font-size: clamp(16px, 2vw, 19px); color: var(--color-text-secondary); max-width: 520px; margin-bottom: var(--space-xl); line-height: 1.7; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-sm); }
.section-subtitle { font-size: 16px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-lg); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* --- Product Card --- */
.product-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); display: flex; flex-direction: column; position: relative; }
.product-card:hover { border-color: var(--color-border-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-xs); z-index: 1; }
.product-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.product-card-vendor { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); font-weight: 600; }
.product-card-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: baseline; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--color-accent); }
.product-card-compare { font-family: var(--font-mono); font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-atc { margin-top: var(--space-sm); width: 100%; padding: 10px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 13px; font-weight: 600; font-family: var(--font-heading); transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; gap: var(--space-xs); }
.product-card-atc:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.product-card-atc svg { width: 16px; height: 16px; }

/* --- Collection Card --- */
.collection-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; display: block; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,43,60,0.85) 0%, rgba(26,43,60,0.15) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); }
.collection-card-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; }
.collection-card-count { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: var(--space-xs); }

/* --- Product Page Layout --- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
@media (min-width: 768px) { .product-layout { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1.2fr 1fr; gap: var(--space-2xl); } }
.product-gallery { display: flex; flex-direction: column; gap: var(--space-md); }
.gallery-main-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); aspect-ratio: 4/3; }
.gallery-main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform var(--transition-base); }
.gallery-main.zoomed { transform: scale(2); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: var(--space-xs); }
.gallery-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color var(--transition-fast); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb:hover { border-color: var(--color-border-light); }

/* --- Product Info --- */
.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-muted); font-weight: 600; }
.product-title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.product-price-wrap { display: flex; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; }
.product-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--color-accent); }
.product-compare-price { font-family: var(--font-mono); font-size: 18px; color: var(--color-text-muted); text-decoration: line-through; }
.product-savings { background: var(--color-sale); color: #fff; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }

/* --- Option Selectors --- */
.option-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.option-label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.option-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option-btn { padding: 10px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 14px; font-weight: 500; transition: all var(--transition-fast); }
.option-btn:hover { border-color: var(--color-accent); }
.option-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* --- Quantity Control --- */
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); color: var(--color-accent); }
.qty-input { width: 50px; height: 44px; text-align: center; background: var(--color-surface); border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); color: var(--color-text-primary); font-family: var(--font-mono); font-weight: 600; }
.qty-input:focus { outline: none; }

/* --- Sticky ATC --- */
.sticky-atc { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--space-md) var(--space-lg); z-index: 900; transform: translateY(100%); transition: transform var(--transition-base); display: flex; align-items: center; gap: var(--space-md); box-shadow: 0 -4px 16px rgba(0,0,0,0.06); }
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-md); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; }
.sticky-atc-product .title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product .price { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--color-accent); }

/* --- Product Accordions --- */
.product-accordions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.accordion-header { padding: var(--space-md); background: var(--color-surface-alt); font-family: var(--font-heading); font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background var(--transition-fast); }
.accordion-header:hover { background: var(--color-border); }
.accordion-header .icon { transition: transform var(--transition-base); font-size: 18px; color: var(--color-accent); }
.accordion.open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); padding: 0 var(--space-md); }
.accordion.open .accordion-body { max-height: 2000px; padding: var(--space-md); }
.accordion-body p { margin-bottom: var(--space-sm); color: var(--color-text-secondary); font-size: 14px; line-height: 1.7; }
.accordion-body ul { padding-left: var(--space-lg); margin-bottom: var(--space-sm); }
.accordion-body li { color: var(--color-text-secondary); font-size: 14px; margin-bottom: var(--space-xs); list-style: disc; }
.accordion-body h3 { font-family: var(--font-heading); font-size: 15px; margin: var(--space-md) 0 var(--space-sm); color: var(--color-text-primary); }

/* --- Cart Drawer --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1500; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 400px; max-width: 90vw; height: 100vh; background: var(--color-surface); border-left: 1px solid var(--color-border); z-index: 1600; transition: right var(--transition-slow); display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-family: var(--font-heading); font-size: 20px; display: flex; align-items: center; gap: var(--space-sm); }
.cart-drawer-header .badge { background: var(--color-accent); color: #fff; }
#cart-close { font-size: 24px; color: var(--color-text-secondary); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md); }
.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); }
.cart-item-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-item-variant { font-size: 12px; color: var(--color-text-muted); }
.cart-item-price { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--color-accent); }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); font-size: 16px; }
.cart-item-qty button:hover { color: var(--color-accent); }
.cart-item-qty span { width: 32px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.cart-item-remove { color: var(--color-text-muted); font-size: 12px; }
.cart-item-remove:hover { color: var(--color-error); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-text-muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto var(--space-md); opacity: 0.3; }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.cart-subtotal strong { font-family: var(--font-mono); font-size: 22px; color: var(--color-accent); }
.cart-tax-note { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-md); text-align: center; }

/* --- Toast --- */
.toast { position: fixed; bottom: var(--space-xl); right: var(--space-xl); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-size: 14px; font-weight: 600; z-index: 3000; opacity: 0; transform: translateY(20px); transition: all var(--transition-base); box-shadow: var(--shadow-lg); max-width: 350px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--color-success); color: #fff; }
.toast-error { background: var(--color-error); color: #fff; }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-md) 0; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-item.current { color: var(--color-text-secondary); }

/* --- Sort Bar --- */
.sort-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) 0; flex-wrap: wrap; }
.sort-bar select { padding: 8px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 14px; cursor: pointer; }
.sort-bar select:focus { border-color: var(--color-accent); outline: none; }
.sort-bar .result-count { font-size: 14px; color: var(--color-text-muted); }

/* --- Availability --- */
.availability-msg { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: var(--space-xs); }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }

/* --- Footer --- */
.footer { background: #1a2b3c; color: #cbd5e0; padding: var(--space-2xl) 0 var(--space-lg); margin-top: var(--space-2xl); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: var(--space-md); color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a { font-size: 14px; color: #94a3b0; }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 22px; margin-bottom: var(--space-md); color: #fff; }
.footer-logo span { color: var(--color-accent); }
.footer-desc { font-size: 14px; color: #94a3b0; margin-bottom: var(--space-md); line-height: 1.6; }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #2d3e50; border-radius: var(--radius-md); color: #94a3b0; transition: all var(--transition-fast); }
.social-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.social-links svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid #2d3e50; padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: 13px; color: #64748b; }
.footer-payment-icons { display: flex; gap: var(--space-sm); align-items: center; }
.footer-payment-icons span { font-size: 11px; color: #64748b; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* --- Page Hero --- */
.page-hero { position: relative; padding: var(--space-2xl) 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: var(--space-sm); }
.page-hero p { font-size: 16px; color: var(--color-text-secondary); max-width: 700px; }

/* --- Content Pages --- */
.content-page { max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0; }
.content-page h1 { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 34px); margin-bottom: var(--space-lg); }
.content-page h2 { font-family: var(--font-heading); font-size: 22px; margin: var(--space-xl) 0 var(--space-md); }
.content-page h3 { font-family: var(--font-heading); font-size: 18px; margin: var(--space-lg) 0 var(--space-sm); }
.content-page p { margin-bottom: var(--space-md); color: var(--color-text-secondary); line-height: 1.8; }
.content-page ul { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.content-page li { color: var(--color-text-secondary); margin-bottom: var(--space-sm); list-style: disc; }
.content-page a { color: var(--color-accent); text-decoration: underline; }

/* --- Policy Sidebar --- */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
@media (min-width: 768px) { .policy-layout { grid-template-columns: 250px 1fr; } }
.policy-sidebar { display: flex; flex-direction: column; gap: var(--space-xs); }
.policy-sidebar a { padding: 10px var(--space-md); border-radius: var(--radius-md); font-size: 14px; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.policy-sidebar a:hover, .policy-sidebar a.active { background: var(--color-surface-alt); color: var(--color-accent); }

/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 600px; }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.form-input, .form-textarea, .form-select { padding: 12px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 15px; transition: border-color var(--transition-fast); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--color-accent); outline: none; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* --- Checkout --- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding: var(--space-xl) 0; }
@media (min-width: 1024px) { .checkout-layout { grid-template-columns: 1.5fr 1fr; } }
.checkout-form { display: flex; flex-direction: column; gap: var(--space-xl); }
.checkout-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.checkout-section h2 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: var(--space-lg); display: flex; align-items: center; gap: var(--space-sm); }
.checkout-section h2 .step-num { width: 28px; height: 28px; background: var(--color-accent); color: #fff; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.order-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); position: sticky; top: 90px; }
.order-summary h2 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: var(--space-lg); }
.order-summary-item { display: flex; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
.order-summary-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.order-summary-item-info { flex: 1; }
.order-summary-item-title { font-size: 13px; font-weight: 600; }
.order-summary-item-variant { font-size: 12px; color: var(--color-text-muted); }
.order-summary-item-price { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--color-accent); }
.order-summary-totals { margin-top: var(--space-md); }
.order-summary-row { display: flex; justify-content: space-between; padding: var(--space-xs) 0; font-size: 14px; color: var(--color-text-secondary); }
.order-summary-row.total { font-size: 18px; font-weight: 700; color: var(--color-text-primary); border-top: 1px solid var(--color-border); margin-top: var(--space-sm); padding-top: var(--space-md); }
.order-summary-row.total strong { font-family: var(--font-mono); color: var(--color-accent); }

/* --- Card Payment Form --- */
.card-form { display: flex; flex-direction: column; gap: var(--space-md); }
.card-input-wrap { position: relative; }
.card-row { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 480px) { .card-row { grid-template-columns: 1fr 1fr; } }
.security-note { display: flex; align-items: center; gap: var(--space-sm); font-size: 12px; color: var(--color-text-muted); margin-top: var(--space-sm); }
.security-note svg { width: 16px; height: 16px; color: var(--color-success); }

/* --- Thank You Page --- */
.thank-you-hero { text-align: center; padding: var(--space-3xl) 0; }
.thank-you-icon { width: 80px; height: 80px; margin: 0 auto var(--space-lg); background: var(--color-success); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }
.thank-you-icon svg { width: 40px; height: 40px; color: #fff; }
.thank-you-hero h1 { font-family: var(--font-heading); font-size: clamp(30px, 5vw, 44px); font-weight: 700; margin-bottom: var(--space-md); }
.thank-you-hero p { font-size: 18px; color: var(--color-text-secondary); max-width: 500px; margin: 0 auto var(--space-lg); }
.order-confirmation { max-width: 700px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.order-confirmation h2 { font-family: var(--font-heading); font-size: 20px; margin-bottom: var(--space-lg); }
.order-detail-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.order-detail-row strong { color: var(--color-text-primary); }
.order-detail-row span { color: var(--color-text-secondary); }

/* --- 404 --- */
.error-page { text-align: center; padding: var(--space-3xl) 0; }
.error-page h1 { font-family: var(--font-heading); font-size: 120px; font-weight: 700; color: var(--color-accent); line-height: 1; }
.error-page h2 { font-family: var(--font-heading); font-size: 24px; margin-bottom: var(--space-md); }
.error-page p { color: var(--color-text-secondary); margin-bottom: var(--space-lg); }

/* --- Promo Showcase --- */
.promo-showcase { border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); }
.promo-showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (min-width: 768px) { .promo-showcase-grid { grid-template-columns: repeat(4, 1fr); } }
.promo-showcase-item { padding: var(--space-xl) var(--space-lg); text-align: center; border-bottom: 1px solid var(--color-border); border-right: 1px solid var(--color-border); transition: background var(--transition-fast); }
.promo-showcase-item:hover { background: var(--color-surface-alt); }
.promo-showcase-item:nth-child(2n) { border-right: none; }
@media (min-width: 768px) {
  .promo-showcase-item { border-bottom: none; }
  .promo-showcase-item:nth-child(2n) { border-right: 1px solid var(--color-border); }
  .promo-showcase-item:last-child { border-right: none; }
}
.promo-showcase-number { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: var(--space-xs); }
.promo-showcase-label { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--color-text-primary); margin-bottom: var(--space-xs); }
.promo-showcase-desc { font-size: 13px; color: var(--color-text-muted); }

/* --- Brand Story --- */
.brand-story { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); align-items: center; }
@media (min-width: 768px) { .brand-story { grid-template-columns: 1fr 1fr; } }
.brand-story-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.brand-story-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-story-text h2 { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 30px); margin-bottom: var(--space-md); }
.brand-story-text p { color: var(--color-text-secondary); margin-bottom: var(--space-md); line-height: 1.7; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }

/* --- CTA Section --- */
.cta-section { background: var(--color-accent); border-radius: var(--radius-xl); padding: var(--space-2xl) var(--space-xl); text-align: center; margin: var(--space-2xl) 0; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 32px); color: #fff; margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-lg); font-size: 16px; }
.cta-section .btn { background: #fff; color: var(--color-accent); }
.cta-section .btn:hover { background: var(--color-bg); }

/* --- Responsive Nav --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-wrap { display: none; }
}
@media (max-width: 480px) {
  .nav-logo { font-size: 18px; }
  .hero { min-height: 480px; }
  .section { padding: var(--space-xl) 0; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
