/* ============================================================
   OSRS GAMER - Digital Store Stylesheet
   White theme + dark mode · Green & Gold brand palette
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #16a34a;
  --primary-dark: #128a3e;
  --primary-soft: #e8f7ee;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-soft: #fef3e2;

  --bg: #ffffff;
  --bg-soft: #f6faf7;
  --bg-alt: #0e1512;
  --card: #ffffff;
  --card-border: #e6ede8;
  --text: #101814;
  --text-soft: #55625a;
  --text-faint: #8a958d;
  --heading: #0c130f;

  --shadow-sm: 0 2px 10px rgba(14, 40, 25, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 40, 25, 0.1);
  --shadow-lg: 0 24px 60px rgba(14, 40, 25, 0.14);
  --shadow-glow: 0 12px 40px rgba(22, 163, 74, 0.35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --font-head: 'Sora', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;
  --font-body: 'Inter', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-soft: #0f2418;
  --gold: #fbbf24;
  --gold-dark: #f59e0b;
  --gold-soft: #2a2010;

  --bg: #0a0f0c;
  --bg-soft: #0e1612;
  --bg-alt: #050806;
  --card: #101813;
  --card-border: #1e2b23;
  --text: #e6efe9;
  --text-soft: #9fb0a4;
  --text-faint: #6b7a70;
  --heading: #f2f8f4;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 12px 40px rgba(34, 197, 94, 0.25);
}

/* ---------- Icon system (SVG sprite) ---------- */
.ic {
  width: 20px; height: 20px;           /* fixed size - never stretch to parent */
  display: inline-block;
  vertical-align: -0.15em;
  stroke: currentColor;                /* theme color, never solid black */
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  overflow: visible;
}
.ic-f { fill: currentColor; stroke: none; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-24 { width: 24px; height: 24px; }
.ic-28 { width: 28px; height: 28px; }
.ic-36 { width: 36px; height: 36px; }
.ic-48 { width: 48px; height: 48px; }
.ic-btn { margin-right: 7px; }

/* context sizes - CSS wins over the width attribute fallback */
.stat-icon .ic { width: 26px; height: 26px; }
.stat-tile-icon .ic { width: 24px; height: 24px; }
.product-emoji .ic { width: 44px; height: 44px; }
.pd-emoji .ic { width: 88px; height: 88px; }
.blog-emoji .ic { width: 30px; height: 30px; }
.cart-item-emoji .ic { width: 24px; height: 24px; }
.feature-icon .ic { width: 26px; height: 26px; }
.cat-icon .ic { width: 34px; height: 34px; }
.step-icon .ic { width: 28px; height: 28px; }
.channel-icon .ic { width: 22px; height: 22px; }
.pay-method-icon .ic { width: 26px; height: 26px; }
.tmsg-avatar .ic { width: 16px; height: 16px; }
.icon-btn .ic { width: 18px; height: 18px; }
.fc-float .ic, .float-chip .ic { width: 16px; height: 16px; }
.admin-tab .ic { margin-right: 6px; }
.nav-link .ic { margin-right: 6px; }
.cart-drawer-head .ic { width: 22px; height: 22px; }
.topbar-right .ic { }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; }

a, button { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 50px rgba(22, 163, 74, 0.45); }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-light:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }

.btn-ghost-light { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }

.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  z-index: 1000;
  border-radius: 0 3px 3px 0;
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--gold-dark));
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 9px 48px;
  position: relative;
  z-index: 90;
}
.announcement-inner { position: relative; display: flex; justify-content: center; align-items: center; }
.announcement-bar p { letter-spacing: 0.02em; }
.code-chip {
  background: rgba(255,255,255,0.22);
  border: 1px dashed rgba(255,255,255,0.6);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-head);
}
.announcement-close {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.8;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
}
.announcement-close:hover { opacity: 1; background: rgba(255,255,255,0.15); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.4s ease;
}
[data-theme="dark"] .navbar { background: rgba(10, 15, 12, 0.85); }
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Cart button in navbar */
.nav-cart-btn {
  position: relative;
  padding: 10px 15px;
  font-size: 1.05rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
  transition: all 0.3s ease;
}
.nav-cart-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-cart-btn .cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-head);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4);
}

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--card-border);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  position: relative;
}
.theme-toggle svg { width: 19px; height: 19px; position: absolute; transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.theme-toggle .icon-sun { color: var(--gold); }
.theme-toggle .icon-moon { color: var(--primary); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { width: 22px; height: 2.5px; background: var(--text); border-radius: 3px; transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 90px 0 120px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--card-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(0,0,0,0.9), transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: blobFloat 14s ease-in-out infinite alternate; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(22,163,74,0.28), transparent 70%); top: -120px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,158,11,0.22), transparent 70%); bottom: -100px; left: -120px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(22,163,74,0.18), transparent 70%); top: 40%; left: 45%; animation-delay: -9s; }
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.hero-badge strong { color: var(--heading); }
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--heading);
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
[data-theme="dark"] .text-outline { -webkit-text-stroke-color: var(--heading); }
.text-outline:hover { color: var(--primary); -webkit-text-stroke-color: transparent; }

.hero-sub { font-size: 1.08rem; color: var(--text-soft); max-width: 540px; margin-bottom: 34px; }
.hero-sub strong { color: var(--primary); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.h-stat { display: flex; flex-direction: column; }
.h-stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--heading); }
.h-stat-label { font-size: 0.8rem; color: var(--text-faint); }
.h-stat-divider { width: 1px; height: 38px; background: var(--card-border); }

/* Hero visual */
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }

.float-card {
  width: min(320px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.5s var(--ease);
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.float-card:hover { transform: translateY(-8px) scale(1.02); animation-play-state: paused; }

.float-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fc-logo { width: 30px; height: 30px; }
.fc-badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
}
.fc-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}
.fc-title { font-size: 1.02rem; margin-bottom: 12px; }
.fc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--text-soft);
}
.fc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--card-border); }
.fc-price { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.fc-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.float-card:hover .fc-cta { transform: scale(1.06); box-shadow: var(--shadow-glow); }

.fc-float {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: chipFloat 5s ease-in-out infinite;
}
.fc-float-1 { top: -18px; right: -30px; color: var(--gold-dark); animation-delay: -1.5s; }
.fc-float-2 { bottom: 40px; left: -36px; color: var(--primary); animation-delay: -3s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-head);
  z-index: 3;
  animation: chipFloat 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: var(--gold); }
.chip-g2g { top: 6%; left: -4%; animation-delay: -2s; }
.chip-rating { bottom: 4%; right: -2%; animation-delay: -4s; color: var(--text-soft); }
.chip-rating .stars { color: var(--gold); letter-spacing: 2px; }

/* Hero scroll mouse */
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse {
  width: 26px; height: 42px;
  border: 2px solid var(--text-faint);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0.7;
}
.mouse span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--primary);
  animation: mouseScroll 1.6s ease-in-out infinite;
}
@keyframes mouseScroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 44px 0 20px; }
.trust-label { text-align: center; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 22px; }
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.m-item {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.m-item:hover { opacity: 1; color: var(--primary); }
.m-dot { color: var(--gold); font-size: 0.7rem; }

/* ---------- Stats ---------- */
.stats-section { padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.stat-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--heading); display: block; }
.stat-title { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

/* Skip rendering of below-the-fold sections until scrolled near (big mobile win).
   The `auto` keyword remembers real sizes after first render → no scroll jumps.
   The plain length is the fallback for older browsers. */
.section,
.stat-card,
.product-card,
.blog-card,
.feature-card,
.review-card,
.category-card,
.step {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
  contain-intrinsic-size: auto 500px;
}
.section { contain-intrinsic-size: 700px; contain-intrinsic-size: auto 700px; }
.faq-item { content-visibility: auto; contain-intrinsic-size: 80px; contain-intrinsic-size: auto 80px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 58px; }
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { color: var(--text-soft); font-size: 1.02rem; }

.shop-section { background: var(--bg-soft); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.product-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 45%, var(--card-border)); }

.product-img {
  position: relative;
  height: 168px;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.14), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(22, 163, 74, 0.16), transparent 50%),
    var(--bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-emoji { font-size: 3.4rem; transition: transform 0.5s var(--ease); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12)); }
.product-card:hover .product-emoji { transform: scale(1.22) rotate(-8deg); }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}
.badge-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 16px rgba(109, 40, 217, 0.4); }

.product-actions { position: absolute; top: 12px; right: 12px; opacity: 0; transform: translateY(-6px); transition: all 0.35s var(--ease); }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
[data-theme="dark"] .icon-btn { background: var(--card); }
.icon-btn:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.icon-btn .ic { stroke: currentColor; }
.icon-btn.liked { background: var(--primary); color: #fff; }
.icon-btn.liked .ic { fill: currentColor; stroke: currentColor; }

.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.tag-gold { background: var(--gold-soft); color: var(--gold-dark); }
.tag-green { background: var(--primary-soft); color: var(--primary); }
.tag-blue { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }

.product-title { font-size: 1.08rem; margin-bottom: 6px; }
.product-desc { font-size: 0.86rem; color: var(--text-soft); margin-bottom: 12px; }
.product-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 16px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--card-border); }
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--heading); }
.product-price small { font-size: 0.72rem; font-weight: 500; color: var(--text-faint); font-family: var(--font-body); }

.section-cta { text-align: center; margin-top: 46px; }
.section-cta p { color: var(--text-soft); margin-bottom: 16px; font-size: 0.95rem; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22,163,74,0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-card:hover::after { opacity: 1; }
.cat-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; transition: transform 0.45s var(--ease); }
.category-card:hover .cat-icon { transform: scale(1.25) rotate(-6deg); }
.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 14px; }
.cat-link { font-size: 0.82rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }

/* ---------- How it works ---------- */
.how-section { background: var(--bg-alt); position: relative; overflow: hidden; }
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(22,163,74,0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(245,158,11,0.1), transparent 40%);
}
.how-section .container { position: relative; z-index: 1; }
.how-section .section-title { color: #fff; }
.how-section .section-sub { color: rgba(255,255,255,0.65); }
.how-section .section-tag { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.3); }

.steps { display: flex; align-items: stretch; justify-content: center; gap: 18px; }
.step {
  flex: 1;
  max-width: 250px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), background 0.35s ease, border-color 0.35s ease;
}
.step:hover { transform: translateY(-8px); background: rgba(255,255,255,0.07); border-color: rgba(34,197,94,0.5); }
.step-num {
  position: absolute;
  top: 14px; left: 18px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(245,158,11,0.15));
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 18px;
  transition: transform 0.45s var(--ease);
}
.step:hover .step-icon { transform: rotate(-8deg) scale(1.1); }
.step h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.step-connector {
  align-self: center;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  position: relative;
  flex-shrink: 0;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
}

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(150deg, rgba(22,163,74,0.07), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  border-radius: 15px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  margin-bottom: 18px;
  transition: transform 0.45s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Reviews ---------- */
.reviews-section { background: var(--bg-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
  position: relative;
}
.review-card::before {
  content: '“';
  position: absolute;
  top: 6px; right: 22px;
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 0.95rem; margin-bottom: 14px; }
.review-card blockquote { font-size: 0.95rem; color: var(--text-soft); font-style: italic; margin-bottom: 20px; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.review-who { display: flex; flex-direction: column; }
.review-who strong { font-family: var(--font-head); font-size: 0.92rem; color: var(--heading); }
.review-who small { font-size: 0.76rem; color: var(--text-faint); }

.reviews-cta {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.rating-summary { display: flex; align-items: center; gap: 18px; }
.rating-big { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--heading); }
.rating-summary .stars { color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 2px; }
.rating-summary p { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-contact-btn { margin-top: 22px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--text-soft); max-width: 560px; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 0 0 96px; }
.cta-inner {
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(22, 163, 74, 0.3), transparent 50%),
    linear-gradient(120deg, #0f1f16, #123524 55%, #1c3a12);
  border-radius: var(--radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 0.98rem; }
.code-chip-lg { font-size: 1.05rem; padding: 4px 14px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-section { background: var(--bg-soft); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.35s var(--ease);
}
.channel-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.channel-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.channel-card span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.channel-card strong { font-size: 0.88rem; font-family: var(--font-head); color: var(--heading); }
.channel-card small { font-size: 0.74rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-arrow { color: var(--primary); font-weight: 700; transition: transform 0.3s var(--ease); }
.channel-card:hover .channel-arrow { transform: translateX(4px); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--heading);
  margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
  background: var(--card);
}
.form-group input.invalid, .form-group textarea.invalid { border-color: #ef4444; }
.form-note { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin-top: 14px; }
.form-note.success { color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: rgba(255,255,255,0.7); padding: 76px 0 0; position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  background-size: 200% 100%;
  animation: gradientMove 6s linear infinite;
}
@keyframes gradientMove { to { background-position: 200% 0; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer .brand-text { color: #fff; }
.footer-brand p { font-size: 0.88rem; margin: 16px 0 20px; max-width: 300px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.55); padding: 5px 0; transition: color 0.25s ease, transform 0.25s ease; }
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-newsletter p { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  padding: 11px 18px;
  font-size: 0.86rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icons span {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease);
  z-index: 70;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--heading);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: all 0.45s var(--ease);
  pointer-events: none;
  max-width: 92%;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-icon { display: inline-block; margin-right: 8px; vertical-align: -0.22em; }
.toast .ic { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { min-height: 380px; }
  .float-card { width: 300px; }
  .fc-float-1 { right: 4%; }
  .fc-float-2 { left: 2%; }
  .chip-g2g { left: 4%; }
  .chip-rating { right: 4%; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-wrap: wrap; }
  .step { flex: 1 1 200px; }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-head { position: static; text-align: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 36px; }
}

@media (max-width: 768px) {
  /* Mobile perf: heavy blur + infinite animations are the #1 jank source */
  .blob { filter: blur(60px); opacity: 0.3; animation: none; }
  .blob-3 { display: none; }
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.97); }
  [data-theme="dark"] .navbar { background: rgba(10, 15, 12, 0.97); }
  body { transition: background 0.25s ease, color 0.25s ease; }

  /* compact navbar so it always fits the viewport */
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 8px; }
  .navbar .theme-toggle { width: 40px; height: 40px; }
  .nav-cart-btn { padding: 8px 12px; font-size: 1rem; }
  .nav-actions .btn { padding: 8px 14px; font-size: 0.82rem; }
  .navbar .brand-text { font-size: 1.1rem; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--card);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 2px;
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 79;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; font-size: 0.98rem; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .announcement-bar { font-size: 0.72rem; padding: 8px 40px; }
  .announcement-inner p { line-height: 1.5; }

  .hero { padding: 60px 0 100px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.7rem); }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-scroll { display: none; }
  .float-card { width: 260px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .reviews-cta { flex-direction: column; text-align: center; }
  .rating-summary { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .section { padding: 72px 0; }
  .category-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .btn-lg { padding: 14px 24px; }
  .back-to-top { bottom: 18px; right: 18px; }
  .navbar .brand-text { font-size: 1rem; }
  .nav-actions .btn { padding: 8px 11px; font-size: 0.8rem; }
}

@media (max-width: 360px) {
  /* tiny screens: logo mark only, keeps navbar inside the viewport */
  .navbar .brand-text { display: none; }
}
