/*
 * shop_v2.css — customer journey redesign landing page.
 * Extracted from mockups/landing.html. Loaded by home_v2.html.
 *
 * Note: Bootstrap, FontAwesome and the -webkit-tap-highlight-color reset
 * are already provided by webshop/base.html / styles.css.
 */

:root {
  --warm-bg: #faf6f1;
  --warm-card: #ffffff;
  --warm-accent: #e8e0d8;
  --warm-text: #2b2824;
  --warm-muted: #8a8078;
  --warm-border: #ede5dc;
  --accent-green: #2fb477;
  --accent-green-dark: #259563;
  --accent-blue: #3b82f6;
  --accent-blue-dark: #2563eb;
  --brand: #1a1a1a;
  --soft-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --soft-shadow-hover: 0 6px 20px rgba(0,0,0,0.10);
}

/* Scope body styles so base.html's container still behaves */
body.shop-v2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--warm-bg);
  color: var(--warm-text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

/* Let the v2 layout use full width even though base.html wraps in a container */
body.shop-v2 .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0 !important;
}

/* ---------- Header ---------- */
.shop-v2 .site-header {
  background: var(--warm-bg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  background-color: rgba(250, 246, 241, 0.85);
}
.shop-v2 .header-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--warm-accent);
  border: 1.5px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-text);
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}
.shop-v2 .header-back-btn:hover { background: var(--warm-border); color: var(--warm-text); }

.shop-v2 .site-header-greeting {
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.shop-v2 .header-hi {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--warm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-v2 .header-event {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--warm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* The .shop-v2 prefix is intentionally dropped here — the offcanvas menu
 * (.shop-v2-menu) is rendered outside the .shop-v2 wrapper but reuses
 * .logo-circle with an inline size override. Without these rules the
 * inner <img> renders at its natural size and bursts out of its parent. */
.logo-circle {
  height: 44px;
  min-width: 44px;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* No background or border-radius when an image is rendered — let the
   * brand asset show as-is. The :not(:has(img)) fallback below restores
   * a circle treatment when there's no image. */
}
.logo-circle img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
/* Initials-only fallback (no logo URL): keep a small filled circle so
 * the chrome has something brand-shaped in the corner. */
.logo-circle:not(:has(img)) {
  width: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.shop-v2 .logo-initials {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.shop-v2 .menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-card);
  border: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-text);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.shop-v2 .menu-btn:hover { background: var(--warm-accent); color: var(--warm-text); }

/* ---------- Hero ---------- */
/* ---------- Scan + Store two-column layout ---------- */
.shop-v2 .scan-store-layout {
  display: flex;
  gap: 14px;
  padding: 12px 16px 4px;
  max-width: 800px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}
.shop-v2 .scan-col {
  flex: 0 1 auto;
  min-width: 0;
}
.shop-v2 .store-col {
  flex: 0 0 220px;
  width: 220px;
}
.shop-v2 .store-panel {
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.shop-v2 .store-panel-heading {
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--warm-border);
}
.shop-v2 .store-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--warm-border);
  cursor: pointer;
  color: var(--warm-text);
  font: inherit;
  text-align: left;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .store-item-btn:last-child { border-bottom: none; }
.shop-v2 .store-item-btn:hover { background: var(--warm-accent); }
.shop-v2 .store-item-btn:active { background: var(--warm-border); }
.shop-v2 .store-item-icon {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: var(--warm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--warm-muted);
  flex-shrink: 0;
}
.shop-v2 .store-item-thumb {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--warm-accent);
  flex-shrink: 0;
}
.shop-v2 .store-item-qty {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--warm-muted);
  margin-right: 6px;
  white-space: nowrap;
}
.shop-v2 .store-item-body {
  flex: 1;
  min-width: 0;
}
.shop-v2 .store-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.shop-v2 .store-item-price {
  display: block;
  font-size: 12px;
  color: var(--warm-muted);
  font-weight: 500;
  margin-top: 2px;
}
.shop-v2 .store-item-chevron {
  color: var(--warm-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.shop-v2 .store-panel-heading--cart {
  background: var(--warm-accent);
}
.shop-v2 .store-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--warm-border);
}
.shop-v2 .store-cart-item:last-of-type { border-bottom: none; }
.shop-v2 .store-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px 14px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .store-checkout-btn:hover { filter: brightness(1.1); color: #fff; }


/* On mobile, stack vertically */
@media (max-width: 640px) {
  .shop-v2 .scan-store-layout { flex-direction: column; }
  .shop-v2 .scan-col { width: 100%; }
  .shop-v2 .store-col { flex: none; width: 100%; }
}

/* Legacy hero — still used for empty state */
.shop-v2 .hero {
  padding: 24px 20px 8px;
  text-align: center;
}

.shop-v2 .greeting {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.shop-v2 .greeting-sub {
  color: var(--warm-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.shop-v2 .greeting-sub strong {
  color: var(--warm-text);
  font-weight: 600;
}

.shop-v2 .scan-frame {
  position: relative;
  display: inline-block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: var(--warm-card);
  max-width: 340px;
  width: 100%;
}
.shop-v2 .scan-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.shop-v2 .date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.shop-v2 .date-badge i { margin-right: 4px; color: var(--warm-muted); }

.shop-v2 .view-3d-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--warm-text);
  border: 1.5px solid var(--warm-text);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.shop-v2 .view-3d-btn:hover {
  background: var(--warm-text);
  color: #fff;
}

/* ---------- Section headings ---------- */
.shop-v2 .section {
  padding: 32px 20px 8px;
}
.shop-v2 .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

/* ---------- Product cards ---------- */
.shop-v2 .product-card {
  background: var(--warm-card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
  transition: box-shadow 0.25s, transform 0.25s;
  margin-bottom: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shop-v2 .product-card:hover {
  box-shadow: var(--soft-shadow-hover);
  transform: translateY(-2px);
}

.shop-v2 .product-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 14px;
  background: var(--warm-accent);
}

.shop-v2 .product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.shop-v2 .product-sub {
  color: var(--warm-muted);
  font-size: 13px;
  margin-bottom: 16px;
  min-height: 32px;
}

/* ---------- Pills ---------- */
.shop-v2 .pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.shop-v2 .pill {
  flex: 1 1 60px;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--warm-border);
  background: var(--warm-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  white-space: normal;
  word-break: break-word;
  user-select: none;
  line-height: 1.3;
}
.shop-v2 .pill:hover {
  border-color: var(--warm-text);
  color: var(--warm-text);
}
.shop-v2 .pill.active {
  background: var(--warm-text);
  color: #fff;
  border-color: var(--warm-text);
}
.shop-v2 .pill.dimmed {
  opacity: 0.55;
}
.shop-v2 .pill.owned {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--warm-accent);
  color: var(--warm-muted);
  border-style: dashed;
}
.shop-v2 .pill.owned:hover {
  border-color: var(--warm-border);
  color: var(--warm-muted);
}

/* ---------- Preview link ---------- */
.shop-v2 .preview-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 14px;
}
.shop-v2 .preview-link:hover { text-decoration: underline; color: var(--accent-blue-dark); }

/* ---------- Buttons ---------- */
.shop-v2 .btn-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
}
.shop-v2 .btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.shop-v2 .btn-add-cart {
  background: var(--accent-green);
  color: #fff;
}
.shop-v2 .btn-add-cart:hover { background: var(--accent-green-dark); color: #fff; }

.shop-v2 .btn-buy-now {
  background: var(--accent-blue);
  color: #fff;
}
.shop-v2 .btn-buy-now:hover { background: var(--accent-blue-dark); color: #fff; }

/* ---------- Event offer ---------- */
.shop-v2 .offer-card {
  background: linear-gradient(135deg, #fff4e4 0%, #ffe0c2 60%, #ffc997 100%);
  border: 2px solid #ffb577;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(255, 149, 60, 0.18);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.shop-v2 .offer-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  filter: blur(20px);
}
.shop-v2 .event-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.75);
  color: #a8510f;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.shop-v2 .offer-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #3a1e00;
  letter-spacing: -0.3px;
}
.shop-v2 .offer-desc {
  color: #6b4a2a;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 500;
}
.shop-v2 .offer-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.shop-v2 .offer-pricing .old {
  color: #9c7a5a;
  text-decoration: line-through;
  font-size: 16px;
  font-weight: 500;
}
.shop-v2 .offer-pricing .new {
  font-size: 32px;
  font-weight: 800;
  color: #3a1e00;
  letter-spacing: -0.5px;
}
.shop-v2 .offer-urgency {
  color: #8a6a45;
  font-size: 12px;
  margin-bottom: 18px;
  font-weight: 500;
}
.shop-v2 .offer-urgency i { margin-right: 4px; }

.shop-v2 .btn-deal {
  background: #2b2824;
  color: #fff;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}
.shop-v2 .btn-deal:hover {
  background: #000;
  transform: translateX(2px);
  color: #fff;
}

/* ---------- Scan card (full-width with overlaid controls) ---------- */
.shop-v2 .scan-card {
  padding: 0 16px;
  max-width: 560px;
  margin: 0 auto;
}
.shop-v2 .scan-img-wrap {
  /* Wrap hugs the image's actual rendered size (no letterboxing). */
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow-hover);
  background: var(--warm-accent);
}
.shop-v2 .scan-img {
  /* Cap height so the thumbnail strip sits above the fold (header ~64px +
     layout padding ~16px + strip ~120px + buffer ~40px). max-width/max-height
     with auto sizing lets the browser scale both dimensions proportionally
     when either bound clamps — preserving aspect ratio. */
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 240px);
  width: auto;
  height: auto;
}
.shop-v2 .scan-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Overlaid top-right: 3D button */
.shop-v2 .scan-overlay-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.shop-v2 .scan-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--warm-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.15s;
}
.shop-v2 .scan-overlay-btn:hover { background: rgba(255,255,255,1); transform: scale(1.04); }
.shop-v2 .scan-overlay-btn.active {
  background: var(--accent-blue);
  color: #fff;
}
.shop-v2 .scan-overlay-btn--muted {
  background: rgba(255,255,255,0.6);
  color: var(--warm-muted);
  cursor: default;
}
.shop-v2 .scan-overlay-btn--buy {
  background: rgba(209,250,229,0.92);
  color: var(--accent-green);
}

/* Overlaid bottom: Store group */
.shop-v2 .scan-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 24px 24px;
}
.shop-v2 .scan-store-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-v2 .scan-store-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.shop-v2 .scan-store-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-v2 .scan-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--warm-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .scan-store-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-1px);
}
.shop-v2 .scan-store-btn-icon { font-size: 18px; line-height: 1; }
.shop-v2 .scan-store-btn-label { font-size: 13px; font-weight: 700; }

/* Product pill buttons (kept for modal-trigger compatibility) */
.shop-v2 .scan-product-btn { display: none; } /* replaced by overlay buttons */

/* OLD flanking button styles — kept but unused */
.shop-v2 .scan-action-btn--buy .scan-action-icon {
  background: #d1fae5;
  color: var(--accent-green);
  position: relative;
}
.shop-v2 .scan-action-btn--buy .scan-action-icon::after {
  content: '£';
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 9px;
  font-weight: 800;
  background: var(--accent-green);
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* scan-img-wrap is now defined above with the scan-card styles */
.shop-v2 .scan-iframe[hidden],
.shop-v2 .scan-img[hidden] {
  display: none;
}

/* ---------- Product modals ---------- */
.shop-v2 .product-modal .modal-content {
  border-radius: 20px;
  border: 1px solid var(--warm-border);
  background: var(--warm-card);
  color: var(--warm-text);
  overflow: hidden;
}
.shop-v2 .product-modal .modal-header {
  border-bottom: 1px solid var(--warm-border);
  padding: 16px 20px;
}
.shop-v2 .product-modal .modal-title {
  font-size: 20px;
  font-weight: 800;
}
.shop-v2 .product-modal .modal-body {
  padding: 18px 20px;
}
.shop-v2 .product-modal .modal-footer {
  border-top: 1px solid var(--warm-border);
  padding: 14px 20px;
}
.shop-v2 .product-modal-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  background: var(--warm-accent);
}
.shop-v2 .product-modal-desc {
  color: var(--warm-muted);
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.shop-v2 .product-modal .pill-row {
  margin-bottom: 4px;
}
.shop-v2 .btn-cta-price {
  font-weight: 800;
}

/* ---------- Video SKU grid (inside AI Video modal) ---------- */
.shop-v2 .video-sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}
.shop-v2 .video-sku-card {
  border-radius: 14px;
  border: 2px solid var(--warm-border);
  background: var(--warm-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .video-sku-card.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.shop-v2 .video-sku-card.owned {
  border-color: var(--accent-green);
  opacity: 0.7;
  cursor: default;
}
.shop-v2 .video-sku-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
}
.shop-v2 .video-sku-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-v2 .video-sku-thumb--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255,255,255,0.3);
}
.shop-v2 .video-sku-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 26px;
  transition: background 0.15s;
}
.shop-v2 .video-sku-play-btn:hover { background: rgba(0,0,0,0.5); }
.shop-v2 .video-sku-select-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.shop-v2 .video-sku-card.active .video-sku-select-check { display: flex; }
.shop-v2 .video-sku-name {
  padding: 6px 8px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--warm-text);
  line-height: 1.3;
}
.shop-v2 .video-sku-price {
  padding: 0 8px 8px;
  font-size: 12px;
  color: var(--warm-muted);
  font-weight: 500;
}

/* ---------- Video preview overlay ---------- */
.video-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.video-preview-overlay.active { display: flex; }
.video-preview-inner {
  position: relative;
  max-width: min(400px, 90vw);
  width: 100%;
}
.video-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.video-preview-player {
  width: 100%;
  border-radius: 16px;
  display: block;
  background: #000;
  max-height: 80vh;
  object-fit: contain;
}

/* ---------- Product pill buttons (right side of scan card) ---------- */
.shop-v2 .scan-product-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--warm-card);
  border: 1.5px solid var(--warm-border);
  border-radius: 14px;
  padding: 10px 6px 8px;
  cursor: pointer;
  color: var(--warm-text);
  font: inherit;
  box-shadow: var(--soft-shadow);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .scan-product-btn:hover {
  background: var(--warm-text);
  border-color: var(--warm-text);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow-hover);
}
.shop-v2 .scan-product-btn-icon {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.shop-v2 .scan-product-btn-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

/* ---------- Scan Strip (multi-scan horizontal picker) ---------- */
/* Centred under the scan card */
.shop-v2 .scan-strip-wrap {
  padding: 0 0 4px;
  margin: 6px 0 0;
}
.shop-v2 .scan-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-v2 .scan-strip::-webkit-scrollbar { display: none; }

.shop-v2 .scan-strip-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--warm-muted);
}
.shop-v2 .scan-strip-img {
  width: 72px;
  height: 88px;         /* portrait aspect to match scan preview */
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 2px solid var(--warm-border);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.shop-v2 .scan-strip-placeholder {
  background: var(--warm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-muted);
  font-size: 22px;
}
.shop-v2 .scan-strip-item:hover .scan-strip-img {
  border-color: var(--warm-text);
  transform: scale(1.04);
}
.shop-v2 .scan-strip-item.active .scan-strip-img {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.shop-v2 .scan-strip-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.shop-v2 .scan-strip-item.active .scan-strip-date {
  color: var(--accent-blue);
}

/* ---------- Deliverables (per-scan items: videos + physical orders) ---------- */
.shop-v2 .deliverables-section {
  max-width: 800px;
  margin: 10px auto 0;
  padding: 0 16px;
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.shop-v2 .deliverables-heading {
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warm-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--warm-border);
  margin: 0 -16px;
  padding-left: 16px;
}
.shop-v2 .deliverable-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--warm-border);
  text-decoration: none;
  color: var(--warm-text);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-v2 .deliverable-row:last-child { border-bottom: none; }
.shop-v2 a.deliverable-row:hover { background: var(--warm-accent); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.shop-v2 .deliverable-row--pending { cursor: default; opacity: 0.75; }
.shop-v2 .deliverable-thumb {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--warm-accent);
}
.shop-v2 .deliverable-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--warm-muted);
}
.shop-v2 .deliverable-body { flex: 1; min-width: 0; }
.shop-v2 .deliverable-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-v2 .deliverable-status { font-size: 12px; margin-top: 2px; }
.shop-v2 .deliverable-status.ready { color: var(--accent-green-dark); }
.shop-v2 .deliverable-status.waiting { color: #a8510f; }
.shop-v2 .deliverable-play { color: var(--accent-blue); font-size: 14px; flex-shrink: 0; }
.shop-v2 .deliverable-wait { color: var(--warm-muted); font-size: 14px; flex-shrink: 0; }

/* ---------- Activity (legacy, kept for reference) ---------- */
.shop-v2 .activity-card {
  background: var(--warm-card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--warm-border);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}
.shop-v2 .activity-card:hover {
  box-shadow: var(--soft-shadow-hover);
  transform: translateY(-1px);
  color: inherit;
}
.shop-v2 .activity-card.no-link {
  cursor: default;
}
.shop-v2 .activity-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--warm-accent);
}
.shop-v2 .activity-body {
  flex: 1;
  min-width: 0;
}
.shop-v2 .activity-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.shop-v2 .activity-status {
  font-size: 12px;
  color: var(--warm-muted);
}
.shop-v2 .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.shop-v2 .status-badge.ready {
  background: #e8f7f0;
  color: var(--accent-green-dark);
}
.shop-v2 .status-badge.production {
  background: #e7efff;
  color: var(--accent-blue-dark);
}
.shop-v2 .status-badge.waiting {
  background: #fff4e4;
  color: #a8510f;
}
.shop-v2 .activity-chevron {
  color: var(--warm-muted);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Cart page ---------- */
.shop-v2 .cart-page {
  padding: 12px 16px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.shop-v2 .cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.shop-v2 .cart-empty-icon { font-size: 56px; margin-bottom: 12px; }
.shop-v2 .cart-empty-title { font-size: 20px; font-weight: 700; color: var(--warm-text); }

.shop-v2 .cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.shop-v2 .cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  padding: 12px 14px;
}
.shop-v2 .cart-item-img {
  width: 60px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--warm-accent);
}
.shop-v2 .cart-item-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--warm-muted);
}
.shop-v2 .cart-item-body {
  flex: 1;
  min-width: 0;
}
.shop-v2 .cart-item-product {
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-text);
}
.shop-v2 .cart-item-sku {
  font-size: 12px;
  color: var(--warm-muted);
  margin-top: 2px;
}
.shop-v2 .cart-item-scan {
  font-size: 11px;
  color: var(--warm-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-v2 .cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.shop-v2 .cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--warm-text);
}
.shop-v2 .cart-item-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid var(--warm-border);
  border-radius: 999px;
  padding: 2px;
  background: var(--warm-bg);
}
.shop-v2 .cart-qty-form { margin: 0; line-height: 0; }
.shop-v2 .cart-qty-btn {
  background: none;
  border: none;
  color: var(--warm-text);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.shop-v2 .cart-qty-btn:hover:not(:disabled) { background: var(--warm-accent); }
.shop-v2 .cart-qty-btn:disabled { color: var(--warm-muted); cursor: not-allowed; opacity: 0.5; }
.shop-v2 .cart-qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-text);
}

.shop-v2 .cart-remove-form { margin: 0; }
.shop-v2 .cart-remove-btn {
  background: none;
  border: none;
  color: var(--warm-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}
.shop-v2 .cart-remove-btn:hover { color: #e53e3e; }

.shop-v2 .cart-summary {
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shop-v2 .cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--warm-muted);
}
.shop-v2 .cart-summary-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--warm-text);
  padding-top: 6px;
  border-top: 1px solid var(--warm-border);
}
/* ---------- Account page ---------- */
.shop-v2 .account-hero {
  text-align: center;
  padding: 24px 16px 16px;
}
.shop-v2 .account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.shop-v2 .account-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--warm-text);
}
.shop-v2 .account-email {
  font-size: 13px;
  color: var(--warm-muted);
  margin-top: 2px;
}
.shop-v2 .account-card {
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  margin: 16px 0;
  overflow: hidden;
}
.shop-v2 .account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--warm-border);
  font-size: 14px;
}
.shop-v2 .account-row:last-child { border-bottom: none; }
.shop-v2 .account-label { color: var(--warm-muted); display: flex; align-items: center; gap: 8px; }
.shop-v2 .account-value { color: var(--warm-text); font-weight: 500; text-align: right; max-width: 60%; }
.shop-v2 .account-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: background 0.15s;
}
.shop-v2 .account-signout-btn:hover { background: #fecaca; color: #b91c1c; }

/* ---------- Orders list ---------- */
.shop-v2 .orders-row {
  display: block;
  background: var(--warm-card);
  border-radius: 18px;
  border: 1px solid var(--warm-border);
  box-shadow: var(--soft-shadow);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--warm-text);
  transition: box-shadow 0.15s, transform 0.1s;
  position: relative;
  margin-bottom: 10px;
}
.shop-v2 .orders-row:hover { box-shadow: var(--soft-shadow-hover); transform: translateY(-1px); color: var(--warm-text); }
.shop-v2 .orders-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.shop-v2 .orders-row-date { font-size: 13px; font-weight: 700; }
.shop-v2 .orders-row-total { font-size: 13px; font-weight: 700; color: var(--warm-muted); }
.shop-v2 .orders-row-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 20px;
}
.shop-v2 .orders-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-v2 .orders-row-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--warm-muted);
  font-size: 12px;
}

.shop-v2 .cart-continue-link {
  text-align: center;
  font-size: 13px;
  color: var(--warm-muted);
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.shop-v2 .cart-continue-link:hover { color: var(--warm-text); }

/* ---------- Offcanvas Menu ---------- */
.shop-v2-menu .offcanvas-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--warm-border);
}
.shop-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.shop-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--warm-text);
  text-decoration: none;
  transition: background 0.15s;
}
.shop-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--warm-muted);
  font-size: 15px;
}
.shop-menu-item:hover {
  background: var(--warm-accent);
  color: var(--warm-text);
}
.shop-menu-badge {
  margin-left: auto;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}
.shop-menu-divider {
  height: 1px;
  background: var(--warm-border);
  margin: 8px 0;
}
.shop-menu-logout {
  color: #dc3545;
}
.shop-menu-logout i {
  color: #dc3545;
}

/* ---------- Footer ---------- */
.shop-v2 .site-footer {
  padding: 40px 20px 20px;
  text-align: center;
}
.shop-v2 .footer-logo {
  display: inline-block;
  opacity: 0.7;
}
.shop-v2 .footer-logo img {
  max-height: 28px;
  vertical-align: middle;
}
.shop-v2 .footer-note {
  color: var(--warm-muted);
  font-size: 11px;
  margin-top: 12px;
}

/* Forms that wrap pills/buttons should not add default spacing */
.shop-v2 .pill-form {
  display: contents;
}

/* When a .pill-form wraps the modal body+footer, contents display keeps them
   rendering as direct modal children, so no override needed. */

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .shop-v2 .section,
  .shop-v2 .hero,
  .shop-v2 .site-header,
  .shop-v2 .site-footer {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .shop-v2 .greeting { font-size: 34px; }
}

/* ---------- Dark theme variant ---------- */
html.theme-dark .shop-v2,
html[data-bs-theme='dark'] .shop-v2 {
  --warm-bg: #1c1c2e;
  --warm-card: #2d2d44;
  --warm-accent: #3d3d5c;
  --warm-text: #e2e8f0;
  --warm-muted: #94a3b8;
  --warm-border: #3d3d5c;
  --brand: #e2e8f0;
  --soft-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --soft-shadow-hover: 0 6px 20px rgba(0,0,0,0.4);
}
html.theme-dark .shop-v2 .site-header,
html[data-bs-theme='dark'] .shop-v2 .site-header {
  background-color: rgba(28, 28, 46, 0.85);
}
html.theme-dark .shop-v2 .logo-circle,
html[data-bs-theme='dark'] .shop-v2 .logo-circle {
  color: #1c1c2e;
}
html.theme-dark .shop-v2 .date-badge,
html[data-bs-theme='dark'] .shop-v2 .date-badge {
  background: rgba(45,45,68,0.92);
  color: var(--warm-text);
}
html.theme-dark .shop-v2 .footer-logo,
html[data-bs-theme='dark'] .shop-v2 .footer-logo {
  color: #1c1c2e;
}

/* ---------- Vivid theme variant ---------- */
html.theme-vivid .shop-v2 {
  --warm-bg: #fef3f7;
  --warm-card: #ffffff;
  --warm-accent: #fde4ec;
  --warm-text: #2d1b2e;
  --warm-muted: #8e6b85;
  --warm-border: #f5d0dd;
  --brand: #d946ef;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-blue: #8b5cf6;
  --accent-blue-dark: #7c3aed;
}
html.theme-vivid .shop-v2 .site-header {
  background-color: rgba(254, 243, 247, 0.85);
}
