/* Hulok — Team product page */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page: #ffffff;
  --bg-section: #f7f7f5;
  --bg-card: #ffffff;
  --bg-secondary: #f5f5f3;
  --bg-tertiary: #ebeae6;
  --text-primary: #1a1a1a;
  --text-secondary: #5f5f5f;
  --text-hint: #9e9e9e;
  --border: rgba(0,0,0,0.10);
  --border-md: rgba(0,0,0,0.18);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --media-bg: radial-gradient(ellipse at 50% 30%, #f5f5f7 0%, #d8d9dd 60%, #b8babf 100%);
  --media-bg-solid: #b8babf;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Rainbow shimmer bar ── */
.rainbow-bar {
  height: 9px;
  background: linear-gradient(90deg, #F472B6, #FB923C, #FBBF24, #4ADE80, #38BDF8, #A78BFA, #F472B6);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
  position: sticky;
  top: 0;
  z-index: 200;
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ── Header ── */
.site-header {
  background: white;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 9px;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 32px;
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.logo-img { height: 34px; width: auto; display: block; }

.logo-mark {
  width: 28px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(160deg, #F472B6 0%, #FB923C 25%, #FBBF24 50%, #4ADE80 75%, #38BDF8 100%);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 16px;
  background: white;
  border-radius: 3px;
}

.logo-word { font-family: 'Poppins', var(--font); font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.7px; }

.main-nav { display: flex; gap: 4px; justify-content: center; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.main-nav a:hover { background: var(--bg-secondary); }

.header-actions { display: flex; gap: 4px; align-items: center; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  position: relative;
}
.icon-btn:hover { background: var(--bg-secondary); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #1a1a1a;
  color: white;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--bg-section);
  border-bottom: 0.5px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb span { color: var(--text-primary); font-weight: 500; }
.breadcrumb i { color: var(--text-hint); font-size: 12px; }

/* ── Product wrap ── */
.product-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* ── Media (left side) ── */
.product-media { position: sticky; top: 73px; }

.media-stage {
  background: var(--media-bg);
  background-attachment: local;
  border-radius: var(--radius-xl);
  border: 0.5px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* 3D flip container */
.case-flip-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1800 / 2724;
  perspective: 1800px;
}

.case-mockup-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.case-mockup-flip.flipped { transform: rotateY(180deg); }

.case-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.case-face-back { transform: rotateY(180deg); }

/* Case mockup with the same layered structure as studio */
.case-mockup {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1800 / 2724;
}

.layer { position: absolute; pointer-events: none; }

.bumper-color {
  top: 0.29%;
  left: 0.11%;
  width: 99.72%;
  height: 99.42%;
  border-radius: 19% / 12.3%;
  background: #1A1A1A;
  transition: background-color 0.25s ease;
}

.case-color {
  top: 6.20%;
  left: 8.97%;
  width: 82.00%;
  height: 87.67%;
  border-radius: 10% / 8.5%;
  background: #CE1141;
  transition: background-color 0.25s ease;
}

.window-bg {
  top: 18.98%;
  left: 15.36%;
  width: 68.67%;
  height: 62.26%;
  border-radius: 4% / 3%;
  background: var(--media-bg-solid);
}

.card-slot {
  top: 19.53%;
  left: 17.22%;
  width: 65.22%;
  height: 60.61%;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.card-slot:hover .card-placeholder { transform: scale(1.04); opacity: 1; }

.card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
  background: rgba(255,255,255,0.7);
  padding: 12px 14px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-placeholder i { font-size: 24px; opacity: 0.7; }

#cardImgFront, #cardImgBack {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-slot.has-card .card-placeholder { display: none; }
.card-slot.has-card #cardImgFront,
.card-slot.has-card #cardImgBack { display: block; }

.overlay-img {
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Face toggle (Front / Back flip) ── */
.face-toggle {
  display: inline-flex;
  gap: 4px;
  background: white;
  border: 0.5px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  margin: 14px auto 0;
  align-self: center;
}

.face-btn {
  padding: 7px 18px;
  border-radius: 99px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.face-btn i { font-size: 14px; }
.face-btn:hover { color: var(--text-primary); }

.face-btn.active {
  background: var(--text-primary);
  color: white;
}

/* Center the toggle within the media column */
.product-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.product-media .face-toggle {
  align-self: center;
}

/* ── Callout multi-upload actions ── */
.callout-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Thumb strip ── */
.thumb-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 120px));
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.thumb {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.thumb:hover { border-color: var(--border-md); }
.thumb.active { border-color: var(--text-primary); background: var(--bg-secondary); color: var(--text-primary); }

.thumb-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.thumb.active .thumb-icon { background: var(--bg-tertiary); }

/* ── Product info (right side) ── */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag-team {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6D28D9;
  background: rgba(167, 139, 250, 0.13);
  padding: 4px 10px;
  border-radius: 99px;
}

.reviews {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.reviews i { color: #FBBF24; font-size: 13px; }
.reviews span { margin-left: 4px; }

.product-title {
  font-family: 'Poppins', var(--font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.product-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.price sup { font-size: 16px; font-weight: 600; vertical-align: super; }

.price-meta { font-size: 12px; color: var(--text-secondary); }

/* ── Variation grid ── */
.variation-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-section);
}

.variation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.variation-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.variation-active {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.variation-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.variation-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, transform 0.1s;
}
.variation-card:hover { border-color: var(--border-md); transform: translateY(-2px); }
.variation-card.selected { border-color: var(--text-primary); background: var(--bg-secondary); }

.variation-case {
  width: 32px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.variation-case-inner {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.variation-label-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}
.variation-card.selected .variation-label-text { color: var(--text-primary); }

/* ── Customize callout ── */
.customize-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(244,114,182,0.06), rgba(56,189,248,0.06));
  border: 1px dashed rgba(167,139,250,0.4);
  border-radius: var(--radius-lg);
}

.callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F472B6, #FB923C, #FBBF24, #4ADE80, #38BDF8);
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.callout-body { flex: 1; min-width: 0; }
.callout-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.callout-sub { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

.callout-btn {
  background: white;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: background 0.15s;
}
.callout-btn:hover { background: var(--bg-secondary); }

/* ── Purchase row ── */
.purchase-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  height: 50px;
  padding: 0 4px;
  border: 1px solid var(--border);
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background 0.15s;
}
.qty-btn:hover { background: white; }

.qty-value {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-add-cart {
  height: 50px;
  border-radius: var(--radius-md);
  background: #1a1a1a;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn-add-cart:hover { opacity: 0.88; }

/* ── Perks ── */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.perk {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perk i { font-size: 22px; color: var(--text-primary); flex-shrink: 0; }
.perk-title { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.perk-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ── Accordion ── */
.accordion { display: flex; flex-direction: column; }
details {
  border-bottom: 1px solid var(--border);
}
details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
details summary i { transition: transform 0.2s; font-size: 18px; color: var(--text-secondary); }
details[open] summary i { transform: rotate(180deg); }

.acc-body {
  padding: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.acc-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* ── Modal (same as studio) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
}
.modal-header h3 { font-family: 'Poppins', var(--font); font-size: 15px; font-weight: 600; }

.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--bg-tertiary); }

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cropper-container {
  max-height: 50vh;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cropperImg { max-width: 100%; display: block; }

.modal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.tool-group { display: flex; flex-direction: column; gap: 6px; }
.tool-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.tool-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.tool-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
}
.tool-btn:hover { background: var(--bg-tertiary); }
.tool-btn i { font-size: 14px; }

.modal-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 0.5px solid var(--border);
  background: var(--bg-secondary);
}

.btn-secondary, .btn-primary {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 0.5px solid var(--border-md); }
.btn-primary { background: var(--text-primary); color: white; }


/* ── Studio link (cross-sell to Studio) ── */
.studio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1.5px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, #F472B6, #FB923C, #FBBF24, #4ADE80, #38BDF8, #A78BFA);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.studio-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244,114,182,0.06), rgba(56,189,248,0.06), rgba(167,139,250,0.06));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.studio-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244,114,182,0.15), 0 2px 8px rgba(56,189,248,0.1);
}
.studio-link:hover::before { opacity: 1; }

.studio-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.studio-link-title {
  font-family: 'Poppins', var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.studio-link-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.studio-link-arrow {
  padding: 11px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #F472B6, #FB923C, #FBBF24, #4ADE80, #38BDF8);
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Poppins', var(--font);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, opacity 0.15s;
}

.studio-link:hover .studio-link-arrow {
  transform: translateX(2px);
  opacity: 0.95;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .perks { grid-template-columns: 1fr; }
  .variation-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════
   V6 — IMMERSIVE HERO (Orchid-inspired top fold)
   Appended override layer: glass nav, full-viewport colored hero,
   glass buy panel, dynamic room color.
   ══════════════════════════════════════════════════════════════════ */

.v6 {
  --hero-bg: #f2f2f0;                 /* set dynamically by JS */
  --hero-ink: #1a1a1a;                /* text color used ON the bg (JS) */
  --hero-chip-bg: rgba(255,255,255,0.55);
  --hero-chip-ink: #1a1a1a;
}

/* ── Glass floating header — dark translucent grey ── */
.v6 .glass-header {
  position: fixed;
  top: 9px;                            /* below the rainbow bar */
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 30, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.v6 .glass-header .main-nav a { color: rgba(255,255,255,0.88); }
.v6 .glass-header .main-nav a:hover { background: rgba(255,255,255,0.12); }
.v6 .glass-header .icon-btn { color: rgba(255,255,255,0.88); }
.v6 .glass-header .icon-btn:hover { background: rgba(255,255,255,0.12); }
.v6 .glass-header .cart-badge { background: #fff; color: #1a1a1a; }

/* ── Hero: studio cyclorama ──
   Light pours from above (bright pool at top-center), the wall curves
   into the floor (progressive darkening toward the bottom), all tinted
   by the dynamic room color. */
.v6 .hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background:
    /* Seamless studio sweep: one smooth ramp from lit top to deep floor.
       No bands, no seams — the continuity IS the curved-wall illusion. */
    radial-gradient(ellipse 105% 60% at 48% -4%,
      rgba(255,255,255,0.22) 0%,
      rgba(255,255,255,0.07) 36%,
      rgba(255,255,255,0.00) 58%),
    linear-gradient(170deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.05) 26%,
      rgba(0,0,0,0.02) 48%,
      rgba(0,0,0,0.18) 68%,
      rgba(0,0,0,0.36) 86%,
      rgba(0,0,0,0.50) 100%),
    var(--hero-bg);
  transition: background-color 700ms cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-columns: 1fr minmax(360px, 420px);
  align-items: center;
  gap: 24px;
  padding: 110px 56px 56px;
  overflow: hidden;
}

/* Breadcrumb floating over the hero */
.v6 .hero-breadcrumb {
  position: absolute;
  top: 86px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  z-index: 5;
  color: var(--hero-ink);
  opacity: 0.82;
}
.v6 .hero-breadcrumb a { color: var(--hero-ink); text-decoration: none; opacity: 0.75; }
.v6 .hero-breadcrumb a:hover { opacity: 1; }
.v6 .hero-breadcrumb span { font-weight: 600; }
.v6 .hero-breadcrumb i { font-size: 12px; opacity: 0.5; }

/* Stage: the case floating in the room */
.v6 .hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Case floats in front of the wall; its shadow is cast onto the wall
   down-and-right — a soft, case-shaped silhouette (drop-shadow traces
   the PNG alpha: bumper curves, notches and all). */
.v6 .hero-product {
  position: relative;
  display: inline-block;
}
.v6 .hero-stage .case-flip-wrap {
  transform: none;
  /* No wall-cast shadow — the case stands on a seamless sweep and its
     shadow lives on the floor beneath it (the ::before/::after below). */
  filter: none;
  position: relative;
  z-index: 2;
}
/* Floor shadow, OLIPOP-style: a soft ellipse directly under the case,
   darkest at the contact point, stretching slightly right, melting into
   the darker bottom of the sweep. */
.v6 .hero-product::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-40%);
  width: 92%;
  height: 20px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.56) 0%,
    rgba(0,0,0,0.34) 45%,
    rgba(0,0,0,0.00) 72%);
  filter: blur(5px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.v6 .hero-product::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-30%);
  width: 155%;
  height: 46px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.34) 0%,
    rgba(0,0,0,0.16) 48%,
    rgba(0,0,0,0.00) 74%);
  filter: blur(12px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Kill the old contained-stage backdrop — the room IS the background now */
.v6 .media-stage { background: none; box-shadow: none; }

/* Front/back chips restyled as glass */
.v6 .hero-chips {
  background: var(--hero-chip-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(0,0,0,0.10);
  border-radius: 99px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}
.v6 .hero-chips .face-btn {
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--hero-chip-ink);
  opacity: 0.7;
}
.v6 .hero-chips .face-btn:hover { opacity: 1; color: var(--hero-chip-ink); }
.v6 .hero-chips .face-btn.active {
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Glass buy panel ── */
.v6 .hero-panel {
  position: relative;
  z-index: 5;
  background: rgba(16, 16, 18, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 26px 26px 22px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.v6 .panel-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.v6 .hero-panel .tag-team {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.16);
}
.v6 .hero-panel .reviews { color: rgba(255,255,255,0.65); font-size: 12px; display: flex; align-items: center; gap: 1px; }
.v6 .hero-panel .reviews i { color: #FBBF24; font-size: 12px; }
.v6 .hero-panel .reviews span { margin-left: 5px; }

.v6 .panel-title {
  font-family: 'Poppins', var(--font);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.v6 .panel-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin-bottom: 16px;
}

.v6 .panel-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.v6 .panel-price { font-family: 'Poppins', var(--font); font-size: 30px; font-weight: 700; }
.v6 .panel-price sup { font-size: 15px; font-weight: 600; }
.v6 .panel-price-meta { font-size: 12px; color: rgba(255,255,255,0.55); }

.v6 .panel-divider { height: 0.5px; background: rgba(255,255,255,0.14); margin-bottom: 16px; }

.v6 .panel-variation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.v6 .panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.55);
}
.v6 .panel-variation-active { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* Compact dual-color swatch dots */
.v6 .panel-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.v6 .swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}
.v6 .swatch:hover { transform: translateY(-2px) scale(1.04); }
.v6 .swatch.selected { border-color: rgba(255,255,255,0.95); }
.v6 .swatch-outer {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.25);
}
.v6 .swatch-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15);
}

/* Upload row */
.v6 .panel-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.v6 .panel-upload-title { display: block; font-size: 12.5px; font-weight: 600; }
.v6 .panel-upload-sub { display: block; font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 1px; }
.v6 .panel-upload-btns { display: flex; gap: 6px; flex-shrink: 0; }
.v6 .panel-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.v6 .panel-chip-btn:hover { background: rgba(255,255,255,0.22); }

/* Purchase row */
.v6 .panel-purchase { display: flex; gap: 10px; margin-bottom: 16px; }
.v6 .panel-qty {
  background: rgba(255,255,255,0.09);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
}
.v6 .panel-qty .qty-btn { background: transparent; color: #fff; }
.v6 .panel-qty .qty-btn:hover { background: rgba(255,255,255,0.12); }
.v6 .panel-qty .qty-value { color: #fff; }
.v6 .panel-cart-btn {
  flex: 1;
  background: #fff;
  color: #101012;
  font-weight: 700;
  border-radius: 10px;
}
.v6 .panel-cart-btn:hover { opacity: 0.92; }

/* Mini perks */
.v6 .panel-perks {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
}
.v6 .panel-perks li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.v6 .panel-perks i { font-size: 13px; }

/* Scroll hint */
.v6 .hero-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--hero-ink);
  opacity: 0.4;
  font-size: 22px;
  animation: heroBounce 2.2s ease-in-out infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Below the fold ── */
.v6 .below-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.v6 .below-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.v6 .below-col { display: flex; flex-direction: column; gap: 24px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .v6 .hero {
    grid-template-columns: 1fr;
    padding: 110px 24px 72px;
    gap: 40px;
  }
  .v6 .hero-panel { justify-self: center; }
  .v6 .hero-breadcrumb { left: 24px; }
  .v6 .below-grid { grid-template-columns: 1fr; gap: 32px; }
  .v6 .hero-stage .case-flip-wrap { width: min(44vh, 60vw, 460px); }
}
@media (max-width: 560px) {
  .v6 .main-nav { display: none; }
  .v6 .hero { padding: 96px 14px 64px; }
  .v6 .hero-panel { padding: 20px 18px 18px; }
  .v6 .hero-stage .case-flip-wrap { width: min(38vh, 78vw, 380px); }
}

/* Hero mockup sizing — as large as the viewport reasonably allows.
   Height-driven (the case is tall): caps so total case height stays
   inside the hero, shrinks fluidly with the viewport. */
.v6 .hero-stage .case-flip-wrap {
  width: min(52vh, 38vw, 560px);
  max-width: none;
}

/* ══ Landscape card mode (ported from Studio v24) ══
   When a landscape card is applied, the whole case rotates -90° with a
   smooth animation. The card image itself was pre-rotated into portrait
   shape in JS, so the -90° wrapper rotation renders it correctly
   landscape for the viewer. */
.v6 .hero-stage .case-flip-wrap {
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), filter 700ms ease;
}
.v6 .hero-stage .case-flip-wrap.landscape {
  transform: rotate(-90deg);
}

/* ══ Landscape shadow correction ══
   When the case rotates -90°, its visual footprint is ~151% of the
   wrapper's width and its visual bottom sits ~17% of the wrapper's
   height ABOVE the wrapper bottom. Reposition the floor ellipses:
   span from the case's left edge to well past its right edge, and
   lift them up to hug the rotated case's real base. */
.v6 .hero-product:has(.case-flip-wrap.landscape)::before {
  bottom: calc(17% - 18px);
  width: 185%;
  height: 22px;
  transform: translateX(-41%);
}
.v6 .hero-product:has(.case-flip-wrap.landscape)::after {
  bottom: calc(17% - 30px);
  width: 220%;
  height: 50px;
  transform: translateX(-43%);
}

/* ══ Shadow motion ══
   Orientation change: the ellipses transition position/size with the
   SAME duration+easing as the case rotation, so the shadow travels in
   sync with the case. Flip / rotation in progress: the shadow dips to
   ~30% opacity and recovers as the case lands. */
.v6 .hero-product::before,
.v6 .hero-product::after {
  transition:
    bottom    0.8s cubic-bezier(0.4, 0, 0.2, 1),
    width     0.8s cubic-bezier(0.4, 0, 0.2, 1),
    height    0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.30s ease;
}
.v6 .hero-product.shadow-dip::before,
.v6 .hero-product.shadow-dip::after {
  opacity: 0.05;
  transition-duration: 0.8s, 0.8s, 0.8s, 0.8s, 0.15s; /* fast fade-out */
}

/* ══ Mini-case colorway swatches (realistic mockups) ══
   Reuses the hero's percentage-based layer system inside a small
   aspect-ratio box — same texture overlays, same color underlays.
   The circle swatch styles above are preserved (SWATCH_STYLE toggle). */
.v6 .panel-swatches.swatch-grid-cases {
  gap: 9px;
}
.v6 .swatch-case {
  position: relative;
  width: 52px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.v6 .swatch-case:hover { transform: translateY(-2px) scale(1.04); }
.v6 .swatch-case.selected { border-color: rgba(255,255,255,0.95); }
.v6 .swatch-case .mini-case {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1800 / 2724;
  border-radius: 8px;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.22), 0 3px 8px rgba(0,0,0,0.30);
}
/* The nested .layer children inherit the hero's percentage positioning.
   Soften the color transition for snappy swatch feel. */
.v6 .swatch-case .layer { transition: none; }

/* Mini-case window: reads as see-through to the glass panel behind it.
   The panel is smoked glass (rgb(16,16,18) @ 58%) over the dynamic room
   color — color-mix() computes that exact composite live, so the window
   re-tints automatically whenever the room color changes. */
.v6 .swatch-case .mini-window {
  background: rgba(30, 30, 34, 0.9); /* fallback for older browsers */
  background: color-mix(in srgb, rgb(16, 16, 18) 58%, var(--hero-bg));
  transition: background-color 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══ Hero case window — dynamic + recessed ══
   The clear window shows through to the room behind the case: a
   noticeably darker mix of the live room color (interior shading), with
   a one-sided inset shadow on the top-left inner edge — matching the
   sweep's upper-left key light — so the window reads as a real recessed
   cavity instead of a flat grey panel. */
.v6 .case-face .window-bg {
  background: rgba(20, 20, 24, 0.55); /* fallback */
  background: color-mix(in srgb, rgb(8, 8, 10) 30%, var(--hero-bg));
  box-shadow:
    inset 12px 14px 22px rgba(0, 0, 0, 0.34),
    inset -4px -6px 14px rgba(255, 255, 255, 0.05);
  transition: background-color 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══ Swatch grid: 4-column layout, bigger minis, see-all toggle ══
   With 8 visible instead of 12, each swatch gets roughly 60% more real
   estate, letting the mini case details actually breathe. Extras fade
   in when revealed via "See all colorways". */
.v6 .panel-swatches.swatch-grid-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.v6 .panel-swatches.swatch-grid-cases .swatch-case {
  width: 100%;
  padding: 4px;
  border-radius: 14px;
}
.v6 .swatch-case.swatch-extra {
  display: none;
}
.v6 .panel-swatches.show-all .swatch-case.swatch-extra {
  display: block;
  animation: swatchFadeIn 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes swatchFadeIn {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1);    }
}

.v6 .see-all-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 12px 0 18px;
  padding: 4px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s;
}
.v6 .see-all-toggle:hover { color: rgba(255,255,255,0.95); }
.v6 .see-all-toggle i { font-size: 14px; transition: transform 0.2s; }

/* ══════════════════════════════════════════════════════════════════
   V24 — MOBILE-FIRST HERO FOLD + CAMERA CAPTURE
   ══════════════════════════════════════════════════════════════════ */

/* Mobile strip + label hidden on desktop (panel grid does the job) */
.mobile-strip-block { display: none; }

/* Camera chip only on touch devices */
.panel-chip-camera { display: none; }
body.touch .panel-chip-camera { display: inline-flex; }

/* ── The mobile fold ──
   One perfect viewport: nav → breadcrumb → CASE (as large as the
   remaining height allows) → face chips → colorway strip. The panel
   and everything else scrolls below the fold. */
@media (max-width: 768px) {
  .v6 .main-nav { display: none; }

  .v6 .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100svh;
    padding: calc(var(--shimmer-h, 9px) + 64px + 10px) 0 0;
    gap: 0;
  }

  /* Breadcrumbs hidden on mobile — real estate goes to the case.
     Kept in the DOM (display:none) so crawlers + breadcrumb schema
     still see the trail; only the visual is removed. */
  .v6 .hero-breadcrumb { display: none; }

  .v6 .hero-stage {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 0;
    padding: 6px 0 10px;
  }

  /* Case sized to spend every spare pixel of the fold:
     width-capped at 88vw, height-capped by what's left of the
     viewport after nav+crumb+chips+strip (~330px). */
  .v6 .hero-stage .case-flip-wrap {
    --cw: min(88vw, calc((100svh - 330px) / 1.513));
    width: var(--cw);
    transition:
      transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
      margin    0.8s cubic-bezier(0.4, 0, 0.2, 1),
      filter    700ms ease;
  }

  /* Landscape card: go as wide as possible with breathing room.
     The rotated case is 1.513x wider than the wrapper, so a 62vw
     wrapper reads ~94vw wide. Negative vertical margins pull the
     strip (and everything below) up into the space the rotation
     freed — most of the way, not all of it. */
  .v6 .hero-stage .case-flip-wrap.landscape {
    --cw: min(62vw, calc((100svh - 330px) / 1.513));
    margin-top:    calc(var(--cw) * -0.19);
    margin-bottom: calc(var(--cw) * -0.19);
  }

  /* Panel: full-width card below the fold */
  .v6 .hero-panel {
    order: 2;
    margin: 4px 12px 20px;
    max-width: none;
    justify-self: stretch;
  }

  /* The colorway UI lives in the strip on mobile — hide the panel copy */
  .v6 .hero-panel .panel-variation-header,
  .v6 .hero-panel .panel-swatches,
  .v6 .hero-panel .see-all-toggle { display: none; }

  .v6 .hero-scroll-hint { display: none; }
}

/* ── Mobile colorway strip ── */
@media (max-width: 768px) {
  .mobile-strip-block {
    display: block;
    order: 1;
    padding: 2px 0 14px;
    width: 100%;
    max-width: 100vw;
    align-self: stretch;   /* defeat .hero-stage's align-items:center */
    min-width: 0;
  }
  .mobile-variation-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--hero-ink);
    opacity: 0.85;
    margin-bottom: 8px;
    min-height: 15px;
  }
  .mobile-strip-wrap { position: relative; width: 100%; max-width: 100%; }
  .mobile-swatch-strip {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 18px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-swatch-strip::-webkit-scrollbar { display: none; }

  .mobile-swatch-strip .swatch-case {
    flex: 0 0 auto;
    width: 86px;
    padding: 4px;
    border-radius: 14px;
    scroll-snap-align: start;
    display: block; /* strip shows ALL — no hidden extras */
  }
  .mobile-swatch-strip .swatch-case.swatch-extra { display: block; }

  /* ── Scroll edge pills: semi-transparent white bars with chevrons at
     each end of the strip. They live-track scrollability (left appears
     once you've scrolled; right hides at the end) and are tappable to
     page through. Unmissable by design. ── */
  .strip-edge {
    position: absolute;
    top: 8px;
    bottom: 12px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.30);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(26, 26, 26, 0.75);
    font-size: 15px;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .strip-edge.visible { opacity: 1; pointer-events: auto; }
  .strip-edge-left  { left: 0;  border-radius: 0 10px 10px 0; }
  .strip-edge-right { right: 0; border-radius: 10px 0 0 10px; }
  .strip-edge-right.visible i { animation: stripNudge 1.8s ease-in-out infinite; }
  @keyframes stripNudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(3px); }
  }
}

/* Small phones: slightly tighter budget */
@media (max-width: 400px) {
  .v6 .hero-stage .case-flip-wrap {
    --cw: min(86vw, calc((100svh - 318px) / 1.513));
  }
}

/* ══ Source chooser sheet ══ */
.chooser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.chooser-overlay.open { opacity: 1; pointer-events: auto; }
.chooser-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chooser-overlay.open .chooser-sheet { transform: translateY(0); }
.chooser-title {
  font-family: 'Poppins', var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  text-align: center;
}
.chooser-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #f5f3ef;
  border: 0.5px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.chooser-btn:active { background: #ebe8e2; }
.chooser-btn i { font-size: 24px; color: #1a1a1a; flex-shrink: 0; }
.chooser-btn strong { display: block; font-size: 14.5px; color: #1a1a1a; }
.chooser-btn small { display: block; font-size: 12px; color: #8a8a86; margin-top: 1px; }
.chooser-cancel {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #8a8a86;
  cursor: pointer;
}

/* ══ Camera capture UI ══ */
.camera-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: none;
}
.camera-overlay.open { display: block; }
#cameraVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Guide frame + dimmed surround (the huge box-shadow does the dimming) */
.camera-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.guide-frame {
  position: relative;
  /* As large as possible: capped by width or by the vertical space
     left after the tip (top) and shutter controls (bottom). */
  width: min(88vw, calc((100svh - 250px) / 1.4));
  aspect-ratio: 2.5 / 3.5;
  border: 2.5px solid rgba(255,255,255,0.92);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  transition: width 0.35s ease;
}
.guide-frame.landscape {
  width: min(90vw, calc((100svh - 165px) * 1.4));
  aspect-ratio: 3.5 / 2.5;
}

/* Phone physically held landscape: move the controls to a right-side
   column (native camera pattern) so the guide can use the full height. */
@media (orientation: landscape) {
  .camera-controls {
    left: auto;
    right: calc(14px + env(safe-area-inset-right, 0px));
    top: 0;
    bottom: 0;
    flex-direction: column;
    gap: 28px;
    width: auto;
  }
  .camera-shutter { width: 64px; height: 64px; }
  .camera-logo {
    top: calc(8px + env(safe-area-inset-top, 0px));
    height: 18px;
  }
  .camera-tip {
    top: calc(32px + env(safe-area-inset-top, 0px));
    font-size: 11px;
    padding: 6px 14px;
    max-width: 76vw;
  }
  .guide-frame.landscape {
    width: min(calc(100vw - 200px), calc((100svh - 120px) * 1.4));
  }
  .guide-frame {
    width: min(calc((100svh - 120px) / 1.4), 40vw);
  }
}
.guide-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 4px solid #fff;
  border-radius: 3px;
}
.gc-tl { top: -4px;    left: -4px;   border-right: none; border-bottom: none; border-top-left-radius: 14px; }
.gc-tr { top: -4px;    right: -4px;  border-left: none;  border-bottom: none; border-top-right-radius: 14px; }
.gc-bl { bottom: -4px; left: -4px;   border-right: none; border-top: none;    border-bottom-left-radius: 14px; }
.gc-br { bottom: -4px; right: -4px;  border-left: none;  border-top: none;    border-bottom-right-radius: 14px; }

.camera-logo {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  height: 22px;
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
  pointer-events: none;
}
.camera-tip {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 94vw;
  padding: 8px 16px;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  color: rgba(255,255,255,0.95);
  font-size: clamp(10.5px, 3.1vw, 12.5px);
  font-weight: 500;
  white-space: nowrap;          /* one line, always */
  z-index: 2;
}
.camera-tip i { font-size: 15px; flex-shrink: 0; }

.camera-controls {
  position: absolute;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  z-index: 2;
}
.camera-shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid rgba(255,255,255,0.35);
  background-clip: padding-box;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.camera-shutter:active { transform: scale(0.9); }
.camera-cancel,
.camera-orient {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
