/* ═══════════ Product Page V2 — Scoped under .page-product ═══════════ */
/* Overrides style.css global rules for the premium product page design */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --pp-orange:       #ff6b00;
  --pp-orange-light: #fff4eb;
  --pp-orange-dark:  #e05500;
  --pp-dark:         #0a0a0a;
  --pp-dark-2:       #141414;
  --pp-bg:           #ffffff;
  --pp-bg-soft:      #f5f5f5;
  --pp-photo-bg:     #f7f6f5;
  --pp-text:         #0a0a0a;
  --pp-text-light:   #666;
  --pp-text-muted:   #aaa;
  --pp-text-ph:      #bbb;
  --pp-border:       #e5e5e5;
  --pp-green:        #22c55e;
  --pp-gradient:     linear-gradient(135deg, #ff6b00 0%, #ff9a44 100%);
  --pp-line-soft:    #ccc;
}

/* ── style.css overrides ───────────────────────────────────────────── */
html:has(.page-product) { overflow-x: clip !important; }
.page-product {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  position: static !important;
  overflow-x: clip !important;
}
.page-product::before { display: none !important; }


.page-product .whatsapp-btn { display: none !important; }


/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.page-product .breadcrumb-wrap {
  padding: 10px var(--pp-gut);
  background: var(--pp-bg-soft);
  border-bottom: 1px solid var(--pp-border);
}
.page-product .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 12px;
  color: var(--pp-text-light);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 0;
}
.page-product .breadcrumb::-webkit-scrollbar { display: none; }
.page-product .breadcrumb a {
  text-decoration: none;
  color: var(--pp-text-light);
  transition: color 0.2s;
}
.page-product .breadcrumb a:hover { color: var(--pp-orange); }
.page-product .breadcrumb-sep { color: var(--pp-line-soft); }
.page-product .breadcrumb .current { color: var(--pp-text); font-weight: 600; }

/* ── Product Layout ────────────────────────────────────────────────── */
/* One content width (1120px) for the breadcrumb, the product and More gifts. */
.page-product { --pp-gut: max(5%, calc((100% - 1120px) / 2)); }
.page-product .product-page { padding: 20px var(--pp-gut) 40px; }
.page-product .product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ── Gallery ───────────────────────────────────────────────────────── */
/* One slider for every screen (product.php, product-v2.js ppGoToSlide):
   swipe on phones with a "1 / 12" counter, a thumbnail row on desktop. */
.page-product .pp-gallery { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--pp-photo-bg); }
.page-product .pp-slides { display: flex; height: 100%; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.page-product .pp-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; cursor: zoom-in; }
.page-product .pp-slide img, .page-product .pp-slide video { display: block; width: 100%; height: 100%; }
/* Photos shown whole, never cropped (same as the zoom view); the off-white
   matches the studio backgrounds of the photos. Videos fill. */
.page-product .pp-slide img { object-fit: contain; background: var(--pp-photo-bg); }
.page-product .pp-slide video { object-fit: cover; background: #111; }
.page-product .pp-slide--light, .page-product .pp-slide.is-missing { cursor: auto; }
.page-product .pp-slide .pp-light-img { object-fit: cover; background: none; }
.page-product .pp-slide--light .pp-light-stage { border-radius: 0; }
.page-product .pp-slide:focus-visible { outline: 2px solid var(--pp-orange); outline-offset: -2px; }
.page-product .pp-zoom {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(255,255,255,0.9); color: var(--pp-dark); opacity: 0; transition: opacity 0.2s;
}
.page-product .pp-slide:hover .pp-zoom, .page-product .pp-slide:focus-visible .pp-zoom { opacity: 1; }
.page-product .pp-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; display: none; padding: 4px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
/* No photo or a missing file: the product card's gift icon tile. */
.page-product .gallery-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f5efe8; color: #cdbfb0; }
.page-product .gallery-noimg svg { width: 64px; height: 64px; }
.page-product .pp-thumb .gallery-noimg svg { width: 26px; height: 26px; }
.page-product .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pp-green); animation: pp-blink 1.5s infinite;
}
@keyframes pp-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Desktop thumbnails (the small copies): a click shows that slide and brings
   the next thumbnails into view; the shared arrows scroll the row. */
.page-product .pp-thumbs-wrap { margin-top: 10px; }
.page-product .pp-thumbs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.page-product .pp-thumbs::-webkit-scrollbar { display: none; }
.page-product .pp-thumbs-wrap .p-arr { top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.page-product .pp-thumbs-wrap .p-arr--l { left: -10px; }
.page-product .pp-thumbs-wrap .p-arr--r { right: -10px; }
.page-product .pp-thumb {
  position: relative; flex: 0 0 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--pp-photo-bg); cursor: pointer; outline-offset: 2px;
}
.page-product .pp-thumb img, .page-product .pp-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.page-product .pp-thumb:hover { border-color: #f3c7a6; }
.page-product .pp-thumb.is-on, .page-product .pp-thumb.is-on:hover { border-color: var(--pp-orange); }
.page-product .pp-thumb-play {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); color: #fff; pointer-events: none;
}
.page-product .pp-thumb-play svg { width: 13px; height: 13px; margin-left: 2px; }

/* ── Product Info Column ───────────────────────────────────────────── */
/* Both columns stick; the taller one fills the row so only the shorter one
   actually stays put while the other scrolls. */
.page-product .product-media,
.page-product .product-info { position: sticky; top: 80px; }


.page-product .product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700; line-height: 1.15;
  margin-bottom: 10px; color: var(--pp-dark);
}

/* Price block */
.page-product .price-block { display: flex; align-items: baseline; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-product .price-current {
  font-family: 'Space Grotesk', monospace;
  font-size: 28px; font-weight: 800; color: var(--pp-dark);
}
.page-product .price-mrp { font-size: 17px; color: var(--pp-text-muted); text-decoration: line-through; }
.page-product .price-off-badge {
  align-self: center;
  background: #e8f6ee; color: #0b6e3a;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 8px;
  border-radius: 4px; border: 0;
}
.page-product .price-tax-note { font-size: 12px; color: var(--pp-text-muted); margin: 0; }

.page-product .short-desc { font-size: 14px; line-height: 1.6; color: #4a433c; margin: 12px 0 16px; }
.page-product .short-desc p { margin: 0 0 8px; }

/* Share row under the buy buttons */
.page-product .pp-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.page-product .pp-share-label { font-size: 13px; color: var(--pp-text-light); margin-right: 4px; }
.page-product .pp-share-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--pp-border); border-radius: 8px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--pp-dark);
  text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s;
}
.page-product .pp-share-btn:hover, .page-product .pp-share-btn:focus-visible { border-color: var(--pp-orange); color: var(--pp-orange-dark); }
.page-product .short-desc p:last-child { margin-bottom: 0; }

/* Admin-written rich text (short description + Product Description tab):
   lists, headings and paragraphs from the admin toolbar. style.css resets
   list padding to 0, which pushed the bullets outside the column. */
.page-product .short-desc ul, .page-product .short-desc ol,
.page-product .accordion-content ul, .page-product .accordion-content ol {
  margin: 6px 0 12px; padding-left: 1.3em;
}
.page-product .short-desc ul, .page-product .accordion-content ul { list-style: disc outside; }
.page-product .short-desc ol, .page-product .accordion-content ol { list-style: decimal outside; }
.page-product .short-desc li, .page-product .accordion-content li { margin: 0 0 4px; padding-left: 2px; }
.page-product .short-desc li::marker, .page-product .accordion-content li::marker { color: var(--pp-orange); }
.page-product .short-desc h2, .page-product .short-desc h3, .page-product .short-desc h4,
.page-product .accordion-content h2, .page-product .accordion-content h3, .page-product .accordion-content h4 {
  font-size: 15px; font-weight: 700; color: var(--pp-dark); line-height: 1.4; margin: 14px 0 6px;
}
.page-product .short-desc > :first-child, .page-product .accordion-content > :first-child { margin-top: 0; }
.page-product .short-desc > :last-child, .page-product .accordion-content > :last-child { margin-bottom: 0; }
.page-product .short-desc a, .page-product .accordion-content a { color: var(--pp-orange-dark); text-decoration: underline; }

/* Trust facts: one quiet 2x2 panel (not button-like boxes), thin dividers
   instead of separate borders. 2x2 at every width: the info column is too
   narrow for four across. */
.page-product .trust-badges {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--pp-border); border-radius: 8px;
  margin-bottom: 16px; overflow: hidden; background: #fff;
}
.page-product .trust-badge {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 11px 12px;
  font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--pp-dark);
}
.page-product .trust-badge:nth-child(even) { border-left: 1px solid var(--pp-border); }
.page-product .trust-badge:nth-child(n+3) { border-top: 1px solid var(--pp-border); }
.page-product .trust-badge:last-child:nth-child(odd) { grid-column: 1 / -1; }
.page-product .trust-badge .badge-icon {
  flex: 0 0 auto; display: inline-flex; color: var(--pp-orange, #ff6b00);
}

/* style.css decorates .section-divider with a gradient bar (::before) and a
   60px pulsing orange circle (::after) — both must be killed here. */
.page-product .section-divider {
  border: none !important;
  border-top: 1px solid var(--pp-border) !important;
  margin: 16px 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  animation: none !important;
}
.page-product .section-divider::before,
.page-product .section-divider::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* ── Customization Section ─────────────────────────────────────────── */
.page-product .customizations { margin-bottom: 24px; }
.page-product .custom-group { margin-bottom: 20px; }
.page-product .custom-group:last-child { margin-bottom: 0; }
.page-product .custom-label {
  font-size: 13px; font-weight: 700; color: var(--pp-dark);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.page-product .required-star { color: var(--pp-orange); font-size: 14px; }
.page-product .custom-rule-desc {
  font-size: 12px; color: var(--pp-text-light);
  margin-top: 8px; line-height: 1.4;
}

.page-product .custom-text-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--pp-border); border-radius: 12px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--pp-dark); background: white;
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.page-product .custom-text-input:focus {
  border-color: var(--pp-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.page-product .custom-text-input::placeholder { color: var(--pp-text-ph); }

.page-product .custom-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--pp-border); border-radius: 12px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--pp-dark); background: white; resize: vertical; min-height: 80px;
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.page-product .custom-textarea:focus {
  border-color: var(--pp-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.page-product .custom-select-wrap { position: relative; }
.page-product .custom-select {
  width: 100%; padding: 12px 40px 12px 16px;
  border: 1.5px solid var(--pp-border); border-radius: 12px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--pp-dark); background: white;
  appearance: none; -webkit-appearance: none;
  cursor: pointer; outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.page-product .custom-select:focus { border-color: var(--pp-orange); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.page-product .custom-select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--pp-text-light); font-size: 12px;
}

/* Colour swatches: a faint inner outline on every swatch so white shows on the
   white page; selected = orange ring with a white gap; dark tick on light colours. */
.page-product .color-chips { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px; }
.page-product .color-chip {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  cursor: pointer; border: 0 !important; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14);
  transition: box-shadow 0.2s;
}
.page-product .color-chip:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14), 0 0 0 2px #fff, 0 0 0 4px #d0d0d0; }
.page-product .color-chip.selected { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14), 0 0 0 2px #fff, 0 0 0 4px var(--pp-orange); }
.page-product .color-chip:focus-visible { outline: 2px solid var(--pp-orange); outline-offset: 5px; }
.page-product .color-chip.selected::after {
  content: '\2713'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.page-product .color-chip--light.selected::after { color: var(--pp-dark); text-shadow: none; }
.page-product .color-picked { font-weight: 500; color: var(--pp-text-light); margin-left: -6px; /* sits right after the label's star: "Color *: White" */ }

.page-product .option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.page-product .option-chip {
  padding: 8px 18px; border-radius: 8px;
  border: 1.5px solid var(--pp-border);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; background: white; color: var(--pp-dark);
  user-select: none; font-family: 'DM Sans', sans-serif;
}
.page-product .option-chip:hover { border-color: var(--pp-orange); color: var(--pp-orange); }
.page-product .option-chip.selected {
  background: var(--pp-orange); border-color: var(--pp-orange);
  color: white; box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

/* This is a <label>, which is display:inline by default — without an explicit
   block display the dashed border wraps across lines and breaks the layout. */
.page-product .file-upload-zone {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 2px dashed var(--pp-border); border-radius: 14px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: all 0.3s; background: var(--pp-bg-soft);
}
.page-product .file-upload-zone:hover { border-color: var(--pp-orange); background: var(--pp-orange-light); }
.page-product .file-upload-zone .upload-icon { font-size: 28px; margin-bottom: 8px; }
.page-product .file-upload-zone p { font-size: 13px; color: var(--pp-text-light); }
.page-product .file-upload-zone p strong { color: var(--pp-dark); }
.page-product .file-upload-zone input[type="file"] { display: none; }

/* ── Quantity Selector ─────────────────────────────────────────────── */
.page-product .qty-controls {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--pp-border); border-radius: 12px; overflow: hidden;
}
.page-product .qty-btn {
  width: 44px; height: 44px; border: none; background: var(--pp-bg-soft);
  font-size: 18px; font-weight: 600; cursor: pointer; color: var(--pp-dark);
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.page-product .qty-btn:hover { background: var(--pp-orange); color: white; }
.page-product .qty-value {
  width: 52px; text-align: center; font-size: 16px; font-weight: 700;
  border: none; outline: none; background: white; font-family: 'Space Grotesk', monospace;
  -moz-appearance: textfield;
}
.page-product .qty-value::-webkit-outer-spin-button,
.page-product .qty-value::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── CTA Buttons ───────────────────────────────────────────────────── */
.page-product .cta-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
/* Quantity, Buy now and Add to cart share one row; the two buttons split
   what the quantity box leaves. */
.page-product .buy-row { display: flex; align-items: stretch; gap: 10px; }
.page-product .buy-row .qty-controls { flex: 0 0 auto; }
.page-product .buy-row .qty-btn { height: 100%; min-height: 46px; }
.page-product .buy-row .btn-buy-primary,
.page-product .buy-row .btn-cart-secondary { flex: 1 1 0; width: auto; min-width: 0; padding: 0 14px; min-height: 48px; white-space: nowrap; }
.page-product .btn-buy-primary {
  width: 100%; padding: 17px 24px;
  background: var(--pp-gradient);
  color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.3px;
  transition: box-shadow 0.25s; text-decoration: none;
}
.page-product .btn-buy-primary:hover { box-shadow: 0 6px 18px rgba(255,107,0,0.28); }
.page-product .btn-buy-primary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.page-product .btn-buy-primary:disabled, .page-product .footer-cta:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ── Delivery Info ─────────────────────────────────────────────────── */
.page-product .delivery-info {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--pp-orange-light); border: 1px solid rgba(255,107,0,0.15);
  margin-bottom: 16px;
}
.page-product .delivery-icon { font-size: 22px; flex-shrink: 0; }
.page-product .delivery-text { font-size: 13px; line-height: 1.6; }
.page-product .delivery-text strong { color: var(--pp-dark); font-weight: 700; }

/* ── Accordion ─────────────────────────────────────────────────────── */
.page-product .pp-accordion { border: 1px solid var(--pp-border); border-radius: 16px; overflow: hidden; }
.page-product .pp-accordion-item + .pp-accordion-item { border-top: 1px solid var(--pp-border); }
.page-product .accordion-trigger {
  width: 100%; padding: 14px 18px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--pp-dark);
  font-family: 'DM Sans', sans-serif; text-align: left; transition: background 0.2s;
}
.page-product .accordion-trigger:hover { background: var(--pp-bg-soft); }
.page-product .accordion-arrow {
  font-size: 12px; color: var(--pp-text-light); transition: transform 0.3s;
}
.page-product .accordion-trigger.open .accordion-arrow { transform: rotate(180deg); }
.page-product .accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.page-product .accordion-body.open { max-height: 1200px; }
.page-product .accordion-content {
  padding: 0 20px 20px;
  font-size: 14px; line-height: 1.8; color: var(--pp-text-light);
}
.page-product .accordion-content p { margin-bottom: 10px; }
.page-product .accordion-content ul { padding-left: 18px; }
.page-product .accordion-content li { margin-bottom: 6px; }


/* ── Related Products ("More gifts") ───────────────────────────────── */
/* Desktop: the homepage's Featured row (4 cards, shared arrows, See all).
   Phones: the same gifts as banner cards (.fb-track, product-card.css). */
.page-product .related-section { margin-top: 16px; padding: 36px var(--pp-gut) 48px; background: #fff; border-top: 1px solid var(--pp-border); }
.page-product .related-section[hidden] { display: none; }
.page-product .related-header-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.page-product .section-title { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
.page-product .view-all-link {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: 14px; font-weight: 700; color: #cc4d00; text-decoration: none; white-space: nowrap;
}
.page-product .view-all-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-product .products-carousel {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.page-product .products-carousel::-webkit-scrollbar { display: none; }
.page-product .products-carousel .sk-card { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.page-product .lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.page-product .lightbox.active { opacity: 1; pointer-events: all; }
.page-product .lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.page-product .lightbox-inner img,
.page-product .lightbox-inner video {
  max-width: 90vw; max-height: 85vh;
  border-radius: 16px; object-fit: contain;
}
.page-product .lightbox-close {
  position: absolute; top: -40px; right: 0;
  background: rgba(255,255,255,0.15); border: none; border-radius: 50%;
  width: 36px; height: 36px; color: white; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.page-product .lightbox-close:hover { background: var(--pp-orange); }

/* ── Sticky Footer Bar (mobile) ────────────────────────────────────── */
.page-product .sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--pp-border);
  padding: 12px 5%;
  display: none;
  align-items: center; justify-content: space-between; gap: 14px;
  z-index: 90;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transition: transform 0.25s ease;
}
.page-product .footer-price-cur { font-family: 'Space Grotesk', monospace; font-size: 22px; font-weight: 800; }
.page-product .footer-price-mrp { font-size: 12px; color: var(--pp-text-muted); text-decoration: line-through; }
.page-product .footer-cta {
  flex: 1; max-width: 200px; padding: 12px 20px;
  background: var(--pp-gradient); color: white; border: none; border-radius: 12px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; transition: all 0.3s;
}
.page-product .footer-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Scroll Animations ─────────────────────────────────────────────── */
/* Visible by default. product-v2.js hides only the sections that start below
   the screen (.pp-anim-hide) and fades them in on scroll, so the name, price
   and buttons show with the first paint and nothing hides if the JS fails. */
.page-product [data-anim].pp-anim-hide {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.page-product [data-anim].pp-anim-hide.visible { opacity: 1; transform: translateY(0); }

/* ── Validation ────────────────────────────────────────────────────── */
.page-product .custom-group.error .custom-text-input,
.page-product .custom-group.error .custom-select,
.page-product .custom-group.error .custom-textarea {
  border-color: #e8a29b;
}
.page-product .custom-group.error .custom-text-input,
.page-product .custom-group.error .custom-select,
.page-product .custom-group.error .custom-textarea { box-shadow: none; }
/* Calm error state: label turns red and a short message sits under the field.
   Only typed inputs and the photo box get a red border; option chips do not. */
.page-product .custom-group.error .custom-label { color: #b42318; }
.page-product .custom-group.error .file-upload-zone { border-color: #e8a29b; background: #fff8f7; }
/* Hidden via visibility/opacity as well as transform — relying on transform
   alone means the toast shows as a plain visible div if this rule ever fails
   to apply (wrong body class, stylesheet not loaded). Unscoped on purpose
   for that reason; the pp- prefix keeps it from clashing with other pages. */
.pp-error-toast {
  position: fixed; top: 92px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  visibility: hidden; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(440px, calc(100vw - 32px));
  background: #241f1b; color: #fff; padding: 12px 16px; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500; line-height: 1.4;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.25s, visibility 0.25s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
/* The "!" mark: drawn in CSS, so the message stays plain text. */
.pp-error-toast::before {
  content: "!"; flex: 0 0 20px; height: 20px; border-radius: 50%; background: #ff6b00; color: #fff;
  font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.pp-error-toast.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible; opacity: 1;
}
/* Phones: just above the bottom buy bar, where the thumb is (not over the logo). */
@media (max-width: 768px) {
  .pp-error-toast { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(8px); }
}

/* ═══════════ LIGHT-UP PANEL ("See it light up") ═══════════
   Rendered by product.php only when the API sends light_switch (real OFF/ON
   photos uploaded in admin). A div[role=region] rather than <section> to dodge
   style.css `section { margin: 60px 0 }`. `.pp-light-img` (2 classes) beats
   style.css `img { height:auto }`, so no !important is needed. The OFF photo
   is never faked with filters — both states are real photos. */
.page-product .pp-light { --lit: 0; --p: 100%; position: relative; width: 100%; height: 100%; }
.page-product .pp-light-stage {
  position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #111;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(26, 22, 18, .06), inset 0 0 calc(var(--lit) * 60px) rgba(255, 170, 60, calc(var(--lit) * .35));
}
.page-product .pp-light-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
.page-product .pp-light-img--on { clip-path: inset(0 0 0 var(--p)); }
/* Light spill on the lit side, and a soft night vignette as it lights. */
.page-product .pp-light-spill {
  position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 0 0 var(--p)); mix-blend-mode: screen;
  background: linear-gradient(90deg, rgba(255, 180, 90, .28) var(--p), transparent calc(var(--p) + 22%));
}
.page-product .pp-light-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 70% at 55% 45%, transparent 55%, rgba(10, 6, 2, calc(var(--lit) * .45))); }
.page-product .pp-light-line {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 214, 150, 0), #ffd696 18%, #fff 50%, #ffd696 82%, rgba(255, 214, 150, 0));
  box-shadow: 0 0 14px 2px rgba(255, 180, 80, .75), 0 0 40px 6px rgba(255, 160, 60, .35);
}
.page-product .pp-light-knob {
  position: absolute; z-index: 3; top: 50%; left: clamp(34px, var(--p), calc(100% - 34px));
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #1a1612;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 6px rgba(255, 255, 255, .12);
  transition: transform .2s ease, box-shadow .2s ease; outline: none;
}
.page-product .pp-light-knob svg { width: 20px; height: 20px; }
.page-product .pp-light-bulb { fill: rgba(255, 173, 61, var(--lit)); }
.page-product .pp-light-stage.is-drag .pp-light-knob,
.page-product .pp-light-knob:focus-visible { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0, 0, 0, .32), 0 0 0 8px rgba(255, 190, 110, .28); }
.page-product .pp-light-chip {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 8px; pointer-events: none;
  font: 600 10.5px/1 'Space Grotesk', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(20, 16, 12, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18); transition: opacity .3s ease;
}
.page-product .pp-light-chip--off { left: 14px; }
.page-product .pp-light-chip--on { right: 14px; color: #ffd28a; }

/* Caption at the bottom of the tile; the hint changes as it lights. */
.page-product .pp-light-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  font: 700 14px/1.2 'Space Grotesk', sans-serif; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.page-product .pp-light-hint { font: 500 12px/1.3 'DM Sans', sans-serif; color: rgba(255, 255, 255, .85); }
/* At full light the hint becomes a way to the photo upload. */
.page-product .pp-light-use {
  pointer-events: auto; align-self: flex-start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: #fff; color: #1a1612; cursor: pointer;
  font: 700 13px/1 'DM Sans', sans-serif; text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.page-product .pp-light-use[hidden] { display: none; }
.page-product .pp-light-use:focus-visible { outline: 2px solid var(--pp-orange); outline-offset: 2px; }
/* "Preview of your photo" tag, with a way back to the sample photos. */
.page-product .pp-light-yours {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 8px; white-space: nowrap;
  font: 600 11px/1 'Space Grotesk', sans-serif; color: #fff;
  background: rgba(20, 16, 12, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.page-product .pp-light-yours[hidden] { display: none; }
.page-product .pp-light-sample { border: 0; border-radius: 6px; padding: 5px 7px; background: rgba(255, 255, 255, .9); color: #1a1612; font: 700 11px/1 'DM Sans', sans-serif; cursor: pointer; }
/* The customer's own lamp under the upload box. */
.page-product .pp-mylamp { max-width: 320px; margin-top: 12px; }
.page-product .pp-mylamp-head { margin-bottom: 6px; font: 700 13px/1.3 'Space Grotesk', sans-serif; color: var(--pp-text); }
.page-product .pp-mylamp .pp-light { aspect-ratio: 1; height: auto; }
.page-product .pp-mylamp-note { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--pp-text-light); }
/* "Save your design" under the customer's preview (api/Leads.php). */
/* Popup: bottom sheet on phones, centred card on wider screens. */
.page-product .pp-save-pop { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 14, 8, 0); transition: background .25s ease; }
.page-product .pp-save-pop.is-open { background: rgba(20, 14, 8, .45); }
.page-product .pp-save-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100% - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.page-product .pp-save-pop.is-open .pp-save-card { transform: none; }
@media (min-width: 641px) {
  .page-product .pp-save-pop { align-items: center; }
  .page-product .pp-save-card { border-radius: 20px; padding-bottom: 20px; transform: translateY(16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
  .page-product .pp-save-pop.is-open .pp-save-card { opacity: 1; }
}
.page-product .pp-save-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f4efe9; color: #1a1612; cursor: pointer; }
.page-product .pp-save-img { display: block; width: 96px; height: 96px; margin: 0 0 12px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 24px rgba(255, 170, 60, .35); }
.page-product .pp-save { padding: 0; }
.page-product .pp-save-card .pp-save-title { padding-right: 40px; font-size: 17px; }
.page-product .pp-save-title { font: 700 14px/1.3 'Space Grotesk', sans-serif; color: var(--pp-text); }
.page-product .pp-save-sub { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--pp-text-light); }
.page-product .pp-save-row { display: flex; align-items: stretch; margin-top: 10px; border: 1.5px solid var(--pp-border); border-radius: 10px; background: #fff; overflow: hidden; }
.page-product .pp-save-row:focus-within { border-color: var(--pp-orange); }
.page-product .pp-save-cc { display: flex; align-items: center; padding: 0 10px; font-size: 14px; color: var(--pp-text-light); border-right: 1px solid var(--pp-border); }
.page-product .pp-save-row input { flex: 1; min-width: 0; border: 0; padding: 11px 10px; font: 500 15px 'DM Sans', sans-serif; outline: none; background: transparent; }
.page-product .pp-save-row button { border: 0; padding: 0 18px; background: var(--pp-orange); color: #fff; font: 700 14px 'DM Sans', sans-serif; cursor: pointer; }
.page-product .pp-save-row button:disabled { opacity: .6; cursor: default; }
.page-product .pp-save-ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--pp-text-light); cursor: pointer; }
.page-product .pp-save-ok input { accent-color: var(--pp-orange); }
.page-product .pp-save-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.page-product .pp-save-msg { margin-top: 6px; font-size: 12.5px; color: var(--pp-text-light); }
.page-product .pp-save-msg:empty { display: none; }
.page-product .pp-save-msg.is-err { color: #b42318; }
.page-product .pp-save-done { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #1f8a4c; }
/* Short highlight on the upload box we scrolled to, and on the option a
   customer still has to fill in. */
.page-product .file-upload-zone.pp-upload-flash { animation: ppUploadFlash 1.6s ease 1; }
.page-product .custom-group { scroll-margin: 96px 0 120px; }
.page-product .custom-group.pp-attn { animation: ppAttn 1.6s ease 1; border-radius: 12px; }
@keyframes ppAttn {
  0%, 100% { background: transparent; box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
  20%, 60% { background: #fff6ef; box-shadow: 0 0 0 8px #fff6ef; }
}
@keyframes ppUploadFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
  20%, 60% { box-shadow: 0 0 0 4px rgba(255, 107, 0, .35); border-color: var(--pp-orange); }
}
.page-product .pp-light-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 2, .45));
}

@media (prefers-reduced-motion: reduce) {
  .page-product .live-dot { animation: none; }
  .page-product [data-anim].pp-anim-hide { opacity: 1; transform: none; transition: none; }
  .page-product .pp-light-knob, .page-product .pp-light-chip { transition: none; }
  .page-product .pp-save-pop, .page-product .pp-save-card { transition: none; }
  .page-product .file-upload-zone.pp-upload-flash { animation: none; outline: 2px solid var(--pp-orange); }
  .page-product .custom-group.pp-attn { animation: none; }
}

/* ═══════════ ADD TO CART ═══════════
   Buy now (.btn-buy-primary, .footer-cta) is the primary action; Add to cart
   is the secondary outline button beside it. */
.page-product .btn-cart-secondary {
  width: 100%;
  padding: 15px 24px;
  background: #fff;
  color: var(--pp-dark);
  border: 1.5px solid var(--pp-border);
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.25s, color 0.25s, background 0.25s, opacity 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.page-product .btn-cart-secondary svg { width: 20px; height: 20px; flex-shrink: 0; }
.page-product .btn-cart-secondary:hover:not(:disabled) {
  border-color: var(--pp-orange);
  color: var(--pp-orange);
  background: var(--pp-orange-light);
}
/* :hover sticks after tap on touch devices — reset explicitly. */
.page-product .btn-cart-secondary:focus:not(:hover),
.page-product .btn-cart-secondary:active:not(:hover) {
  border-color: var(--pp-border);
  color: var(--pp-dark);
  background: #fff;
}
.page-product .btn-cart-secondary:disabled { opacity: 0.6; cursor: wait; }

/* Sticky mobile bar: Buy now + an icon-only Add to cart. */
.page-product .footer-cart-btn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--pp-dark);
  border: 1.5px solid var(--pp-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, opacity 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.page-product .footer-cart-btn svg { width: 20px; height: 20px; }
.page-product .footer-cart-btn:hover:not(:disabled) { border-color: var(--pp-orange); color: var(--pp-orange); }
.page-product .footer-cart-btn:focus:not(:hover),
.page-product .footer-cart-btn:active:not(:hover) { border-color: var(--pp-border); color: var(--pp-dark); }
.page-product .footer-cart-btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Confirmation drawer ──────────────────────────────────────────────
   Not scoped to .page-product: it is a direct child of <body> and the body
   class is page-product, so .page-product .cart-drawer works — but keeping
   it scoped guards against the markup being reused elsewhere unstyled. */
.page-product .cart-drawer { position: fixed; inset: 0; z-index: 2100; }
.page-product .cart-drawer[hidden] { display: none; }
.page-product .cart-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  opacity: 0;
  transition: opacity 0.3s;
}
.page-product .cart-drawer.open .cart-drawer-backdrop { opacity: 1; }
.page-product .cart-drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(380px, 90vw);
  background: #fff;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
}
.page-product .cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.page-product .cart-drawer-close {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--pp-text-light);
  border-radius: 50%; transition: background 0.2s;
}
.page-product .cart-drawer-close:hover { background: var(--pp-bg-soft); }
.page-product .cart-drawer-close:focus:not(:hover),
.page-product .cart-drawer-close:active:not(:hover) { background: transparent; }
.page-product .cart-drawer-tick {
  width: 48px; height: 48px;
  margin: 12px 0 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #ecfdf5; color: var(--pp-green);
}
.page-product .cart-drawer-tick svg { width: 24px; height: 24px; }
.page-product .cart-drawer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 700; color: var(--pp-dark);
  margin: 0 0 6px;
}
.page-product .cart-drawer-sub {
  font-size: 14px; line-height: 1.55; color: var(--pp-text-light);
  margin: 0 0 22px;
}
.page-product .cart-drawer-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  text-align: center;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.page-product .cart-drawer-btn-primary { background: var(--pp-gradient); color: #fff; }
.page-product .cart-drawer-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,0,0.28); }
.page-product .cart-drawer-btn-primary:focus:not(:hover),
.page-product .cart-drawer-btn-primary:active:not(:hover) { transform: none; box-shadow: none; }
.page-product .cart-drawer-btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--pp-text-light);
  border: 1.5px solid var(--pp-border);
}
.page-product .cart-drawer-btn-ghost:hover { border-color: var(--pp-orange); color: var(--pp-orange); }
.page-product .cart-drawer-btn-ghost:focus:not(:hover),
.page-product .cart-drawer-btn-ghost:active:not(:hover) { border-color: var(--pp-border); color: var(--pp-text-light); }

@media (prefers-reduced-motion: reduce) {
  .page-product .cart-drawer-panel,
  .page-product .cart-drawer-backdrop { transition: none; }
}

/* Multicolour filament option: drawn swatch instead of an emoji icon. */
.page-product .color-chip--multi { background: conic-gradient(#e53935 0 25%, #fbc02d 0 50%, #43a047 0 75%, #1e88e5 0) !important; }

/* WhatsApp is for questions only now; buying happens through cart/checkout. */
.page-product .pp-help-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 4px 0;
  font-size: 13px; line-height: 1.35; color: #4a433c; text-decoration: none;
}
.page-product .pp-help-wa svg { flex: 0 0 auto; color: #1f8a4c; }
.page-product .pp-help-wa b { font-weight: 700; color: #17683a; }
.page-product .pp-help-wa:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* Phones: options that are easy to fill in. 16px text so iPhones do not zoom
   the page into the field; option buttons at least 40px tall to tap; the buy
   bar steps aside while the keyboard is open (product-v2.js, pp-typing). */
@media (max-width: 768px) {
  .page-product .custom-text-input, .page-product .custom-textarea, .page-product .custom-select { font-size: 16px; }
  .page-product .option-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 5px; }
  body.page-product.pp-typing .sticky-footer { transform: translateY(110%); }
}
/* "Quantity" label: phones only (shown in the 768px block); desktop has the buttons beside it. */
.page-product .qty-label { display: none; }

/* Plain-language message under a customisation that still needs attention. */
.page-product .custom-error { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; font-weight: 500; color: #b42318; }
.page-product .custom-error::before { content: "!"; flex: 0 0 16px; height: 16px; border-radius: 50%; background: #fdecea; color: #b42318; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }

/* style.css sets a system font on body; the product page uses the brand font. */
body.page-product { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important; }

/* ── Sold out (admin > product > Publish, migration 032) ──────────────
   Details stay visible; only the buy area changes. */
.page-product .pp-soldout-tag {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 4px; pointer-events: none;
}
/* Only the main (first) photo goes black and white. */
.page-product .pp-gallery.is-soldout .pp-slide:first-child img,
.page-product .pp-gallery.is-soldout .pp-slide:first-child video { filter: grayscale(1); }
.page-product .pp-lowstock { margin: 0 0 10px; color: #b45309; font-weight: 600; font-size: 14px; }
.page-product .pp-soldout-status { margin: 6px 0 0; color: #c0392b; font-weight: 600; font-size: 14px; }
.page-product .pp-soldout-btn {
  display: block; width: 100%; padding: 14px; border: 0; border-radius: 14px;
  background: #eeeeee; color: #9a9a9a; font: inherit; font-size: 16px; font-weight: 700; cursor: not-allowed;
}
.page-product .pp-soldout-wa {
  margin-top: 12px; padding: 14px; border: 1px solid #cfe9d8; background: #f1faf4; border-radius: 14px;
}
.page-product .pp-soldout-wa p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #1f5a35; }
.page-product .pp-soldout-wa-btn,
.page-product .pp-soldout-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #1f9d55; color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 12px;
}
.page-product .pp-soldout-wa-btn { padding: 13px; font-size: 15px; }
.page-product .pp-soldout-wa-btn:hover { background: #18834a; }
/* The sticky bar button also has .footer-cta (orange): override it. */
.page-product .pp-soldout-footer { flex: 1; background: #1f9d55 !important; color: #fff !important; }
.page-product .pp-soldout-footer svg { fill: currentColor; stroke: none; }
.page-product .pp-soldout-footer:hover { box-shadow: 0 6px 20px rgba(31,157,85,0.35); }

/* "Available now": one in-stock alternative under the WhatsApp box (API picks it). */
.page-product .pp-soldout-alt {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px;
  border: 1px solid var(--pp-border, #e6e2dc); border-radius: 14px; background: #fff;
  color: inherit; text-decoration: none;
}
.page-product .pp-soldout-alt:hover { border-color: var(--pp-orange); }
.page-product .pp-soldout-alt img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #f6f4f1; flex: 0 0 auto; }
.page-product .pp-soldout-alt-txt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; }
.page-product .pp-soldout-alt-txt span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1f6b3a; }
.page-product .pp-soldout-alt-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-product .pp-soldout-alt-go { font-size: 13px; font-weight: 700; color: #fff; background: var(--pp-orange); border-radius: 9px; padding: 8px 12px; flex: 0 0 auto; }

/* ═══════════ RESPONSIVE ═══════════
   Last in the file on purpose: these override the base rules above. */
@media (max-width: 1024px) {
  .page-product .products-carousel .sk-card { flex-basis: calc((100% - 32px) / 3); }
}
/* Phones and small tablets: app-like. Photos edge to edge first, then the
   name and price; the bottom bar (price, Add to cart, Buy now) is always
   there, so the page itself only keeps the quantity. */
@media (max-width: 768px) {
  .page-product .breadcrumb-wrap { display: none; }
  /* minmax(0, 1fr): the swipe rows must not widen the column. */
  .page-product .product-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-product .product-media, .page-product .product-info { position: static; min-width: 0; }
  .page-product .product-page { padding: 0 0 8px; }
  .page-product .pp-gallery { border-radius: 0; }
  .page-product .pp-count { display: block; }
  .page-product .pp-thumbs-wrap, .page-product .pp-zoom { display: none; }
  .page-product .pp-slide { cursor: auto; }

  .page-product .product-info { padding: 14px 16px 0; }
  .page-product .product-name { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
  .page-product .price-current { font-size: 24px; }
  .page-product .price-mrp { font-size: 14px; }
  .page-product .short-desc { font-size: 13.5px; line-height: 1.55; margin: 10px 0 12px; }
  /* Facts: one swipe row of small chips. */
  .page-product .trust-badges {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border: 0; border-radius: 0; background: none;
    margin: 0 -16px 4px; padding: 0 16px;
  }
  .page-product .trust-badges::-webkit-scrollbar { display: none; }
  .page-product .trust-badge, .page-product .trust-badge:nth-child(n) {
    flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--pp-border); border-radius: 8px;
    font-size: 12px; white-space: nowrap; background: #fff;
  }
  .page-product .section-divider { margin: 14px 0 !important; }
  .page-product .customizations { margin-bottom: 0; }
  .page-product .custom-group { margin-bottom: 18px; }
  /* Photo upload: one compact row (icon, then the two lines). */
  .page-product .file-upload-zone {
    display: grid !important; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center;
    padding: 12px 14px; text-align: left; border-width: 1.5px;
  }
  .page-product .file-upload-zone .upload-icon {
    grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--pp-border); border-radius: 12px; color: var(--pp-orange);
  }
  .page-product .file-upload-zone .upload-icon svg { width: 22px; height: 22px; }
  .page-product .file-upload-zone p { font-size: 12px; line-height: 1.35; }
  .page-product .file-upload-zone p:first-of-type { font-size: 14px; }

  /* Quantity on its own row; the buttons are in the bottom bar. */
  .page-product .buy-row { align-items: center; justify-content: space-between; }
  .page-product .buy-row .btn-buy-primary, .page-product .buy-row .btn-cart-secondary { display: none; }
  .page-product .qty-label { display: block; font-size: 14px; font-weight: 700; color: var(--pp-dark); }
  .page-product .buy-row .qty-btn { min-height: 40px; width: 40px; }
  .page-product .cta-stack { gap: 6px; margin-bottom: 14px; }
  /* Question and share: one quiet panel, two clear rows. */
  .page-product .pp-help-wa {
    justify-content: flex-start; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--pp-border); border-radius: 12px 12px 0 0;
  }
  .page-product .pp-help-wa + .pp-share { margin-top: -7px; padding: 8px 12px; border: 1px solid var(--pp-border); border-top-color: #f0ece7; border-radius: 0 0 12px 12px; }
  .page-product .pp-share { flex-wrap: nowrap; }
  .page-product .pp-share-label { margin-right: auto; font-size: 13px; color: #4a433c; }
  .page-product .pp-share-btn { height: 36px; }

  .page-product .sticky-footer { display: flex; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .page-product .footer-price-block { flex: 0 0 auto; margin-right: auto; padding-left: 4px; }
  .page-product .footer-price-cur { font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
  .page-product .footer-price-mrp { font-size: 13px; line-height: 1.3; }
  .page-product .footer-cart-btn { width: auto; height: 44px; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .page-product .footer-cta { flex: 0 1 150px; height: 44px; padding: 0 14px; }
  .page-product .footer-cta.pp-soldout-footer { flex: 0 1 auto; white-space: nowrap; }
  /* Room under the footer so the fixed buy bar never covers the legal links. */
  .page-product footer.footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }

  .page-product .delivery-info { padding: 10px 12px; gap: 10px; border-radius: 12px; margin-bottom: 14px; }
  .page-product .delivery-text { font-size: 12.5px; line-height: 1.5; }
  /* Details: plain rows, closed at first (product-v2.js). */
  .page-product .pp-accordion { border: 0; border-radius: 0; border-top: 1px solid var(--pp-border); border-bottom: 1px solid var(--pp-border); }
  .page-product .accordion-trigger { padding: 14px 0; }
  .page-product .accordion-trigger:hover { background: none; }
  .page-product .accordion-content { padding: 0 0 16px; font-size: 13.5px; line-height: 1.65; }

  .page-product .related-section { margin-top: 20px; padding: 20px 16px 24px; border-top: 8px solid #f6f3ef; }
  .page-product .related-header-row { margin-bottom: 12px; }
  .page-product .section-title { font-size: 20px; }
  .page-product .products-carousel .sk-card { flex-basis: 40%; }
}
@media (max-width: 640px) {
  /* Their lamp fills the width on phones; smaller handle covers less face. */
  .page-product .pp-mylamp { max-width: none; }
  .page-product .pp-light-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .page-product .pp-light-knob svg { width: 18px; height: 18px; }
  .page-product .pp-light-chip { top: 10px; padding: 5px 8px; font-size: 10px; }
  .page-product .pp-light-chip--off { left: 10px; }
  .page-product .pp-light-chip--on { right: 10px; }
  .page-product .pp-light-yours { top: auto; bottom: 62px; }
  /* More gifts: banner cards here (product-card.css shows .fb-track). */
  .page-product #relatedWrap { display: none; }
}
@media (max-width: 360px) {
  .page-product .footer-cart-btn .btn-cart-label { display: none; }
}
/* Short screens (a phone turned to landscape): the gallery does not stick,
   so its thumbnails are never held off screen. */
@media (min-width: 769px) and (max-height: 700px) {
  .page-product .product-media, .page-product .product-info { position: static; }
}

/* Delivery date in the delivery box ("Order today, get it by 19-25 Nov"). */
.page-product .delivery-date b { color: #0b6e3a; font-weight: 700; white-space: nowrap; }

