/* ==============================================
   LEVEL TWO LEVEL — Master Stylesheet
   Dark Premium Theme: Black + Purple + Gold
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --bg-0: #060608;
  --bg-1: #0e0e12;
  --bg-2: #16161c;
  --bg-3: #1e1e26;
  --bg-4: #26262f;
  --bg-card: #141418;
  --bg-card-hover: #1c1c23;

  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);

  --text-1: #f4f4f6;
  --text-2: #a8a8b8;
  --text-3: #6a6a7a;

  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-dark: #6d28d9;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --purple-glow: rgba(139, 92, 246, 0.35);

  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-dark: #d97706;
  --gold-dim: rgba(245, 158, 11, 0.12);
  --gold-glow: rgba(245, 158, 11, 0.35);

  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.7);
  --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-gold: 0 0 30px rgba(245, 158, 11, 0.3);

  --header-h: 70px;
  --nav-h: 48px;
  --transition: 0.22s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input { font-family: inherit; outline: none; }
ul { list-style: none; }
select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-purple);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-bright), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}
.logo-sub { font-size: 9px; color: var(--text-3); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-1);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 400;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-btn {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { opacity: 0.85; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.header-btn:hover { border-color: var(--purple); background: var(--purple-dim); }
.header-btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
  color: #fff;
}
.header-btn.primary:hover { opacity: 0.9; box-shadow: var(--shadow-purple); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── NAV BAR ── */
.navbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  overflow: hidden;
}
.navbar-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-1);
  background: var(--bg-3);
}
.nav-link.deals {
  color: var(--gold);
  font-weight: 600;
}
.nav-link.deals:hover { background: var(--gold-dim); }
.nav-sep { margin: 0 4px; color: var(--border-strong); }

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
  background: linear-gradient(90deg, var(--purple-dark), var(--purple), var(--gold-dark), var(--gold), var(--gold-dark), var(--purple), var(--purple-dark));
  background-size: 400% 100%;
  animation: gradientShift 8s linear infinite;
  text-align: center;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-1);
}
.hero-slider { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.hero-slide {
  min-width: 100%;
  padding: 60px 0;
  position: relative;
}
.hero-slide-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--purple-bright);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--purple-bright), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 460px;
  line-height: 1.7;
}
.hero-price-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-1);
}
.hero-price-original {
  font-size: 18px;
  color: var(--text-3);
  text-decoration: line-through;
}
.hero-discount {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--purple); background: var(--purple-dim); }

/* Hero phone visual */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  pointer-events: none;
}
.hero-phone-img {
  width: 220px;
  height: 420px;
  background: var(--phone-gradient, linear-gradient(135deg, #1a1a2e, #2d2d4e));
  border-radius: 36px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.hero-phone-notch {
  width: 80px;
  height: 10px;
  background: rgba(0,0,0,0.8);
  border-radius: 0 0 12px 12px;
  margin-top: 14px;
  z-index: 2;
}
.hero-phone-screen {
  flex: 1;
  width: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-phone-screen-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.hero-phone-screen-bar.short { width: 60%; }
.hero-phone-screen-bar.medium { width: 80%; background: rgba(255,255,255,0.1); }
.hero-phone-screen-img {
  flex: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(245,158,11,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.hero-phone-camera {
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.9);
  border-radius: 16px;
  margin: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  align-self: flex-end;
}
.cam-lens {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #333, #111);
  border: 1.5px solid #555;
}
.cam-lens.small { width: 10px; height: 10px; }

/* Hero navigation dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  width: 24px;
  background: var(--purple);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  font-size: 18px;
  color: var(--text-1);
}
.hero-arrow:hover { background: var(--purple); border-color: var(--purple); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ── SECTION COMMON ── */
.section { padding: 64px 0; }
.section-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .title-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.section-link {
  color: var(--purple-bright);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  text-decoration: none;
}
.section-link:hover { gap: 8px; }

/* ── BRANDS ROW ── */
.brands-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.brands-row::-webkit-scrollbar { display: none; }
.brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 90px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-chip:hover, .brand-chip.active {
  border-color: var(--purple);
  background: var(--purple-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}
.brand-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.brand-chip-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* ── FLASH SALE ── */
.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.countdown-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.countdown-time {
  display: flex;
  align-items: center;
  gap: 4px;
}
.time-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 20px;
  font-weight: 800;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.time-sep { font-size: 20px; font-weight: 800; color: var(--gold); }
.flash-deals-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  overflow-x: auto;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}
.product-card-img-wrap {
  position: relative;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 200px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

/* Phone illustration CSS */
.phone-mock {
  width: 100px;
  height: 180px;
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.product-card:hover .phone-mock { transform: scale(1.05) rotate(2deg); }
.phone-mock-notch {
  width: 32px;
  height: 6px;
  background: rgba(0,0,0,0.9);
  border-radius: 0 0 6px 6px;
  margin-top: 8px;
  z-index: 2;
}
.phone-mock-screen {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  padding: 8px;
}
.phone-mock-home {
  width: 24px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-bottom: 8px;
}
.phone-mock-cam {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #333, #111);
  border: 1px solid #444;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}
.product-badge.new { background: linear-gradient(135deg, var(--green), #059669); }
.product-badge.deal { background: linear-gradient(135deg, var(--red), #c0392b); }
.product-badge.gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #000; }

/* Wishlist btn */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 3;
}
.wishlist-btn:hover, .wishlist-btn.active {
  color: var(--red);
  border-color: var(--red);
  background: rgba(239,68,68,0.1);
}

/* Card body */
.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple-bright);
}
.product-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.spec-tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.rating-num { font-size: 13px; font-weight: 700; color: var(--text-1); }
.rating-count { font-size: 11px; color: var(--text-3); }

/* Price */
.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
}
.price-original {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}
.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Card footer */
.product-card-footer {
  padding: 0 16px 16px;
}
.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-purple);
  opacity: 0.92;
}
.add-to-cart-btn.added {
  background: linear-gradient(135deg, var(--green), #059669);
}
.order-now-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.order-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  opacity: 0.95;
}
.out-of-stock-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.products-grid-5 { grid-template-columns: repeat(5, 1fr); }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── SHOP PAGE LAYOUT ── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 24px);
}
.filter-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-clear {
  font-size: 12px;
  color: var(--purple-bright);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
}
.filter-section { margin-bottom: 24px; }
.filter-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.filter-option:hover { color: var(--text-1); }
.filter-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  background: var(--bg-2);
}
.filter-checkbox.checked {
  background: var(--purple);
  border-color: var(--purple);
}
.filter-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.price-slider-wrap { padding: 4px 0; }
.price-range-display {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
}
.price-range-display span { color: var(--purple-bright); }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) 50%, var(--bg-3) 50%);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  border: 3px solid var(--bg-0);
  box-shadow: 0 0 0 2px var(--purple);
}

/* Shop top bar */
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-result-count { font-size: 14px; color: var(--text-2); font-weight: 500; }
.shop-result-count strong { color: var(--text-1); font-weight: 700; }
.sort-select {
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--purple); }

/* ── PRODUCT DETAIL ── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 24px);
}
.gallery-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.gallery-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
}
.gallery-phone-big {
  width: 260px;
  height: 480px;
  border-radius: 36px;
  border: 12px solid #1a1a2e;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: #fff;
  transition: all 0.3s ease;
}
.gallery-phone-big-notch {
  width: 50px;
  height: 8px;
  background: rgba(0,0,0,0.9);
  border-radius: 0 0 8px 8px;
  margin-top: 12px;
}
.gallery-phone-big-screen {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  padding: 12px;
}
.gallery-phone-big-home {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-bottom: 12px;
}
.detail-brand {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-bright);
  margin-bottom: 10px;
}
.detail-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.detail-price { font-size: 40px; font-weight: 900; }
.detail-original { font-size: 20px; color: var(--text-3); text-decoration: line-through; }
.detail-discount {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.detail-colors { margin-bottom: 24px; }
.detail-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.color-opt:hover, .color-opt.selected {
  border-color: var(--purple);
  color: var(--text-1);
  background: var(--purple-dim);
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.detail-actions .btn-primary, .detail-actions .btn-gold { flex: 1; justify-content: center; padding: 16px; font-size: 16px; }
.highlights-list { margin-bottom: 24px; }
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.highlight-item:last-child { border-bottom: none; }
.highlight-item::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(16,185,129,0.15);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) td { background: var(--bg-2); }
.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.specs-table td:first-child {
  color: var(--text-3);
  font-weight: 600;
  width: 40%;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.specs-table td:last-child { color: var(--text-1); font-weight: 500; }

/* ── CART PAGE ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.cart-items-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cart-box-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-box-title { font-size: 18px; font-weight: 800; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}
.cart-item:hover { background: var(--bg-card-hover); }
.cart-item:last-child { border-bottom: none; }
.cart-item-phone {
  width: 70px;
  height: 110px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cart-item-info { flex: 1; }
.cart-item-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--purple-bright); margin-bottom: 4px; }
.cart-item-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cart-item-color { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-3);
  border: none;
  color: var(--text-1);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.qty-btn:hover { background: var(--purple); }
.qty-val {
  width: 44px;
  height: 36px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cart-item-price { font-size: 20px; font-weight: 800; }
.cart-item-original { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 18px;
  transition: color var(--transition);
  padding: 4px;
}
.cart-remove-btn:hover { color: var(--red); }

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 24px);
}
.order-summary-title { font-size: 16px; font-weight: 800; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--border-strong);
}
.summary-row.total .summary-val { color: var(--gold); }
.summary-label { color: var(--text-2); font-weight: 500; }
.summary-val { color: var(--text-1); font-weight: 700; }
.summary-val.green { color: var(--green); }
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 20px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.secure-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── EMPTY CART ── */
.empty-cart {
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-cart-icon { font-size: 80px; opacity: 0.3; }
.empty-cart h2 { font-size: 24px; font-weight: 800; color: var(--text-2); }
.empty-cart p { color: var(--text-3); font-size: 15px; }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(139,92,246,0.08) 50%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}
.newsletter h2 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.newsletter p { color: var(--text-2); margin-bottom: 28px; font-size: 16px; }
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-card);
  border: none;
  color: var(--text-1);
  font-size: 14px;
}
.newsletter-input::placeholder { color: var(--text-3); }
.newsletter-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.newsletter-btn:hover { opacity: 0.9; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-desc {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--purple); border-color: var(--purple); }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--purple-bright); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-link { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.footer-bottom-link:hover { color: var(--text-1); }

/* ── TOAST NOTIFICATION ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  pointer-events: all;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.toast-msg { font-size: 12px; color: var(--text-2); }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--purple); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-2);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.modal-relative { position: relative; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--purple-bright); }
.breadcrumb-sep { color: var(--border-strong); }
.breadcrumb span { color: var(--text-2); font-weight: 500; }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-purple);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); }

/* ── PAGE HEADER ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-hero-title { font-size: 32px; font-weight: 900; margin-bottom: 6px; }
.page-hero-sub { color: var(--text-2); font-size: 15px; }

/* ── TAGS / CHIPS ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover, .chip.active {
  background: var(--purple-dim);
  border-color: var(--purple);
  color: var(--purple-bright);
}

/* ── GRID UTILITIES ── */
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── WHATSAPP BUTTON ── */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-full); border: none; cursor: pointer;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  transition: all var(--transition); box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  text-decoration: none;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  filter: brightness(1.1);
}
.btn-whatsapp:active { transform: translateY(0); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — All Screen Sizes
   Desktop → Laptop → Tablet → Mobile → Small Mobile
   ══════════════════════════════════════════════════ */

/* ─── LARGE DESKTOP (1400px+) ─── */
@media (min-width: 1400px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
  .flash-deals-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ─── STANDARD DESKTOP (1200px) ─── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-deals-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
  .product-detail-grid { grid-template-columns: 380px 1fr; }
}

/* ─── LAPTOP / LARGE TABLET (1024px) ─── */
@media (max-width: 1024px) {
  .navbar { height: auto; min-height: var(--nav-h); }
  .navbar-inner {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .navbar-inner::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; }
  .hero-slide-inner { padding: 0 32px; gap: 40px; }
  .hero-title { font-size: clamp(28px,3.5vw,48px); }
  .hero-phone-img { width: 180px; height: 340px; }
  .shop-layout { grid-template-columns: 220px 1fr; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .section { padding: 48px 0; }
}

/* ─── TABLET (900px) ─── */
@media (max-width: 900px) {
  /* Header */
  .header-inner { gap: 12px; }
  .header-btn:not(.cart-btn):not(.primary) { display: none; }

  /* Hero: hide phone, stack content */
  .hero-slide { padding: 48px 0; }
  .hero-slide-inner { grid-template-columns: 1fr; text-align: center; gap: 0; padding: 0 32px; }
  .hero-phone-wrap { display: none; }
  .hero-cta { justify-content: center; flex-wrap: wrap; }
  .hero-price-box { justify-content: center; }
  .hero-eyebrow { margin: 0 auto 16px; }
  .hero-desc { max-width: 100%; }

  /* Shop */
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
  }
  .filter-title { grid-column: 1 / -1; }

  /* Products */
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .flash-deals-grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; gap: 20px; }
  .order-summary { position: static; }

  /* Product detail */
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: relative !important; top: 0 !important; }
  .gallery-main { max-width: 380px; margin: 0 auto; }

  /* Section */
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
}

/* ─── MOBILE (768px) ─── */
@media (max-width: 768px) {
  /* Announce bar */
  .announce-bar { font-size: 11px; padding: 7px 8px; white-space: nowrap; overflow: hidden; }

  /* Header */
  --header-h: 60px;
  .header { height: 60px; }
  .header-inner { padding: 0 14px; gap: 10px; }
  .logo-text { display: none; }
  .logo-icon { width: 36px; height: 36px; font-size: 13px; }
  .search-bar { max-width: none; }
  .search-bar input { padding: 9px 12px; font-size: 13px; }
  .search-btn { width: 40px; height: 40px; font-size: 14px; }
  .header-btn { padding: 7px 12px; font-size: 13px; }

  /* Navbar: horizontal scroll */
  .navbar { height: auto; min-height: 44px; }
  .navbar-inner {
    padding: 8px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    flex-wrap: nowrap;
  }
  .navbar-inner::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 12px; padding: 5px 10px; white-space: nowrap; }
  .nav-sep { display: none; }

  /* Hero */
  .hero-slide { padding: 36px 0 48px; }
  .hero-slide-inner { padding: 0 20px; }
  .hero-title { font-size: clamp(24px, 7vw, 36px); letter-spacing: -0.5px; }
  .hero-desc { font-size: 14px; margin-bottom: 20px; }
  .hero-price { font-size: 26px; }
  .hero-price-original { font-size: 14px; }
  .hero-price-box { gap: 8px; margin-bottom: 20px; }
  .hero-cta { gap: 10px; }
  .btn-primary, .btn-gold, .btn-outline { padding: 12px 20px; font-size: 14px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 16px; }

  /* Brands */
  .brand-chip { padding: 12px 14px; min-width: 70px; }
  .brand-chip-icon { width: 32px; height: 32px; font-size: 16px; }
  .brand-chip-name { font-size: 10px; }

  /* Flash sale */
  .flash-sale-header { gap: 12px; }
  .time-box { min-width: 38px; height: 38px; font-size: 16px; }
  .flash-deals-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-img-wrap { padding: 16px; min-height: 150px; }
  .phone-mock { width: 76px; height: 136px; }
  .phone-mock-screen { font-size: 24px; }
  .product-card-body { padding: 12px; }
  .product-name { font-size: 13px; }

  /* Shop filter: stacked */
  .filter-sidebar { grid-template-columns: 1fr; }
  .shop-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sort-select { width: 100%; }

  /* Product detail */
  .detail-actions { flex-direction: column; gap: 10px; }
  .detail-actions .btn-primary,
  .detail-actions .btn-gold { width: 100%; justify-content: center; }
  .specs-table td { font-size: 13px; padding: 10px 12px; }
  .color-opt { padding: 7px 12px; font-size: 12px; }
  .detail-price { font-size: 28px; }

  /* Page hero */
  .page-hero { padding: 28px 0; }
  .page-hero-title { font-size: 24px; }

  /* Cart */
  .cart-item { flex-wrap: wrap; }
  .cart-item-phone { width: 52px; height: 80px; }
  .checkout-btn { padding: 14px; font-size: 15px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner { padding: 40px 16px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Section */
  .section { padding: 32px 0; }
  .section-header { margin-bottom: 20px; }
  .section-title { font-size: 20px; }
  .section-inner { padding: 0 14px; }

  /* Why choose us grid */
  .section-inner > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Newsletter */
  .newsletter { padding: 40px 16px; }
  .newsletter h2 { font-size: 22px; }
  .newsletter-form { flex-direction: column; gap: 10px; max-width: 100%; }
  .newsletter-input { border-radius: var(--radius-md) !important; }
  .newsletter-btn { border-radius: var(--radius-md) !important; padding: 14px; }
}

/* ─── SMALL MOBILE (480px) ─── */
@media (max-width: 480px) {
  /* Announce bar hidden on tiny screens */
  .announce-bar { display: none; }

  /* Logo: text hidden */
  .logo-text { display: none; }

  /* Header: tighter */
  .header-inner { padding: 0 10px; gap: 8px; }
  .search-bar input { font-size: 12.5px; padding: 8px 10px; }
  .header-actions .header-btn:not(.cart-btn) { display: none; }

  /* Hero: very compact */
  .hero-slide { padding: 28px 0 40px; }
  .hero-slide-inner { padding: 0 14px; }
  .hero-title { font-size: 24px; }
  .hero-eyebrow { font-size: 10px; padding: 4px 10px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-gold, .btn-outline { width: 100%; justify-content: center; }
  .hero-price { font-size: 22px; }

  /* Products: 1 column on very small screens */
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .flash-deals-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Product card */
  .product-card-img-wrap { min-height: 130px; }
  .phone-mock { width: 68px; height: 120px; }
  .product-card-body { padding: 10px; }
  .product-name { font-size: 12.5px; }
  .price-current { font-size: 16px; }

  /* Brands row */
  .brand-chip { padding: 10px 12px; min-width: 62px; }
  .brand-chip-name { font-size: 9px; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; }

  /* Section spacing */
  .section { padding: 24px 0; }
  .section-inner { padding: 0 12px; }
  .section-title { font-size: 18px; }

  /* Why choose us */
  .section-inner > div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero */
  .page-hero { padding: 20px 0; }
  .page-hero-title { font-size: 20px; }
  .page-hero-sub { font-size: 13px; }

  /* Cart */
  .cart-items-box { border-radius: var(--radius-md); }
  .cart-item { padding: 12px; }
  .order-summary { padding: 20px 14px; }

  /* Product detail */
  .gallery-phone-big { width: 180px; height: 330px; border-width: 8px; border-radius: 24px; }
  .detail-name { font-size: 22px; }
  .detail-price { font-size: 24px; }

  /* Shop */
  .filter-sidebar { padding: 14px; gap: 12px; }
  .result-count-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── EXTRA SMALL (360px) ─── */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
  .flash-deals-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 20px; }
  .section-title { font-size: 16px; }
  .btn-primary, .btn-gold { font-size: 13px; padding: 11px 16px; }
}
