/* =========================================================
   Dani Cards & Collectibles — Component Styles
   Dark-luxury / glassmorphism collectible-marketplace theme.
   Source of truth: docs/architecture/futuristic-redesign.md §3, §6

   Load order: tokens.css -> base.css -> components.css -> animations.css -> styles.css
   Components restyled here are DELETED from css/styles.css in the same
   pass (moved, not duplicated) so there is exactly one source of truth
   per selector and styles.css shrinks pass by pass (see §8 file-size risk).

   Pass 2 (this section set): Header/Nav (§3.1), Hero + Trust Bar (§3.2),
   Buttons (§3.6 shared base — needed by hero/footer CTAs), Floating CTAs
   (§3.6 WhatsApp bubble + cart bubble restyle), Footer (§3.7).
   ========================================================= */

/* ===================================================================
   Buttons (§3.6) — shared base, used by header/hero/footer/quickview/
   cart/FAQ CTAs alike.
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--accent-pitch);
  color: var(--surface-0);
}
.btn-primary:hover {
  background: var(--accent-pitch-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid var(--border-glass-strong);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--ink-0);
}

/* WhatsApp CTA buttons keep --whatsapp green exactly as-is — never
   substituted with --accent-pitch, so a WhatsApp action never visually
   collides with the primary "add to cart" pitch-green action (§3.6). */
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-text {
  background: transparent;
  color: var(--ink-muted);
  font-weight: 500;
}
.btn-text:hover {
  color: var(--danger);
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.btn-add {
  background: var(--accent-pitch);
  color: var(--surface-0);
  border: 1px solid var(--accent-pitch);
}
.btn-add:hover {
  background: var(--accent-pitch-dark);
  border-color: var(--accent-pitch-dark);
}
.btn-add.btn-added {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}

/* ===================================================================
   Header / Nav (§3.1)
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  /* Subtle gold-glow drop-shadow on the mark only (§3.1) — not the whole header. */
  filter: drop-shadow(0 0 6px rgba(217, 180, 92, 0.35));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-0);
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-pitch);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover {
  color: var(--ink-0);
}
.main-nav a:hover::after {
  transform: scaleX(1);
}

.lang-btn {
  border: 1px solid var(--border-glass-strong);
  background: transparent;
  color: var(--ink-muted);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover {
  background: var(--surface-2);
  color: var(--ink-0);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 66;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-0);
  border-radius: 2px;
}

/* Dimmed backdrop behind the mobile nav panel, shown/hidden purely via CSS
   (general sibling combinator — no JS change needed for this visual). */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 64;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* ===================================================================
   Hero + Trust Bar (§3.2)
   =================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 65% at 50% 115%, rgba(47, 230, 166, 0.16) 0%, transparent 62%),
    var(--surface-0);
  color: var(--ink-0);
  padding: var(--space-9) 0;
  text-align: center;
}

.hero h1 {
  color: var(--ink-0);
  font-size: 42px;
  max-width: 760px;
  margin: 0 auto 18px;
  position: relative;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 34px;
  color: var(--ink-muted);
  font-size: 17.5px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Secondary hero CTA keeps a gold accent (distinct from the pitch-green
   primary CTA) — continuity with the old "gold outline" secondary-button
   identity, now on the new dark-luxury gold tokens. */
.hero .btn-outline {
  color: var(--accent-gold);
  border-color: var(--accent-gold-deep);
}
.hero .btn-outline:hover {
  background: var(--accent-gold);
  color: var(--surface-0);
  border-color: var(--accent-gold);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }
}

.trust-bar {
  background: transparent;
  border-bottom: 1px solid var(--border-glass);
  padding: var(--space-4) 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-0);
  white-space: nowrap;
}

.trust-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(63, 169, 245, 0.12);
  color: var(--accent-trust);
  flex-shrink: 0;
}

.trust-bar-icon .icon-svg {
  width: 14px;
  height: 14px;
}

/* ===================================================================
   Floating CTAs (§3.6, §3.11 color-only restyle — pop micro-interaction
   is added in Pass 5)
   =================================================================== */

.whatsapp-float-btn {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.35), var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease;
  animation: whatsapp-intro 0.4s ease-out;
}
.whatsapp-float-btn .icon-svg {
  width: 28px;
  height: 28px;
}
.whatsapp-float-btn:hover {
  transform: translateY(-2px);
  background: var(--whatsapp-dark);
}
.whatsapp-float-btn:focus-visible {
  outline: 2px solid var(--accent-trust);
  outline-offset: 3px;
}

@keyframes whatsapp-intro {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Cart bubble gets the primary brand-action color (--accent-pitch) —
   deliberately distinct from WhatsApp green (§3.6/§3.11 color-collision
   guardrail). The "pop" increment micro-interaction (.pop class) is wired
   in Pass 5 alongside the rest of the animation layer. */
.selection-float-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  background: var(--accent-pitch);
  color: var(--surface-0);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--glow-pitch), var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.selection-float-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-pitch-dark);
}
.selection-float-btn:focus-visible {
  outline: 2px solid var(--accent-trust);
  outline-offset: 3px;
}

.cart-float-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-float-icon .icon-svg {
  width: 20px;
  height: 20px;
}

/* ===================================================================
   Footer (§3.7)
   =================================================================== */

.site-footer {
  background: var(--surface-1);
  color: var(--ink-muted);
  padding: var(--space-6) 0;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid var(--border-glass);
}
.footer-inner p {
  margin: 4px 0;
}
.footer-inner span[data-site-name] {
  color: var(--ink-0);
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
  text-align: left;
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border-glass);
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand-link span[data-site-name] {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-0);
}

.footer-tagline {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--ink-0);
  font-size: 14px;
  margin: 0 0 14px;
}
.footer-col a,
.footer-brand-link {
  display: block;
}
.footer-col a {
  color: var(--ink-muted);
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent-pitch);
}
.footer-col a:focus-visible,
.footer-brand-link:focus-visible {
  outline: 2px solid var(--accent-trust);
  outline-offset: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-5);
}

.footer-security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-security-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  color: var(--accent-trust);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===================================================================
   Responsive (Pass 2 components)
   =================================================================== */

@media (max-width: 1100px) {
  .brand-name {
    display: none;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: flex;
  }

  /* Mobile nav: full-height glass panel sliding in from the right over a
     dimmed backdrop (§3.1) — replaces the old inline dropdown. */
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface-glass);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 24px 24px;
    gap: 20px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 65;
  }
  .main-nav.open {
    right: 0;
  }
  .main-nav.open ~ .mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .hero h1 {
    font-size: 30px;
  }

  .trust-bar {
    gap: 8px 16px;
  }
  .trust-bar-item {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 12px;
  }
  .footer-brand-link {
    justify-content: center;
  }
  .footer-tagline {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .whatsapp-float-btn {
    width: 50px;
    height: 50px;
    bottom: 18px;
    left: 18px;
  }
  .selection-float-btn {
    bottom: 18px;
    right: 18px;
  }
  .trust-bar-item span:not(.trust-bar-icon) {
    max-width: 80px;
    white-space: normal;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Pass 3: Product Cards, Grid, Quickview, Cart Panel
   (§3.3, §3.4, §3.10, §3.11, §3.13)
   =================================================================== */

/* ---------- Products toolbar: search + filters (§3.4) ---------- */

.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}

#product-search {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-0);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#product-search::placeholder {
  color: var(--ink-faint);
}
#product-search:focus {
  outline: none;
  border-color: var(--accent-trust);
  box-shadow: var(--glow-trust);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover {
  border-color: var(--border-glass-strong);
  color: var(--ink-0);
}
.filter-chip.active {
  background: var(--accent-pitch);
  border-color: var(--accent-pitch);
  color: var(--surface-0);
}

.no-results {
  color: var(--ink-muted);
  text-align: center;
  padding: 40px 24px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Product grid + card (§3.3) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-strong);
  box-shadow: var(--shadow-md);
}

/* Presentational-only rarity tier (§3.3) — visual hierarchy affordance
   derived from price/stock, never a grading claim. No tier-naming text
   is ever attached to these classes anywhere in markup/aria-label/i18n. */
.product-card--premium,
.product-card--signature {
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}
.product-card--premium:hover,
.product-card--signature:hover {
  box-shadow: var(--glow-gold), var(--shadow-md);
}
.product-card--signature:hover .foil-sheen,
.product-card--signature:focus-within .foil-sheen {
  opacity: 0.35;
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-1);
  overflow: hidden;
}
/* Soft inner vignette so photos of varying quality/background sit more
   consistently on the dark card (§3.3). */
.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.03);
}

.badge {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.badge-category {
  top: 12px;
  left: 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--ink-0);
}
.badge-stock {
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: #fff;
}

.quickview-trigger {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-0);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.product-card:hover .quickview-trigger,
.product-card:focus-within .quickview-trigger,
.quickview-trigger:focus-visible {
  opacity: 1;
  transform: none;
}
.quickview-trigger:hover {
  background: var(--surface-2);
}
.quickview-trigger .icon-svg {
  width: 16px;
  height: 16px;
}
/* No hover state to rely on for touch devices — always visible there (§3.3). */
@media (hover: none) {
  .quickview-trigger {
    opacity: 1;
    transform: none;
  }
}

.product-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--ink-0);
  overflow-wrap: break-word;
}
.product-name-link {
  color: inherit;
  text-decoration: none;
}
.product-name-link:hover {
  text-decoration: underline;
}

.product-description {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 10px;
  flex: 1;
}

.product-stock {
  font-size: 12.5px;
  color: var(--accent-gold);
  margin: 0 0 10px;
  font-weight: 600;
}

.product-sold {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.product-footer .btn {
  padding: 9px 16px;
  font-size: 13px;
}

.product-whatsapp-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--whatsapp);
  align-self: flex-start;
}
.product-whatsapp-link:hover {
  text-decoration: underline;
}

/* Authenticity certificate row — deliberately --accent-trust (not gold),
   so "verify authenticity" reads as its own trust signal distinct from the
   price's gold-foil treatment, never a rarity/grading claim (§3.3, §7.3). */
.product-cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border-glass);
}
.product-cert-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.product-cert-verify {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-trust);
}
.product-cert-verify:hover {
  text-decoration: underline;
}

/* ---------- Loading skeletons (§3.4, §3.13) ---------- */

.skeleton-shimmer {
  background: linear-gradient(100deg, var(--surface-1) 30%, var(--surface-2) 50%, var(--surface-1) 70%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s ease-in-out infinite;
}
@keyframes skeleton-sweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-card.is-skeleton {
  pointer-events: none;
}
.product-card.is-skeleton .product-image {
  background: var(--surface-1);
}
.review-card.is-skeleton {
  pointer-events: none;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.skeleton-line--title {
  height: 16px;
  width: 70%;
}
.skeleton-line--price {
  height: 20px;
  width: 40%;
  margin-top: 8px;
}
.product-card.is-skeleton .product-body {
  padding: 18px 20px 22px;
}

/* ---------- Quickview modal (§3.10) ---------- */

.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.quickview-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quickview-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 92vw;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.quickview-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.quickview-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  z-index: 1;
}
.quickview-close:hover {
  color: var(--danger);
}

.quickview-body {
  display: flex;
  gap: 28px;
  padding: 32px;
}

.quickview-media {
  position: relative;
  flex: 0 0 42%;
  aspect-ratio: 4 / 3;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.quickview-image-wrap {
  width: 100%;
  height: 100%;
}
.quickview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quickview-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.quickview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quickview-name {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--ink-0);
}

.quickview-description {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

.quickview-info .product-sold {
  margin-top: -4px;
}

.quickview-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
}

.quickview-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.trust-chip .icon-svg {
  width: 15px;
  height: 15px;
  color: var(--accent-trust);
  flex-shrink: 0;
}

.quickview-cert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-bottom: 16px;
  border-top: 1px dashed var(--border-glass);
}

body.quickview-locked {
  overflow: hidden;
}

/* ---------- Cart / selection panel (§3.11) ---------- */

.selection-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.6);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.selection-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.selection-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-left: 1px solid var(--border-glass);
  z-index: 80;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.selection-panel.open {
  right: 0;
}

.selection-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.selection-panel-header h3 {
  margin: 0;
  color: var(--ink-0);
}
.selection-panel-header button {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}
.selection-panel-header button:hover {
  color: var(--danger);
}

.selection-empty {
  color: var(--ink-muted);
  font-size: 14px;
}

.selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}
.selection-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 13.5px;
}
.selection-row-name {
  flex: 1;
  color: var(--ink-0);
}
.selection-row-price {
  font-weight: 700;
  color: var(--accent-gold);
}
.selection-row-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-muted);
  cursor: pointer;
}
.selection-row-remove:hover {
  color: var(--danger);
}

.selection-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 2px solid var(--border-glass-strong);
  font-size: 16px;
  margin-top: 8px;
  color: var(--ink-0);
}
.selection-total-row strong {
  font-family: var(--font-display);
  font-size: 20px;
}

/* ---------- Responsive (Pass 3 components) ---------- */

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quickview-body {
    flex-direction: column;
    padding: 24px;
  }
  .quickview-media {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
