/* ─── PRODUCT PAGE ──────────────────────────────────────── */
.product-page { max-width: var(--container); margin: 0 auto;  }
.product-layout {
  display: grid;
  grid-template-columns: 725px 1fr;
  gap: 32px;
  align-items: start;
}

.product-page h1 {
   font-family: 'Jost', Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: -5px;
}
.product-page .sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: 'Jost', Arial, sans-serif;
}

/* ─── PRODUCT VIEWER WRAP ───────────────────────────────── */
.product-viewer-wrap {
  position: relative;         /* anchor for the arrows */
  width: 725px;               /* always fixed — arrows never move */
  height: 484px;
}

/* Shell centers the image box inside the fixed wrap */
.product-viewer-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image box: JS will set width/height to fit the natural image size */
.product-main-img {
  position: relative;
  height: 100%;
  width: 100%;                /* JS overrides this for portrait images */
  max-width: 725px;
  max-height: 484px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  background: #000;
  transition: width 0.2s ease;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-page .viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
}

.btn-product-closer-look {
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.btn-product-closer-look:hover { background: rgba(255,255,255,0.8); transform: scale(1.03); }

.btn-buy-overlay {
  font-family: "jeanne-moderno-geometrique", sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-style: normal;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 5px 18px;
  margin-left: auto;
  border-radius: 100px;
  cursor: pointer;
}
.btn-buy-overlay:hover { background: rgba(255,255,255,0.8); transform: scale(1.03); }

/* Arrows: absolutely positioned on the fixed 725px wrap */
.product-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 25px;
  border: none;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  pointer-events: none;
}
#product-arrow-left  { left: 14px; }
#product-arrow-right { right: 14px; }

.product-viewer-wrap:hover .product-viewer-arrow {
  opacity: 1;
  pointer-events: auto;
}
.product-viewer-arrow:hover {
  background: rgba(255,255,255,0.8);
  transform: translateY(-50%) scale(1.08);
}
.product-viewer-arrow svg {
  width: 40px;
  height: 40px;
  fill: rgb(44, 44, 44);
  transition: fill 0.2s;
}
.product-viewer-arrow:hover svg {
  fill: var(--text);
}

/* Closer look button — show on image hover */
.product-btn {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.5);
  color: var(--text);
  font-family: inherit;
}
.product-btn:hover { background: rgba(255,255,255,0.8); transform: scale(1.02);}
.product-main-img:hover .product-btn {
  opacity: 1;
  pointer-events: auto;
  
}

.product-thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, 118px);
  gap: 7px;
  margin-top: 10px;
  width: 725px; 
}
.product-thumb {
  width: 118px;
  height: 84px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.product-thumb:hover { transform: scale(1.03); }
.product-thumb.active { box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }


.price {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 15px;
}

.size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.size-btn {
  width: 82px;
  height: 34px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 15px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}
.size-btn.active, .size-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.type-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 25px; }
.type-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 34px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 15px; font-weight: 500;
  transition: all 0.2s; cursor: pointer;
}
.type-btn.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.type-btn .info-icon {
  font-family: 'Jost', Arial, sans-serif;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--bg);
  margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--muted);
}
.type-btn:hover { background: var(--text); color: var(--bg); }
.type-btn.active .info-icon { background: var(--muted); color: var(--text); }

.framed-toggle {
  position: relative;
  user-select: none;
}
.framed-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.framed-toggle.open .framed-dropdown { display: block; }
.framed-option {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.framed-option:hover { background: var(--text); color: #fff; }
.framed-option + .framed-option { border-top: 1px solid var(--border); }

/* Unified quantity pill — matches framed toggle */
.qty-toggle-pill {
  width: 100%;
  margin-bottom: 25px;
  justify-content: flex-start;
  gap: 0;
  padding-left: 14px;
  padding-right: 10px;
}
.qty-toggle-pill .qty-pill-label {
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
}
.qty-toggle-pill .qty-pill-divider {
  flex: 1;
}
.qty-toggle-pill #qty-label {
  font-size: 15px;
  font-weight: 500;
  margin-right: 25px;
}
.qty-toggle-pill .framed-dropdown {
  min-width: 100%;
}

.btn-add-cart {
  width: 100%; height: 34px;
  padding: 5px;
  background: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.04em;
   box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-bottom: 10px;
  transition: all 0.2s;
}
.btn-add-cart svg {
  width: 100%;
  height: 34px;
  fill: var(--text);
  margin-top: 2px;
  transition: fill 0.2s;
} 
.btn-add-cart:hover svg { fill: var(--bg); }
.btn-add-cart:hover { background: var(--text); color: var(--bg); }

.btn-buy-now {
  width: 100%; height: 34px;
  background: var(--bg);
  border: none;
  border-radius: 100px;
   box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.btn-buy-now svg {
  width: 100%;
  height: 34px;
  fill: var(--text);
  margin-left: 6px;
  transition: fill 0.2s;
}
.btn-buy-now:hover svg { fill: var(--bg); }
.btn-buy-now:hover { background: var(--text); }

/* ─── PRODUCT LIGHTBOX ──────────────────────────────────── */
#product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#product-lightbox.open { display: flex; }

/* Outer row: [arrow] [image] [arrow] */
.plb-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 96vw;
}

/* Arrow zones outside the image */
.plb-arrow-zone {
  flex-shrink: 0;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  align-self: stretch;
  opacity: 0;
  transition: opacity 0.2s;
}
.plb-inner:hover .plb-arrow-zone {
  opacity: 1;
}
.plb-arrow-zone svg {
  width: 42px;
  height: 42px;
  fill: #fff;
  background: rgba(20,20,20,0.55);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.15s;
  padding: 8px;
}
.plb-arrow-zone:hover svg {
  background: rgba(20,20,20,0.9);
  transform: scale(1.08);
}

.plb-img-wrap {
  position: relative;
  line-height: 0;
  flex-shrink: 0;
}
.plb-img-wrap img {
  max-width: 80vw;
  max-height: 84vh;
  width: auto; height: auto;
  display: block;
  border: 3px solid #2a2a2a;
  border-radius: 2px;
}

/* Close / Add to Cart stay on the image */
.plb-btn {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  cursor: pointer;
  border: none;
  background: rgba(20,20,20,0.88);
  color: #fff;
  font-family: inherit;
}
.plb-img-wrap:hover .plb-btn {
  opacity: 1; pointer-events: auto;
}
.plb-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.plb-add-cart {
  position: absolute;
  bottom: 10px; right: 10px;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 2;
}
.plb-add-cart:hover { background: rgba(20,20,20,1); }
.plb-caption {
  position: absolute;
  bottom: 10px; left: 14px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
  font-family: 'Jost', Arial, sans-serif;
}