/* ──────────────────────────────────────────────────────────────────────────
   drimin — shop / e-commerce layer
   Builds on /assets/css/site.css (design tokens, nav, footer, buttons, reveal).
   Load order:  site.css  ->  shop.css
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --ok:      #34D399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn:    #FBBF24;
  --sale:    #FB7185;
  --sale-soft: rgba(251, 113, 133, 0.14);
  --star:    #FBBF24;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAV — cart button + count badge (extends .nav from site.css)
   ═══════════════════════════════════════════════════════════════════════ */
.nav__cart {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out),
              transform .2s var(--ease-out);
}
.nav__cart:hover { border-color: var(--brand-aqua); background: rgba(61,194,255,0.08); color: var(--text); transform: translateY(-1px); }
.nav__cart svg { width: 20px; height: 20px; }
.nav__cart .cart-count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--grad-water);
  color: #06182C;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(14,165,233,0.5);
  transform: scale(0);
  transition: transform .28s var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.nav__cart .cart-count.is-visible { transform: scale(1); }
.cart-count.bump { animation: cart-bump .4s var(--ease-out); }
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════
   SHOP HERO / PAGE HEAD
   ═══════════════════════════════════════════════════════════════════════ */
.shop-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px);
  isolation: isolate;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-aurora);
  z-index: -1; pointer-events: none;
}
.shop-hero h1 { margin: 10px 0 14px; }
.shop-hero__sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 640px; color: var(--text-muted); }
.shop-hero__stats {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  color: var(--text-faint); font-size: 0.92rem;
}
.shop-hero__stats div { display: inline-flex; align-items: center; gap: 9px; }
.shop-hero__stats svg { width: 18px; height: 18px; color: var(--brand-aqua); }

/* breadcrumbs */
.crumbs {
  font-size: 0.82rem; color: var(--text-faint);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .6; }

/* ═══════════════════════════════════════════════════════════════════════
   FILTER CHIPS
   ═══════════════════════════════════════════════════════════════════════ */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 8px 0 40px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand-aqua); color: var(--text); }
.chip.is-active {
  background: var(--grad-water);
  color: #06182C;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(14,165,233,0.28);
}
.chip__count { font-size: 0.78rem; opacity: .75; }

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT GRID + CARD
   ═══════════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.product-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease-out), box-shadow .35s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61,194,255,0.4);
  box-shadow: 0 18px 50px rgba(2,8,23,0.55);
}
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(61,194,255,0.10), transparent 60%),
    linear-gradient(180deg, #0A1120 0%, #070D1A 100%);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform .5s var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.045); }

.product-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.badge--new    { background: rgba(61,194,255,0.16); color: var(--brand-ice); border: 1px solid rgba(61,194,255,0.4); }
.badge--sale   { background: var(--sale-soft); color: var(--sale); border: 1px solid rgba(251,113,133,0.4); }
.badge--smart  { background: rgba(139,92,246,0.16); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.4); }
.badge--best   { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(52,211,153,0.4); }

.product-card__fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(6,12,26,0.5);
  border: 1px solid var(--border);
  color: var(--text-muted);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.product-card__fav:hover { color: var(--sale); border-color: var(--sale); transform: scale(1.08); }
.product-card__fav svg { width: 17px; height: 17px; }

.product-card__body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}
.product-card__cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-aqua); margin-bottom: 6px;
}
.product-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700; line-height: 1.25;
  margin: 0 0 6px; color: var(--text);
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--brand-aqua); }
.product-card__desc { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; flex: 1; }

.rating { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.82rem; color: var(--text-faint); }
.rating__stars { display: inline-flex; gap: 1px; color: var(--star); }
.rating__stars svg { width: 14px; height: 14px; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price__now { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price__was { font-size: 0.95rem; color: var(--text-faint); text-decoration: line-through; }
.price__off { font-size: 0.76rem; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: var(--r-pill); }

.product-card__actions { margin-top: 16px; display: flex; gap: 10px; }
.product-card__actions .btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════════
   QUANTITY STEPPER
   ═══════════════════════════════════════════════════════════════════════ */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.qty button {
  width: 38px; height: 42px;
  background: transparent; border: 0; color: var(--text);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.qty button:hover:not(:disabled) { background: rgba(61,194,255,0.12); color: var(--brand-aqua); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input {
  width: 42px; height: 42px;
  text-align: center;
  background: transparent; border: 0;
  color: var(--text); font-weight: 700; font-size: 0.98rem;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 32px; height: 36px; font-size: 1.05rem; }
.qty--sm input { width: 34px; height: 36px; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
   ═══════════════════════════════════════════════════════════════════════ */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 24px;
}
.pdp__gallery { position: sticky; top: 92px; }
.pdp__stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 30%, rgba(61,194,255,0.12), transparent 62%),
    linear-gradient(180deg, #0A1120 0%, #060B17 100%);
  box-shadow: var(--shadow-md);
}
.pdp__stage img { width: 100%; height: auto; display: block; }
.pdp__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pdp__thumb {
  width: 76px; height: 76px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0A1120, #060B17);
  cursor: pointer; padding: 0;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp__thumb:hover { transform: translateY(-2px); }
.pdp__thumb.is-active { border-color: var(--brand-aqua); box-shadow: 0 0 0 1px var(--brand-aqua); }

.pdp__info h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 8px 0 10px; }
.pdp__tagline { font-size: 1.08rem; color: var(--brand-aqua); font-weight: 600; margin-bottom: 18px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.pdp__price .price__now { font-size: 2rem; }
.pdp__price .price__was { font-size: 1.1rem; }
.pdp__tax { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 22px; }
.pdp__lede { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.65; }

.pdp__divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* variant swatches */
.variant { margin-bottom: 22px; }
.variant__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 12px; display: flex; gap: 8px; }
.variant__label b { color: var(--text); font-weight: 600; text-transform: none; letter-spacing: 0; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  cursor: pointer; position: relative;
  transition: transform .18s var(--ease-out), border-color .18s var(--ease-out);
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { border-color: var(--brand-aqua); box-shadow: 0 0 0 3px rgba(61,194,255,0.25); }
.swatch.is-active::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 0.8rem; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.size-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.size-opt {
  padding: 9px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03);
  color: var(--text-muted); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: all .18s var(--ease-out);
}
.size-opt:hover { border-color: var(--brand-aqua); color: var(--text); }
.size-opt.is-active { border-color: var(--brand-aqua); background: rgba(61,194,255,0.1); color: var(--text); }

.pdp__actions { display: flex; gap: 14px; align-items: center; margin: 24px 0; flex-wrap: wrap; }
.pdp__actions .btn { flex: 1; min-width: 180px; justify-content: center; }

.pdp__meta { display: grid; gap: 12px; margin-top: 6px; }
.pdp__meta-row { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.92rem; }
.pdp__meta-row svg { width: 20px; height: 20px; color: var(--brand-aqua); flex-shrink: 0; }
.pdp__stock { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.pdp__stock .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* trust row */
.trust-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px; margin-top: 26px;
  padding: 20px; border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.trust-row div { text-align: center; }
.trust-row svg { width: 24px; height: 24px; color: var(--brand-aqua); margin-bottom: 8px; }
.trust-row b { display: block; font-size: 0.86rem; color: var(--text); }
.trust-row span { font-size: 0.76rem; color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════════════
   PDP SECTIONS — features / specs / infographic sheet
   ═══════════════════════════════════════════════════════════════════════ */
.pdp-section { margin-top: clamp(48px, 8vw, 96px); }
.pdp-section > .section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }

.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feat {
  padding: 24px 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out);
}
.feat:hover { transform: translateY(-4px); border-color: rgba(61,194,255,0.35); }
.feat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,194,255,0.12); color: var(--brand-aqua); margin-bottom: 16px; }
.feat__icon svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.05rem; margin-bottom: 7px; }
.feat p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--text-faint); font-weight: 600; width: 42%; background: rgba(255,255,255,0.02); }
.spec-table td { color: var(--text); }

.sheet { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--bg-elevated); box-shadow: 0 8px 48px rgba(0,0,0,0.45); }
.sheet img { width: 100%; height: auto; display: block; }

/* in-page benefit list */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; color: var(--text-muted); font-size: 0.98rem; align-items: start; }
.benefits li svg { width: 22px; height: 22px; color: var(--brand-aqua); margin-top: 1px; }
.benefits li b { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 9, 20, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility .3s var(--ease-out);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(420px, 92vw); height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.cart-drawer__count { font-size: 0.78rem; color: var(--text-faint); font-weight: 600; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; display: grid; place-items: center;
  transition: all .2s var(--ease-out);
}
.drawer-close:hover { color: var(--text); border-color: var(--border-strong); }
.drawer-close svg { width: 18px; height: 18px; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-drawer__foot { padding: 20px 22px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.15); }

.cart-line {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-line__media {
  width: 70px; height: 70px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #0A1120, #060B17);
  border: 1px solid var(--border); overflow: hidden; flex-shrink: 0;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cart-line__title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin: 0 0 3px; line-height: 1.3; }
.cart-line__title a { color: inherit; }
.cart-line__title a:hover { color: var(--brand-aqua); }
.cart-line__variant { font-size: 0.76rem; color: var(--text-faint); margin-bottom: 8px; }
.cart-line__price { font-weight: 700; color: var(--text); font-size: 0.95rem; white-space: nowrap; }
.cart-line__remove {
  background: none; border: 0; color: var(--text-faint); cursor: pointer;
  font-size: 0.78rem; margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  transition: color .18s var(--ease-out);
}
.cart-line__remove:hover { color: var(--sale); }
.cart-line__remove svg { width: 13px; height: 13px; }
.cart-line__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.cart-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--text-muted); font-size: 0.92rem; }
.cart-summary-row.total { color: var(--text); font-size: 1.15rem; font-weight: 800; font-family: var(--font-display); margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.cart-drawer__foot .btn { width: 100%; justify-content: center; }
.cart-drawer__foot .btn + .btn { margin-top: 10px; }
.free-ship-bar { margin-bottom: 16px; }
.free-ship-bar p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; }
.free-ship-bar__track { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.free-ship-bar__fill { height: 100%; background: var(--grad-water); border-radius: 999px; transition: width .5s var(--ease-out); }

.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 56px; height: 56px; color: var(--text-faint); opacity: .5; margin-bottom: 18px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top: 24px; }
.cart-items { display: flex; flex-direction: column; }
.cart-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-row__media { width: 110px; height: 110px; border-radius: var(--r-md); background: linear-gradient(180deg, #0A1120, #060B17); border: 1px solid var(--border); overflow: hidden; }
.cart-row__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-row__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.cart-row__title a { color: var(--text); }
.cart-row__title a:hover { color: var(--brand-aqua); }
.cart-row__variant { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 12px; }
.cart-row__ctrls { display: flex; align-items: center; gap: 16px; }
.cart-row__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-row__price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.cart-row__each { font-size: 0.78rem; color: var(--text-faint); }
.link-remove { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; transition: color .18s var(--ease-out); }
.link-remove:hover { color: var(--sale); }
.link-remove svg { width: 14px; height: 14px; }

/* summary card (shared by cart + checkout) */
.summary-card {
  position: sticky; top: 92px;
  padding: 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid var(--border);
}
.summary-card h3 { font-size: 1.2rem; margin-bottom: 20px; }
.summary-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; color: var(--text-muted); font-size: 0.94rem; }
.summary-line b { color: var(--text); }
.summary-line .free { color: var(--ok); font-weight: 700; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--border); }
.summary-total span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.summary-total b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--text); }
.summary-card .btn { width: 100%; justify-content: center; }
.coupon { display: flex; gap: 8px; margin: 6px 0 20px; }
.coupon input {
  flex: 1; min-width: 0;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 0.9rem;
}
.coupon input:focus { outline: none; border-color: var(--brand-aqua); }
.coupon button { padding: 12px 18px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: rgba(255,255,255,0.05); color: var(--text); font-weight: 600; cursor: pointer; font-size: 0.88rem; transition: all .2s var(--ease-out); white-space: nowrap; }
.coupon button:hover { border-color: var(--brand-aqua); color: var(--brand-aqua); }
.coupon-msg { font-size: 0.82rem; margin: -10px 0 16px; min-height: 1em; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.err { color: var(--sale); }
.summary-note { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.summary-note svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════════════ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-top: 24px; }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 0.9rem; font-weight: 600; }
.step__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); font-size: 0.82rem; transition: all .3s var(--ease-out); }
.step.is-active { color: var(--text); }
.step.is-active .step__num { background: var(--grad-water); color: #06182C; border-color: transparent; }
.step.is-done { color: var(--brand-aqua); }
.step.is-done .step__num { background: rgba(61,194,255,0.15); border-color: var(--brand-aqua); color: var(--brand-aqua); }
.step__sep { flex: 1; min-width: 20px; height: 1px; background: var(--border); max-width: 44px; }

.checkout-panel { display: none; }
.checkout-panel.is-active { display: block; animation: panel-in .4s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.checkout-panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.checkout-panel > .muted { margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; color: var(--text-muted); font-weight: 600; }
.field label .req { color: var(--sale); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-aqua);
  box-shadow: 0 0 0 3px rgba(61,194,255,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field.has-error input, .field.has-error select { border-color: var(--sale); }
.field__error { font-size: 0.78rem; color: var(--sale); min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238090AE' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

.checkout-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.checkout-actions .btn { min-width: 150px; justify-content: center; }
.btn-back { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 0.94rem; }
.btn-back:hover { color: var(--text); }
.btn-back svg { width: 16px; height: 16px; }

/* delivery + payment option cards */
.opt-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.02);
  cursor: pointer; margin-bottom: 12px;
  transition: all .2s var(--ease-out);
}
.opt-card:hover { border-color: rgba(61,194,255,0.4); }
.opt-card.is-active { border-color: var(--brand-aqua); background: rgba(61,194,255,0.07); box-shadow: 0 0 0 1px var(--brand-aqua); }
.opt-card__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; transition: border-color .2s; }
.opt-card.is-active .opt-card__radio { border-color: var(--brand-aqua); }
.opt-card.is-active .opt-card__radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--grad-water); }
.opt-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,194,255,0.1); color: var(--brand-aqua); flex-shrink: 0; }
.opt-card__icon svg { width: 22px; height: 22px; }
.opt-card__body { flex: 1; }
.opt-card__body b { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 2px; }
.opt-card__body span { font-size: 0.85rem; color: var(--text-faint); }
.opt-card__price { font-weight: 700; color: var(--text); white-space: nowrap; }
.opt-card__price .free { color: var(--ok); }

.pay-fields { margin: 4px 0 8px; padding: 20px; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: rgba(255,255,255,0.015); }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(251,191,36,0.12); color: var(--warn); border: 1px solid rgba(251,191,36,0.35); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 18px; }
.demo-pill svg { width: 14px; height: 14px; }

.review-block { padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(255,255,255,0.02); margin-bottom: 16px; }
.review-block__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-block__head h4 { margin: 0; font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.review-block__head button { background: none; border: 0; color: var(--brand-aqua); cursor: pointer; font-size: 0.84rem; font-weight: 600; }
.review-block p { margin: 0; color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }

.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-line:last-child { border-bottom: 0; }
.mini-line__media { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(180deg, #0A1120, #060B17); border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; position: relative; }
.mini-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-line__qty { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.mini-line__title { flex: 1; font-size: 0.88rem; color: var(--text); }
.mini-line__title span { display: block; font-size: 0.76rem; color: var(--text-faint); margin-top: 2px; }
.mini-line__price { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.summary-items { margin-bottom: 18px; max-height: 280px; overflow-y: auto; }

/* ═══════════════════════════════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.order-success { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(40px, 8vw, 80px) 0; }
.success-check {
  width: 92px; height: 92px; margin: 0 auto 26px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); border: 1px solid rgba(52,211,153,0.4);
  animation: pop-in .5s var(--ease-out) both;
}
.success-check svg { width: 46px; height: 46px; color: var(--ok); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check .6s .3s var(--ease-out) forwards; }
@keyframes pop-in { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.order-success h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.order-success .muted { max-width: 520px; margin: 0 auto 12px; }
.order-id { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 8px; padding: 12px 22px; border-radius: var(--r-pill); background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); font-family: var(--font-display); }
.order-id span { color: var(--text-faint); font-size: 0.82rem; }
.order-id b { color: var(--text); font-size: 1.05rem; letter-spacing: 0.04em; }

.order-card { text-align: left; margin: 34px auto 0; padding: 26px; border-radius: var(--r-lg); background: var(--bg-elevated); border: 1px solid var(--border); }
.order-card h3 { font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.order-card__status { font-size: 0.76rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 12px; border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: 0.06em; }
.timeline { display: flex; justify-content: space-between; margin: 24px 0 8px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--border); }
.timeline__step { position: relative; z-index: 1; text-align: center; flex: 1; }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--bg-elevated); border: 2px solid var(--border-strong); color: var(--text-faint); }
.timeline__dot svg { width: 15px; height: 15px; }
.timeline__step.done .timeline__dot { border-color: var(--brand-aqua); color: var(--brand-aqua); background: rgba(61,194,255,0.12); }
.timeline__step.done .timeline__dot.filled { background: var(--grad-water); color: #06182C; border-color: transparent; }
.timeline__label { font-size: 0.76rem; color: var(--text-muted); }
.timeline__step.done .timeline__label { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════════ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--r-pill);
  background: rgba(17,27,54,0.96); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md); color: var(--text); font-size: 0.92rem; font-weight: 500;
  backdrop-filter: blur(12px);
  transform: translateY(20px); opacity: 0;
  animation: toast-in .35s var(--ease-out) forwards;
  pointer-events: auto;
}
.toast.out { animation: toast-out .3s var(--ease-out) forwards; }
@keyframes toast-in { to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }
.toast__icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex-shrink: 0; }
.toast__icon svg { width: 15px; height: 15px; }
.toast a { color: var(--brand-aqua); font-weight: 700; margin-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
   SECTION HELPERS + EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════ */
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row p { margin: 0; }
.view-all { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-aqua); font-weight: 600; font-size: 0.94rem; white-space: nowrap; }
.view-all svg { width: 16px; height: 16px; }

.empty-state { text-align: center; padding: 80px 20px; max-width: 460px; margin: 0 auto; }
.empty-state__icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-faint); }
.empty-state__icon svg { width: 34px; height: 34px; }

/* usp strip */
.usp-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 26px; margin-top: 8px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(61,194,255,0.07), rgba(14,165,233,0.02));
  border: 1px solid rgba(61,194,255,0.16);
}
.usp { display: flex; align-items: center; gap: 14px; }
.usp__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(61,194,255,0.12); color: var(--brand-aqua); flex-shrink: 0; }
.usp__icon svg { width: 22px; height: 22px; }
.usp b { display: block; font-size: 0.94rem; color: var(--text); }
.usp span { font-size: 0.8rem; color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .cart-layout { grid-template-columns: 1fr 320px; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .usp-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-card__body { padding: 14px 14px 16px; }
  .product-card__title { font-size: 1rem; }
  .product-card__desc { display: none; }
  .price__now { font-size: 1.18rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 84px 1fr; grid-template-areas: 'media info' 'media ctrls'; row-gap: 12px; }
  .cart-row__media { width: 84px; height: 84px; grid-area: media; }
  .cart-row__right { grid-area: ctrls; align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; width: 100%; }
  .usp-strip { grid-template-columns: 1fr; }
  .steps { gap: 4px; }
  .step__label { display: none; }
  .step__sep { max-width: 24px; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* related / cross-sell grids: always a balanced 4-up that collapses evenly */
.product-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .product-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .product-grid--four { grid-template-columns: 1fr; } }
