/**
 * Olanzu — Single Product Page CSS
 * Reference: product.html (Tailwind CSS values converted to plain CSS)
 * Loaded only on single product pages (is_singular('product'))
 */


/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED / WRAPPER
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-pdp-wrap {
  font-family: var(--font-sans);
  color: var(--olz-black);
  background: #fff;
}

/* page background for sections that use gray-50 */
.olz-pdp-wrap .olz-pdp-gray-bg {
  background: #F9FAFB;
}


/* Section headers + Breadcrumb → global (style.css) */


/* ═══════════════════════════════════════════════════════════════════════════════
   2. PRODUCT HERO SECTION WRAPPER
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-pdp-hero-section {
  border-bottom: 1px solid #F3F4F6;
  background: #fff;
}

.olz-pdp-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 32px var(--page-px) 60px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   3. HERO GRID (40/60)
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-pdp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .olz-pdp-hero {
    grid-template-columns: 40% minmax(0, 60%);
    gap: 48px; /* gap-12 */
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   4. GALLERY (LEFT COLUMN)
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 1024px) {
  .olz-pdp-gallery {
    position: sticky;
    top: 100px;
  }
}

/* Main image wrapper */
.olz-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--olz-gray-200, #E5E7EB);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .olz-gallery-main { padding: 16px; }
}

.olz-gallery-main a[data-olz-lightbox] {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}

#olz-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.olz-gallery-main #olz-main-img {
  will-change: transform;
  border-radius: calc(var(--radius) - 2px);
}
.olz-gallery-main:hover #olz-main-img { transform: scale(1.05); }

/* Sale badge */
.olz-gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
}

.olz-gallery-badge--sale {
  background: var(--olz-red);
  color: #fff;
}

/* Zoom hint */
.olz-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.olz-gallery-main:hover .olz-zoom-hint { opacity: 1; }

/* Touch devices: always show hint dimly (no hover available) */
@media (hover: none) {
  .olz-zoom-hint { opacity: 0.7; }
}

/* Prev/Next arrows */
.olz-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.92);
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
  transition: background 0.15s, border-color 0.15s;
  opacity: 0;
}

.olz-gallery-main:hover .olz-gal-arrow { opacity: 1; }
.olz-gal-arrow:hover { background: #fff; border-color: #9CA3AF; }
.olz-gal-prev { left: 10px; }
.olz-gal-next { right: 10px; }

/* Thumbnails — mt-4, w-20 h-20 */
.olz-gallery-thumbs {
  margin-top: 16px; /* mt-4 */
  display: flex;
  gap: 12px; /* gap-3 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.olz-gallery-thumbs::-webkit-scrollbar { display: none; }

.olz-thumb {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 80px;
  height: 80px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff !important;
  padding: 0;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reset button styles that WC/theme might add */
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
  outline: none;
  color: inherit;
}

.olz-thumb:hover,
.olz-thumb:focus,
.olz-thumb:active {
  background: #fff !important;  /* kill any theme button:hover bg */
  color: inherit !important;
  box-shadow: none !important;
  border-color: #9CA3AF;        /* gray border on hover */
  outline: none;
}

.olz-thumb.is-active,
.olz-thumb.is-active:hover {
  border-color: var(--olz-red) !important;
  background: #fff !important;
}

.olz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   5. PRODUCT INFO (RIGHT COLUMN)
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-pdp-info {
  display: flex;
  flex-direction: column;
}

/* Title — text-3xl lg:text-4xl font-bold letter-spacing:-0.02em */
.olz-pdp-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

/* SKU / product code / stock row — mt-3 */
.olz-pdp-meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-start; /* all items left-aligned */
}

.olz-pdp-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6B7280; /* text-gray-500 */
  font-family: var(--font-mono, monospace);
}

.olz-sku { font-size: 14px; color: #6B7280; font-family: var(--font-mono, monospace); }
.olz-sku__val { color: #374151; font-weight: 500; }
.olz-product-code { font-size: 14px; color: #6B7280; font-family: var(--font-mono, monospace); }

/* Stock badge — inline, text-sm font-medium */
.olz-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* gap-1.5 */
  font-size: 14px;
  font-weight: 500;
}

.olz-stock-badge.is-in-stock { color: #15803D; } /* text-green-700 */
.olz-stock-badge.is-out-of-stock { color: #DC2626; }

.olz-stock-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.is-in-stock .olz-stock-dot { background: #16a34a; } /* bg-green-600 */
.is-out-of-stock .olz-stock-dot { background: #dc2626; }

/* Rating row */
.olz-rating-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
}

.olz-stars {
  display: flex;
  align-items: center;
  gap: 2px; /* gap-0.5 */
  line-height: 1;
}

.olz-stars--lg { gap: 2px; }

.olz-rating-avg {
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.olz-rating-link {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s;
}

.olz-rating-link:hover {
  color: var(--olz-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Price block */
.olz-price-block {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px; /* gap-3 */
  flex-wrap: wrap;
  min-height: 44px; /* CLS: reserve space so page doesn't shift when variation price loads */
}

.olz-price-block .price,
.olz-price-block .woocommerce-Price-amount {
  font-size: 30px !important; /* text-3xl */
  font-weight: 700 !important;
  color: #000 !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums;
}

.olz-price-block .price del,
.olz-price-block del {
  font-size: 18px !important; /* text-lg */
  font-weight: 400 !important;
  color: #9CA3AF !important; /* text-gray-400 */
  text-decoration: line-through !important;
}

.olz-price-block .price del .woocommerce-Price-amount {
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #9CA3AF !important;
}

.olz-price-block .price ins {
  text-decoration: none !important;
}

.olz-price-save {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olz-red);
  background: #FEF2F2; /* red-50 */
  padding: 4px 8px;
  border-radius: 2px;
}

/* Short description — shown below price, above variations */
.olz-short-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--olz-gray-500);
  line-height: 1.6;
}
.olz-short-desc p { margin: 0 0 6px; }
.olz-short-desc p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════════════════════
   6. VARIATION SECTIONS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Suppress WooCommerce default variation table */
.olz-pdp-form .variations { display: block; }
.olz-hidden-select { display: none !important; }
.olz-pdp-form .woocommerce-variation-description { display: none !important; }
.olz-pdp-form .woocommerce-variation-price { display: none !important; }
.olz-pdp-form .woocommerce-variation-availability { display: none !important; }

/* First variation section: mt-10 (40px) — subsequent: mt-8 (32px) */
.olz-variation-section {
  margin-top: 32px; /* mt-8 */
}

.olz-variation-section:first-of-type,
.olz-variation--design {
  margin-top: 35px;
}

/* Section header — flex items-center gap-2 flex-wrap */
.olz-var-header {
  display: flex;
  align-items: center;
  gap: 8px; /* gap-2 */
  flex-wrap: wrap;
  margin-bottom: 0; /* no margin — options come right after */
}

.olz-var-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.olz-var-header__right {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  margin-left: auto;
}

/* Step circle — small circled number */
.olz-step-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--olz-red);
  line-height: 1;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .olz-step-num { font-size: 16px; }
}

/* Attribute label — section heading e.g. "SELECT SIZE" */
.olz-var-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
}

/* Selected value — text-sm text-gray-600 flex items-center gap-1 */
.olz-var-selected {
  font-size: 14px;
  color: #4B5563; /* text-gray-600 */
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Size Guide button — text-xs text-red-600 hover:underline inline-flex items-center gap-1 font-medium */
.olz-size-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--olz-red);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: text-decoration 0.15s;
  text-decoration: none;
  text-underline-offset: 4px;
}

.olz-size-guide-btn:hover {
  text-decoration: underline;
  background: none;
  color: var(--olz-red);
}


/* ── DESIGN CARDS (sibling products) ─────────────────────────────────────────── */
/* flex lg:grid lg:grid-cols-6 gap-3 overflow-x-auto */
.olz-design-cards {
  margin-top: 12px; /* mt-3 */
  display: flex;
  gap: 12px; /* gap-3 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

@media (min-width: 1024px) {
  .olz-design-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
  }
}

/* Design card: shrink-0 w-[88px] lg:w-auto flex flex-col items-center text-center */
.olz-design-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  /* Kill any inherited hover background from WC/parent theme */
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.olz-design-card:hover,
.olz-design-card:focus,
.olz-design-card:active {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

@media (min-width: 1024px) {
  .olz-design-card { width: auto; }
}

/* Image wrap: block w-20 h-20 bg-gray-50 border-2 border-gray-200 rounded-md p-2 */
.olz-design-card__img-wrap {
  width: 80px;
  height: 80px;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.olz-design-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hover: only the image box changes — red border, same bg */
.olz-design-card:hover .olz-design-card__img-wrap {
  border-color: var(--olz-red);
  background: #F9FAFB;
}

/* Active/current product: red border, white bg */
.olz-design-card.is-current .olz-design-card__img-wrap {
  background: #fff;
  border-color: var(--olz-red);
}

.olz-design-card__name {
  display: block;
  font-size: 12px; /* text-xs */
  font-weight: 500;
  color: #374151; /* text-gray-700 */
  margin-top: 8px; /* mt-2 */
  line-height: 1.3;
}

.olz-design-card__sku {
  display: block;
  font-size: 10px;
  color: #6B7280; /* text-gray-500 */
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}


/* ── OPTIONS CONTAINER ──────────────────────────────────────────────────────── */
.olz-var-options {
  margin-top: 12px; /* mt-3 */
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* gap-2 */
}


/* ── SIZE PILLS ───────────────────────────────────────────────────────────────── */
/* px-5 py-3 bg-white border-2 border-gray-200 hover:border-gray-400 rounded-md text-sm font-medium */
.olz-pill {
  padding: 12px 20px; /* py-3 px-5 */
  border: 2px solid #E5E7EB; /* border-gray-200 */
  border-radius: var(--radius);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Hover: red border only, NO background change */
.olz-pill:not(.is-selected):hover {
  border-color: var(--olz-red);
  background: #fff;
  color: #000;
}

/* Selected: charcoal fill */
.olz-pill.is-selected,
.olz-pill.is-selected:hover,
.olz-pill.is-selected:focus {
  background: #374151 !important;
  border-color: #374151 !important;
  color: #fff !important;
}

.olz-pill.is-disabled,
.olz-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Unavailable combination — visible but crossed out so user knows it exists */
.olz-pill.is-unavailable,
.olz-var-card.is-unavailable {
  opacity: 0.38;
  cursor: not-allowed;
  position: relative;
}
.olz-pill.is-unavailable::after,
.olz-var-card.is-unavailable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.08) 4px,
    rgba(0,0,0,0.08) 5px
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Unavailable message — shown briefly on tap */
.olz-unavail-msg {
  font-size: 11px;
  color: var(--olz-gray-500);
  margin-top: 6px;
  display: none;
}


/* ── MATERIAL / PACK CARDS ────────────────────────────────────────────────────── */
/* flex flex-col items-start px-4 py-3 border-2 border-gray-200 rounded-md min-w-[160px] */
.olz-var-options--material {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* pack: 3 cols mobile, 4 cols desktop */
.olz-var-options--pack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .olz-var-options--pack {
    grid-template-columns: repeat(4, 1fr);
  }
}

.olz-var-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px; /* py-3 px-4 */
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
  min-width: 0;
}

/* material cards: min-w-[160px] */
.olz-var-options--material .olz-var-card {
  min-width: 160px;
  width: auto;
}

.olz-var-card:hover { border-color: var(--olz-red); background: #fff; }

/* Selected: charcoal fill — same as pills */
.olz-var-card.is-selected {
  background: #374151;
  border-color: #374151;
}

.olz-var-card.is-selected .olz-var-card__name {
  color: #fff;
}

.olz-var-card.is-selected .olz-var-card__sub {
  color: rgba(255,255,255,0.7);
}

/* text-sm font-medium leading-tight */
.olz-var-card__name {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
}

/* text-xs opacity-70 mt-0.5 tabular-nums */
.olz-var-card__sub {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   7. QUANTITY STEPPER + ADD TO CART
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-atc-row {
  margin-top: 35px;
  display: flex;
  gap: 12px; /* gap-3 */
  align-items: center;
}

/* Qty: border border-gray-300 rounded-md w-[120px] */
.olz-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius);
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

/* w-10 h-12 hover:bg-gray-50 text-gray-700 flex items-center justify-center */
.olz-qty-btn {
  width: 40px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s;
  flex-shrink: 0;
}

.olz-qty-btn:hover { background: #F9FAFB; }
.olz-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* text-center text-base font-medium border-x border-gray-300 */
#olz-qty {
  flex: 1;
  height: 48px;
  border: none;
  border-left: 1px solid #D1D5DB;
  border-right: 1px solid #D1D5DB;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
  min-width: 0;
  width: 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

#olz-qty::-webkit-outer-spin-button,
#olz-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#olz-qty:focus { outline: none; }

/* ATC Button: flex-1 bg-black hover:bg-red-600 text-white px-8 py-3.5 rounded-md text-base font-semibold */
.olz-atc-btn {
  flex: 1;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--olz-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 24px;
  letter-spacing: 0;
}

/* Left side: "Add to Cart →" text + arrow */
.olz-atc-btn__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Right side: price — explicitly white so it's always visible on the red button */
.olz-atc-btn__price {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.olz-atc-btn:hover { background: #B91C1C; color: #fff; }
/* Variation not yet selected — faded red, no click */
.olz-atc-btn.wc-variation-selection-needed {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--olz-red);
  pointer-events: none;
}
/* Show hint text inside the button when options not yet selected */
.olz-atc-btn.wc-variation-selection-needed .olz-atc-btn__label::after {
  content: ' — select options first';
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}
/* Out of stock — grey, no click */
.olz-atc-btn.wc-variation-is-unavailable,
.olz-atc-btn[data-out-of-stock] {
  opacity: 1;
  cursor: not-allowed;
  background: #6B7280;
  pointer-events: none;
}
.olz-atc-btn[data-out-of-stock] .olz-atc-btn__price {
  opacity: 1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ATC error message */
.olz-atc-error {
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  padding: 8px 12px;
}

/* Bulk quote link — mt-4 text-sm text-gray-700 hover:text-red-600 inline-flex items-center gap-2 */
.olz-bulk-link {
  margin-top: 16px; /* mt-4 */
  font-size: 14px;
  color: #374151; /* text-gray-700 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: default;
  padding: 0;
}

.olz-bulk-link a,
.olz-bulk-link-btn {
  font-size: 14px;
  color: #374151;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.olz-bulk-link a:hover {
  color: var(--olz-red);
  text-decoration-color: var(--olz-red);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   8. TRUST GRID
   ═══════════════════════════════════════════════════════════════════════════════ */
/* mt-8 pt-6 border-t border-gray-200 grid grid-cols-2 gap-4 gap-y-5 */
.olz-trust-grid {
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 20px;
  width: 100%;
  background: none;
  border-radius: 0;
}

/* flex items-start gap-2.5 */
.olz-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px; /* gap-2.5 */
}

/* w-4 h-4 text-gray-700 shrink-0 mt-0.5 */
.olz-trust-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #374151; /* text-gray-700 */
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0;
}

.olz-trust-icon svg { display: block; width: 16px; height: 16px; }

.olz-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* text-sm font-medium text-black leading-tight */
.olz-trust-text strong {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
  display: block;
}

/* text-xs text-gray-500 mt-0.5 */
.olz-trust-text span {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
  margin-top: 2px;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   9. PRODUCT DETAILS ACCORDION SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
/* bg-white py-16 lg:py-20 */
.olz-pdp-details {
  background: #fff;
  /* Side padding handled by __inner so accordion edges align with page container */
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .olz-pdp-details { padding-top: 60px; padding-bottom: 60px; }
}

.olz-pdp-details__inner {
  max-width: var(--container-max); /* matches hero section width */
  margin: 0 auto;
  padding-inline: var(--page-px);
}

/* No outer wrapper border — accordion items have border-t individually */
.olz-accordion-wrap {
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* Each accordion: border-t border-gray-200 group */
.olz-accordion {
  border-top: 1px solid #E5E7EB;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.olz-accordion:last-child {
  border-bottom: 1px solid #E5E7EB;
}

/* summary: flex items-center justify-between py-5 cursor-pointer list-none */
.olz-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px; /* py-5, slight px for hover bg */
  margin: 0 -12px;   /* offset so border-t still spans full width */
  cursor: pointer;
  list-style: none;
  background: transparent;
  border-radius: 6px;
  transition: background 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.olz-accordion__summary::-webkit-details-marker { display: none; }
.olz-accordion__summary::marker { display: none; }

.olz-accordion__summary:hover {
  background: #F9FAFB; /* gray-50 — subtle hover cue */
}

/* Left group: flex items-center gap-3 */
.olz-accordion__summary-left {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
}

/* Icon: w-[18px] h-[18px] text-red-600 */
.olz-accordion__icon {
  flex-shrink: 0;
  color: var(--olz-red);
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
}

/* Heading: text-lg font-semibold text-black */
.olz-accordion__heading {
  font-size: 18px; /* text-lg */
  font-weight: 600;
  color: #000;
  line-height: 1.3;
}

/* Chevron: w-5 h-5 text-gray-400 transition-transform duration-200 group-open:rotate-180 */
.olz-accordion__chevron {
  flex-shrink: 0;
  color: #9CA3AF; /* text-gray-400 */
  transition: transform 0.2s ease;
  width: 20px;
  height: 20px;
}

.olz-accordion[open] .olz-accordion__chevron {
  transform: rotate(180deg);
}

/* Body: pb-6 text-base text-gray-700 leading-relaxed */
/* Height/opacity transition handled by JS (accordion.init) */
.olz-accordion__body {
  padding: 0 0 24px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.3;
  color: #374151;
}

@media (max-width: 768px) {
  .olz-accordion__body {
    font-size: 14px;
  }
}

.olz-accordion__body p { margin: 0 0 16px; }
.olz-accordion__body p:last-child { margin-bottom: 0; }
.olz-accordion__body ul,
.olz-accordion__body ol { padding-left: 20px; margin: 0 0 12px; }
.olz-accordion__body li { margin-bottom: 6px; }
.olz-accordion__body h3,
.olz-accordion__body h4 { font-size: 15px; font-weight: 600; color: #000; margin: 16px 0 8px; }

/* Spec table — grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-y-3 text-sm */
.olz-spec-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .olz-spec-table {
    grid-template-columns: 200px 1fr;
    gap: 0 24px; /* sm:gap-x-6 */
    row-gap: 12px; /* gap-y-3 */
  }
}

.olz-spec-table dt,
.olz-spec-table dd {
  padding: 8px 0;
  font-size: 14px;
  margin: 0;
  border-bottom: 1px solid #F3F4F6;
}

.olz-spec-table dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280; /* text-gray-500 */
  background: none;
  border-right: none;
}

.olz-spec-table dd {
  color: #1F2937; /* text-gray-800 */
  background: none;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .olz-spec-table dt,
  .olz-spec-table dd { padding: 8px 0; }
}

.olz-spec-table dt:last-of-type,
.olz-spec-table dd:last-of-type { border-bottom: none; }

/* Mobile: 1 col */
@media (max-width: 639px) {
  .olz-spec-table { display: flex; flex-direction: column; }
  .olz-spec-table dt { border-bottom: none; padding-bottom: 2px; }
  .olz-spec-table dd { padding-top: 0; border-top: none; margin-bottom: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   10. REVIEWS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
/* bg-gray-50 border-t border-gray-100 py-16 lg:py-20 */
.olz-reviews {
  background: var(--olz-gray-50);
  border-top: 1px solid var(--olz-gray-100);
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .olz-reviews { padding-top: 60px; padding-bottom: 60px; }
}

.olz-reviews__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--page-px); /* matches hero + accordion alignment */
}

/* Aggregate panel — max-w-5xl bg-white border border-gray-200 rounded-md p-8 grid */
.olz-reviews-agg {
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 32px; /* p-8 */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .olz-reviews-agg {
    grid-template-columns: 40% 60%;
    gap: 0;
  }
}

.olz-reviews-agg__score {
  /* md: border-r border-gray-100 pr-8 */
}

@media (min-width: 768px) {
  .olz-reviews-agg__score {
    border-right: 1px solid #F3F4F6;
    padding-right: 32px; /* pr-8 */
  }
}

/* Score: text-5xl font-bold text-black tabular-nums letter-spacing:-0.03em */
.olz-reviews-agg__num {
  font-size: 48px; /* text-5xl */
  font-weight: 700;
  color: #000;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  font-variant-numeric: tabular-nums;
}

.olz-reviews-agg__outof {
  font-size: 14px;
  color: #6B7280;
  margin-top: 4px;
  display: block;
}

.olz-reviews-agg__count {
  font-size: 14px;
  color: #4B5563;
  margin-top: 12px;
  display: block;
}

/* Rating bars */
.olz-reviews-agg__bars {
  display: flex;
  flex-direction: column;
  gap: 8px; /* space-y-2 */
  justify-content: center;
}

/* flex items-center gap-3 */
.olz-rating-bar {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  font-size: 12px; /* text-xs */
}

/* w-8 text-gray-500 tabular-nums */
.olz-rating-bar__label {
  width: 32px; /* w-8 */
  color: #6B7280;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* flex-1 h-2 bg-gray-200 rounded-full overflow-hidden */
.olz-rating-bar__track {
  flex: 1;
  height: 8px; /* h-2 */
  background: #E5E7EB; /* bg-gray-200 */
  border-radius: 9999px;
  overflow: hidden;
}

/* block h-full bg-red-600 */
.olz-rating-bar__fill {
  display: block;
  height: 100%;
  background: var(--olz-red); /* bg-red-600 */
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* w-8 text-right text-gray-500 tabular-nums */
.olz-rating-bar__count {
  width: 32px; /* w-8 */
  color: #6B7280;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* WooCommerce review list overrides */
.olz-reviews-list {
  max-width: 100%;
  margin: 32px 0 0;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius);
  padding: 0 24px; /* px-6 */
}

/* no side padding override — .olz-reviews__inner handles alignment */

.olz-reviews-list #comments { margin-top: 0; }
.olz-reviews-list .woocommerce-Reviews-title { display: none; }

/* comment list */
.olz-reviews-list ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.olz-reviews-list ol.commentlist li { margin: 0; padding: 0; }

/* review item: py-6 border-b border-gray-200 */
.olz-reviews-list .comment_container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0; /* py-6 */
  border-bottom: 1px solid #E5E7EB;
  background: none;
  border-radius: 0;
}

.olz-reviews-list ol.commentlist li:last-child .comment_container {
  border-bottom: none;
}

.olz-reviews-list .comment-text { flex: 1; }

/* star-rating */
.olz-reviews-list .star-rating {
  color: var(--olz-red);
  font-size: 13px;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* meta */
.olz-reviews-list .meta {
  font-size: 14px;
  color: #6B7280;
  margin: 8px 0 0;
}

.olz-reviews-list .meta strong {
  color: #000;
  font-weight: 600;
}

/* description */
.olz-reviews-list p.description {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 8px 0 0;
}

.olz-reviews-list .review-reply { display: none; }

/* Review form */
.olz-reviews-list #review_form_wrapper {
  padding: 24px 0;
  border-top: 1px solid #E5E7EB;
}

.olz-reviews-list #review_form h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
}

.olz-reviews-list .comment-form-rating label { font-size: 12px; font-weight: 600; }
.olz-reviews-list p.stars a { color: var(--olz-red); }

.olz-reviews-list .comment-form input,
.olz-reviews-list .comment-form textarea {
  border: 1px solid #D1D5DB;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
}

.olz-reviews-list .form-submit input[type="submit"] {
  background: var(--olz-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  width: auto;
}

.olz-reviews-list .form-submit input[type="submit"]:hover { background: var(--olz-red-dark); }

/* Write review + show more buttons */
.olz-reviews-write-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 10px 24px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.olz-reviews-write-btn:hover {
  border-color: #9CA3AF;
  background: #F9FAFB;
}


/* ── Reviews 2-column layout ─────────────────────────────────────────────────── */
.olz-reviews-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 3rem;
  align-items: start;
}
/* No reviews: form takes full width, right col not rendered */
.olz-reviews-layout.no-reviews {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .olz-reviews-layout { grid-template-columns: 1fr; }
  .olz-reviews-form-col  { order: 2; }
  .olz-reviews-right-col { order: 1; }
}

/* ── Sticky form (left col) ─────────────────────────────────────────────────── */
.olz-reviews-form-sticky {
  position: sticky;
  top: 100px;
}
.olz-reviews-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--olz-black);
  margin: 0 0 1.25rem;
}

/* ── WC review form — field styling ────────────────────────────────────────── */
/* Scoped to #olz-review-form-target which holds the JS-moved #review_form_wrapper */
#olz-review-form-target #review_form_wrapper { padding: 0; border: none; }
#olz-review-form-target .woocommerce-Reviews-title { display: none; }

/* Hide WC's own "Leave a review" title — we have .olz-reviews-form-title above */
#olz-review-form-target #reply-title,
#olz-review-form-target .comment-reply-title { display: none; }

/* Form layout: flex-column so we can reorder fields with CSS order */
#olz-review-form-target #commentform,
#olz-review-form-target .comment-form {
  display: flex;
  flex-direction: column;
}

/* Field order: rating(1) → name(2) → email(3) → comment/textarea(4) → submit(5) */
#olz-review-form-target .comment-form-rating  { order: 1; }
#olz-review-form-target .comment-form-author  { order: 2; }
#olz-review-form-target .comment-form-email   { order: 3; }
#olz-review-form-target .comment-form-comment { order: 4; }
#olz-review-form-target .form-submit          { order: 5; }
/* Any plugin-injected fields (image upload etc.) fall after email, before comment */
#olz-review-form-target .comment-form > p:not(.comment-form-rating):not(.comment-form-author):not(.comment-form-email):not(.comment-form-comment):not(.form-submit) { order: 3; }

/* Input / textarea styling */
#olz-review-form-target .comment-form input[type="text"],
#olz-review-form-target .comment-form input[type="email"],
#olz-review-form-target .comment-form textarea {
  width: 100%;
  border: 1px solid var(--olz-gray-300);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--olz-black);
  background: #fff;
  transition: border-color 0.15s;
}
#olz-review-form-target .comment-form input:focus,
#olz-review-form-target .comment-form textarea:focus {
  outline: none;
  border-color: var(--olz-gray-500);
}

/* Label styling */
#olz-review-form-target .comment-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olz-gray-700);
  display: block;
  margin-bottom: 6px;
}

/* Paragraph spacing between fields */
#olz-review-form-target .comment-form > p { margin: 0 0 1rem; }
#olz-review-form-target .comment-form .form-submit { margin: 0; }

/* Hide "Your email address will not be published" note — not needed on product reviews */
#olz-review-form-target .comment-notes { display: none; }

/* ── Star rating (review form) ──────────────────────────────────────────────────
   WC JS adds .active only to the clicked star. JS in product.js handles
   hover highlight and fill — CSS here just provides base styles.
   ──────────────────────────────────────────────────────────────────────────────── */
#olz-review-form-target .comment-form-rating { margin-bottom: 1rem; }

#olz-review-form-target p.stars {
  display: inline-flex;
  margin: 0;
}
#olz-review-form-target p.stars > span {
  display: inline-flex;
  gap: 2px;
}
#olz-review-form-target p.stars a {
  display: inline-block;
  font-size: 0;        /* hide "1 of 5 stars" accessible text */
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  color: var(--olz-gray-300);
  transition: color 0.1s;
}
#olz-review-form-target p.stars a::before {
  content: '★';
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;
}
/* JS adds .olz-star-fill to fill stars on hover/select */
#olz-review-form-target p.stars a.olz-star-fill { color: var(--olz-red); }

/* Hide cookies checkbox — not relevant for product reviews */
#olz-review-form-target .comment-form-cookies-consent { display: none; }

/* Submit button: reuse .olz-btn-red — only stretch full width */
#olz-review-form-target .form-submit input[type="submit"],
#olz-review-form-target .form-submit button[type="submit"] {
  width: 100%;
  background: var(--olz-red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s;
}
#olz-review-form-target .form-submit input[type="submit"]:hover,
#olz-review-form-target .form-submit button[type="submit"]:hover { background: var(--olz-red-dark); }

/* ── Review cards (right col) ───────────────────────────────────────────────── */
.olz-reviews-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.olz-review-card {
  background: #fff;
  border: 1px solid var(--olz-gray-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow: hidden;
  min-width: 0;
}
.olz-review-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}
.olz-review-card__stars { display: flex; gap: 2px; }
.olz-review-card__author {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--olz-black);
}
.olz-review-card__date {
  font-size: 0.75rem;
  color: var(--olz-gray-400);
  margin-left: auto;
}
.olz-review-card__text {
  font-size: 0.875rem;
  color: var(--olz-gray-700);
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}
.olz-review-card__text p { margin: 0; }

/* ── Load More button — same border/hover style as .olz-reviews-write-btn ────── */
.olz-reviews-load-more {
  width: 100%;
  margin-top: 1rem;
  padding: 10px 24px;
  border: 1.5px solid var(--olz-gray-200);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--olz-gray-700);
  cursor: pointer;
  transition: border-color 0.15s;
}
.olz-reviews-load-more:hover { border-color: var(--olz-gray-400); color: var(--olz-black); }
.olz-reviews-load-more.is-loading {
  opacity: 0.7;
  pointer-events: none;
  color: var(--olz-gray-500);
}
.olz-reviews-load-more.is-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--olz-gray-300);
  border-top-color: var(--olz-gray-600);
  border-radius: 50%;
  animation: olzSpin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes olzSpin {
  to { transform: rotate(360deg); }
}

/* ── WC native section (outside grid — JS source for form) ─────────────────── */
/* comments_template() is rendered here. JS moves #review_form_wrapper to left col.
   The review list (ol.commentlist) is hidden — we show custom cards above instead.
   If a plugin replaces ol.commentlist with its own output, remove display:none below. */
.olz-reviews-wc-native {
  /* visually hidden but in DOM — JS needs to find #review_form_wrapper here */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}
/* Once form is moved out, nothing visible remains — keep native section collapsed */
.olz-reviews-wc-native.form-moved {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   11. RELATED PRODUCTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-related {
  background: #fff;
  border-top: 1px solid #F3F4F6;
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .olz-related { padding: 60px 0; }
}

.olz-related__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--page-px);
}



/* ═══════════════════════════════════════════════════════════════════════════════
   12. BULK CTA BANNER
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-bulk-cta {
  background: var(--olz-charcoal);
  border-radius: 0;
}

.olz-bulk-cta__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .olz-bulk-cta__inner { padding: 48px 32px; }
}

.olz-bulk-cta__heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.olz-bulk-cta__sub {
  font-size: 14px;
  color: #9CA3AF;
  margin: 0;
  max-width: 480px;
}

.olz-bulk-cta__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.olz-bulk-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.olz-bulk-cta__btn--outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
}

.olz-bulk-cta__btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.olz-bulk-cta__btn--solid {
  background: var(--olz-red);
  color: #fff;
  border: 1.5px solid var(--olz-red);
}

.olz-bulk-cta__btn--solid:hover {
  background: var(--olz-red-dark);
  border-color: var(--olz-red-dark);
  color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   13. MODALS (Size Guide + Lightbox)
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.olz-modal[hidden] { display: none !important; }

.olz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
}

.olz-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 10px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: olzFadeUp 0.25s ease;
}

@keyframes olzFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.olz-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #E5E7EB;
}

.olz-modal__header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.olz-modal__close {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color 0.15s, background 0.15s;
}

.olz-modal__close:hover { color: #000; background: #F3F4F6; }

.olz-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.olz-modal__footer {
  padding: 14px 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
}

.olz-modal__close-btn {
  padding: 8px 20px;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  transition: background 0.15s;
}

.olz-modal__close-btn:hover { background: #F3F4F6; }

/* ── Size Guide section label ────────────────────────────────────────────── */
.olz-sg-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6B7280;
  margin: 0 0 16px;
}

/* ── Visual Boxes ────────────────────────────────────────────────────────── */
.olz-sg-boxes {
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  padding-bottom: 8px;
  overflow: visible;
}

.olz-sg-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.olz-sg-box__selected-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olz-red);
  background: #FFF1F2;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  visibility: hidden;
  min-height: 16px;
}

.olz-sg-box.is-selected .olz-sg-box__selected-badge {
  visibility: visible;
}

/* Colored shape — uses clip-path for non-rectangles */
.olz-sg-box__shape {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olz-red, #dc2626);
  flex-shrink: 0;
  transition: opacity 0.15s ease;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.olz-sg-box__sign-text {
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  display: block;
  width: 90%;
  word-break: break-word;
}

.olz-sg-box.is-selected .olz-sg-box__shape {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--olz-red, #dc2626);
}

.olz-sg-box:hover .olz-sg-box__shape {
  opacity: 0.75;
}

.olz-sg-box__name {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  font-family: monospace;
  text-align: center;
  line-height: 1.3;
}

.olz-sg-box__cm {
  font-size: 11px;
  font-weight: 400;
  color: #9CA3AF;
  font-family: monospace;
  text-align: center;
  margin-top: 1px;
}

.olz-sg-box.is-selected .olz-sg-box__name {
  color: #000;
  font-weight: 800;
}

.olz-sg-box.is-selected .olz-sg-box__cm {
  color: #6B7280;
}

/* ── Table (div-grid) ────────────────────────────────────────────────────── */
.olz-sg-table-wrap {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

.olz-sg-table-head {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: #F9FAFB;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  gap: 8px;
}

.olz-sg-table-head.has-use-case,
.olz-sg-table-row.has-use-case {
  grid-template-columns: 130px 1fr;
}

/* When use case present — 2 visible cols: Size | Best For */
.olz-sg-table-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 12px 16px;
  border-top: 1px solid #F3F4F6;
  gap: 8px;
  transition: background 0.1s ease;
}

.olz-sg-table-row:hover { background: #F9FAFB; }

.olz-sg-table-row.is-selected { background: #FFF1F2; }

.olz-sg-col-size {
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.olz-sg-table-row.is-selected .olz-sg-col-size { color: #000; }

.olz-sg-col-use { color: #374151; }

/* Lightbox */
.olz-lightbox {
  background: rgba(0,0,0,0.9);
  flex-direction: column;
}

.olz-lightbox .olz-modal__overlay { background: transparent; }

.olz-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}

.olz-lightbox__close:hover { background: rgba(255,255,255,0.3); }

.olz-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}

.olz-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.olz-lightbox__prev { left: 16px; }
.olz-lightbox__next { right: 16px; }

.olz-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  width: 100%;
  height: 100%;
}

#olz-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   14. MOBILE STICKY ADD-TO-CART BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.olz-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  display: block; /* always in DOM, hidden via transform */
}

/* Desktop: completely hidden */
@media (min-width: 901px) {
  .olz-sticky-atc { display: none !important; }
}

.olz-sticky-atc.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Prevent footer content from hiding behind visible sticky bar */
@media (max-width: 900px) {
  body.olz-sticky-visible { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.olz-sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.olz-sticky-atc__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  flex-shrink: 0;
}

.olz-sticky-atc__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.olz-sticky-atc__title {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.olz-sticky-atc__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--olz-red);
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.olz-sticky-atc__btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  font-size: 13px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   15. MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .olz-pdp-main    { padding: 20px var(--page-px) 60px; }
  .olz-pdp-details { padding-top: 48px; padding-bottom: 48px; } /* side padding on __inner */
  .olz-reviews     { padding-top: 48px; padding-bottom: 48px; } /* side padding on __inner */
  .olz-related     { padding: 48px 0; } /* side padding on __inner */
  .olz-bulk-cta__inner { flex-direction: column; align-items: flex-start; padding: 32px var(--page-px); }
  .olz-bulk-cta__buttons { width: 100%; }
  .olz-bulk-cta__btn { flex: 1; justify-content: center; }
  .olz-sticky-atc { display: block; }
  .olz-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .olz-pdp-title { font-size: 22px; }

  .olz-price-block .price,
  .olz-price-block .woocommerce-Price-amount { font-size: 24px !important; }

  .olz-atc-row { flex-wrap: wrap; }
  .olz-atc-btn { width: 100%; }

  .olz-reviews-agg { padding: 20px; }
  .olz-reviews-agg__num { font-size: 40px; }

  .olz-lightbox__stage { padding: 48px 16px; }

  .olz-design-cards {
    display: flex;
    overflow-x: auto;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   KEYBOARD FOCUS RINGS
   Visible only for keyboard navigation (:focus-visible), not mouse clicks.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Variation pill buttons */
.olz-pill:focus-visible,
.olz-var-card:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Design card links */
.olz-design-card:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Gallery thumbnails */
.olz-thumb:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
  border-color: var(--olz-red) !important;
}

/* Accordion summary */
.olz-accordion__summary:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Modal close / nav buttons */
.olz-modal__close:focus-visible,
.olz-modal__close-btn:focus-visible,
.olz-lightbox__close:focus-visible,
.olz-lightbox__nav:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Qty stepper buttons */
.olz-qty-btn:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Gallery arrow buttons */
.olz-gal-arrow:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* ATC button */
.olz-atc-btn:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

/* Size guide button */
.olz-size-guide-btn:focus-visible {
  outline: 2px solid var(--olz-red);
  outline-offset: 2px;
}

