/* ================================================================
   Design 1 — Hero / Immersive
   Full-screen hero image, overlay details, scroll-down layout
   ================================================================ */
.product-hero-detail-grid > .hero-desc-body { color: #a1a1aa; }
.product-hero-wrapper {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Blurred background image (like card design) */
.hero-blur-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blur-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(60px) brightness(0) saturate(0.5);
  transform: scale(1.1);
}

/* ---- Hero image background ---- */
.product-hero-stage {
  position: relative;
  z-index: 1;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  background: #06080c;
}

.product-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, #06080c 0%, 
    transparent 38%, 
    transparent 80%, 
    #06080c 100%);
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 52%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 52%, #000 78%, transparent);
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #06080c 0%,
    rgba(6, 8, 12, 0.8) 5%,
    rgba(6, 8, 12, 0.1) 60%,
    rgba(6, 8, 12, 0.3) 100%
  );
}

/* ---- Hero text ---- */
.product-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2rem;
  max-width: 900px;
}

.product-hero-content .hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.product-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.product-hero-content .hero-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #4ade80;
}

/* ---- Hero CTA ---- */
.product-hero-cta-row {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6366f1;
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.hero-cta-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ---- Scroll indicator ---- */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  animation: hero-bounce 2s ease-in-out infinite;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.product-hero-detail {
  position: relative;
  z-index: 1;
  background: #06080c;
  padding: 3rem 2.5rem;
}

#hero-description,
#hero-purchase {
  scroll-margin-top: 100px;
}

.product-hero-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Description panel */
.hero-desc-panel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f1f3;
  margin: 1.5rem 0 0.5rem;
}

/* ---- Language switcher ---- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  float: right;
  cursor: pointer;
  user-select: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
  font-size: 0.8125rem;
  color: #d4d4d8;
}

.lang-switcher:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-globe {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.lang-label {
  font-weight: 600;
  color: #f1f1f3;
}

.lang-dropdown-arrow {
  font-size: 0.625rem;
  color: #71717a;
  transition: transform 0.2s;
}

.lang-switcher:hover .lang-dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f1f3;
}

.lang-option--active {
  color: #a5b4fc;
  font-weight: 600;
}

.hero-desc-panel .hero-desc-body {
  color: #a1a1aa;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Fade transition between language bodies */
.hero-desc-panel {
  position: relative; /* anchor for absolute-positioned hidden body */
}

.hero-desc-body {
  transition: opacity 0.25s ease;
}

.hero-desc-body.desc-body--visible {
  opacity: 1;
  position: relative;
}

.hero-desc-body.desc-body--hidden {
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Markdown heading overrides — # is white, ## is near-white, both with tight spacing */
.hero-desc-body h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 1.75rem 0 0.5rem;
  line-height: 1.25;
}

.hero-desc-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f1f3;
  margin: 1.25rem 0 0.4rem;
  line-height: 1.3;
}

.hero-desc-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e4e4e7;
  margin: 1rem 0 0.35rem;
  line-height: 1.35;
}

/* Links inside markdown — remove browser blue, use accent */
.hero-desc-body a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.hero-desc-body a:hover {
  color: #c7d2fe;
}

.hero-desc-body li { list-style: disc; margin-left: 1.25rem; padding: 3px 0; }
.hero-desc-body ul { margin-bottom: 1rem; }
.hero-desc-body p { margin-bottom: 0.75rem; }

/* Gallery — larger than the default 300px */
.hero-desc-panel #product-image-container {
  margin: 25px 0;

  height: 420px;
  border-radius: 12px;
  border: 1px solid #27272a;
  background: #000;
}

/* ---- Carousel (inside gallery) ---- */
#product-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

#product-image-container img[hidden] {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

.carousel-dot:hover { background: rgba(255, 255, 255, 0.6); }
.carousel-dot.active { background: white; transform: scale(1.25); }

.carousel-counter {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 8px;
  border-radius: 10px;
  pointer-events: none;
}

/* ---- Image lightbox ---- */
#image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  animation: lightbox-in 0.15s ease forwards;
}

#image-lightbox.fade-out {
  animation: lightbox-out 0.15s ease forwards;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lightbox-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

#image-lightbox img {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

#image-lightbox .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

#image-lightbox .lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

#image-lightbox .lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 10px;
  pointer-events: none;
}

#image-lightbox .lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

#image-lightbox .lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

#image-lightbox .lightbox-prev { left: 16px; }
#image-lightbox .lightbox-next { right: 16px; }

#image-lightbox .lightbox-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

#image-lightbox .lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

#image-lightbox .lightbox-dot:hover { background: rgba(255, 255, 255, 0.6); }
#image-lightbox .lightbox-dot.active { background: white; transform: scale(1.25); }

/* Purchase panel */
.hero-purchase-panel {
  background: var(--primary-box-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
  align-self: start;
}

.hero-purchase-panel .panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f1f3;
  margin-bottom: 1.25rem;
}

.hero-variant-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.hero-variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-variant-option:hover {
  border-color: var(--primary-box-color);
  background: rgba(255, 255, 255, 0.06);
}

.hero-variant-option.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.hero-variant-option input[type="radio"] {
  accent-color: #6366f1;
  width: 18px;
  height: 18px;
}

.hero-variant-info {
  flex: 1;
  margin-left: 0.75rem;
}

.hero-variant-info .v-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f1f3;
}

.hero-variant-info .v-desc {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 2px;
}

.hero-variant-price {
  font-size: 1rem;
  font-weight: 700;
  color: #4ade80;
}

.hero-variant-stock {
  font-size: 0.6875rem;
  color: #52525b;
  text-align: right;
}

.hero-purchase-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-purchase-form input[type="email"],
.hero-purchase-form input[type="text"] {
  width: 100%;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #f1f1f3;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.hero-purchase-form input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.hero-purchase-form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Payment method badges */
.hero-payment-badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.hero-payment-label {
  flex-basis: 100%;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.payment-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 42px;
  padding: 0 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.payment-logo--apple-pay {
  width: 50px !important;
  height: auto !important;
  max-width: none !important;
}

.payment-logo--google-pay {
  width: 40px !important;
  height: auto !important;
  max-width: none !important;
}

.payment-logo--paypal-pay {
  width: 30px !important;
  height: auto !important;
  max-width: none !important;
}

.hero-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1e1b4b;
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-checkout-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.hero-checkout-btn:hover::after {
  transform: translateX(100%);
}

.hero-checkout-btn:hover {
  background: #312e81;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.1);
}

.hero-payment-methods {
  padding-bottom: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: #52525b;
  margin-top: 0.5rem;
}

.hero-payment-methods-small{
  text-align: flex-start;
  font-size: 0.60rem;
  color: #52525b;
  margin-top: 0.5rem;
}

/* --- Discount form (matches purchase panel) --- */
.discount-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discount-form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discount-input-row {
  display: flex;
  gap: 0.5rem;
}

.discount-input {
  flex: 1;
  min-width: 0;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #f1f1f3;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.discount-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.discount-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.discount-submit {
  background: #1e1b4b;
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.discount-submit:hover {
  background: #312e81;
  transform: translateY(-1px);
}

.discount-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.discount-status {
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 1.25rem;
}

.discount-status.success { color: #4ade80; }
.discount-status.error { color: #f87171; }

/* --- Loading feedback while the code is checked --- */
.discount-status.loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a5b4fc;
}

.discount-status.loading::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  border: 2px solid rgba(165, 180, 252, 0.3);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: discount-spin 0.7s linear infinite;
}

@keyframes discount-spin {
  to { transform: rotate(360deg); }
}

/* --- Discounted price (old price struck through) --- */
.hero-variant-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  white-space: nowrap;
  gap: 0.5rem;
}

.hero-variant-option.is-discounted .hero-variant-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: #71717a;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.hero-variant-price-discounted {
  font-size: 1rem;
  font-weight: 700;
  color: #4ade80;
}

/* Back link */
.hero-back-link {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-box-color);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.hero-back-link:hover {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

/* Expanded invisible hit area around the back link, so clicks near it
   can't fall through to the hero image's lightbox handler */
.hero-back-link::before {
  content: "";
  position: absolute;
  inset: -1.25rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet — 860px */
@media (max-width: 860px) {
  .product-hero-wrapper {
    border-radius: 0;
  }

  .product-hero-stage {
    min-height: 56vh;
  }

  .product-hero-content {
    padding: 2rem 1.5rem 1.5rem;
  }

  .product-hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .product-hero-content .hero-price {
    font-size: 1.35rem;
  }

  .product-hero-cta-row {
    padding: 0 1.5rem 1.5rem;
    flex-direction: column;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .product-hero-detail {
    padding: 2rem 1.25rem 3rem;
  }

  .product-hero-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-desc-panel {
    order: -1;
    padding: 0 5px;
   }

  .hero-desc-panel #product-image-container {
    height: 280px;
  }

  .lang-switcher {
    float: none;
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .lang-dropdown {
    right: auto;
    left: 0;
    min-width: 120px;
  }

  .hero-purchase-panel {
    order: 1;
    position: static;
  }

  .hero-back-link {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  #hero-description,
  #hero-purchase {
    scroll-margin-top: 20px;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .product-hero-stage {
    min-height: 50vh;
  }

  .product-hero-bg {
    opacity: 0.7;
  }

  .product-hero-content {
    padding: 1.5rem 1rem 1rem;
  }

  .product-hero-content h1 {
    font-size: 1.5rem;
  }

  .product-hero-content .hero-price {
    font-size: 1.15rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .product-hero-cta-row {
    padding: 0 1rem 1rem;
    gap: 0.5rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .product-hero-detail {
    padding: 1.5rem 0.75rem 2rem;
  }

  .hero-desc-panel h2 {
    font-size: 1.1rem;
  }

  .hero-desc-panel .hero-desc-body {
    font-size: 0.85rem;
  }

  .hero-desc-panel #product-image-container {
    height: 220px;
    border-radius: 8px;
  }

  .hero-desc-panel {
    order: -1;
  }

  .hero-purchase-panel {
    order: 1;
    padding: 1rem;
    border-radius: 12px;
  }

  .hero-purchase-panel .panel-title {
    font-size: 0.85rem;
  }

  .hero-variant-option {
    padding: 0.625rem 0.75rem;
  }

  .hero-variant-info .v-name {
    font-size: 0.8rem;
  }

  .hero-variant-price {
    font-size: 0.875rem;
  }

  .hero-purchase-form input[type="email"],
  .hero-purchase-form input[type="text"] {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .hero-payment-badges {
    gap: 0.375rem;
  }

  .hero-payment-label {
    font-size: 0.625rem;
    margin-right: 0;
    width: 100%;
    text-align: left;
    margin-bottom: 0.125rem;
  }

  .payment-badge {
    width: 40px;
    height: 32px;
    padding: 0 0.375rem;
  }

  .payment-badge img {
    height: 16px;
  }

  .hero-checkout-btn {
    padding: 0.75rem;
    font-size: 0.9375rem;
  }

  .hero-scroll-hint {
    bottom: 0.75rem;
    font-size: 1.15rem;
  }

  .lang-switcher {
    float: none;
    display: inline-flex;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    padding: 6px 10px;
  }

  .lang-globe {
    width: 16px;
    height: 16px;
  }

  .lang-dropdown {
    right: auto;
    left: 0;
    min-width: 110px;
  }

  .lang-option {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }
}

.thumb-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.hero-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hero-thumb:hover {
  opacity: 0.8;
  border-color: #52525b;
}

.hero-thumb.active {
  opacity: 1;
  border-color: #6366f1;
}

/* ================================================================
   Stripe Redirect Loading Overlay
   ================================================================ */

.stripe-loading-overlay {
  display: none; /* hidden until form submit */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.stripe-loading-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stripe-loading-card p {
  color: #d4d4d8;
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 1.25rem;
}

/* Spinner */
.stripe-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: stripe-spin 0.7s linear infinite;
}

@keyframes stripe-spin {
  to { transform: rotate(360deg); }
}
