/* ═══════════════════════════════════════════════════════════════
   PRISMOR — Landing Page Stylesheet
   Mobile-First · Modern European Eyewear
═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --orange:       #ff8401;
  --orange-dark:  #e07200;
  --orange-light: #fff3e4;
  --dark:         #1a1a1a;
  --dark-soft:    #2d2d2d;
  --white:        #ffffff;
  --off-white:    #f9f9f7;
  --light-gray:   #f3f3f1;
  --border:       #e4e4e0;
  --border-soft:  #eeeeeb;
  --text-muted:   #888;
  --text-light:   #aaa;
  --font:         'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.14);
  --transition:   0.22s cubic-bezier(.4,0,.2,1);
  --header-h:     56px;

  /* Showcase heights */
  --showcase-h-mobile:  68vw;
  --showcase-h-desktop: 520px;
  --thumb-w:      82px;
  --thumb-h:      66px;
}

/* ─── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: var(--font); }

/* ─── LAYOUT ──────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.header-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT SHOWCASE — MOBILE FIRST
═══════════════════════════════════════════════════════════════ */
#product-showcase {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

/* Mobile layout: main viewer full width, thumbnails below */
.showcase-wrap {
  display: flex;
  flex-direction: column;
}

/* ── Desktop thumbnail rail (left) — hidden on mobile ─────────── */
.thumbnail-rail {
  display: none; /* hidden on mobile, shown on desktop */
}

/* ── Mobile thumbnail rail (bottom) ──────────────────────────── */
.thumbnail-rail-mobile {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.thumbnail-rail-mobile::-webkit-scrollbar { display: none; }

/* ── Variant Carousel ─────────────────────────────────────────── */
#variant-carousel { padding: 6px 0 10px; }
.variant-carousel-label {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #8a8a8a;
  padding: 0 16px; margin: 0 0 10px; text-align: center;
}
/* arrows overlay the rail edges so the 3 cards still fill the screen width */
.variant-carousel-row { position: relative; }
.variant-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,.92);
  color: var(--dark); box-shadow: 0 1px 6px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity .15s, background .15s;
}
#variantPrev { left: 0; }
#variantNext { right: 0; }
.variant-arrow:hover { background: #fff; }
.variant-arrow:disabled { opacity: 0; pointer-events: none; }   /* hidden at each end */
.variant-rail {
  width: 100%; max-width: 100%;
  display: flex; flex-direction: row; gap: 12px;
  overflow-x: auto; padding: 4px 2px 10px; scroll-behavior: smooth;
  justify-content: flex-start;                 /* start-aligned so overflow scrolls, no page-widening */
  scrollbar-width: none; -ms-overflow-style: none;
}
.variant-rail.is-centered { justify-content: center; }   /* centered only when it all fits */
.variant-rail::-webkit-scrollbar { display: none; }
.variant-item {
  flex: 0 0 calc((100% - 24px) / 3);   /* 3 items fill the width (minus 2×12px gaps) */
  max-width: calc((100% - 24px) / 3);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px; border: 2px solid transparent; border-radius: 16px;
  background: #fff; cursor: pointer; text-align: center; font-family: inherit;
  transition: border-color .15s, transform .1s;
}
.variant-item .variant-thumb {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.variant-item .variant-name {
  font-size: 15px; font-weight: 700; line-height: 1.25; color: #1a1a1a; width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.variant-item .variant-price { font-size: 15px; font-weight: 700; color: var(--orange); }
.variant-item.active { border-color: var(--orange); background: var(--orange-light); }
.variant-item:active { transform: scale(.97); }

/* ── Selected product name (above the gallery) ────────────────── */
#selected-title { padding: 16px 0 6px; }
.selected-product-name {
  margin: 0; padding: 0 16px; text-align: center;
  font-size: clamp(16px, 4.6vw, 22px); font-weight: 800; line-height: 1.3;
  color: var(--dark); overflow-wrap: anywhere;
}

/* ── Main Viewer ──────────────────────────────────────────────── */
.main-viewer {
  position: relative;
  width: 100%;
  height: var(--showcase-h-mobile);
  background: var(--light-gray);
  overflow: hidden;
  cursor: zoom-in;
}
.main-media-wrap {
  width: 100%;
  height: 100%;
}
.main-media-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.main-glasses-svg { opacity: .14; pointer-events: none; }

.media-label-chip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.42);
  padding: 5px 11px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.badge-bestseller {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 4px 10px;
  border-radius: 20px;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.18);
}
.play-btn-main {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.play-btn-main svg { color: var(--dark); margin-left: 3px; }

/* Fullscreen expand button */
.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}
.main-viewer:hover .expand-btn { opacity: 1; }
/* Always visible on touch devices */
@media (hover: none) {
  .expand-btn { opacity: 1; }
}

/* ── Thumbnail items (shared styles) ─────────────────────────── */
.thumb-item {
  flex-shrink: 0;
  width: 64px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.thumb-item.active { border-color: var(--orange); }
.thumb-item:active { transform: scale(.97); }

.thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.thumb-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.28);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT META (Title + Contact)
═══════════════════════════════════════════════════════════════ */
#product-meta {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
}
.collection-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Title row: name + WA icon side by side */
.product-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.product-name {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}

/* WhatsApp icon button — small circle on mobile */
.btn-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 2px 10px rgba(37,211,102,.3);
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  margin-top: 1px;
}
.btn-wa-icon:active { background: #20bd5a; transform: scale(.95); }
.wa-label { display: none; } /* text hidden on mobile */

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dark);
  background: var(--light-gray);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   SPECIFICATIONS SECTION
═══════════════════════════════════════════════════════════════ */
#product-description {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
}

.spec-section { width: 100%; }

.section-label {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

/* Collapsed: show the first 2 specs; the rest appear on "See more" */
.spec-list {
  display: flex;
  flex-direction: column;
}
.spec-list:not(.expanded) li:nth-child(n+3) { display: none; }
.spec-list.expanded {
  max-height: 340px;
  overflow-y: auto;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: none;
}
.spec-list::-webkit-scrollbar { display: none; }

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  flex-shrink: 0;
}
.spec-list li:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); font-weight: 500; }
.spec-val { color: var(--dark); font-weight: 600; }

/* See More button */
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--orange);
  -webkit-tap-highlight-color: transparent;
}
.see-more-btn svg { transition: transform var(--transition); }
.see-more-btn.open svg { transform: rotate(180deg); }

/* ═══════════════════════════════════════════════════════════════
   ORDER SECTION
═══════════════════════════════════════════════════════════════ */
#order-section {
  padding: 36px 0 40px;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.order-section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Mobile: stack form + price vertically */
.order-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Form ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label,
.form-label-block {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-soft);
  margin-bottom: 8px;
}
.req { color: var(--orange); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,132,1,.1);
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .input-with-prefix { border-color: #e53935; }

.input-with-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.input-with-prefix:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,132,1,.1);
}
.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--light-gray);
  border-right: 1.5px solid var(--border);
  white-space: nowrap;
}
.input-with-prefix input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex: 1;
}
.field-err {
  display: block;
  font-size: 11.5px;
  color: #e53935;
  margin-top: 6px;
  min-height: 1em;
  font-weight: 500;
}

/* ── Delivery Cards ───────────────────────────────────────────── */
.delivery-options { display: flex; flex-direction: column; gap: 10px; }

.delivery-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.delivery-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.delivery-card.selected { border-color: var(--orange); background: var(--orange-light); }

.delivery-card-body { flex: 1; }
.delivery-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.dc-title { font-size: 14px; font-weight: 700; }
.dc-price { font-size: 14px; font-weight: 800; color: var(--orange); }
.dc-time { font-size: 11.5px; color: var(--text-muted); }

.dc-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all var(--transition);
}
.delivery-card.selected .dc-check {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ── Price Card ───────────────────────────────────────────────── */
.price-col { width: 100%; }
.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow);
}
.price-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.price-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.price-row span:first-child { color: var(--text-muted); font-weight: 500; }
.price-row span:last-child { font-weight: 600; }
.price-row em { font-style: normal; color: var(--text-light); font-size: 12px; }
.discount-val { color: #2e9e4f !important; }
.subtotal-row span { font-weight: 700 !important; color: var(--dark) !important; }

.price-divider { height: 1px; background: var(--border); margin: 0 0 16px; }
.price-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.price-total-row span:first-child { font-size: 14px; font-weight: 700; }
.total-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -.02em;
  transition: transform 0.18s ease;
}
.cod-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 10px 13px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ── Confirm Button ───────────────────────────────────────────── */
.confirm-wrap {
  margin-top: 28px;
  text-align: center;
}
.btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--orange);
  padding: 17px 28px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(255,132,1,.35);
  -webkit-tap-highlight-color: transparent;
}
.btn-confirm:active { background: var(--orange-dark); transform: scale(.98); }
.confirm-sub {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RECOMMENDATIONS
═══════════════════════════════════════════════════════════════ */
#recommendations { padding: 44px 0 52px; }
.rec-head { text-align: center; margin-bottom: 28px; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rec-card:active { transform: scale(.98); }

.rec-card-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.rec-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 3px 8px;
  border-radius: 20px;
}
.rec-glasses-svg { opacity: .14; }
.rec-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.rec-badge { z-index: 2; }

.rec-card-body { padding: 12px 14px 14px; }
.rec-color-name {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.rec-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.1);
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}
.rec-name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.rec-pricing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.rec-price-now { font-size: 15px; font-weight: 800; color: var(--dark); letter-spacing: -.01em; }
.rec-price-orig { font-size: 11px; color: var(--text-light); text-decoration: line-through; display: block; }
.rec-discount-tag {
  font-size: 10px;
  font-weight: 700;
  color: #2e9e4f;
  background: #e6f5eb;
  padding: 3px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   VISIT WEBSITE SECTION
═══════════════════════════════════════════════════════════════ */
#visit-website {
  padding: 48px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  text-align: center;
}
.visit-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.visit-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .04em;
}
.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--dark);
  padding: 14px 28px;
  border-radius: 100px;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-visit:active { background: #333; }
.visit-url {
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  margin-bottom: 4px;
}
.footer-brand p { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .45; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 10.5px; opacity: .3; }

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,8,8,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
  z-index: 2;
}
.lightbox-inner {
  width: 95vw;
  height: 75vw;
  max-width: 900px;
  max-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(.94);
  transition: transform 0.32s cubic-bezier(.34,1.56,.64,1);
}
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-media-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lb-glasses-svg { opacity: .15; }

/* ═══════════════════════════════════════════════════════════════
   INVOICE MODAL
═══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal.open { pointer-events: all; opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  cursor: pointer;
}

/* Invoice sheet — slides up from bottom on mobile */
.invoice-sheet {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(60px);
  transition: transform 0.38s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
}
.invoice-modal.open .invoice-sheet { transform: translateY(0); }

/* Invoice Action Bar */
.invoice-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.invoice-download-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background var(--transition);
}
.invoice-download-btn:active { background: var(--orange-dark); }

.invoice-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--light-gray);
}

/* Invoice Content — scrollable */
.invoice-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 32px;
  -webkit-overflow-scrolling: touch;
}

/* Invoice Document Styles */
.inv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.inv-logo { height: 28px; width: auto; object-fit: contain; }
.inv-logo-text { font-size: 18px; font-weight: 800; letter-spacing: .12em; color: var(--dark); }
.inv-title-block { text-align: right; }
.inv-title-block h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 4px;
}
.inv-title-block p { font-size: 12px; color: var(--text-muted); font-weight: 500; line-height: 1.6; }

.inv-divider { height: 1px; background: var(--border); margin: 16px 0; }

.inv-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}

.inv-customer { margin-bottom: 16px; }
.inv-customer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--dark);
  font-weight: 500;
}
.inv-customer strong { font-weight: 700; }

.inv-product-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  margin-bottom: 6px;
}
.inv-product-row span:first-child { color: var(--text-muted); font-weight: 500; }
.inv-product-row span:last-child { color: var(--dark); font-weight: 600; text-align: right; flex: 1; margin-left: 12px; }

.inv-pricing { margin-top: 4px; }
.inv-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.inv-price-row:last-child { border-bottom: none; }
.inv-price-row span:first-child { color: var(--text-muted); font-weight: 500; }
.inv-price-row span:last-child { font-weight: 600; }
.inv-discount { color: #2e9e4f !important; }

.inv-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--orange-light);
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,132,1,.2);
}
.inv-total span:first-child { font-size: 13px; font-weight: 700; }
.inv-total-amount { font-size: 22px; font-weight: 800; color: var(--orange); }

.inv-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.inv-footer p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}
.inv-footer strong { color: var(--dark); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   TABLET (≥ 640px)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding: 0 24px; }
  .logo-img { height: 34px; }
  .header-tagline { font-size: 11px; }

  .main-viewer { height: 440px; }

  .product-name { font-size: 24px; }

  /* Expand WA button to pill with text on tablet+ */
  .btn-wa-icon {
    width: auto;
    height: auto;
    border-radius: 100px;
    padding: 11px 18px;
    gap: 8px;
    margin-top: 2px;
  }
  .wa-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
  }

  .delivery-options { flex-direction: row; }

  .rec-card-img { height: 160px; }
  .rec-name { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP (≥ 900px)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .container { padding: 0 40px; }
  .logo-img { height: 36px; }

  /* ── Showcase: side-by-side with equal height ── */
  .showcase-wrap {
    flex-direction: row;
    height: var(--showcase-h-desktop);
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 40px;
    gap: 18px;
  }

  .thumbnail-rail {
    display: flex; /* show left rail on desktop */
    flex-direction: column;
    gap: 10px;
    width: var(--thumb-w);
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .thumbnail-rail::-webkit-scrollbar { display: none; }

  .thumbnail-rail .thumb-item {
    width: var(--thumb-w);
    height: var(--thumb-h);
  }
  .thumbnail-rail .thumb-item:hover { border-color: rgba(255,132,1,.5); }

  .thumbnail-rail-mobile { display: none; } /* hide mobile rail on desktop */

  .main-viewer {
    flex: 1;
    height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .expand-btn { opacity: 0; }
  .main-viewer:hover .expand-btn { opacity: 1; }

  /* ── Product meta ── */
  #product-meta { padding: 32px 0 28px; }
  .product-name { font-size: 28px; }

  /* ── Specifications on desktop ── */
  #product-description { padding: 28px 0 20px; }
  .section-label { font-size: 9.5px; margin-bottom: 12px; }
  .spec-list.expanded { max-height: 380px; scrollbar-width: none; }

  /* ── Order layout: side by side ── */
  #order-section { padding: 60px 0 56px; }
  .order-layout { flex-direction: row; gap: 28px; }
  .order-form-col { flex: 1; }
  .price-col {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: flex-start;
  }

  .btn-confirm { width: auto; padding: 17px 60px; font-size: 15px; }
  .confirm-wrap { text-align: center; }

  /* ── Recommendations ── */
  #recommendations { padding: 64px 0 72px; }
  .rec-grid { gap: 18px; }
  .rec-card-img { height: 190px; }

  /* ── Invoice modal: centered card on desktop ── */
  .invoice-modal {
    align-items: center;
  }
  .invoice-sheet {
    border-radius: var(--radius-lg);
    max-height: 88vh;
  }
}

@media (min-width: 900px) {
  .main-viewer:hover .expand-btn { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES (invoice PDF)
═══════════════════════════════════════════════════════════════ */
@media print {
  body * { visibility: hidden; }
  .invoice-content, .invoice-content * { visibility: visible; }
  .invoice-content {
    position: fixed;
    inset: 0;
    padding: 32px;
    overflow: visible;
    background: white;
  }
  .invoice-action-bar { display: none !important; }
}

/* ─── DISTRICT SELECT ───────────────────────────────────── */
.district-select {
  position: relative;
}
.district-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.district-input-wrap input {
  width: 100%;
  padding-right: 36px;
  cursor: pointer;
}
.district-arrow {
  position: absolute;
  right: 12px;
  color: #888;
  pointer-events: none;
  transition: transform .2s;
}
.district-dropdown.open ~ .district-input-wrap .district-arrow,
.district-select:focus-within .district-arrow {
  transform: rotate(180deg);
}
.district-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0da;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.district-dropdown.open {
  display: block;
}
.district-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #1a1a1a;
  transition: background .12s;
}
.district-option:hover {
  background: #fff3e4;
}
.district-option.district-empty {
  color: #aaa;
  cursor: default;
  justify-content: center;
}
.district-charge {
  font-size: 12px;
  font-weight: 600;
  color: #ff8401;
  margin-left: 8px;
  white-space: nowrap;
}
