/* ═══════════════ Stockly — styles ═══════════════ */
:root {
  --navy: #0b1226;
  --navy-2: #101a33;
  --ink: #101828;
  --muted: #5b6478;
  --purple: #6656e8;
  --purple-soft: #e9e7fb;
  --lav-bg: #efeef6;
  --border: #e6e8ef;
  --gold: #f5a623;
  --green: #22a55c;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; border-radius: 12px;
  padding: 12px 22px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #1a2647; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: #5546d6; box-shadow: 0 10px 26px rgba(102, 86, 232, .4); transform: translateY(-1px); }
.btn--outline { background: #fff; border: 1.5px solid var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: #fff; border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: #c7ccd8; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ─────────── Top bar ─────────── */
.topbar { background: #080d1c; color: #e6e9f2; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.topbar__center { display: flex; align-items: center; gap: 10px; color: #b9c0d4; }
.topbar__center em { font-style: normal; opacity: .5; }
.topbar__center .diamond { font-style: normal; color: #8b9bf8; margin-right: 3px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__right a:hover { color: #fff; text-decoration: underline; }
.topbar__locale { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #e6e9f2; }

/* ─────────── Header ─────────── */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, .08); border-color: var(--border); }
.header__inner { display: flex; align-items: center; gap: 36px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark { width: 26px; height: 26px; transition: transform .3s cubic-bezier(.2, .8, .3, 1.4); }
.logo:hover .logo__mark { transform: translateY(-2px) scale(1.06); }
.logo__word { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink); padding: 8px 0;
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--purple); border-radius: 2px; transition: width .25s ease;
}
.nav__link:hover::after { width: 100%; }

.nav__item--dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -12px; min-width: 210px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; }
.dropdown a:hover { background: var(--purple-soft); color: var(--purple); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; border: 1.5px solid transparent;
  transition: background .2s, border-color .2s;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: #f3f4f8; }
.iconbtn--cart { border-color: var(--border); position: relative; }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px;
  background: var(--purple); color: #fff; font-size: 11.5px; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid #fff; transition: transform .2s;
}
.cart-badge.bump { animation: bump .45s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes bump { 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; }
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search panel */
.search-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: #fff; border-bottom: 1px solid transparent; }
.search-panel.open { max-height: 90px; border-color: var(--border); }
.search-panel__inner { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 18px; }
.search-panel__icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-panel input { flex: 1; border: none; outline: none; font: 500 17px var(--font); color: var(--ink); background: transparent; }
.search-panel__close { color: var(--muted); font-size: 16px; padding: 8px; border-radius: 8px; }
.search-panel__close:hover { background: #f3f4f8; }

/* ─────────── Hero ─────────── */
.hero { background: linear-gradient(180deg, #f0eff7 0%, #ecebf5 100%); position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(340px, 1fr) 1.25fr;
  align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 88px;
  position: relative; z-index: 2;
}
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.06; }
.hl {
  color: var(--purple); position: relative; display: inline-block;
  background: linear-gradient(transparent 68%, rgba(102, 86, 232, .22) 68%, rgba(102, 86, 232, .22) 96%, transparent 96%);
}
.hero__sub { margin-top: 20px; font-size: 17.5px; color: var(--muted); max-width: 340px; line-height: 1.55; }
.hero__list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.hero__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.hero__li-icon {
  width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--purple);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.hero__li-icon svg { width: 18px; height: 18px; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* hero visual */
.hero__visual { position: relative; height: 480px; }
.hero-card { position: absolute; transition: transform .25s ease; will-change: transform; filter: drop-shadow(0 30px 40px rgba(16, 24, 40, .22)); }
.hero-card .gc { width: 238px; }
.hero-card--left  { left: -1%;  top: 96px;  transform: rotate(-11deg); z-index: 1; }
.hero-card--center{ left: 29%; top: 12px;  transform: rotate(-2deg);  z-index: 3; }
.hero-card--center .gc { width: 264px; }
.hero-card--right { right: -1%; top: 82px;  transform: rotate(10deg);  z-index: 2; }
.hero-card:hover { z-index: 5; }

.scribble {
  position: absolute; font-family: "Caveat", cursive; font-weight: 700;
  font-size: 22px; line-height: 1.05; z-index: 4; pointer-events: none;
}
.scribble--purple { color: var(--purple); left: 2%; top: 6px; transform: rotate(-8deg); }
.scribble--green { color: var(--green); right: 1%; top: -6px; transform: rotate(6deg); text-align: right; }
.scribble__arrow { width: 44px; height: 44px; margin-top: 4px; }
.scribble--green .scribble__arrow { margin-left: auto; }

/* confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.confetti i {
  position: absolute; display: block; border-radius: 2px; opacity: .85;
  animation: floaty 6s ease-in-out infinite;
}
.confetti i.dot { border-radius: 50%; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(24deg); }
}

/* ─────────── Gift card component (portrait, in-store style) ─────────── */
.gc {
  aspect-ratio: 25 / 37; width: 100%; border-radius: 16px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; overflow: hidden; user-select: none; text-align: center;
  container-type: inline-size; padding: 14% 7% 12%;
}
.gc::after { /* subtle sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 38%);
  pointer-events: none;
}
.gc__slot {
  position: absolute; top: 5cqw; left: 50%; transform: translateX(-50%);
  width: 18.5cqw; height: 3.6cqw; border-radius: 999px; background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, .35);
}
.gc__price { position: absolute; top: 5.4cqw; right: 6.4cqw; font-weight: 800; font-size: 7.6cqw; letter-spacing: -.1cqw; }
.gc__logo { display: flex; flex-direction: column; align-items: center; gap: 4.6cqw; }
.gc__stock { margin-top: 6.5cqw; font-size: 4.9cqw; font-weight: 800; letter-spacing: .55cqw; text-transform: uppercase; }
.gc__tagline { margin-top: 2.2cqw; font-size: 3.3cqw; font-weight: 600; letter-spacing: .35cqw; text-transform: uppercase; opacity: .72; max-width: 82cqw; line-height: 1.5; }
.gc__brand {
  position: absolute; bottom: 5.4cqw; left: 0; right: 0; text-align: center;
  font-size: 3.7cqw; font-weight: 600; letter-spacing: 1.05cqw; opacity: .8;
}

.gc--tesla { background: linear-gradient(160deg, #e8232b 0%, #c31721 100%); }
.tesla-t { width: 33cqw; height: auto; }
.tesla-word { font-size: 8.4cqw; font-weight: 700; letter-spacing: 3.6cqw; margin-left: 3.6cqw; }

.gc--nvidia { background: linear-gradient(160deg, #1b1b20 0%, #0c0c0f 100%); }
.nvidia-eye { width: 37cqw; }
.nvidia-word { font-size: 10cqw; font-weight: 800; letter-spacing: .4cqw; }

.gc--apple { background: linear-gradient(160deg, #ffffff 0%, #f1f1f4 100%); border: 1px solid #e8e8ee; color: #101828; }
.gc--apple .gc__slot { background: #e8e8ee; box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, .12); }
.gc--apple .gc__price { color: #667085; }
.gc--apple .gc__tagline { color: #5b6478; }
.gc--apple .gc__brand { color: #98a2b3; }
.apple-mark { width: 31cqw; }

.gc--amazon { background: linear-gradient(160deg, #191f2b 0%, #10141d 100%); }
.amazon-word { font-size: 12cqw; font-weight: 700; letter-spacing: -.4cqw; line-height: 1; }
.amazon-smile { width: 38cqw; margin-top: -3.5cqw; }

.gc--meta { background: linear-gradient(150deg, #2b45e0 0%, #1f2fb0 100%); }
.meta-inf { width: 40cqw; }

.gc--any { background: linear-gradient(150deg, #6a5cf0 0%, #35298f 100%); }
.any-mark { width: 25cqw; }

/* ─────────── Categories ─────────── */
.section__title { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 34px; }
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  padding: 20px 8px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
.cat__icon { font-size: 27px; line-height: 1; height: 30px; display: flex; align-items: center; }
.cat:hover { transform: translateY(-4px); border-color: #c9c3f5; box-shadow: var(--shadow-md); }
.cat.is-active { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(102, 86, 232, .15); }

/* ─────────── Products ─────────── */
.products { padding-top: 24px; }
.products__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.products__head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.viewall { font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.viewall span { transition: transform .2s; }
.viewall:hover span { transform: translateX(4px); }
.viewall:hover { color: var(--purple); }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px; padding: 14px 14px 16px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s, opacity .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d5d9e2; }
.product.is-hidden { display: none; }
.product__art { border-radius: 14px; overflow: hidden; }
.product__art .gc { border-radius: 12px; }
.product__name { font-size: 15.5px; font-weight: 700; margin-top: 14px; }
.product__price { font-size: 16px; font-weight: 800; margin-top: 3px; }
.product__rating { display: flex; align-items: center; gap: 2px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.stars { position: relative; display: inline-block; font-size: 14px; letter-spacing: 1px; color: #dcdfe8; line-height: 1; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); pointer-events: none; }
.product__rating .num { margin-left: 5px; }
.btn--cart { margin-top: 13px; width: 100%; padding: 11px 10px; font-size: 14px; border-radius: 10px; gap: 8px; }

.empty-state { text-align: center; padding: 60px 0 30px; display: grid; justify-items: center; gap: 12px; color: var(--muted); }
.empty-state[hidden] { display: none; }
.empty-state span { font-size: 40px; }

/* ─────────── CTA banner ─────────── */
.cta {
  background: linear-gradient(120deg, #eae8f8 0%, #e5e2f6 100%);
  border-radius: 26px; padding: 56px 56px;
  display: grid; grid-template-columns: 1.2fr auto 1fr; align-items: center; gap: 36px;
  position: relative; overflow: hidden;
}
.cta__copy h2 { font-size: 30px; font-weight: 800; letter-spacing: -.7px; line-height: 1.15; }
.cta__copy p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 330px; }
.cta__visual { position: relative; height: 190px; min-width: 300px; }
.cta-card {
  position: absolute; right: 26px; top: -4px; width: 168px; aspect-ratio: 25/34;
  background: linear-gradient(150deg, #6a5cf0 0%, #35298f 100%);
  border-radius: 16px; transform: rotate(9deg); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 50px rgba(53, 41, 143, .45);
  transition: transform .3s ease;
}
.cta:hover .cta-card { transform: rotate(5deg) translateY(-6px); }
.cta-card .gc__slot {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, .35);
}
.cta-card__price { position: absolute; top: 12px; right: 14px; font-weight: 800; font-size: 16px; }
.cta-card__title { font-family: "Caveat", cursive; font-size: 27px; font-weight: 700; text-align: center; line-height: 1.05; letter-spacing: .5px; }
.cta-tile {
  position: absolute; width: 48px; height: 48px; background: #fff; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); animation: floaty 5s ease-in-out infinite;
}
.cta-tile--a { right: 218px; top: -14px; animation-delay: -1s; }
.cta-tile--b { right: -6px; top: 6px; animation-delay: -2.4s; }
.cta-tile--c { right: 226px; bottom: -4px; animation-delay: -3.2s; }
.cta-tile--d { right: 4px; bottom: -10px; animation-delay: -.6s; }
.amazon-mini { font-weight: 800; font-size: 26px; color: #101828; line-height: 1; border-bottom: 3px solid #FF9900; border-radius: 2px; }

/* ─────────── Features ─────────── */
.features { padding-top: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { display: flex; gap: 15px; align-items: flex-start; padding: 10px 6px; }
.feature__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--purple-soft);
  color: var(--purple); display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 15.5px; font-weight: 700; }
.feature p { margin-top: 5px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ─────────── Footer ─────────── */
.footer { background: #080d1c; color: #b9c0d4; margin-top: 40px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-top: 56px; padding-bottom: 40px;
}
.footer__brand p { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .3px; }
.footer__col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 26px; font-size: 13px;
}

/* ─────────── Cart drawer ─────────── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(10, 14, 28, .45); z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 201;
  background: #fff; box-shadow: -20px 0 60px rgba(16, 24, 40, .2);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.3, .8, .3, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer__head h3 { font-size: 19px; font-weight: 800; }
.drawer__head span { color: var(--muted); font-weight: 600; font-size: 15px; }
.drawer__close { font-size: 17px; padding: 8px 10px; border-radius: 9px; color: var(--muted); }
.drawer__close:hover { background: #f3f4f8; }
.drawer__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__empty { color: var(--muted); text-align: center; margin-top: 40px; font-size: 15px; }
.drawer-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1f2f6; }
.drawer-item__thumb { width: 44px; height: 60px; border-radius: 8px; flex-shrink: 0; }
.drawer-item__info { flex: 1; }
.drawer-item__name { font-weight: 700; font-size: 14.5px; }
.drawer-item__qty { color: var(--muted); font-size: 13px; margin-top: 2px; }
.drawer-item__price { font-weight: 800; font-size: 15px; }
.drawer-item__remove { color: var(--muted); font-size: 13px; padding: 6px; border-radius: 7px; }
.drawer-item__remove:hover { color: #d92d20; background: #fef3f2; }
.drawer__foot { border-top: 1px solid var(--border); padding: 18px 24px 22px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.drawer__total strong { font-size: 19px; }
.drawer__checkout { width: 100%; }

/* ─────────── Toast ─────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 80px);
  background: var(--navy); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; transition: transform .3s cubic-bezier(.3, .9, .3, 1.2), opacity .3s;
  pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* fly-to-cart particle */
.burst {
  position: fixed; width: 9px; height: 9px; border-radius: 2px; z-index: 400; pointer-events: none;
}

/* ─────────── Reveal on scroll ─────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ─────────── Product detail page ─────────── */
.pdp { padding: 34px 24px 80px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--purple); text-decoration: underline; }
.breadcrumb #crumbName { color: var(--ink); font-weight: 600; }

.pdp__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }

.pdp__stage {
  background: linear-gradient(160deg, #f0eff7 0%, #e9e8f3 100%);
  border-radius: 24px; padding: 52px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 480px;
}
.pdp__stage .gc {
  width: min(290px, 68%); transform: rotate(-3deg); position: relative; z-index: 2;
  box-shadow: 0 30px 60px rgba(16, 24, 40, .25);
  transition: transform .3s ease;
}
.pdp__stage .gc:hover { transform: rotate(0deg) scale(1.02); }
.pdp__stage .gc[hidden] { display: none; }
.pdp__stage .gc.pop { animation: cardpop .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes cardpop { 0% { transform: rotate(-3deg) scale(.85); opacity: 0; } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }

.pdp__thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.thumb {
  width: 62px; border-radius: 12px; border: 2px solid var(--border); padding: 3px; background: #fff;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.thumb:hover { transform: translateY(-2px); border-color: #c9c3f5; }
.thumb.is-active { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(102, 86, 232, .15); }
.thumb .gc { border-radius: 7px; pointer-events: none; }

.pdp__badge {
  display: inline-flex; align-items: center; gap: 6px; background: #fff4e6; color: #b25e09;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.pdp__info h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.pdp__rating { margin-top: 10px; }
.pdp__price { font-size: 30px; font-weight: 800; margin-top: 16px; }
.pdp__note { color: var(--green); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.pdp__desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 12px; }

.field-label { display: block; font-weight: 700; font-size: 14px; margin: 22px 0 10px; }
.select {
  appearance: none; -webkit-appearance: none; width: 100%; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 13px 40px 13px 14px; font: 600 15px var(--font); color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101828' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer; transition: border-color .2s;
}
.select:hover, .select:focus { border-color: var(--purple); outline: none; }

.amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.amount {
  border: 1.5px solid var(--border); border-radius: 11px; padding: 11px 20px;
  font-weight: 700; font-size: 15px; transition: all .18s;
}
.amount:hover { border-color: #c9c3f5; transform: translateY(-1px); }
.amount.is-active { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); box-shadow: 0 0 0 3px rgba(102, 86, 232, .12); }

.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery__opt {
  display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 13.5px; transition: all .18s;
}
.delivery__opt small { color: var(--muted); }
.delivery__opt input { accent-color: var(--purple); margin-top: 3px; }
.delivery__opt:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); }

.pdp__buyrow { display: flex; gap: 12px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.qty button { width: 42px; height: 100%; min-height: 50px; font-size: 18px; font-weight: 700; transition: background .15s; }
.qty button:hover { background: #f3f4f8; }
.qty span { width: 38px; text-align: center; font-weight: 700; font-size: 15px; }
.pdp__add { flex: 1; }
.pdp__buynow { width: 100%; margin-top: 10px; }

.pdp__trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: 13px; font-weight: 500; }

.pdp__accs { margin-top: 26px; border-top: 1px solid var(--border); }
.acc { border-bottom: 1px solid var(--border); padding: 15px 0; }
.acc summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 19px; color: var(--muted); transition: transform .2s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.product__link { display: block; }
.product__link:hover .product__name { color: var(--purple); }
.footer__bottom--solo { padding-top: 26px; }
.footer__bottom--solo a:hover { color: #fff; text-decoration: underline; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-card--left { left: 0; }
  .hero-card--right { right: 0; }
}

@media (max-width: 900px) {
  .pdp__grid { grid-template-columns: 1fr; gap: 30px; }
  .pdp__stage { min-height: 380px; padding: 36px; }
  .pdp__info h1 { font-size: 27px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; }
  .hero__visual { height: 420px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-card .gc { width: 200px; }
  .hero-card--center .gc { width: 220px; }
  .hero-card--left { top: 110px; }
  .hero-card--center { left: 50%; margin-left: -110px; }
  .hero-card--right { top: 100px; }
  .cta { grid-template-columns: 1fr; text-align: center; padding: 44px 28px; }
  .cta__copy p { margin-left: auto; margin-right: auto; }
  .cta .btn { justify-self: center; }
  .cta__visual { margin: 10px auto 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* mobile nav */
  .hamburger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); z-index: 150;
    background: #fff; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 90px 28px 28px; box-shadow: -20px 0 60px rgba(16, 24, 40, .18);
    transform: translateX(105%); transition: transform .3s cubic-bezier(.3, .8, .3, 1);
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-size: 17px; padding: 12px 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 6px 12px; }
  .dropdown a { padding: 8px 10px; }
  .btn--ghost.btn--sm { display: none; }
}

@media (max-width: 640px) {
  .topbar__center { display: none; }
  .header__inner { height: 64px; gap: 16px; }
  .logo__word { font-size: 21px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 9px; }
  .cat { padding: 14px 4px 12px; font-size: 11.5px; border-radius: 13px; }
  .cat__icon { font-size: 22px; height: 24px; }
  .section { padding: 44px 0; }
  .products__head h2, .section__title { font-size: 22px; }
  .hero__visual { height: 330px; }
  .hero-card .gc { width: 150px; }
  .hero-card--center .gc { width: 170px; }
  .hero-card--center { margin-left: -85px; }
  .hero-card--left { top: 90px; }
  .hero-card--right { top: 84px; }
  .scribble { font-size: 17px; }
  .scribble__arrow { width: 30px; height: 30px; }
  .hero__cta .btn { flex: 1; }
  .cta-tile--a, .cta-tile--c { right: auto; left: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .btn--cart { font-size: 12.5px; gap: 6px; padding: 10px 6px; }
  .product__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
