/* ══════════════════════════════════════════════════════════════
   PokeVault Store — Amazon-style TCG/e-commerce styling
   ══════════════════════════════════════════════════════════════ */

/* ─── SHOP NOW HERO BUTTON (home page) ────────────────── */
.pv-shopnow-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}
.pv-shopnow-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pv-shopnow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(245,197,66,0.25);
}
.pv-shopnow-btn:hover {
  background: #f7d470;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,197,66,0.35);
}
.pv-shopnow-btn:active { transform: translateY(0); }
.pv-shopnow-tagline {
  font-size: 0.82rem;
  color: var(--fg-muted);
}
@media (max-width: 480px) {
  .pv-shopnow-bar { padding: 12px 16px; }
  .pv-shopnow-btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 1rem; }
  .pv-shopnow-tagline { display: none; }
}

/* ─── HEADER ─────────────────────────────────────────────── */
.pv-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.pv-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.pv-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.pv-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pv-trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}
.trust-icon {
  color: var(--gold);
  font-size: 0.65rem;
}
.pv-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.pv-nav-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.pv-nav-link:hover { color: var(--fg); }
.pv-nav-link.active { color: var(--fg); }

/* ─── CART LINK ─────────────────────────────────────────── */
.pv-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.pv-cart-link:hover { color: var(--fg); }
.pv-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
  line-height: 1;
}

/* ─── STANDALONE CART ICON BUTTON ─────────────────────── */
.pv-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.15s, border-color 0.2s;
  position: relative;
  padding: 8px;
  flex-shrink: 0;
}
.pv-cart-btn:hover {
  color: var(--fg);
  background: var(--surface-raised);
  border-color: var(--border);
}
.pv-cart-btn svg { display: block; }
.pv-cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}
.pv-cart-badge.visible { display: inline-flex; }

/* ─── MOBILE NAV TOGGLE ──────────────────────────────────── */
.pv-nav-toggle { display: none; }
.pv-nav-mobile { display: none; }
@media (max-width: 768px) {
  .pv-nav { display: none !important; }
  .pv-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }
  .pv-nav-mobile {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    flex-direction: column;
    gap: 4px;
    z-index: 199;
  }
  .pv-nav-mobile.open { display: flex; }
  .pv-nav-mobile a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--fg-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .pv-nav-mobile a:last-child { border-bottom: none; }
}

/* ─── CATEGORY NAV ───────────────────────────────────────── */
.pv-category-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 190;
}
.pv-category-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  min-height: 48px;
}
.pv-cat-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 16px;
}
.pv-cat-toggle svg { flex-shrink: 0; color: var(--fg-muted); }
.pv-cat-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.pv-cat-list::-webkit-scrollbar { display: none; }
.pv-cat-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.pv-cat-btn:hover { color: var(--fg); background: var(--surface-raised); }
.pv-cat-btn.active {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: rgba(245,197,66,0.3);
  font-weight: 600;
}

/* ─── HERO ──────────────────────────────────────────────── */
.pv-hero {
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.pv-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(245,197,66,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.pv-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.pv-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin: 16px 0 12px;
  letter-spacing: -0.03em;
}
.pv-hero p { font-size: 1rem; color: var(--fg-muted); max-width: 480px; margin: 0 auto; }

/* ─── CONTROLS: SORT + FILTER BAR ─────────────────────── */
.pv-controls {
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 112px; /* header + cat nav */
  z-index: 180;
}
.pv-controls-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.pv-sort-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.pv-sort-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.pv-sort-select {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 36px 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888a0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  min-width: 200px;
  transition: border-color 0.2s;
}
.pv-sort-select:focus { outline: none; border-color: var(--gold); }
.pv-filter-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

/* ─── CATALOG ──────────────────────────────────────────── */
.pv-catalog { padding: 40px 24px 80px; }
.pv-catalog-inner { max-width: 1280px; margin: 0 auto; }
.pv-count-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.pv-count-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.pv-cat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── PRODUCT GRID ─────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ─── PRODUCT CARD (Amazon Mobile Style) ─────────────── */
.product-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.product-card:hover {
  border-color: rgba(245,197,66,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}
.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Card-level clickable links (image + set badge) */
.card-image-link {
  display: block;
  text-decoration: none;
}
.card-set-link {
  text-decoration: none;
  color: var(--fg-dim);
  transition: color 0.15s;
}
.card-set-link:hover { color: var(--fg-muted); }

/* Card image area — 60% of card height */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #181825 0%, #121220 100%);
  overflow: hidden;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.product-card:hover .card-image {
  transform: scale(1.05);
}
.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e30, #161625);
}
.placeholder-set {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(245,197,66,0.2);
  letter-spacing: 0.05em;
}

/* Stock badge — top right of image, Amazon style */
.card-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  backdrop-filter: blur(8px);
}
.card-stock-badge.in  { background: rgba(0,200,83,0.85); color: #003d14; }
.card-stock-badge.low { background: rgba(245,197,66,0.9); color: #3d2800; }
.card-stock-badge.out { background: rgba(255,69,96,0.85); color: #3d000d; }

/* Card text body — remaining ~40% */
.card-body {
  padding: 12px 14px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.product-card:hover .card-title {
  color: rgba(255,255,255,0.85);
}
.card-set-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

/* Pricing block — bold price, struck-through MSRP */
.card-pricing {
  margin-top: auto;
}
.price-msrp {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 2px;
  text-decoration: line-through;
}
.price-pv {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* Add to Cart button — full width, bottom of card */
.card-add-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 10px 14px 14px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}
.card-add-btn:hover { background: #f7d470; }
.card-add-btn:active { transform: scale(0.97); }
.card-add-btn.out-of-stock {
  background: var(--surface);
  color: var(--fg-dim);
  cursor: not-allowed;
  border: 1px solid var(--border);
}
.card-add-btn.out-of-stock:hover { background: var(--surface); transform: none; }

/* ─── QUICK VIEW BUTTON ─────────────────────────────── */
.card-quick-view-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 10, 15, 0.82);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s, color 0.15s, border-color 0.15s;
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: 5;
}
.product-card:hover .card-quick-view-btn,
.product-card:focus-within .card-quick-view-btn {
  opacity: 1;
  pointer-events: auto;
}
.card-quick-view-btn:hover {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(245,197,66,0.3);
}

/* ─── STATES ──────────────────────────────────────────── */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
}
.empty-icon { margin-bottom: 8px; }
.empty-state p { color: var(--fg-muted); font-size: 0.95rem; }

/* ─── FOOTER ──────────────────────────────────────────── */
.pv-footer {
  padding: 56px 24px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.pv-footer-inner { max-width: 1280px; margin: 0 auto; }
.pv-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.pv-footer-brand { display: flex; flex-direction: column; gap: 8px; }
.pv-footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.pv-footer-brand p { font-size: 0.82rem; color: var(--fg-dim); max-width: 260px; }
.pv-trust-signals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.trust-signal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.trust-signal-icon { color: var(--gold); font-size: 0.7rem; }
.pv-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pv-footer-links a {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.pv-footer-links a:hover { color: var(--fg); }
.footer-sep { color: var(--border); font-size: 0.8rem; }
.pv-disclaimer { font-size: 0.72rem; color: var(--fg-dim); }
.pv-copyright { font-size: 0.72rem; color: var(--fg-dim); }
.pv-price-timestamp { font-size: 0.68rem; color: var(--fg-dim); opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════
   QUICK VIEW MODAL
   ══════════════════════════════════════════════════════════════ */

/* Overlay backdrop */
.qv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: qvFadeIn 0.15s ease-out;
}
.qv-overlay.open { display: flex; }
@keyframes qvFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal container */
.qv-modal {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: qvSlideIn 0.18s ease-out;
}
@keyframes qvSlideIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Scrollbar styling for modal */
.qv-modal::-webkit-scrollbar { width: 4px; }
.qv-modal::-webkit-scrollbar-track { background: transparent; }
.qv-modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Close button */
.qv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.qv-close:hover { background: var(--surface); color: var(--fg); }

/* Modal product image */
.qv-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #181825 0%, #121220 100%);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.qv-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qv-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(245, 197, 66, 0.15);
}
.qv-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
}
.qv-stock-badge.in  { background: rgba(0,200,83,0.85); color: #003d14; }
.qv-stock-badge.low { background: rgba(245,197,66,0.9); color: #3d2800; }
.qv-stock-badge.out { background: rgba(255,69,96,0.85); color: #3d000d; }

/* Modal body */
.qv-body {
  padding: 20px 24px 24px;
}

/* Product name + meta */
.qv-set-badge {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.qv-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Pricing row */
.qv-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.qv-price-pv {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.qv-price-msrp {
  font-size: 0.82rem;
  color: var(--fg-dim);
  text-decoration: line-through;
}

/* Top Cards section */
.qv-cards-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qv-cards-label svg { color: var(--gold); }
.qv-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.qv-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.qv-card-img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-raised);
  flex-shrink: 0;
}
.qv-card-placeholder {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  color: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.qv-card-info { flex: 1; min-width: 0; }
.qv-card-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qv-card-price {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}
.qv-cards-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin-bottom: 20px;
  padding: 12px 0;
}
.qv-cards-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.qv-cards-empty {
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin-bottom: 20px;
  padding: 8px 0;
}

/* Action buttons */
.qv-actions {
  display: flex;
  gap: 10px;
}
.qv-view-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.qv-view-btn:hover { transform: translateY(-1px); }
.qv-view-btn:active { transform: scale(0.97); }
.qv-view-details {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
}
.qv-view-details:hover { background: var(--surface-raised); border-color: rgba(255,255,255,0.1); }
.qv-add-cart {
  flex: 1;
  background: var(--gold);
  color: #0a0a0f;
  border: none;
  cursor: pointer;
}
.qv-add-cart:hover { background: #f7d470; }
.qv-add-cart:active { transform: scale(0.97); }
.qv-add-cart.added {
  background: #00c853;
  color: #fff;
}
.qv-add-cart.out-of-stock {
  background: var(--surface);
  color: var(--fg-dim);
  cursor: not-allowed;
}

/* ─── SEARCH EXPAND ─────────────────────────────────────── */
.pv-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.pv-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.15s, border-color 0.2s;
  padding: 8px;
  flex-shrink: 0;
}
.pv-search-btn:hover {
  color: var(--fg);
  background: var(--surface-raised);
  border-color: var(--border);
}
.pv-search-btn svg { display: block; }

/* Desktop: inline expand (no overlay) */
.pv-search-field {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  height: 40px;
  width: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
  flex-shrink: 0;
}
.pv-search-field.open {
  display: flex;
  width: 220px;
  border-color: rgba(245, 197, 66, 0.4);
}

.pv-search-back {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.pv-search-back:hover { color: var(--fg); }

.pv-search-icon {
  color: var(--fg-muted);
  flex-shrink: 0;
}
.pv-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 100%;
  min-width: 0;
}
.pv-search-input::placeholder { color: var(--fg-dim); }
.pv-search-input::-webkit-search-cancel-button { display: none; }
.pv-search-clear {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.pv-search-clear:hover { color: var(--fg); }

/* ─── MOBILE SEARCH OVERLAY ────────────────────────────── */
/* Mobile: search opens as a full-width fixed bar */
@media (max-width: 900px) {
  .pv-search-wrap { position: static; }

  /* Backdrop covers the page behind the search bar */
  .pv-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1998;
  }
  .pv-search-backdrop.open { display: block; }

  /* Mobile: search bar becomes a fixed top bar */
  .pv-search-field {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1999;
    width: 100%;
    height: 60px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    animation: pv-search-slide-in 0.2s ease-out;
  }
  .pv-search-field.open {
    display: flex;
    width: 100%;
    border-color: var(--border);
  }

  /* Dropdown is fixed at the bottom, full-width, flush to screen edges */
  .pv-search-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 2000;
  }
}

@keyframes pv-search-slide-in {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── AUTOCOMPLETE DROPDOWN ─────────────────────────────── */
.pv-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 1000;
  max-height: 480px;
  overflow-y: auto;
}

.pv-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.1s;
  min-height: 56px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.pv-search-result:last-of-type { border-bottom: none; }
.pv-search-result:hover,
.pv-search-result.pv-result-active { background: rgba(255,255,255,0.05); }

.pv-result-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pv-result-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.pv-result-info {
  flex: 1;
  min-width: 0;
}
.pv-result-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.pv-result-set {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 1px;
}
.pv-result-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.pv-result-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
  align-self: center;
}

.pv-search-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
}

.pv-search-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pv-search-all-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.pv-search-all-link:hover { text-decoration: underline; }

/* Mobile: touch-friendly result rows */
@media (max-width: 900px) {
  .pv-search-result {
    min-height: 52px;
    padding: 12px 16px;
  }
  .pv-result-img  { width: 40px; height: 40px; }
  .pv-result-img-placeholder { width: 40px; height: 40px; }
  .pv-result-name { font-size: 0.9rem; }
}

/* Legacy breakpoints — overridden by mobile overlay above */
@media (max-width: 900px) {
  .pv-search-field.open { width: 180px; }
}
@media (max-width: 480px) {
  .pv-search-field.open { width: calc(100vw - 140px); }
}
@media (max-width: 375px) {
  .pv-search-field.open { width: calc(100vw - 120px); }
}

/* ─── MOBILE RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .pv-trust-badges { display: none; }
  /* Header: hamburger nav */
  .pv-nav { display: none; }
  .pv-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--fg-muted);
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .pv-nav-toggle:hover { background: var(--surface); color: var(--fg); }
  .pv-nav-toggle svg { display: block; }
  /* Mobile nav overlay */
  .pv-nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 300;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .pv-nav-mobile.open { display: flex; flex-direction: column; gap: 4px; }
  .pv-nav-mobile a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--fg-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
    min-height: 44px;
    line-height: 44px;
  }
  .pv-nav-mobile a:last-child { border-bottom: none; }
  .pv-nav-mobile a:hover { color: var(--fg); }
}
@media (max-width: 700px) {
  .pv-header-inner { padding: 0 16px; }
  .pv-category-nav { top: 64px; }

  /* Mobile: category nav collapses to toggle */
  .pv-category-inner { padding: 0 16px; gap: 0; }
  .pv-cat-toggle { display: flex; padding: 10px 14px; min-height: 44px; }
  .pv-cat-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px 16px;
    gap: 4px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .pv-cat-list.open { display: flex; }
  .pv-cat-btn { width: 100%; padding: 10px 12px; text-align: left; font-size: 0.9rem; }
  .pv-cat-toggle { min-width: 160px; }

  /* Controls sticky at top */
  .pv-controls { top: 112px; padding: 0 16px; }
  .pv-controls-inner { padding: 16px 0; gap: 12px; }
  .pv-sort-select { min-width: 160px; }
  .filter-select { min-width: 120px; }
  .filter-reset-wrap { width: 100%; }
  .reset-btn { width: 100%; }

  /* Catalog */
  .pv-catalog { padding: 24px 16px 60px; }

  /* Footer */
  .pv-footer-top { flex-direction: column; gap: 32px; }
  .pv-trust-signals { align-items: flex-start; }
  .pv-footer-bottom { gap: 12px; }
}
/* 480px: full-width sort/filter, product card improvements */
@media (max-width: 480px) {
  .pv-sort-wrap { width: 100%; }
  .pv-sort-select { width: 100%; }
  .pv-filter-controls { width: 100%; }
  .pv-filter-controls .filter-group { flex: 1; min-width: 120px; }

  /* Product card: ensure all text is readable, button full-width, centered */
  .product-grid { gap: 12px; }
  .card-body { padding: 10px 12px 0; }
  .card-title { font-size: 0.82rem; -webkit-line-clamp: 2; }
  .card-set-badge { font-size: 0.6rem; margin-bottom: 6px; }
  .price-msrp { font-size: 0.7rem; }
  .price-pv { font-size: 1.1rem; }
  .card-add-btn {
    width: calc(100% - 24px);
    margin: 8px 12px 12px;
    font-size: 0.8rem;
    padding: 10px 14px;
    min-height: 44px;
  }
  /* Catalog page centering */
  .pv-hero { padding: 48px 16px 36px; }
  .pv-hero-inner { text-align: center; }
  .pv-hero p { font-size: 0.9rem; }
  .pv-catalog { padding: 20px 12px 60px; }
  .pv-count-row { justify-content: center; text-align: center; }
  .pv-catalog-inner { text-align: center; }
  .pv-count-label { font-size: 0.7rem; }

  /* Nav: mobile toggle button */
  .pv-cat-toggle { min-width: 160px; font-size: 0.85rem; }
  .filter-select {
    min-width: 80px;
    font-size: 0.82rem;
    padding: 8px 30px 8px 10px;
  }
  .filter-label { font-size: 0.65rem; }
  .reset-btn {
    min-height: 36px;
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  /* Mobile nav overlay: ensure links are tap targets */
  .pv-nav-mobile a { font-size: 0.95rem; }

  /* Footer: always centered */
  .pv-footer { padding: 40px 16px 32px; }
  .pv-footer-inner { text-align: center; }
  .pv-trust-signals { align-items: center; }
  .trust-signal-item { justify-content: center; }
  .pv-footer-links { justify-content: center; }
  .pv-copyright, .pv-price-timestamp, .pv-disclaimer { text-align: center; }

  /* Shop Now bar: full-width button, centered */
  .pv-shopnow-bar-inner { flex-direction: column; gap: 12px; }
  .pv-shopnow-btn { width: 100%; justify-content: center; font-size: 0.95rem; padding: 14px 20px; }
  .pv-shopnow-tagline { display: none; }
}

/* 375px (iPhone SE) — tighter spacing, smaller fonts */
@media (max-width: 375px) {
  .pv-header-inner { padding: 0 12px; }
  .pv-logo { font-size: 1rem; }
  .pv-hero { padding: 36px 12px 28px; }
  .pv-hero h1 { font-size: 1.6rem; }
  .pv-hero p { font-size: 0.85rem; }
  .product-grid { gap: 10px; }
  .card-body { padding: 8px 10px 0; }
  .card-title { font-size: 0.78rem; }
  .card-add-btn { font-size: 0.75rem; padding: 10px 12px; min-height: 44px; }
  .pv-catalog { padding: 16px 10px 50px; }
  .pv-controls { padding: 0 12px; }
  .pv-controls-inner { gap: 10px; }
  .filter-group { min-width: 100px; }
  .pv-cat-toggle { min-width: 140px; }
}

/* ══════════════════════════════════════════════════════════════
   ADD-TO-CART MICRO-ANIMATIONS
   ══════════════════════════════════════════════════════════════ */

/* Card pulse — brief scale burst when Add to Cart is clicked */
@keyframes cardPulse {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1);    }
}
.pulse-on-add {
  animation: cardPulse 0.22s ease-out forwards;
}

/* Cart badge pop — scales up when item count increases */
@keyframes badgePop {
  0%   { transform: scale(1);    }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1);    }
}
.badge-pop {
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Cart icon bounce — translateY shake on the header cart button */
@keyframes cartBounce {
  0%   { transform: translateY(0);    }
  25%  { transform: translateY(-6px); }
  50%  { transform: translateY(-2px); }
  75%  { transform: translateY(-4px); }
  100% { transform: translateY(0);    }
}
.cart-btn-bounce {
  animation: cartBounce 0.35s ease-out forwards;
}

/* ══════════════════════════════════════════════════════════════
   CART DRAWER
   ══════════════════════════════════════════════════════════════ */
.cd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 500;
  animation: cdFadeIn 0.2s ease-out;
}
.cd-overlay.open { display: block; }
@keyframes cdFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
}
.cd-drawer.open { transform: translateX(0); }

.cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cd-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.cd-count {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 8px;
}
.cd-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cd-close:hover { background: var(--surface-raised); color: var(--fg); }

.cd-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cd-body::-webkit-scrollbar { width: 4px; }
.cd-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Empty state */
.cd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  height: 100%;
  min-height: 200px;
}
.cd-empty-icon {
  width: 56px;
  height: 56px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cd-empty h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cd-empty p { font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 20px; }
.cd-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.cd-browse-btn:hover { background: #33eaff; }

/* Cart items */
.cd-items { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
.cd-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cd-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cd-item-img-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.cd-item-info { flex: 1; min-width: 0; }
.cd-item-set {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 4px;
}
.cd-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-item-price {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 3px;
}
.cd-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}
.cd-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.cd-qty-btn:hover { background: var(--border); color: var(--fg); }
.cd-qty-val {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg);
  min-width: 20px;
  text-align: center;
}
.cd-item-remove {
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cd-item-remove:hover { color: var(--red); background: rgba(255,69,96,0.1); }

.cd-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cd-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cd-subtotal-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.cd-subtotal-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.cd-actions { display: flex; flex-direction: column; gap: 8px; }
.cd-view-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.2s;
}
.cd-view-cart-btn:hover { background: var(--surface-raised); color: var(--fg); border-color: rgba(255,255,255,0.12); }
.cd-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.cd-checkout-btn:hover {
  background: #33eaff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}
.cd-checkout-btn:active { transform: scale(0.98); }

/* Mobile: full-width drawer */
@media (max-width: 480px) {
  .cd-drawer { width: 100vw; }
  .cd-drawer:not(.open) { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════════════════════
   AUTH MODAL DRAWER
   ══════════════════════════════════════════════════════════════ */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: authFadeIn 0.18s ease-out;
}
.auth-overlay.open { display: flex; }
@keyframes authFadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  animation: authSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes authSlideIn {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}
.auth-modal-close:hover { background: var(--surface); color: var(--fg); }

.auth-modal-body { padding: 40px 40px 36px; }

/* Tab toggle */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.auth-tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.auth-tab:hover:not(.active) { color: var(--fg); }

/* Forms */
.auth-form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.auth-form-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-form-group { margin-bottom: 18px; }
.auth-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.auth-input::placeholder { color: var(--fg-dim); opacity: 0.6; }
.auth-input.error-field { border-color: rgba(255,69,96,0.5); }

.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 48px; }
.auth-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-muted);
  font-size: 0.75rem;
  padding: 4px;
  transition: color 0.15s;
}
.auth-pw-toggle:hover { color: var(--fg); }

/* Password rules */
.auth-pw-reqs {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.auth-pw-reqs-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  margin-bottom: 6px;
  color: var(--fg-dim);
}
.auth-pw-rule {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.auth-pw-rule .rule-icon { font-size: 0.85rem; width: 12px; text-align: center; }
.auth-pw-rule.met { color: #66ffaa; }

.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  margin-top: 6px;
}
.auth-submit-btn:hover { background: #33eaff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,255,0.3); }
.auth-submit-btn:active { transform: none; }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-submit-btn.loading { opacity: 0.7; cursor: wait; }

.auth-error-msg {
  background: rgba(255,69,96,0.1);
  border: 1px solid rgba(255,69,96,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ff8099;
  font-size: 0.82rem;
  margin-bottom: 16px;
  display: none;
}
.auth-error-msg.visible { display: block; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--fg-dim);
  font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-link {
  display: block;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}
.auth-footer-link a { color: var(--accent); text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

/* Header login button */
.pv-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pv-login-btn:hover { background: #33eaff; }
.pv-login-btn:active { transform: scale(0.97); }

/* Logged-in state */
.pv-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}
.pv-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(245,197,66,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pv-user-avatar:hover { background: rgba(245,197,66,0.2); border-color: rgba(245,197,66,0.5); }
.pv-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 160px;
  z-index: 999;
  overflow: hidden;
}
.pv-user-dropdown.open { display: block; }
.pv-user-dropdown a,
.pv-user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.pv-user-dropdown a:hover,
.pv-user-dropdown button:hover { background: var(--surface-raised); color: var(--fg); }
.pv-user-dropdown .user-email {
  padding: 10px 16px 6px;
  font-size: 0.75rem;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
}
.pv-user-dropdown .logout-btn { color: #ff8099; }

/* Responsive */
@media (max-width: 480px) {
  .auth-modal { border-radius: 16px; max-height: 95vh; overflow-y: auto; }
  .auth-modal-body { padding: 32px 24px 28px; }
  .auth-modal-close { top: 12px; right: 12px; }
}