/* ═══════════════════════════════════════════════════════════
   PhoneStore KH v2 — Complete Stylesheet
   Light theme default · Dark mode via [data-theme="dark"]
   Font: Clash Display + Cabinet Grotesk
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── THEME VARIABLES ─────────────────────────────────────── */
:root {
  /* Light theme (default) */
  --bg:           #f7f8fc;
  --bg-2:         #eef0f7;
  --card:         #ffffff;
  --card-hover:   #f0f4ff;
  --border:       #e2e8f0;
  --border-focus: #93c5fd;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-text:  #1e40af;
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --gold:         #d97706;
  --gold-bg:      #fffbeb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
  --radius:       14px;
  --nav-bg:       rgba(255,255,255,.92);
}

[data-theme="dark"] {
  --bg:           #080c14;
  --bg-2:         #0d1220;
  --card:         #111827;
  --card-hover:   #1a2235;
  --border:       rgba(255,255,255,.08);
  --border-focus: #3b82f6;
  --text:         #f0f4ff;
  --text-muted:   #8899bb;
  --text-light:   #4b5563;
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(37,99,235,.15);
  --accent-text:  #93c5fd;
  --green:        #4ade80;
  --green-bg:     rgba(74,222,128,.1);
  --red:          #f87171;
  --red-bg:       rgba(248,113,113,.1);
  --gold:         #fbbf24;
  --gold-bg:      rgba(251,191,36,.1);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow:       0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.5);
  --nav-bg:       rgba(8,12,20,.92);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; min-height: 100vh;
  transition: background .25s, color .25s;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── ANNOUNCEMENT BAR ────────────────────────────────────── */
.announcement-bar {
  background: var(--accent); color: #fff;
  text-align: center; padding: .5rem 1rem;
  font-size: .82rem; font-weight: 500;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 68px;
  display: flex; align-items: center;
  transition: background .25s, border-color .25s;
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; max-width: 1400px; margin: 0 auto;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  white-space: nowrap; letter-spacing: -.01em;
}
.logo-icon { font-size: 1.3rem; }
.logo-img { height: 36px; width: auto; object-fit: contain; }

.nav-search { flex: 1; max-width: 440px; margin: 0 1.5rem; }
.nav-search form { display: flex; }
.nav-search input {
  flex: 1; padding: .6rem 1rem;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-right: none; border-radius: 10px 0 0 10px;
  color: var(--text); font-size: .9rem; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.nav-search input:focus { outline: none; border-color: var(--accent); background: var(--card); }
.nav-search button {
  padding: .6rem 1rem; background: var(--accent);
  border: none; border-radius: 0 10px 10px 0; cursor: pointer; font-size: .95rem;
}
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: .2s; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--accent-light); border-color: var(--accent); }
[data-theme="dark"] .theme-icon-dark,
:root .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-light,
:root .theme-icon-dark { display: inline; }

/* Cart hover */
.cart-hover-wrap { position: relative; }
.btn-cart {
  display: flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 10px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .9rem;
  font-weight: 500; transition: .2s; cursor: pointer; white-space: nowrap;
}
.btn-cart:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.cart-badge {
  background: var(--accent); color: #fff;
  border-radius: 99px; padding: .1rem .45rem;
  font-size: .72rem; font-weight: 700; min-width: 19px; text-align: center;
  transition: transform .2s;
}
.cart-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; background: var(--card);
  border: 1.5px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s, transform .2s;
}
.cart-hover-wrap:hover .cart-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0) scale(1);
}
.cart-drop-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.cart-drop-header strong { font-size: .95rem; font-weight: 700; }
.cart-drop-count { font-size: .8rem; color: var(--text-muted); }
.cart-drop-empty { padding: 2rem; text-align: center; }
.cart-drop-empty span { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.cart-drop-empty p { color: var(--text-muted); font-size: .9rem; margin-bottom: .75rem; }
.cart-drop-empty a { color: var(--accent); font-size: .9rem; text-decoration: none; font-weight: 500; }
.cart-drop-items { padding: .75rem; max-height: 240px; overflow-y: auto; }
.cart-drop-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem; border-radius: 8px; margin-bottom: .35rem;
  transition: background .15s;
}
.cart-drop-item:hover { background: var(--bg-2); }
.cart-drop-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.cart-drop-item-info { flex: 1; min-width: 0; }
.cart-drop-name { display: block; font-size: .82rem; font-weight: 500; line-height: 1.3; }
.cart-drop-price { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.cart-drop-sub { font-size: .82rem; font-weight: 700; flex-shrink: 0; }
.cart-drop-more { text-align: center; font-size: .78rem; color: var(--text-muted); padding: .3rem; }
.cart-drop-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); }
.cart-drop-total { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .9rem; }
.cart-drop-total strong { font-size: 1rem; }
.cart-drop-btns { display: flex; gap: .5rem; }
.btn-cart-view {
  flex: 1; padding: .55rem; border: 1.5px solid var(--border);
  border-radius: 8px; text-align: center; text-decoration: none;
  color: var(--text); font-size: .85rem; font-weight: 500; transition: .15s;
}
.btn-cart-view:hover { border-color: var(--accent); color: var(--accent); }
.btn-cart-checkout {
  flex: 1; padding: .55rem; background: var(--accent);
  border-radius: 8px; text-align: center; text-decoration: none;
  color: #fff; font-size: .85rem; font-weight: 600; transition: .15s;
}
.btn-cart-checkout:hover { background: var(--accent-hover); }

/* Account hover */
.account-hover-wrap { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .75rem; border-radius: 10px;
  cursor: pointer; border: 1.5px solid var(--border);
  background: var(--bg-2); transition: .2s; user-select: none;
}
.user-trigger:hover { background: var(--accent-light); border-color: var(--accent); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: .88rem; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-trigger svg { color: var(--text-muted); transition: transform .2s; }
.account-hover-wrap:hover .user-trigger svg { transform: rotate(180deg); }

.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 240px; background: var(--card);
  border: 1.5px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); z-index: 300; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s, transform .2s;
}
.account-hover-wrap:hover .account-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0) scale(1);
}
.acct-drop-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.acct-drop-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.acct-drop-header strong { display: block; font-size: .88rem; font-weight: 700; }
.acct-drop-header span { font-size: .75rem; color: var(--text-muted); }
.acct-drop-links { padding: .5rem; }
.acct-drop-links a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .85rem; border-radius: 8px;
  color: var(--text); text-decoration: none;
  font-size: .88rem; font-weight: 500; transition: .15s;
}
.acct-drop-links a:hover { background: var(--bg-2); color: var(--accent); }
.acct-admin-link { color: var(--gold) !important; }
.acct-admin-link:hover { background: var(--gold-bg) !important; color: var(--gold) !important; }
.acct-logout { color: var(--red) !important; }
.acct-logout:hover { background: var(--red-bg) !important; color: var(--red) !important; }

.btn-login {
  padding: .5rem 1.1rem; border-radius: 10px;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: .88rem; font-weight: 600; transition: .2s;
}
.btn-login:hover { background: var(--accent-hover); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; padding: .3rem; }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100vh;
  background: var(--card); border-right: 1px solid var(--border);
  z-index: 1000; padding: 1.5rem 1rem;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: .25rem;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: .5rem; }
.mobile-nav-header strong { font-family: 'Outfit',sans-serif; font-weight: 800; }
.mobile-nav-header button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }
.mobile-nav a { padding: .7rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; transition: .15s; }
.mobile-nav a:hover { background: var(--bg-2); color: var(--accent); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 999; }
.mobile-overlay.show, .mobile-nav.open ~ .mobile-overlay { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: .75rem 1.5rem;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  transition: .2s; font-family: inherit;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .75rem 1.5rem; font-size: .95rem; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  transition: .2s; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm {
  padding: .35rem .85rem; border-radius: 8px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  color: var(--text); font-size: .82rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: .15s; font-family: inherit;
}
.btn-sm:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.btn-telegram { display: inline-flex; align-items: center; gap: .5rem; background: #229ED9; color: #fff; padding: .7rem 1.25rem; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; margin-top: 1rem; transition: .2s; }
.btn-telegram:hover { background: #1a8ab9; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #f5f3ff 100%);
  padding: 4rem 2rem;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #080c14 50%, #0f0a1e 100%);
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.12), transparent);
  top: -200px; right: -100px; pointer-events: none;
}
.hero-inner { display: flex; align-items: center; max-width: 1400px; margin: 0 auto; gap: 3rem; }
.hero-content { flex: 1; z-index: 1; }
.hero-eyebrow {
  display: inline-block; background: var(--accent-light);
  border: 1.5px solid var(--border-focus); color: var(--accent-text);
  padding: .35rem 1rem; border-radius: 99px; font-size: .82rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem; letter-spacing: -.02em;
}
.gradient-text { background: linear-gradient(135deg, var(--accent), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cards { display: flex; flex-direction: column; gap: .85rem; z-index: 1; }
.hero-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: .85rem 1.25rem;
  cursor: pointer; transition: .2s; width: 270px;
  box-shadow: var(--shadow-sm);
}
.hero-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.hero-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.hero-card-info { display: flex; flex-direction: column; }
.hero-card-info span { font-size: .82rem; color: var(--text-muted); }
.hero-card-info strong { font-size: .95rem; font-weight: 700; }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.main-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; max-width: 1400px; margin: 2rem auto; padding: 0 1.5rem; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar h3 {
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem;
  padding: 0 .5rem;
}
.cat-list { list-style: none; margin-bottom: 2rem; }
.cat-list li { margin-bottom: .15rem; }
.cat-list a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: .15s;
}
.cat-list a:hover { background: var(--bg-2); color: var(--text); }
.cat-list a.active { background: var(--accent-light); color: var(--accent-text); font-weight: 600; }
.sidebar-contact { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.sidebar-contact p { color: var(--text-muted); font-size: .85rem; margin-top: .4rem; }

/* ── PRODUCTS ────────────────────────────────────────────── */
.products-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; color: var(--text-muted); font-size: .88rem; }
.sort-wrap select { padding: .45rem .85rem; border-radius: 8px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: .85rem; font-family: inherit; cursor: pointer; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1.25rem; }
.page-title { font-family: 'Outfit',sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.02em; }

/* Product Card */
.product-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: .25s;
  position: relative; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.badge-sale { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--red); color: #fff; padding: .2rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.badge-hot  { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--gold); color: #fff; padding: .2rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.badge-used { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: #7c3aed; color: #fff; padding: .2rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.product-img-wrap { aspect-ratio: 1; overflow: hidden; background: var(--bg-2); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-info { padding: 1rem; }
.product-cat  { font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; font-weight: 600; }
.product-name { font-family: 'Outfit',sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .35rem; line-height: 1.3; }
.product-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; line-height: 1.5; }
.product-price { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.price-main { font-size: 1.1rem; font-weight: 800; font-family: 'Outfit',sans-serif; }
.price-old  { font-size: .82rem; color: var(--text-light); text-decoration: line-through; }
.product-stock { font-size: .78rem; margin-bottom: .75rem; }
.in-stock  { color: var(--green); font-weight: 600; }
.out-stock { color: var(--red); }
.btn-add-cart {
  width: 100%; padding: .65rem; border: none;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: .2s; font-family: inherit;
}
.btn-add-cart:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-add-cart:disabled { background: var(--bg-2); color: var(--text-light); cursor: not-allowed; }

/* ── PRODUCT DETAIL PAGE ─────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.product-gallery { position: sticky; top: 80px; height: fit-content; }
.gallery-main {
  aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); border: 1.5px solid var(--border);
  margin-bottom: 1rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: .2s; background: var(--bg-2);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { min-width: 0; }
.product-detail-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.prod-badge {
  padding: .25rem .75rem; border-radius: 6px; font-size: .78rem; font-weight: 600;
  background: var(--bg-2); color: var(--text-muted); border: 1px solid var(--border);
}
.prod-badge.used { background: rgba(124,58,237,.1); color: #7c3aed; border-color: rgba(124,58,237,.3); }
.prod-badge.new  { background: var(--green-bg); color: var(--green); border-color: rgba(22,163,74,.3); }
.product-detail-name { font-family: 'Outfit',sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; letter-spacing: -.02em; }
.product-detail-price { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.product-detail-price .price-main { font-size: 2rem; font-family: 'Outfit',sans-serif; font-weight: 800; color: var(--accent); }
.product-detail-price .price-old { font-size: 1.1rem; }

/* Specs grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-bottom: 1.75rem;
}
.spec-item {
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: .85rem;
}
.spec-item .spec-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.spec-item .spec-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.spec-item .spec-value { font-size: .88rem; font-weight: 600; margin-top: .15rem; line-height: 1.3; }

/* Variant selectors */
.variant-section { margin-bottom: 1.5rem; }
.variant-section h4 { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.storage-options { display: flex; gap: .6rem; flex-wrap: wrap; }
.storage-opt {
  padding: .55rem 1.1rem; border-radius: 9px; border: 2px solid var(--border);
  background: var(--card); color: var(--text); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: .2s;
}
.storage-opt:hover, .storage-opt.selected {
  border-color: var(--accent); background: var(--accent-light); color: var(--accent-text);
}
.color-options { display: flex; gap: .75rem; flex-wrap: wrap; }
.color-opt {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  cursor: pointer; transition: .2s;
}
.color-swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid transparent; box-shadow: 0 0 0 2px var(--border);
  transition: .2s;
}
.color-opt.selected .color-swatch { box-shadow: 0 0 0 3px var(--accent); }
.color-opt span { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

.product-actions { display: flex; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.qty-wrap { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.qty-wrap button { width: 40px; height: 44px; border: none; background: none; color: var(--text); font-size: 1.2rem; cursor: pointer; transition: .15s; }
.qty-wrap button:hover { background: var(--border); }
.qty-wrap span { width: 40px; text-align: center; font-weight: 700; font-size: .95rem; }
.btn-add-cart-lg {
  flex: 1; padding: .85rem; background: var(--accent); color: #fff;
  border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: .2s;
}
.btn-add-cart-lg:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.3); }

/* Battery health bar */
.battery-bar-wrap { margin-bottom: 1.5rem; }
.battery-bar-wrap h4 { font-size: .88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .5rem; }
.battery-bar-bg { background: var(--bg-2); border-radius: 99px; height: 10px; overflow: hidden; border: 1px solid var(--border); }
.battery-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4ade80, #22c55e); transition: width .6s ease; }

/* Description */
.product-description { margin-top: 2rem; padding-top: 2rem; border-top: 1.5px solid var(--border); max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.product-description h2 { font-family: 'Outfit',sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.product-description p { color: var(--text-muted); line-height: 1.8; }

/* Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 1.5rem auto 0; padding: 0 1.5rem; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ── CART PAGE ───────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.cart-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.cart-item img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg-2); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: .95rem; font-weight: 600; }
.cart-item-price { color: var(--text-muted); font-size: .85rem; }
.cart-item-sub { font-weight: 800; white-space: nowrap; font-family: 'Outfit',sans-serif; }
.qty-control { display: flex; align-items: center; gap: .4rem; }
.qty-control button { width: 30px; height: 30px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--bg-2); color: var(--text); font-size: 1rem; cursor: pointer; transition: .15s; }
.qty-control button:hover { background: var(--accent-light); border-color: var(--accent); }
.qty-control span { min-width: 24px; text-align: center; font-weight: 700; }
.btn-remove { background: none; border: none; color: var(--text-light); font-size: 1rem; cursor: pointer; padding: .3rem; transition: .15s; border-radius: 6px; }
.btn-remove:hover { color: var(--red); background: var(--red-bg); }
.cart-summary { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; position: sticky; top: 80px; box-shadow: var(--shadow-sm); }
.cart-summary h3 { font-family: 'Outfit',sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .92rem; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; border-top: 1.5px solid var(--border); padding-top: .75rem; margin-top: .5rem; font-family: 'Outfit',sans-serif; }
.green { color: var(--green); font-weight: 600; }

/* ── ACCOUNT PAGE ────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.account-sidebar { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.5rem; height: fit-content; box-shadow: var(--shadow-sm); }
.acct-user-card { text-align: center; padding-bottom: 1.25rem; border-bottom: 1.5px solid var(--border); margin-bottom: 1rem; }
.acct-user-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; border: 3px solid var(--accent); }
.acct-user-card h3 { font-family: 'Outfit',sans-serif; font-size: 1rem; font-weight: 700; }
.acct-user-card span { font-size: .82rem; color: var(--text-muted); }
.acct-nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: 9px; color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: .15s; margin-bottom: .2rem; }
.acct-nav a:hover { background: var(--bg-2); color: var(--text); }
.acct-nav a.active { background: var(--accent-light); color: var(--accent-text); font-weight: 600; }
.account-content { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-sm); }
.account-content h2 { font-family: 'Outfit',sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--border); }

/* ── FORM STYLES ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-2);
  color: var(--text); font-size: .92rem; font-family: inherit;
  transition: border-color .2s, background .2s; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--card); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input[type=checkbox] { width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional-tag { font-size: .72rem; color: var(--text-light); background: var(--bg-2); padding: .1rem .5rem; border-radius: 4px; margin-left: .4rem; }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg); }
.auth-box { background: var(--card); border: 1.5px solid var(--border); border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo a { color: var(--text); text-decoration: none; font-family: 'Outfit',sans-serif; font-size: 1.4rem; font-weight: 800; }
.auth-title { font-family: 'Outfit',sans-serif; font-size: 1.7rem; font-weight: 800; text-align: center; margin-bottom: .4rem; }
.auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: .92rem; }
.oauth-btn { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .85rem 1.2rem; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg-2); color: var(--text); font-size: .95rem; font-weight: 500; cursor: pointer; transition: .2s; margin-bottom: .7rem; text-decoration: none; }
.oauth-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.oauth-btn img { width: 20px; height: 20px; border-radius: 4px; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--text-muted); font-size: .82rem; }
.divider::before,.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-submit { width: 100%; padding: .9rem; border: none; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: .5rem; transition: .2s; font-family: inherit; }
.btn-submit:hover { background: var(--accent-hover); }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: .88rem; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.error-msg { background: var(--red-bg); border: 1.5px solid rgba(220,38,38,.3); color: var(--red); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .88rem; }
.success-msg { background: var(--green-bg); border: 1.5px solid rgba(22,163,74,.3); color: var(--green); padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .88rem; }

/* ── ORDER STATUS PILLS ──────────────────────────────────── */
.status-pill { display: inline-block; padding: .25rem .75rem; border-radius: 6px; font-size: .78rem; font-weight: 700; }
.status-pill.pending   { background: var(--gold-bg); color: var(--gold); }
.status-pill.confirmed { background: var(--accent-light); color: var(--accent-text); }
.status-pill.delivering { background: rgba(124,58,237,.1); color: #7c3aed; }
.status-pill.delivered { background: var(--green-bg); color: var(--green); }
.status-pill.cancelled { background: var(--red-bg); color: var(--red); }

/* ── TOAST ───────────────────────────────────────────────── */
.cart-toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; background: var(--green); color: #fff; font-weight: 600; padding: .85rem 1.5rem; border-radius: 12px; transform: translateY(100px); opacity: 0; transition: .3s cubic-bezier(.34,1.56,.64,1); pointer-events: none; box-shadow: var(--shadow-lg); }
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon  { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Outfit',sans-serif; font-size: 1.3rem; margin-bottom: .5rem; color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1.5px solid var(--border); margin-top: 5rem; padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner { display: flex; gap: 3rem; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; margin-bottom: 2.5rem; }
.footer-inner > div { display: flex; flex-direction: column; gap: .6rem; }
.footer-inner strong { font-family: 'Outfit',sans-serif; font-weight: 700; margin-bottom: .25rem; }
.footer-inner a, .footer-inner p { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.footer-inner a:hover { color: var(--accent); }
.footer-copy { text-align: center; color: var(--text-light); font-size: .8rem; max-width: 1400px; margin: 0 auto; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-cards { flex-direction: row; flex-wrap: wrap; }
  .hero-card { width: 100%; }
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .nav-search { max-width: 250px; }
}
@media (max-width: 600px) {
  .nav-search { display: none; }
  .nav-toggle { display: block; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .hero { padding: 2rem 1rem; }
  .hero-cards { display: none; }
  .main-layout, .account-layout { padding: 0 1rem; }
  .specs-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
}
