/* Product cards, shelves, product detail, cart drawer, wishlist, waitlist, My Orders.
   Owned by the product-UI lane (A4). Loaded after style.css and shop.css. Dark site, red accent #EF2022,
   Orbitron for numbers and headings, Inter for text. Mobile first (360px). */

:root {
  --cv-violet: #8B5CF6;
  --cv-violet-dark: #6D28D9;
  --cv-amber: #F59E0B;
  --cv-green: #22C55E;
  --cv-line: rgba(255, 255, 255, 0.08);
  --cv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────────────────────────── grid + card ───────────────────────────── */
.cv-grid, .products-grid.cv-grid {
  --cv-min: 158px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--cv-min), 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .cv-grid, .products-grid.cv-grid { --cv-min: 210px; gap: 16px; } }
@media (min-width: 1100px) { .cv-grid, .products-grid.cv-grid { --cv-min: 240px; gap: 20px; } }

.cv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--cv-ease), border-color 0.25s, box-shadow 0.35s;
  animation: cvIn 0.5s var(--cv-ease) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes cvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .cv-card:hover { transform: translateY(-4px); border-color: rgba(239, 32, 34, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(239, 32, 34, 0.08); }
  .cv-card:hover .cv-img { transform: scale(1.05); }
}
.cv-card:has(.cv-title a:focus-visible) { border-color: var(--brand-red); box-shadow: 0 0 0 2px rgba(239, 32, 34, 0.35); }

.cv-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(120% 90% at 50% 18%, #262626 0%, #151515 55%, #0d0d0d 100%);
  overflow: hidden;
}
.cv-media::before { /* shimmer under the picture while it loads */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.05) 50%, transparent 80%);
  background-size: 200% 100%; animation: cvShimmer 1.4s linear infinite;
}
@keyframes cvShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.cv-media-link { position: absolute; inset: 0; display: block; }
.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform 0.5s var(--cv-ease); background: transparent; }
.cv-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2rem; }
.cv-st-sold_out .cv-img { filter: grayscale(0.85) brightness(0.7); }
.cv-st-sold_out .cv-title a { color: #a8a8a8; }

/* the one status badge */
.cv-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 99px;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.09em; line-height: 1; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.cv-badge i { font-size: 0.62rem; }
.cv-badge--preorder { background: linear-gradient(135deg, var(--cv-violet), var(--cv-violet-dark)); color: #fff; }
.cv-badge--waitlist { background: var(--cv-amber); color: #1a1100; }
.cv-badge--last { background: var(--brand-red); color: #fff; }
.cv-badge--low { background: #2a0e0f; color: #ff7a7c; border: 1px solid rgba(239, 32, 34, 0.55); }
.cv-badge--sold_out { background: #2b2b2b; color: #c4c4c4; }
.cv-badge--new { background: #fff; color: #000; }

/* heart */
.cv-heart {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 0.95rem;
  transition: transform 0.2s var(--cv-ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.cv-heart:hover { background: rgba(239, 32, 34, 0.2); border-color: rgba(239, 32, 34, 0.5); }
.cv-heart:active { transform: scale(0.9); }
.cv-heart.is-on { color: var(--brand-red); border-color: rgba(239, 32, 34, 0.5); background: rgba(239, 32, 34, 0.14); }
.cv-heart.pop i { animation: cvPop 0.42s var(--cv-ease); }
@keyframes cvPop { 0% { transform: scale(0.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }

.cv-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 12px; flex: 1; }
.cv-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #8d8d8d; }
.cv-meta > span:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.cv-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #666; vertical-align: middle; margin: 0 3px; }
@media (max-width: 639px) { .cv-meta { letter-spacing: 0.03em; } .cv-dot { margin: 0 2px; } } /* so the language still fits beside the shelf name on a narrow card */
.cv-hand { position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none; max-width: calc(100% - 20px); padding: 4px 9px; border-radius: 99px; background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(239, 32, 34, 0.55); color: #ff8a8c; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cv-title { font-size: 0.9rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 639px) { .cv-title { -webkit-line-clamp: 4; min-height: 5.4em; } } /* a narrow card needs the room: two lines cut "Case x6" and "(Limited Edition)" off the name */
.cv-title a { color: #f2f2f2; }
.cv-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* the whole card is the link */
.cv-title a:focus-visible { outline: none; }

.cv-notes { display: flex; flex-direction: column; gap: 3px; font-size: 0.72rem; color: #9a9a9a; }
.cv-note { display: flex; align-items: center; gap: 6px; }
.cv-note i { width: 12px; text-align: center; font-size: 0.68rem; color: #777; }
.cv-note--date { color: #c3b0ff; }
.cv-note--date i { color: var(--cv-violet); }

.cv-chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.cv-chips li { font-size: 0.64rem; padding: 2px 8px; border-radius: 99px; background: rgba(239, 32, 34, 0.1); color: #ff9a9c; border: 1px solid rgba(239, 32, 34, 0.2); }

.cv-foot { margin-top: auto; padding-top: 2px; }
.cv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.cv-now { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: 0.01em; }
.cv-price.is-sale .cv-now { color: var(--brand-red-light); }
.cv-was { font-size: 0.74rem; color: #777; }
.cv-pct { font-size: 0.64rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(34, 197, 94, 0.14); color: #4ade80; }

.cv-act {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: #fff;
  transition: transform 0.15s var(--cv-ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.2s;
}
.cv-act i { font-size: 0.82rem; }
.cv-act:active:not(:disabled) { transform: scale(0.97); }
.cv-act--add { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); box-shadow: 0 6px 18px rgba(239, 32, 34, 0.25); }
.cv-act--add:hover:not(:disabled) { box-shadow: 0 8px 26px rgba(239, 32, 34, 0.45); }
.cv-act--preorder { background: linear-gradient(135deg, var(--cv-violet), var(--cv-violet-dark)); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25); }
.cv-act--preorder:hover:not(:disabled) { box-shadow: 0 8px 26px rgba(139, 92, 246, 0.45); }
.cv-act--waitlist { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.55); color: #fbbf24; }
.cv-act--waitlist:hover { background: rgba(245, 158, 11, 0.16); }
.cv-act--notify { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.18); color: #e6e6e6; }
.cv-act--notify:hover { background: rgba(255, 255, 255, 0.09); }
.cv-act.is-soft { color: #4ade80; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.07); }
.cv-act:disabled { background: #1b1b1b; color: #8a8a8a; box-shadow: none; cursor: not-allowed; border: 1px solid rgba(255, 255, 255, 0.06); }
.cv-act:focus-visible, .cv-heart:focus-visible, .pdv-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cv-card--mystery { background: radial-gradient(120% 70% at 50% 0%, rgba(239, 32, 34, 0.14), transparent 60%), linear-gradient(180deg, #151515, #0e0e0e); border-color: rgba(239, 32, 34, 0.28); }

/* compact row (search results) */
.cv-ctx-search { background: transparent; border: 0; border-radius: 12px; animation: none; }
.cv-search-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; }
.cv-search-row:hover, .cv-search-row:focus-visible { background: rgba(255, 255, 255, 0.05); outline: none; }
.cv-search-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; background: #1a1a1a; overflow: hidden; }
.cv-search-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cv-search-title { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-search-sub { font-size: 0.7rem; color: #8d8d8d; display: flex; align-items: center; gap: 6px; }
.cv-search-sub .cv-badge { position: static; padding: 3px 7px; font-size: 0.56rem; box-shadow: none; }
.cv-search-price { font-family: 'Orbitron', monospace; font-size: 0.82rem; font-weight: 700; }

/* skeleton + empty */
.cv-skel { pointer-events: none; animation: none; }
.cv-skel .cv-body i { display: block; height: 12px; border-radius: 6px; background: #1f1f1f; }
.cv-skel .cv-body i.s { width: 55%; }
.cv-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--text-muted); }
.cv-empty > i { font-size: 2.4rem; opacity: 0.35; margin-bottom: 14px; display: block; }
.cv-empty h4 { font-family: 'Orbitron', monospace; font-size: 1rem; color: var(--text-secondary); margin-bottom: 6px; }
.cv-empty p { font-size: 0.86rem; margin-bottom: 16px; }

/* ───────────────────────────── shelf ───────────────────────────── */
.cv-shelf { margin: 28px 0; }
.cv-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cv-shelf-title { font-family: 'Orbitron', monospace; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 800; }
.cv-shelf-sub { font-size: 0.82rem; color: var(--text-secondary); margin-top: 3px; }
.cv-shelf-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.cv-shelf-all { font-size: 0.82rem; font-weight: 700; color: var(--brand-red-light); display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; min-height: 44px; }
.cv-shelf-all:hover { color: #fff; }
.cv-shelf-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cv-line); color: #ddd; display: none; place-items: center; transition: background 0.2s, border-color 0.2s; }
.cv-shelf-arrow:hover { background: rgba(239, 32, 34, 0.15); border-color: rgba(239, 32, 34, 0.5); }
@media (hover: hover) and (min-width: 900px) { .cv-shelf-arrow { display: grid; } }
.cv-shelf-track { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #333 transparent; outline-offset: 4px; }
.cv-shelf-item { flex: 0 0 min(232px, 62vw); scroll-snap-align: start; display: flex; }
.cv-shelf-item > .cv-card { width: 100%; }

/* ───────────────────────────── product detail ───────────────────────────── */
#product-modal.product-modal {
  width: min(1080px, 96vw); max-height: 92vh; max-height: 92dvh;
  border-radius: 22px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, 0.09);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent;
}
#product-modal .modal-close { position: sticky; top: 12px; float: right; margin: 12px 12px -48px 0; z-index: 30; background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(8px); width: 44px; height: 44px; }
.pdv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); clear: both; }
.pdv > * { min-width: 0; }
.pdv-gallery { padding: 28px; background: radial-gradient(90% 70% at 50% 0%, rgba(239, 32, 34, 0.08), transparent 70%), #111; border-right: 1px solid var(--cv-line); }
.pdv-gallery-in { position: sticky; top: 0; }
#product-modal:focus { outline: none; }
.pdv-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 18%, #292929 0%, #161616 55%, #0d0d0d 100%); border: 1px solid var(--cv-line); }
.pdv-stage.is-zoomable { cursor: zoom-in; }
.pdv-stage .cv-badge { top: 14px; left: 14px; font-size: 0.7rem; padding: 7px 12px 7px 10px; }
.pdv-main { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.25s ease-out; will-change: transform; }
.pdv-stage.is-zooming .pdv-main { transform: scale(2.2); }
.pdv-emoji { font-size: 6rem; }
.pdv-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 10, 10, 0.65); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; }
.pdv-zoom:hover { background: rgba(239, 32, 34, 0.3); }
.pdv-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.pdv-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #1a1a1a; }
.pdv-thumb.is-on { border-color: var(--brand-red); }
.pdv-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdv-info { padding: 34px 32px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pdv-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 0.74rem; color: #8d8d8d; padding-right: 48px; }
.pdv-crumbs a { color: #bdbdbd; padding: 6px 0; }
.pdv-crumbs a:hover { color: var(--brand-red-light); }
.pdv-crumbs i { font-size: 0.55rem; opacity: 0.5; }
.pdv-crumbs span { color: #777; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdv-hand { position: static; align-self: flex-start; max-width: none; pointer-events: auto; backdrop-filter: none; background: transparent; }
.pdv-title { font-family: 'Orbitron', monospace; font-size: clamp(1.15rem, 2.3vw, 1.6rem); font-weight: 800; line-height: 1.25; letter-spacing: 0.01em; }
.pdv-rating { margin: 0; }
.pdv-rating .rating-num small { opacity: 0.6; }
.pdv-info .pd-user-rating { margin: -4px 0 0; }
.pdv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pdv-now { font-family: 'Orbitron', monospace; font-size: 1.7rem; font-weight: 800; color: #fff; }
.pdv-price.is-sale .pdv-now { color: var(--brand-red-light); }
.pdv-price s { color: #777; font-size: 1rem; }
.pdv-vat { font-size: 0.74rem; color: #7d7d7d; margin-top: -8px; }

.pdv-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--cv-line); background: #141414; }
.pdv-status > i { margin-top: 3px; font-size: 1rem; }
.pdv-status b { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.pdv-status span { font-size: 0.8rem; color: #a6a6a6; line-height: 1.5; }
.pdv-status--available > i { color: var(--cv-green); }
.pdv-status--low, .pdv-status--last { border-color: rgba(239, 32, 34, 0.35); background: rgba(239, 32, 34, 0.07); }
.pdv-status--low > i, .pdv-status--last > i { color: var(--brand-red-light); }
.pdv-status--preorder { border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.09); }
.pdv-status--preorder > i { color: #b79cff; }
.pdv-status--waitlist { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.pdv-status--waitlist > i { color: var(--cv-amber); }
.pdv-status--sold_out > i { color: #999; }

.pdv-buy-slot { position: relative; z-index: 5; }
.pdv-buy { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--cv-line); border-radius: 16px; background: #141414; }
.pdv-msg { min-height: 0; font-size: 0.78rem; color: #a9a9a9; line-height: 1.45; }
.pdv-msg:empty { display: none; }
.pdv-msg span { display: flex; gap: 8px; align-items: flex-start; }
.pdv-msg i { margin-top: 3px; font-size: 0.72rem; }
.pdv-msg .is-warn { color: #fbbf24; }
.pdv-added { color: #4ade80; }
.pdv-link { color: #fff; text-decoration: underline; font-weight: 700; padding: 6px 4px; }
.pdv-buy-row { display: flex; gap: 10px; align-items: stretch; }
.pdv-qty { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; overflow: hidden; background: #0e0e0e; }
.pdv-qty button { width: 44px; height: 48px; color: #ddd; display: grid; place-items: center; transition: background 0.15s; }
.pdv-qty button:hover:not(:disabled) { background: rgba(239, 32, 34, 0.18); }
.pdv-qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.pdv-qty output { min-width: 34px; text-align: center; font-weight: 700; font-family: 'Orbitron', monospace; font-size: 0.95rem; }
.pdv-cta { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em; transition: transform 0.15s var(--cv-ease), box-shadow 0.25s; }
.pdv-cta em { font-style: normal; font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.82rem; opacity: 0.92; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.pdv-cta:active:not(:disabled) { transform: scale(0.98); }
.pdv-cta--add { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); box-shadow: 0 8px 24px rgba(239, 32, 34, 0.3); }
.pdv-cta--preorder { background: linear-gradient(135deg, var(--cv-violet), var(--cv-violet-dark)); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }
.pdv-cta--waitlist { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.6); color: #fbbf24; }
.pdv-cta--notify { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.22); }
.pdv-cta.is-soft { color: #4ade80; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.08); }
.pdv-cta:disabled { background: #1b1b1b; color: #8a8a8a; box-shadow: none; cursor: not-allowed; border: 1px solid rgba(255, 255, 255, 0.06); }
.pdv-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pdv-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--cv-line); color: #d6d6d6; font-size: 0.82rem; font-weight: 600; background: transparent; position: relative; }
.pdv-tool:hover { border-color: rgba(239, 32, 34, 0.45); color: #fff; }
.pdv-tool.cv-heart { position: relative; top: auto; right: auto; width: auto; height: auto; border-radius: 12px; background: transparent; backdrop-filter: none; display: inline-flex; font-size: 0.82rem; }
.pdv-tool.cv-heart::before { display: none; }
.pdv-tool.cv-heart.is-on { color: var(--brand-red-light); }
.pdv-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; font-size: 0.76rem; color: #9a9a9a; padding: 4px 0; }
.pdv-trust li { display: flex; align-items: center; gap: 7px; }
.pdv-trust i { color: var(--brand-red-light); }
.pdv-sec h3 { font-family: 'Orbitron', monospace; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 8px; }
.pdv-desc { font-size: 0.88rem; color: #b3b3b3; line-height: 1.7; white-space: pre-line; }
.pdv-specs { list-style: none; display: grid; gap: 6px; }
.pdv-specs li { display: flex; gap: 10px; font-size: 0.85rem; color: #bdbdbd; }
.pdv-specs i { color: var(--cv-green); font-size: 0.7rem; margin-top: 5px; }
.pdv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pdv-facts > div { padding: 10px 12px; border-radius: 12px; background: #141414; border: 1px solid var(--cv-line); min-width: 0; }
.pdv-facts dt { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #777; margin-bottom: 2px; }
.pdv-facts dd { font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.pdv-related { grid-column: 1 / -1; padding: 6px 28px 30px; border-top: 1px solid var(--cv-line); background: #0b0b0b; }

@media (max-width: 860px) {
  #product-modal.product-modal { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 96vh; height: 96dvh; max-height: none; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  #product-modal.product-modal.open { transform: translateY(0); }
  .pdv { grid-template-columns: minmax(0, 1fr); }
  .pdv-gallery { padding: 16px 16px 8px; border-right: 0; }
  .pdv-gallery-in { position: static; }
  .pdv-stage { aspect-ratio: 1 / 1; max-height: 54vh; margin: 0 auto; width: min(100%, 54vh); } /* stays square, so a wide screen never crops the photo */
  .pdv-info { padding: 16px 16px 24px; }
  .pdv-crumbs { padding-right: 0; }
  .pdv-buy-slot { position: sticky; bottom: 0; z-index: 6; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0, #0f0f0f 22%); }
  .pdv-buy { background: #171717; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); }
  .pdv-related { padding: 6px 16px 28px; }
}
@media (max-width: 480px) {
  .pdv-buy { padding: 12px; gap: 8px; }
  .pdv-buy-row { gap: 8px; }
  .pdv-qty button { width: 38px; }
  .pdv-qty output { min-width: 26px; font-size: 0.88rem; }
  .pdv-cta { padding: 0 10px; font-size: 0.86rem; gap: 8px; white-space: nowrap; }
  .pdv-cta > i { display: none; }
  .pdv-cta em { font-size: 0.72rem; padding-left: 8px; }
  .pdv-msg { font-size: 0.74rem; }
}

/* lightbox */
.cv-lightbox { position: fixed; inset: 0; z-index: 6000; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.cv-lightbox.open { opacity: 1; }
.cv-lightbox-scroll { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.cv-lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; cursor: zoom-in; transition: transform 0.25s var(--cv-ease); }
.cv-lightbox.is-zoomed img { max-width: none; max-height: none; width: 180vmax; cursor: zoom-out; }
.cv-lightbox-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.cv-lightbox-hint { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 0.74rem; color: #888; pointer-events: none; }
.cv-lightbox.is-zoomed .cv-lightbox-hint { display: none; }

/* ───────────────────────────── waitlist / notify dialog ───────────────────────────── */
.cvw-overlay { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.2s; }
.cvw-overlay.open { opacity: 1; }
.cvw-card { position: relative; width: min(440px, 100%); max-height: 94dvh; overflow: auto; padding: 30px 24px 22px; background: linear-gradient(180deg, #171717, #0e0e0e); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(239, 32, 34, 0.08); text-align: center; transform: translateY(14px) scale(0.97); transition: transform 0.3s var(--cv-ease); }
.cvw-overlay.open .cvw-card { transform: none; }
.cvw-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; color: #aaa; display: grid; place-items: center; }
.cvw-close:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.cvw-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: var(--brand-red-light); background: rgba(239, 32, 34, 0.12); border: 1px solid rgba(239, 32, 34, 0.3); }
.cvw-card.is-done .cvw-ico { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.cvw-card h2 { font-family: 'Orbitron', monospace; font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; outline: none; }
.cvw-prod { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border-radius: 14px; background: #121212; border: 1px solid var(--cv-line); margin-bottom: 14px; }
.cvw-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #1c1c1c; }
.cvw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cvw-thumb .cv-emoji { font-size: 1.8rem; }
.cvw-prod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cvw-prod-text b { font-size: 0.86rem; line-height: 1.3; }
.cvw-prod-text small { font-size: 0.74rem; color: #c3b0ff; }
.cvw-lead { font-size: 0.86rem; color: #b0b0b0; line-height: 1.6; margin-bottom: 14px; }
.cvw-form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.cvw-form label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a9a9a; }
.cvw-form input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #0b0b0b; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.cvw-form input:focus { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(239, 32, 34, 0.2); }
.cvw-form input[aria-invalid="true"] { border-color: #ff5557; }
.cvw-err { min-height: 0; font-size: 0.78rem; color: #ff7a7c; }
.cvw-err:empty { display: none; }
.cvw-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 4px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); color: #fff; font-weight: 800; font-size: 0.92rem; box-shadow: 0 8px 24px rgba(239, 32, 34, 0.3); transition: transform 0.15s, opacity 0.2s; }
.cvw-submit:active:not(:disabled) { transform: scale(0.98); }
.cvw-submit:disabled { opacity: 0.7; cursor: progress; }
.cvw-submit.is-busy i { animation: cvSpin 0.9s linear infinite; }
@keyframes cvSpin { to { transform: rotate(360deg); } }
.cvw-fine { font-size: 0.72rem; color: #777; text-align: center; margin-top: 2px; }
.cv-form-msg { margin-top: 8px; font-size: 0.82rem; color: #4ade80; min-height: 0; }
.cv-form-msg:empty { display: none; }
.cv-form-msg.is-bad { color: #ff7a7c; }

/* ───────────────────────────── cart drawer ───────────────────────────── */
.cart-sidebar { width: min(440px, 100vw); }
.cart-header h3 { gap: 8px; }
.cart-header-count { color: var(--text-secondary); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; }
.cart-close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; border-radius: 50%; }
.cart-items { padding: 8px 20px 16px; overscroll-behavior: contain; }
.cart-items .cart-empty { padding: 56px 16px; }
.cart-item.cv-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; align-items: start; }
.cv-line .cart-item-image { width: 64px; height: 64px; position: relative; border-radius: 12px; background: radial-gradient(120% 90% at 50% 18%, #262626, #121212); }
.cv-line .cart-item-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.cv-line-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cv-line .cart-item-info { flex: none; }
.cv-line .cart-item-name { display: -webkit-box; font-size: 0.86rem; line-height: 1.35; color: #f0f0f0; margin-bottom: 4px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-line-pre { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 3px 9px; border-radius: 99px; font-size: 0.66rem; font-weight: 700; color: #cdbcff; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.35); max-width: 100%; }
.cv-line-note { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 0.7rem; color: #8d8d8d; }
.cv-line-note.is-max { color: #fbbf24; }
.cv-line .cart-item-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 0; }
.cv-line .cart-item-qty { gap: 2px; background: #0e0e0e; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 99px; padding: 2px; flex: none; }
.cv-line .cart-item-qty button { width: 32px; height: 32px; position: relative; }
.cv-line .cart-item-qty button::after { content: ''; position: absolute; inset: -6px; }
.cv-line .cart-item-qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.cv-line .cart-item-qty button:disabled:hover { background: var(--bg-surface); color: var(--text-secondary); }
.cv-line .cart-item-qty span { min-width: 22px; text-align: center; font-family: 'Orbitron', monospace; font-size: 0.82rem; }
.cv-line .cart-item-price { flex: 1; min-width: 0; text-align: right; font-size: 0.86rem; color: #fff; line-height: 1.25; }
.cv-line .cart-item-price small { display: block; font-family: 'Inter', sans-serif; font-size: 0.68rem; color: #777; margin-top: 2px; }
.cv-line .cart-item-remove { flex: none; width: 36px; height: 36px; margin-right: -8px; display: grid; place-items: center; font-size: 0.8rem; border-radius: 8px; position: relative; }
.cv-line .cart-item-remove::after { content: ''; position: absolute; inset: -4px; }

.cv-ship { margin: 0 20px; padding: 12px 14px; border-radius: 14px; background: #141414; border: 1px solid var(--cv-line); }
.cv-ship-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: #cfcfcf; line-height: 1.4; }
.cv-ship-row i { color: var(--brand-red-light); }
.cv-ship-row b { color: #fff; }
.cv-ship-row em { display: block; font-style: normal; font-size: 0.72rem; color: #8d8d8d; }
.cv-ship-track { height: 6px; margin-top: 10px; border-radius: 99px; background: #262626; overflow: hidden; }
.cv-ship-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-red), #ff7a45); transition: width 0.5s var(--cv-ease); }
.cv-ship.is-full { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.06); }
.cv-ship.is-full .cv-ship-row i { color: #4ade80; }
.cv-ship.is-full .cv-ship-track i { background: linear-gradient(90deg, #16a34a, #4ade80); }
#cart-ship:empty { display: none; }
#cart-ship { padding-top: 12px; }

.cart-footer { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }
.cart-notes:empty { display: none; }
.cart-notes { display: grid; gap: 8px; margin-bottom: 12px; }
.cv-cart-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 0.76rem; line-height: 1.5; color: #c9c9c9; background: #141414; border: 1px solid var(--cv-line); }
.cv-cart-note i { margin-top: 3px; }
.cv-cart-note b { color: #fff; }
.cv-cart-note--pre { background: rgba(139, 92, 246, 0.09); border-color: rgba(139, 92, 246, 0.4); }
.cv-cart-note--pre i { color: #b79cff; }
.cv-cart-note--warn { background: rgba(245, 158, 11, 0.09); border-color: rgba(245, 158, 11, 0.45); color: #f6d49a; }
.cv-cart-note--warn i { color: var(--cv-amber); }
.cart-fineprint { font-size: 0.72rem; color: #777; margin: -8px 0 12px; }
.cart-total span:first-child { color: #cfcfcf; }
.cart-footer .btn-full { min-height: 50px; font-weight: 800; }

.cv-fly { position: fixed; z-index: 9000; width: 60px; height: 60px; object-fit: contain; border-radius: 12px; background: #151515; border: 1px solid rgba(239, 32, 34, 0.5); pointer-events: none; box-shadow: 0 8px 30px rgba(239, 32, 34, 0.35); }
.cv-bump { animation: cvBump 0.4s var(--cv-ease); }
@keyframes cvBump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ───────────────────────────── wishlist page ───────────────────────────── */
.cv-wl { max-width: 1400px; margin: 0 auto; padding: 24px 16px 56px; }
.cv-wl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.cv-wl-title { font-family: 'Orbitron', monospace; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; }
.cv-wl-sub { color: var(--text-secondary); font-size: 0.86rem; margin-top: 4px; }
.cv-wl-all { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 99px; background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark)); color: #fff; font-weight: 700; font-size: 0.86rem; box-shadow: 0 8px 22px rgba(239, 32, 34, 0.3); }
.cv-wl .cv-empty .btn { display: inline-flex; }

/* ───────────────────────────── my orders ───────────────────────────── */
.orders-loading { padding: 34px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.orders-list { display: grid; gap: 14px; }
.order-card { background: #121212; border: 1px solid var(--cv-line); border-radius: 16px; padding: 16px; transition: border-color 0.25s; }
.order-card:hover { border-color: rgba(239, 32, 34, 0.25); }
.order-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.order-card-id { display: flex; align-items: center; gap: 8px; font-family: 'Orbitron', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: #f0f0f0; word-break: break-all; }
.order-card-id i { color: var(--brand-red-light); }
.order-date { font-size: 0.74rem; color: #8d8d8d; margin-top: 4px; }
.order-status { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.order-status-ok { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.order-status-ship { color: #60a5fa; background: rgba(59, 130, 246, 0.14); }
.order-status-done { color: #4ade80; background: rgba(34, 197, 94, 0.18); }
.order-status-warn { color: #fbbf24; background: rgba(245, 158, 11, 0.13); }
.order-status-bad { color: #f87171; background: rgba(239, 68, 68, 0.13); }
.order-hint { font-size: 0.78rem; color: #fbbf24; margin: -4px 0 12px; line-height: 1.5; }
.order-steps { display: flex; list-style: none; margin: 4px 0 14px; font-size: 0.68rem; color: #777; }
.order-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.order-steps li::before { content: ''; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: #2a2a2a; }
.order-steps li:first-child::before { display: none; }
.order-steps li span { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: #2a2a2a; border: 2px solid #0f0f0f; box-shadow: 0 0 0 1px #3a3a3a; }
.order-steps li.is-done, .order-steps li.is-now { color: #ddd; }
.order-steps li.is-done span, .order-steps li.is-now span { background: var(--brand-red); box-shadow: 0 0 0 1px rgba(239, 32, 34, 0.6), 0 0 12px rgba(239, 32, 34, 0.5); }
.order-steps li.is-done::before, .order-steps li.is-now::before { background: var(--brand-red); }
.order-track { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.3); font-size: 0.78rem; color: #bcd3f6; }
.order-track b { color: #fff; font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.order-track span { flex: 1; min-width: 0; }
.order-copy { flex: none; padding: 8px 12px; min-height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.74rem; font-weight: 700; }
.order-lines { list-style: none; display: grid; gap: 10px; }
.order-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.order-thumb { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
.order-thumb .cv-img { padding: 3px; }
.order-thumb .cv-emoji { font-size: 1.3rem; }
.order-line-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-line-name { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.order-line-qty { font-size: 0.72rem; color: #8d8d8d; }
.order-pre { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 0.68rem; font-weight: 700; color: #cdbcff; }
.order-line-total { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.order-card-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--cv-line); font-size: 0.82rem; color: #a6a6a6; }
.order-card-total strong { font-family: 'Orbitron', monospace; font-size: 1rem; color: #fff; }
.order-more { margin-top: 10px; font-size: 0.78rem; color: #a6a6a6; }
.order-more summary { cursor: pointer; padding: 10px 0; min-height: 44px; display: flex; align-items: center; color: #cfcfcf; font-weight: 600; }
.order-more dl { display: grid; gap: 8px; padding-bottom: 6px; }
.order-more dl > div { display: flex; justify-content: space-between; gap: 14px; }
.order-more dt { color: #777; flex: none; }
.order-more dd { text-align: right; overflow-wrap: anywhere; }
.order-actions { margin-top: 8px; display: flex; justify-content: flex-end; }

/* ───────────────────────────── reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cv-card, .cv-media::before, .cv-heart.pop i, .cv-bump, .cvw-submit.is-busy i { animation: none !important; }
  .cv-card, .cv-img, .pdv-main, .cv-ship-track i, .cvw-card, .cv-lightbox, .cvw-overlay { transition: none !important; }
  #product-modal.product-modal { transition: opacity 0.01s !important; }
}
