/* ============================================
   ALYA BUTIK — Product Detail Page
   ============================================ */

/* ---- LAYOUT ---- */

.product-page {
  padding-top: var(--nav-height);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(420px, 50%);
  min-height: auto;
}

/* ---- IMAGE COLUMN ---- */

.product-image-col {
  position: sticky;
  top: var(--nav-height);
  height: min(calc(100vh - var(--nav-height)), 780px);
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 0.5px solid var(--border-light);
}

.product-image-col__letter {
  font-family: var(--font-serif);
  font-size: clamp(12rem, 20vw, 22rem);
  font-weight: 300;
  color: rgba(26, 23, 20, 0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.product-image-col__tag {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  background: var(--warm-black);
  color: var(--cream);
}

.product-image-col__tag--featured {
  background: var(--gold);
  color: var(--warm-black);
}

.product-image-col__tag--sold-out {
  background: rgba(138, 129, 120, 0.18);
  color: var(--muted);
}

.product-discount-ribbon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-light) 0%, var(--gold) 62%, #9c7c44 100%);
  color: var(--warm-black);
  font-family: var(--font-sans), Arial, sans-serif;
  text-align: center;
  line-height: 1.05;
  box-shadow: 0 8px 22px rgba(184, 150, 90, 0.45);
  animation: discount-ribbon-pulse 2.4s ease-in-out infinite;
}

.product-discount-ribbon__value {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-discount-ribbon__label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes discount-ribbon-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px rgba(184, 150, 90, 0.45); }
  50% { transform: scale(1.07); box-shadow: 0 10px 28px rgba(184, 150, 90, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .product-discount-ribbon {
    animation: none;
  }
}

@media (max-width: 820px) {
  .product-discount-ribbon {
    top: 1rem;
    right: 1rem;
    width: 3.9rem;
    height: 3.9rem;
  }

  .product-discount-ribbon__value {
    font-size: 1.1rem;
  }

  .product-discount-ribbon__label {
    font-size: 0.46rem;
  }
}
.product-image-gallery {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  z-index: 3;
  pointer-events: auto;
}

.product-image-thumb {
  width: 56px;
  height: 72px;
  padding: 0;
  border: 1px solid rgba(26, 23, 20, 0.14);
  background: rgba(245, 239, 230, 0.82);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.product-image-thumb:hover,
.product-image-thumb:focus-visible,
.product-image-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- INFO COLUMN ---- */

.product-info-col {
  padding: clamp(2.75rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
}

/* ---- BREADCRUMB ---- */

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: var(--muted);
  transition: color var(--transition-base);
}

.product-breadcrumb a:hover { color: var(--gold); }

.product-breadcrumb span { opacity: 0.5; }

/* ---- PRODUCT META ---- */

.product-category {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--warm-black);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--warm-black);
  margin-bottom: 0.85rem;
}

.product-price + .installment-badge {
  margin-bottom: 1.75rem;
}

.product-divider {
  border: none;
  border-top: 0.5px solid var(--border-neutral);
  margin: 2rem 0;
}

/* ---- VARIANT OPTIONS ---- */

.product-option {
  margin-bottom: 1.5rem;
}

.product-option__label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.product-option__label strong {
  font-weight: 400;
  color: var(--warm-black);
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-btn {
  padding: 0.5rem 1rem;
  border: 0.5px solid var(--border-neutral);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--charcoal);
  line-height: 1;
}

.option-btn:hover:not(:disabled):not(.option-btn--disabled) {
  border-color: var(--warm-black);
  color: var(--warm-black);
}

.option-btn.active {
  background: var(--warm-black);
  color: var(--cream);
  border-color: var(--warm-black);
}

.option-btn:disabled,
.option-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---- STOCK STATUS ---- */

.product-stock {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  min-height: 1.4em;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s ease;
}

.product-stock--in  { color: #4A7C59; }
.product-stock--low { color: #8A6820; }
.product-stock--out { color: #8A3020; }

/* ---- ADD TO CART ---- */

.btn--add-to-cart {
  width: 100%;
  padding: 1.1rem 2rem;
  background: var(--warm-black);
  color: var(--cream);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn--add-to-cart:hover:not(:disabled) {
  background: var(--charcoal);
}

.btn--add-to-cart:disabled {
  background: var(--ivory);
  color: var(--muted);
  cursor: not-allowed;
  border: 0.5px solid var(--border-neutral);
}

/* ---- DESCRIPTION ---- */

.product-description {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--border-neutral);
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---- IMAGE ZOOM — lens + preview panel ---- */

/* Görsel sütunu zoom için hazır */
.product-image-col.has-zoom {
  cursor: none; /* Fare imleci gizle — lens kutusu görsel gösterge */
}

/* Lens kutusu: farenin üzerinde gösterilen inceleme çerçevesi */
.zoom-lens {
  position: absolute;
  border: 1.5px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.25),
    inset 0 0 20px rgba(201, 169, 110, 0.06);
  background: rgba(201, 169, 110, 0.04);
  pointer-events: none;
  display: none;
  z-index: 6;
}

/* Sabit önizleme paneli (position:fixed, JS ile konumlandırılır) */
.zoom-preview {
  position: fixed;
  width: 360px;
  height: 360px;
  background-color: var(--ivory);
  background-repeat: no-repeat;
  background-size: 300%;        /* 3× büyütme */
  background-position: 0% 0%;
  border: 0.5px solid var(--border-neutral);
  box-shadow: 0 12px 48px rgba(26, 23, 20, 0.18), 0 2px 8px rgba(26,23,20,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.zoom-preview.visible {
  opacity: 1;
}

/* Zoom label — "3×" rozeti */
.zoom-preview__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26, 23, 20, 0.55);
  color: rgba(250, 247, 242, 0.85);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Prestige koyu tema */
.page--prestige .zoom-lens {
  border-color: var(--prestige-accent);
  box-shadow:
    0 0 0 1px rgba(201, 169, 110, 0.2),
    inset 0 0 20px rgba(201, 169, 110, 0.05);
}

.page--prestige .zoom-preview {
  background-color: #1a1420;
  border-color: rgba(201, 169, 110, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.page--prestige .zoom-preview__badge {
  background: rgba(201, 169, 110, 0.18);
  color: var(--prestige-accent);
}

/* ---- PRESTIGE DARK VARIANT ---- */

.page--prestige .product-image-col {
  background: rgba(255, 255, 255, 0.03);
  border-right: 0.5px solid rgba(201, 169, 110, 0.12);
}

.page--prestige .product-image-col__letter {
  color: rgba(201, 169, 110, 0.06);
}

.page--prestige .product-info-col {
  background: var(--prestige-bg);
}

.page--prestige .product-breadcrumb,
.page--prestige .product-breadcrumb a {
  color: rgba(245, 239, 230, 0.3);
}

.page--prestige .product-category {
  color: var(--prestige-accent);
  opacity: 0.75;
}

.page--prestige .product-name  { color: var(--prestige-text); }
.page--prestige .product-price { color: var(--prestige-accent); }

.page--prestige .product-divider {
  border-color: rgba(201, 169, 110, 0.12);
}

.page--prestige .product-option__label {
  color: rgba(245, 239, 230, 0.4);
}

.page--prestige .product-option__label strong { color: var(--prestige-text); }

.page--prestige .option-btn {
  border-color: rgba(201, 169, 110, 0.2);
  color: rgba(245, 239, 230, 0.65);
}

.page--prestige .option-btn:hover:not(:disabled):not(.option-btn--disabled) {
  border-color: var(--prestige-accent);
  color: var(--prestige-accent);
}

.page--prestige .option-btn.active {
  background: var(--prestige-accent);
  color: var(--prestige-bg);
  border-color: var(--prestige-accent);
}

.page--prestige .product-stock--in  { color: rgba(74, 124, 89, 0.85); }
.page--prestige .product-stock--low { color: var(--prestige-accent); }
.page--prestige .product-stock--out { color: rgba(200, 80, 60, 0.8); }

.page--prestige .btn--add-to-cart {
  background: var(--prestige-accent);
  color: var(--prestige-bg);
}

.page--prestige .btn--add-to-cart:hover:not(:disabled) { background: #D4AF7A; }

.page--prestige .btn--add-to-cart:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 239, 230, 0.25);
  border: 0.5px solid rgba(201, 169, 110, 0.12);
}

.page--prestige .product-description {
  color: rgba(245, 239, 230, 0.45);
  border-top-color: rgba(201, 169, 110, 0.12);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1080px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-image-col {
    position: relative;
    top: 0;
    height: min(66vw, 520px);
    min-height: 300px;
    max-height: 520px;
  }

  .product-image-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .product-info-col {
    padding: 2.5rem var(--section-pad-x);
  }
}

@media (max-width: 640px) {
  .product-image-col { height: min(78vw, 430px); min-height: 270px; }
  .product-image-thumb { width: 46px; height: 58px; }
  .product-info-col  { padding: 2rem var(--section-pad-x); }
  .product-name      { font-size: 2rem; }
  .product-breadcrumb { margin-bottom: 2rem; }
}

/* ---- COLOR SWATCHES ---- */

.color-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--swatch-color, #aaa);
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  padding: 0; cursor: pointer;
  transition: outline-color 0.15s, border-color 0.15s;
  position: relative;
}
.color-swatch:hover { outline-color: rgba(26,23,20,0.3); }
.color-swatch.active { outline-color: var(--gold); border-color: white; }
/* beyaz swatch için gri border */
.color-swatch[style*="#F8F8F8"], .color-swatch[style*="#FAF"] {
  border-color: rgba(26,23,20,0.15);
}
/* Fallback: renk adı göster */
.color-swatch--text {
  width: auto; border-radius: 0;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 0.5px solid rgba(26,23,20,0.2);
  font-size: 0.75rem; color: var(--warm-black);
}
.color-swatch--text.active { background: var(--warm-black); color: var(--cream); }

/* ---- BEDEN REHBERİ ---- */

.size-guide-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.04em; font-weight: 600;
  color: var(--gold); background: none; border: none;
  cursor: pointer; padding: 0; margin-top: 0.6rem;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s;
}
.size-guide-link svg { flex-shrink: 0; }
.size-guide-link:hover { color: var(--warm-black); }
.page--prestige .size-guide-link { color: var(--prestige-accent, #C9A96E); }
.page--prestige .size-guide-link:hover { color: var(--prestige-text, #F5EFE6); }

.size-guide-modal {
  position: fixed; inset: 0;
  background: rgba(10,8,6,0.6);
  z-index: 1400;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.size-guide-modal.is-open { opacity: 1; pointer-events: all; }

.size-guide-modal__inner {
  background: var(--cream);
  width: 100%; max-width: 680px;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(10,8,6,0.25);
}
.page--prestige .size-guide-modal__inner { background: #1A1510; }

.size-guide-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.size-guide-modal__header h3 {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 300;
  color: var(--warm-black);
}
.page--prestige .size-guide-modal__header h3 { color: var(--prestige-text); }

.size-guide-modal__close {
  width: 32px; height: 32px;
  background: none; border: 0.5px solid rgba(26,21,16,0.15);
  color: var(--warm-black); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.size-guide-modal__close:hover { border-color: var(--gold); }

.size-guide-modal__note {
  font-size: 0.75rem; color: var(--muted); margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}
.page--prestige .size-guide-modal__note { color: rgba(245,239,230,0.4); }

.size-guide-modal__table-wrap { overflow-x: auto; margin-bottom: 1.5rem; border: 0.5px solid rgba(26,21,16,0.08); background: rgba(255,255,255,0.32); }

.size-guide-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.size-guide-table th, .size-guide-table td {
  padding: 0.62rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  border-bottom: 0.5px solid rgba(26,21,16,0.08);
}
.size-guide-table th {
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.65rem; color: var(--muted);
  background: rgba(26,21,16,0.03);
}
.page--prestige .size-guide-table th {
  color: rgba(245,239,230,0.4);
  background: rgba(255,255,255,0.03);
}
.page--prestige .size-guide-table th,
.page--prestige .size-guide-table td {
  border-bottom-color: rgba(201,169,110,0.1);
  color: rgba(245,239,230,0.75);
}
.size-guide-table td:first-child { font-weight: 500; color: var(--warm-black); }
.page--prestige .size-guide-table td:first-child { color: var(--prestige-accent); }
.size-guide-table tr:last-child td { border-bottom: none; }

.size-guide-modal__tip {
  font-size: 0.75rem; color: var(--muted);
  background: rgba(201,169,110,0.08);
  padding: 0.75rem 1rem; letter-spacing: 0.02em; line-height: 1.6;
}

/* ---- PRODUCT TABS ---- */

.product-tabs { margin-top: 2rem; border-top: 0.5px solid rgba(26,21,16,0.1); }
.page--prestige .product-tabs { border-top-color: rgba(201,169,110,0.12); }

.product-tabs__nav {
  display: flex; gap: 0;
  border-bottom: 0.5px solid rgba(26,21,16,0.1);
  margin-bottom: 1.5rem; overflow-x: auto;
}
.page--prestige .product-tabs__nav { border-bottom-color: rgba(201,169,110,0.12); }

.product-tab-btn {
  padding: 0.85rem 1.25rem;
  background: none; border: none;
  font-family: var(--font-sans);
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -0.5px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.product-tab-btn:hover { color: var(--warm-black); }
.product-tab-btn.active {
  color: var(--warm-black);
  border-bottom-color: var(--warm-black);
}
.page--prestige .product-tab-btn { color: rgba(245,239,230,0.4); }
.page--prestige .product-tab-btn:hover { color: var(--prestige-text); }
.page--prestige .product-tab-btn.active {
  color: var(--prestige-accent);
  border-bottom-color: var(--prestige-accent);
}

.product-tab-panel {
  font-size: 0.88rem; line-height: 1.9;
  color: var(--muted); letter-spacing: 0.02em;
  padding-bottom: 1rem;
}
.page--prestige .product-tab-panel { color: rgba(245,239,230,0.45); }

.product-tab-panel .product-use-cases {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 0.5px solid var(--border-neutral);
}
.page--prestige .product-tab-panel .product-use-cases { border-color: rgba(201, 169, 110, 0.12); }

.product-tab-panel .product-model-info {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 0.5px solid var(--border-neutral);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.page--prestige .product-tab-panel .product-model-info { border-color: rgba(201, 169, 110, 0.12); }

.tab-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.6rem;
}
.tab-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.tab-list li strong { color: var(--warm-black); font-weight: 500; }
.page--prestige .tab-list li strong { color: var(--prestige-text); }

.product-tab-panel p { margin: 0 0 0.9rem; }
.product-tab-panel p:last-child { margin-bottom: 0; }
.product-tab-panel strong { color: var(--warm-black); font-weight: 600; }
.page--prestige .product-tab-panel strong { color: var(--prestige-text); }
.product-tab-panel em { font-style: italic; }

.product-rich-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
  margin: 0 0 0.9rem; padding: 0;
}
.product-rich-list:last-child { margin-bottom: 0; }
.product-rich-list li { position: relative; padding-left: 1.1rem; }
.product-rich-list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--warm-black);
}
.page--prestige .product-rich-list li::before { background: var(--prestige-accent); }

.product-rich-list--numbered { counter-reset: product-rich-counter; }
.product-rich-list--numbered li { padding-left: 1.5rem; }
.product-rich-list--numbered li::before {
  counter-increment: product-rich-counter;
  content: counter(product-rich-counter) ".";
  width: auto; height: auto; border-radius: 0; background: none;
  top: 0; font-size: 0.85em; font-weight: 600;
  color: var(--warm-black);
}
.page--prestige .product-rich-list--numbered li::before { color: var(--prestige-accent); }

/* ---- SOSYAL KANIT ---- */

.social-proof {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.72rem; letter-spacing: 0.03em;
  color: var(--muted); margin-bottom: 1rem;
}
.social-proof strong { color: #C05621; font-weight: 500; }
.page--prestige .social-proof strong { color: var(--prestige-accent); }
.social-proof__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #48BB78; flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}
.social-proof__sep { color: rgba(26,21,16,0.2); }

/* ---- RELATED PRODUCTS ---- */

.related-section {
  padding: 4rem var(--section-pad-x, 5rem);
  background: var(--cream);
  border-top: 0.5px solid var(--border-light);
}
.page--prestige .related-section {
  background: var(--prestige-bg);
  border-top-color: rgba(201,169,110,0.12);
}
.related-section__header { margin-bottom: 3rem; }
.related-section__header .section-title { margin-top: 0.75rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

.related-card { cursor: pointer; }

/* Product detail QA polish */
.product-image-col__img {
  position: absolute;
  inset: clamp(1rem, 2.4vw, 2rem);
  width: calc(100% - clamp(2rem, 4.8vw, 4rem));
  height: calc(100% - clamp(2rem, 4.8vw, 4rem));
  object-fit: contain;
  object-position: center;
}

.product-image-col::after {
  content: '';
  position: absolute;
  inset: auto 12% 1.35rem;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(26, 23, 20, 0.08), rgba(26, 23, 20, 0) 70%);
  pointer-events: none;
}

.product-image-gallery {
  bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.social-proof {
  display: none !important;
}

.size-guide-table th:first-child,
.size-guide-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--cream);
}

.size-guide-table th:first-child {
  z-index: 2;
}

.size-guide-table td:nth-child(2) {
  color: var(--gold);
  font-weight: 500;
}

@media (max-width: 1080px) {
  .product-image-col__img {
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
  }
}

@media (max-width: 640px) {
  .size-guide-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .size-guide-modal__inner {
    max-height: 88dvh;
    padding: 1.1rem;
  }

  .size-guide-table {
    min-width: 560px;
  }

  .size-guide-table th,
  .size-guide-table td {
    padding: 0.55rem 0.6rem;
  }
}

/* 20260826 critical product gallery fix: balanced image and no floating zoom */
.product-layout {
  grid-template-columns: minmax(0, 52%) minmax(390px, 48%);
  align-items: start;
}

.product-image-col {
  height: min(calc(100dvh - var(--nav-height)), 760px) !important;
  min-height: 620px;
  overflow: hidden !important;
}

.product-image-col__img {
  position: absolute !important;
  inset: clamp(1.25rem, 2.4vw, 2rem) clamp(1.25rem, 3vw, 2.5rem) calc(6.25rem + env(safe-area-inset-bottom)) !important;
  width: calc(100% - clamp(2.5rem, 6vw, 5rem)) !important;
  height: calc(100% - clamp(7.5rem, 9vw, 8.5rem)) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.product-image-thumb img {
  object-fit: cover !important;
}

.product-image-col.has-zoom {
  cursor: default !important;
}

.zoom-lens,
.zoom-preview,
.zoom-preview.visible {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.social-proof,
#social-proof {
  display: none !important;
}

@media (max-width: 1080px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-image-col {
    position: relative;
    top: auto;
    height: min(78vh, 720px) !important;
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .product-image-col {
    height: min(72vh, 620px) !important;
    min-height: 420px;
  }

  .product-image-col__img {
    inset: 1rem 1rem calc(5.75rem + env(safe-area-inset-bottom)) !important;
    width: calc(100% - 2rem) !important;
    height: calc(100% - 6.75rem) !important;
  }

  .product-image-gallery {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.85rem;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
  }
}


/* ============================================================
   PRODUCT DETAIL FINAL GALLERY QA
   ============================================================ */

@media (min-width: 1081px) {
  .product-layout {
    grid-template-columns: minmax(440px, 48%) minmax(420px, 52%);
    align-items: start;
  }

  .product-image-col {
    height: min(calc(100vh - var(--nav-height)), 680px);
    min-height: 560px;
  }
}

.product-image-col {
  isolation: isolate;
}

.product-image-col__img {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - clamp(2rem, 5vw, 5rem));
  max-height: calc(100% - clamp(2rem, 5vw, 5rem));
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  z-index: 1;
}

.product-image-col.has-gallery .product-image-col__img {
  max-height: calc(100% - clamp(6.5rem, 12vw, 8rem));
}

.product-image-col__letter,
.product-image-col__tag,
.product-image-gallery {
  z-index: 2;
}

.product-image-col::after {
  z-index: 0;
}

.product-image-gallery {
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-image-thumb {
  flex: 0 0 auto;
}

.product-image-col.has-zoom {
  cursor: default !important;
}

.zoom-lens,
.zoom-preview,
.zoom-preview.visible {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.social-proof {
  display: none !important;
}

@media (max-width: 1080px) {
  .product-image-col.has-gallery .product-image-col__img {
    max-height: calc(100% - 5.75rem);
  }
}

@media (max-width: 640px) {
  .product-image-col.has-gallery .product-image-col__img {
    max-width: calc(100% - 1.5rem);
    max-height: calc(100% - 5rem);
  }

  .product-image-gallery {
    justify-content: flex-start;
    bottom: 0.65rem;
  }
}

/* 20260826 product detail QA: mobile visual balance */
@media (max-width: 640px) {
  .product-image-col {
    height: min(58vh, 500px) !important;
    min-height: 340px !important;
  }

  .product-image-col.has-gallery .product-image-col__img,
  .product-image-col__img {
    max-width: calc(100% - 1.25rem) !important;
    max-height: calc(100% - 4.75rem) !important;
  }

  .product-image-gallery {
    bottom: 0.55rem !important;
  }
}

/* 20260826 product detail QA: desktop visual balance */
@media (min-width: 1081px) {
  .product-image-col {
    height: min(calc(100vh - var(--nav-height)), 620px) !important;
    min-height: 540px !important;
  }
}


/* ============================================================
   SIZE GUIDE MODAL VIEWPORT LOCK
   ============================================================ */

.size-guide-modal {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 9600;
  height: 100vh !important;
  max-height: 100vh !important;
}

@supports (height: 100dvh) {
  .size-guide-modal {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

.size-guide-modal__inner {
  max-height: calc(100vh - 2rem);
  margin: auto 0;
}

@supports (height: 100dvh) {
  .size-guide-modal__inner {
    max-height: calc(100dvh - 2rem);
  }
}

@media (max-width: 640px) {
  .size-guide-modal {
    align-items: center !important;
    padding: 0.75rem;
  }

  .size-guide-modal__inner {
    max-height: calc(100vh - 1.5rem);
  }

  @supports (height: 100dvh) {
    .size-guide-modal__inner {
      max-height: calc(100dvh - 1.5rem);
    }
  }
}

/* ============================================================
   PRODUCT DETAIL PORTRAIT STANDARD
   ============================================================ */

@media (min-width: 1081px) {
  .product-layout {
    grid-template-columns: minmax(560px, 48vw) minmax(500px, 1fr);
  }

  .product-image-col {
    height: calc(100vh - var(--nav-height)) !important;
    min-height: 720px !important;
    padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4.5rem);
    padding-left: clamp(6.5rem, 9vw, 9rem);
    background:
      linear-gradient(135deg, rgba(255,255,255,0.22), rgba(250,247,242,0)),
      var(--ivory);
  }

  .product-image-col:not(.has-gallery) {
    padding-left: clamp(2rem, 4vw, 4.5rem);
  }

  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    width: auto !important;
    height: min(72vh, 660px) !important;
    max-width: min(440px, calc(100% - 2rem)) !important;
    max-height: calc(100% - 4rem) !important;
    object-fit: contain !important;
    object-position: center center !important;
    filter: drop-shadow(0 24px 36px rgba(26, 23, 20, 0.12));
  }

  .product-image-gallery {
    top: 50%;
    bottom: auto !important;
    left: clamp(1.35rem, 2.4vw, 2.25rem);
    right: auto;
    width: 74px;
    max-height: min(520px, calc(100% - 9rem));
    padding: 0.45rem;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateY(-50%);
    background: rgba(250, 247, 242, 0.82);
    border: 0.5px solid rgba(26, 21, 16, 0.12);
    box-shadow: 0 18px 40px rgba(26, 23, 20, 0.09);
    overflow-x: hidden;
    overflow-y: auto;
    backdrop-filter: blur(10px);
  }

  .product-image-thumb {
    width: 62px;
    height: 82px;
    background: rgba(255,255,255,0.72);
  }

  .product-image-thumb.is-active {
    transform: none;
    box-shadow: 0 0 0 1px var(--gold), 0 10px 24px rgba(26, 23, 20, 0.12);
  }

  .product-image-col__tag {
    top: 2rem;
    left: 2rem;
    z-index: 4;
  }
}

@media (max-width: 1080px) {
  .product-image-col {
    padding: 1.25rem 1rem 5.75rem;
  }

  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 430px) !important;
    max-height: 100% !important;
    filter: drop-shadow(0 18px 28px rgba(26, 23, 20, 0.1));
  }

  .product-image-gallery {
    transform: none;
    max-width: calc(100% - 1.5rem);
    margin: 0 auto;
    padding: 0.35rem;
    background: rgba(250, 247, 242, 0.78);
    border: 0.5px solid rgba(26, 21, 16, 0.1);
  }
}

@media (max-width: 640px) {
  .product-image-col {
    padding: 1rem 0.75rem 5.35rem;
  }

  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    max-width: min(100%, 340px) !important;
    max-height: 100% !important;
  }
}
/* 20260826 product detail sales polish: premium image stage */
@media (min-width: 1081px) {
  .product-layout {
    grid-template-columns: minmax(560px, 48vw) minmax(520px, 1fr) !important;
  }

  .product-image-col {
    height: min(calc(100vh - var(--nav-height)), 720px) !important;
    min-height: 620px !important;
    padding: clamp(2rem, 3.2vw, 3rem) clamp(2rem, 4vw, 4rem) calc(6.5rem + env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(ellipse at 50% 34%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 58%),
      linear-gradient(180deg, #f3ede4 0%, #ebe3d8 100%) !important;
  }

  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    max-width: min(60%, 560px) !important;
    max-height: calc(100% - 4.25rem) !important;
    width: auto !important;
    height: auto !important;
    filter: drop-shadow(0 30px 48px rgba(26, 23, 20, 0.15)) !important;
  }

  .product-image-gallery {
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 1.3rem !important;
    width: auto !important;
    max-width: min(520px, calc(100% - 3rem)) !important;
    max-height: none !important;
    flex-direction: row !important;
    justify-content: center !important;
    transform: translateX(-50%) !important;
    padding: 0.42rem !important;
    gap: 0.5rem !important;
    border-radius: 0 !important;
  }

  .product-image-thumb {
    width: 64px !important;
    height: 82px !important;
  }
}

@media (max-width: 1080px) {
  .product-image-col {
    background:
      radial-gradient(ellipse at 50% 28%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 58%),
      linear-gradient(180deg, #f3ede4 0%, #ebe3d8 100%) !important;
  }
}

/* ============================================================
   SIZE GUIDE SYSTEMS HOTFIX - 20260826
   ============================================================ */
.size-guide-link {
  min-height: 42px !important;
  padding: 0.65rem 0 !important;
  margin-top: 0.55rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  line-height: 1.3 !important;
  touch-action: manipulation !important;
  position: relative !important;
  z-index: 2 !important;
}

.size-guide-modal__systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.size-guide-system-card {
  border: 0.5px solid rgba(26, 21, 16, 0.1);
  background: rgba(255, 255, 255, 0.38);
  padding: 0.85rem;
}

.size-guide-system-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-black);
}

.size-guide-system-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
}

.size-guide-table caption {
  text-align: left;
  padding: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 0.5px solid rgba(26, 21, 16, 0.08);
}

@media (max-width: 640px) {
  .size-guide-link {
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 0.75rem 0 !important;
    font-size: 0.72rem !important;
    white-space: normal !important;
    text-align: left !important;
  }

  .size-guide-modal__systems {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .size-guide-modal__inner {
    padding: 1.1rem !important;
  }

  .size-guide-table {
    min-width: 560px;
  }
}

/* Product detail text-only color options */
.product-option #color-buttons {
  gap: 0.55rem;
}

.option-btn--color {
  width: auto;
  min-width: 78px;
  min-height: 40px;
  padding: 0.68rem 1rem;
  border-radius: 0;
  border-color: rgba(26, 21, 16, 0.16);
  background: rgba(250, 247, 242, 0.28);
  color: var(--warm-black);
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.option-btn--color:hover:not(:disabled):not(.option-btn--disabled),
.option-btn--color:focus-visible {
  border-color: var(--gold);
  color: var(--warm-black);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.12);
}

.option-btn--color.active {
  background: var(--warm-black);
  border-color: var(--warm-black);
  color: var(--cream);
  box-shadow: none;
}

.page--prestige .option-btn--color {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(201, 169, 110, 0.24);
  color: rgba(245, 239, 230, 0.75);
}

.page--prestige .option-btn--color:hover:not(:disabled):not(.option-btn--disabled),
.page--prestige .option-btn--color:focus-visible {
  border-color: rgba(201, 169, 110, 0.62);
  color: rgba(245, 239, 230, 0.96);
}

.page--prestige .option-btn--color.active {
  background: var(--prestige-accent);
  color: var(--prestige-bg);
  border-color: var(--prestige-accent);
}

@media (max-width: 640px) {
  .option-btn--color {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: min(148px, calc(50% - 0.4rem));
    min-height: 44px;
    padding: 0.72rem 0.85rem;
  }
}

@media (max-width: 420px) {
  .option-btn--color {
    flex-basis: 100%;
    min-width: 100%;
  }
}

/* 20260828 final product stage: full garment visibility over dramatic crop */
@media (min-width: 1081px) {
  .product-image-col {
    height: min(calc(100vh - var(--nav-height)), 660px) !important;
    min-height: 560px !important;
    padding: 2rem 2.25rem 6rem !important;
  }

  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    max-width: min(72%, 520px) !important;
    max-height: calc(100% - 1.5rem) !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 1080px) {
  .product-image-col__img,
  .product-image-col.has-gallery .product-image-col__img {
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* ---- IMAGE ZOOM (hover-magnify on desktop, fullscreen pinch viewer on touch) ---- */

.product-image-col__img {
  transition: transform 0.25s ease;
}

.product-image-col.is-zoom-active .product-image-col__img {
  transform: scale(2.2) !important;
}

@media (hover: hover) and (pointer: fine) {
  .product-image-col__img {
    cursor: zoom-in;
  }
}

.product-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: none;
  flex-direction: column;
  background: rgba(15, 12, 9, 0.94);
}

.product-zoom-modal.is-open {
  display: flex;
}

.product-zoom-modal__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.product-zoom-modal__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.product-zoom-modal__img {
  max-width: 92%;
  max-height: 88%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.product-zoom-modal__viewport.is-zoomed .product-zoom-modal__img {
  cursor: grab;
}

.product-zoom-modal__hint {
  text-align: center;
  padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .product-zoom-modal__hint {
    display: none;
  }
}