/* ==========================================================================
   V-CHEK — Storefront / e-commerce layer
   Extends assets/css/style.css (dark premium theme)
   ========================================================================== */

/* ---------- Nav cart ---------- */
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--heading);
  font-weight: 600;
  font-size: .85rem;
  transition: border-color .25s, background .25s, transform .25s;
}
.nav__cart:hover { border-color: var(--accent); background: rgba(34, 211, 238, .08); transform: translateY(-1px); }
.nav__cart--mobile { display: none; }
.nav__cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--cta-grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  transition: transform .3s var(--ease-out);
}
.nav__cart-count.is-bump { transform: scale(1.28); }
.nav__links > .nav__cart { padding: 9px 14px; }
.nav__links > .nav__cart::after { display: none; }

/* ---------- Buybar actions ---------- */
.buybar__actions { display: flex; align-items: center; gap: 10px; }
.buybar__actions .btn { white-space: nowrap; }

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: clamp(84px, 12vw, 104px);
  z-index: 160;
  display: grid;
  gap: 10px;
  width: min(92vw, 380px);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0E1728;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  animation: toastIn .3s var(--ease-out);
}
.toast.is-leaving { animation: toastOut .26s var(--ease) forwards; }
.toast svg { flex: none; margin-top: 1px; }
.toast--success { border-color: rgba(34, 211, 238, .35); }
.toast--success svg { color: var(--accent); }
.toast--error { border-color: rgba(229, 72, 77, .4); }
.toast--error svg { color: #FF8F8F; }
.toast span { flex: 1; }
.toast__close { color: var(--muted); line-height: 1; font-size: 1.1rem; }
.toast__close:hover { color: var(--heading); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Buttons (extra) ---------- */
.btn--block { width: 100%; }
.btn--outline {
  border: 1px solid var(--border);
  color: var(--heading);
  background: rgba(255, 255, 255, .04);
}
.btn--outline:hover { border-color: var(--accent); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.btn.is-loading { opacity: .7; pointer-events: none; }
.rot-up { transform: rotate(-90deg); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.chip--accent { color: #052012; background: linear-gradient(135deg, #22D3EE, #4DA3FF); border-color: transparent; }
.chip--success { color: #8EF0C8; border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); }
.chip--info { color: #9CC4FF; border-color: rgba(77, 163, 255, .35); background: rgba(77, 163, 255, .08); }
.chip--warning { color: #FFD79A; border-color: rgba(240, 180, 90, .35); background: rgba(240, 180, 90, .08); }
.chip--danger { color: #FFA9AC; border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .1); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.field > span { letter-spacing: .01em; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0B1220;
  color: var(--heading);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder,
.field textarea::placeholder { color: #5E6F8A; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(20, 102, 224, .25);
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: #E5484D; }
.field-error { color: #FF8F8F; font-size: .78rem; font-weight: 600; }
.form-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text); font-weight: 500; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--secondary); }

/* ---------- Product page ---------- */
.page-hero--compact { padding-top: calc(var(--nav-h) + clamp(28px, 5vw, 52px)); padding-bottom: clamp(18px, 3vw, 30px); }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--nav-h) + 24px); }
.product__stage {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 70% at 50% 30%, #FFFFFF 0%, #EAF1F9 62%, #D9E5F2 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
}
.product__stage img { width: min(100%, 460px); filter: drop-shadow(0 26px 34px rgba(11, 33, 61, .28)); transition: transform .4s var(--ease-out); }
.product__stage:hover img { transform: scale(1.03); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 1;
  padding: 8px;
  display: grid;
  place-items: center;
  transition: border-color .2s, transform .2s;
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info .eyebrow { margin-bottom: 10px; }
.product-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.product-info__sub { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.product-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.product-price__now { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--heading); letter-spacing: -.03em; }
.product-price__mrp { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 1.05rem; }
.product-price__save { color: #052012; background: linear-gradient(135deg, #22D3EE, #4DA3FF); padding: 4px 11px; border-radius: var(--pill); font-size: .76rem; font-weight: 800; }
.product-info__tax { color: var(--muted); font-size: .84rem; }
.product-highlights { display: grid; gap: 11px; margin: 22px 0; }
.product-highlights li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .94rem; }
.product-highlights svg { flex: none; margin-top: 2px; color: var(--accent); }
.product-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.product-buy .qty { background: #0B1220; }
.product-meta { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.product-meta__row { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--muted); }
.product-meta__row svg { flex: none; color: var(--secondary); margin-top: 2px; }
.product-meta__row strong { color: var(--heading); }

.product-section { margin-top: clamp(48px, 7vw, 88px); }
.product-section > .section__head { margin-bottom: clamp(28px, 4vw, 44px); }

/* feature cards grid (product) */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.advantage-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
  transition: transform .35s var(--ease-out), border-color .3s;
}
.advantage-card:hover { transform: translateY(-4px); border-color: #2A3A5C; }
.advantage-card__icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--cta-grad);
  box-shadow: 0 14px 26px -14px rgba(20, 102, 224, .8);
  margin-bottom: 18px;
}
.advantage-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.advantage-card p { color: var(--muted); font-size: .93rem; }

/* who is this for */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.who-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}
.who-card svg { flex: none; color: var(--accent); }
.who-card h3 { font-size: 1rem; margin-bottom: 4px; }
.who-card p { color: var(--muted); font-size: .9rem; }

/* specs accordion already styled by .accordion/.spec */

/* ---------- Content: clinical trial ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
  text-align: center;
}
.stat-card__value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--heading); letter-spacing: -.03em; }
.stat-card__label { margin-top: 6px; color: var(--muted); font-size: .84rem; }
.data-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; font-size: .9rem; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { background: #0B1220; color: var(--heading); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.data-table tbody td { color: var(--muted); }
.data-table tbody td:first-child { color: var(--heading); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Content: in the box / ecosystem ---------- */
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.box-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  font-weight: 600; color: var(--heading); font-size: .94rem;
}
.box-item svg { color: var(--accent); flex: none; }

/* ---------- Content: shipping policy ---------- */
.policy { display: grid; gap: 22px; }
.policy-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
}
.policy-card h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.policy-card h3 svg { color: var(--secondary); }
.policy-card p { color: var(--muted); margin-bottom: 10px; }
.policy-card ul { display: grid; gap: 8px; margin-top: 8px; }
.policy-card li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; }
.policy-card li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Cart ---------- */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.cart-list { display: grid; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
}
.cart-item__media {
  width: 110px; height: 110px;
  border-radius: 14px;
  background: #fff;
  display: grid; place-items: center;
  padding: 12px;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__title { font-weight: 700; color: var(--heading); font-size: 1rem; line-height: 1.4; }
.cart-item__sub { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.cart-item__unit { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.cart-item__controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.cart-item__price { text-align: right; }
.cart-item__price strong { display: block; font-size: 1.15rem; color: var(--heading); }
.cart-remove { color: var(--muted); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cart-remove:hover { color: #FF8F8F; }

.summary {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
  box-shadow: var(--shadow-md);
}
.summary h3 { font-size: 1.15rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--muted); font-size: .92rem; }
.summary-row strong { color: var(--heading); }
.summary-row--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.06rem; }
.summary-row--total strong { font-size: 1.35rem; }
.summary .btn { margin-top: 18px; }
.summary__note { margin-top: 14px; color: var(--muted); font-size: .8rem; display: flex; gap: 8px; align-items: center; }
.summary__note svg { color: var(--accent); flex: none; }

.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, .02);
}
.empty-state svg { color: var(--muted); margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.checkout-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%);
}
.checkout-card + .checkout-card { margin-top: 20px; }
.checkout-card > h3 { font-size: 1.15rem; margin-bottom: 4px; }
.checkout-card > p.hint { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-heading__num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cta-grad); color: #fff; font-weight: 800; font-size: .85rem;
  flex: none;
}
.card-heading h3 { font-size: 1.1rem; }

.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pay-option:hover { border-color: #2A3A5C; }
.pay-option.is-selected { border-color: var(--accent); background: rgba(34, 211, 238, .06); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.pay-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.pay-option__body strong { display: block; color: var(--heading); font-size: .96rem; }
.pay-option__body span { color: var(--muted); font-size: .84rem; }
.pay-option__tag { margin-left: auto; }

.order-lines { display: grid; gap: 14px; }
.order-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.order-line__media { width: 64px; height: 64px; border-radius: 12px; background: #fff; padding: 8px; display: grid; place-items: center; }
.order-line__media img { width: 100%; height: 100%; object-fit: contain; }
.order-line__title { color: var(--heading); font-size: .92rem; font-weight: 600; line-height: 1.35; }
.order-line__qty { color: var(--muted); font-size: .82rem; }
.order-line__price { color: var(--heading); font-weight: 700; }

/* ---------- Order success / tracking ---------- */
.order-hero { text-align: center; padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 80px)); padding-bottom: clamp(20px, 4vw, 40px); }
.order-hero__icon {
  width: 74px; height: 74px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--cta-grad);
  box-shadow: 0 18px 36px -16px rgba(20, 102, 224, .85);
}
.order-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.order-hero p { color: var(--muted); margin-top: 12px; }
.order-number { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--border); background: rgba(255, 255, 255, .05); font-weight: 700; color: var(--heading); }

.order-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.info-panel { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, #0E1728 0%, #0B1220 100%); }
.info-panel + .info-panel { margin-top: 20px; }
.info-panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.info-list { display: grid; gap: 12px; }
.info-list__row { display: flex; justify-content: space-between; gap: 18px; font-size: .9rem; }
.info-list__row span:first-child { color: var(--muted); }
.info-list__row span:last-child { color: var(--heading); text-align: right; }

.status-track { display: flex; gap: 8px; margin: 6px 0 20px; }
.status-track__step { flex: 1; text-align: center; }
.status-track__dot { height: 5px; border-radius: var(--pill); background: #1D2941; }
.status-track__step.is-done .status-track__dot { background: var(--cta-grad); }
.status-track__step span { display: block; margin-top: 8px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.status-track__step.is-done span { color: var(--heading); }

/* ---------- Auth (storefront user not used) ---------- */
.text-center { text-align: center; }
.stack-sm { display: grid; gap: 12px; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-grid, .checkout-grid, .order-detail { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .nav__links .nav__cart { display: none; }
  .nav__cart--mobile { display: inline-flex; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr); }
  .cart-item__media { width: 84px; height: 84px; }
  .cart-item__price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .buybar__actions .btn--ghost { display: none; }
}

/* ==========================================================================
   Premium product gallery — studio stage, crossfade, thumbnails, lightbox
   Additive layer: sits last so it wins the cascade.
   ========================================================================== */
.product-gallery { position: sticky; top: calc(var(--nav-h) + 24px); }

.product__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  cursor: zoom-in;
  background: #0E1728;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 50px 100px -52px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(34, 211, 238, .06),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
/* studio floor + top light */
.product__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 24%),
    radial-gradient(60% 42% at 50% 106%, rgba(11, 33, 61, .18) 0%, transparent 72%);
}
/* light sweep on hover */
.product__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .9s var(--ease-out);
}
.product__stage:hover::after { transform: translateX(130%); }

.product__stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .6s var(--ease-out), opacity .35s var(--ease);
}
.product__stage:hover img { transform: scale(1.035); }
.product__stage img.is-fading { opacity: 0; transform: scale(.97); }

/* "click to zoom" hint */
.product__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--pill);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.product__zoom svg { width: 14px; height: 14px; }
.product__stage:hover .product__zoom,
.product__stage:focus-visible .product__zoom { opacity: 1; transform: none; }

/* thumbnails */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.gallery-thumbs button {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0E1728;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
}
.gallery-thumbs button:hover { transform: translateY(-3px); border-color: #C6D5E6; }
.gallery-thumbs button.is-active {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), 0 16px 30px -18px rgba(34, 211, 238, .85);
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .3s ease both;
}
.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  animation: popIn .4s var(--ease-out) both;
}
.lightbox__img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 70px 120px -55px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1);
}
.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, transform .25s;
}
.lightbox__close:hover { background: var(--secondary); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 17, 30, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, transform .2s;
}
.lightbox__nav:hover { background: var(--secondary); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: rgba(201, 216, 236, .8);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox__close { top: -10px; right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .product__stage img,
  .product__stage::after,
  .product__zoom,
  .gallery-thumbs button { transition: none; }
  .product__stage:hover img { transform: none; }
  .product__stage::after { display: none; }
  .lightbox__backdrop,
  .lightbox__panel { animation: none; }
}
