﻿/* PDP qty-offers / piece-colors / social / delivery — ported from al-anaqa editorial.css, remapped to --wx-* */

/* Color & size chips (hide native radios, RTL-friendly pills) */
.product-page .product-color-grid,
.product-page .pdp-colors-under-gallery__chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  width: 100%;
  justify-content: stretch;
}

.product-page .product-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  justify-content: flex-start;
}

.product-page .product-color-chip,
.product-page .product-size-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.product-page .product-color-chip {
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1.5px solid rgba(201, 162, 39, 0.35);
  background: #fff;
  color: var(--home-text, #2a2622);
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 500;
}

.product-page .product-size-chip {
  min-height: 44px;
  min-width: 5.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(201, 162, 39, 0.35);
  background: #fff;
  color: var(--home-text, #2a2622);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 500;
  flex: 0 0 auto;
}

.product-page .product-color-chip input,
.product-page .product-size-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  pointer-events: none;
}

.product-page .product-color-chip span,
.product-page .product-size-chip span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.product-page .product-color-chip:has(input:checked),
.product-page .product-size-chip:has(input:checked) {
  border-color: var(--home-gold-mid, #c9a227);
  background: linear-gradient(180deg, #fffdf8 0%, #fff8e8 100%);
  color: var(--home-text, #2a2622);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}

.product-page .product-color-chip:hover,
.product-page .product-size-chip:hover {
  border-color: rgba(201, 162, 39, 0.65);
}

.product-page .pdp-colors-under-gallery {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 38, 34, 0.1);
}

.product-page .pdp-colors-under-gallery__label,
.product-page .product-variant-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--home-text, #2a2622);
  text-align: start;
}

.product-page .quantity-offers-wrap {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  color: var(--color-dark-olive);
}

.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-price,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-text {
  color: #ffffff;
}

.product-page .quantity-offers-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.product-page .quantity-offers-heading-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark-olive);
  letter-spacing: 0.01em;
}

.product-page .quantity-offers-heading-deco {
  flex: 0 0 auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(var(--color-gold-olive), var(--color-gold-olive)) center / 100% 1.5px no-repeat,
    linear-gradient(135deg, transparent 46%, var(--color-gold-olive) 46%, var(--color-gold-olive) 54%, transparent 54%) left center / 8px 8px no-repeat,
    linear-gradient(-135deg, transparent 46%, var(--color-gold-olive) 46%, var(--color-gold-olive) 54%, transparent 54%) right center / 8px 8px no-repeat;
  opacity: 0.9;
}

.product-page .quantity-offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-page .piece-colors-wrap {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-page .piece-colors-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-page .piece-color-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.product-page .piece-color-num {
  flex: 0 0 1.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

.product-page .piece-color-select {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(217, 205, 179, 0.85);
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%238b8570' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  color: var(--color-dark-olive);
  font-size: 0.88rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
}

[dir="rtl"] .product-page .piece-color-select {
  background-position: left 0.85rem center;
  padding-left: 2rem;
  padding-right: 0.85rem;
}

.product-page .piece-color-select:focus {
  outline: 2px solid rgba(89, 92, 39, 0.25);
  outline-offset: 1px;
  border-color: rgba(89, 92, 39, 0.35);
}

.product-page .piece-color-select.is-invalid {
  border-color: var(--danger);
}

.product-page .qty-offer-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.95rem 1rem 0.95rem 3.25rem;
  border-radius: 999px;
  border: 2px solid rgba(217, 205, 179, 0.85);
  background: #fdf8f2;
  color: var(--color-dark-olive);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.18s ease;
  box-shadow: 0 2px 10px rgba(49, 51, 13, 0.06);
}

.product-page .qty-offer-card.has-badge {
  padding-right: 4.25rem;
}

.product-page .qty-offer-card:hover:not(.is-selected) {
  border-color: rgba(160, 146, 91, 0.65);
  box-shadow: 0 4px 14px rgba(49, 51, 13, 0.1);
  transform: translateY(-1px);
}

.product-page .qty-offer-card.is-selected {
  border-color: var(--color-gold-olive);
  background: linear-gradient(135deg, #3f4118 0%, var(--color-dark-olive) 58%, #2a2b0c 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(184, 168, 114, 0.35),
    0 8px 20px rgba(49, 51, 13, 0.24);
  transform: none;
}

.product-page .qty-offer-card.is-selected .qty-offer-price,
.product-page .qty-offer-card.is-selected .qty-offer-text {
  color: #ffffff;
}

.product-page .qty-offer-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-page .qty-offer-radio {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(49, 51, 13, 0.5);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.product-page .qty-offer-radio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.product-page .qty-offer-card.is-selected .qty-offer-radio {
  border-color: #fff;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.product-page .qty-offer-card.is-selected .qty-offer-radio::after {
  background: #fff;
}

.product-page .qty-offer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding-inline: 0.35rem;
}

.product-page .qty-offer-badge {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.15rem;
  height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9b87a 0%, var(--color-gold-olive) 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(49, 51, 13, 0.18);
  z-index: 1;
}

.product-page .qty-offer-card.is-selected .qty-offer-badge {
  background: linear-gradient(145deg, #f0e6c8 0%, #d4c592 100%);
  color: #2a2b0c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-page .qty-offer-price {
  font-size: clamp(1.22rem, 4.2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.2;
}

.product-page .qty-offer-text {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  opacity: 0.92;
  max-width: 16rem;
}

@media (max-width: 420px) {
  .product-page .qty-offer-card {
    min-height: 4.15rem;
    padding: 0.85rem 0.85rem 0.85rem 2.85rem;
  }

  .product-page .qty-offer-card.has-badge {
    padding-right: 3.85rem;
  }

  .product-page .qty-offer-radio {
    left: 0.75rem;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .product-page .qty-offer-badge {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.58rem;
    right: 0.45rem;
  }

  .product-page .qty-offer-price {
    font-size: 1.15rem;
  }

  .product-page .qty-offer-text {
    font-size: 0.88rem;
  }
}

.product-page .form-group--qty .input-hint {
  margin-top: 0.35rem;
}

.product-page .qty-controls {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  direction: ltr;
  gap: 0;
  border: 1px solid rgba(42, 38, 34, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Product social proof â€” stars + orders count under gallery */
.product-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.75rem 0.15rem;
  text-align: center;
}

.product-social-proof__stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  color: #eab308;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.product-social-proof__stars span {
  display: inline-block;
}

.product-social-proof__orders {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted, #6b7280);
  letter-spacing: 0.01em;
}

.product-page .product-social-proof {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(217, 205, 179, 0.35);
}

.product-page .product-social-proof__orders {
  color: #6b6f52;
}

/* Delivery type cards (product + checkout) — Al-Anaqa gold theme */
.delivery-type-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.delivery-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1.5px solid rgba(42, 38, 34, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 68px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.delivery-option:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(255, 252, 246, 0.98);
}

.delivery-option--popular {
  border-color: rgba(201, 162, 39, 0.35);
}

.delivery-option:has(input:checked) {
  border-color: var(--home-gold-mid, #c9a227);
  border-width: 2px;
  padding: calc(0.9rem - 0.5px) calc(1rem - 0.5px);
  background: rgba(201, 162, 39, 0.08);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.12);
}

.delivery-option:has(input:checked) .delivery-option__label {
  color: var(--home-gold-mid, #c9a227);
  font-weight: 700;
}

.delivery-option input[type="radio"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid rgba(42, 38, 34, 0.22);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.delivery-option input[type="radio"]:checked {
  border-color: var(--home-gold-mid, #c9a227);
  border-width: 2px;
  background: radial-gradient(circle, var(--home-gold-mid, #c9a227) 0 42%, #fff 44%);
  box-shadow: inset 0 0 0 2px #fff;
}

.delivery-option__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.delivery-option__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--home-text, #2a2622);
}

.delivery-option__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.22);
  white-space: nowrap;
  line-height: 1.2;
}

#deliveryTypeSection > label:first-child,
.form-group:has(.delivery-type-group) > label:first-child {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--home-text, #2a2622);
}

@media (min-width: 521px) {
  .delivery-type-group {
    gap: 0.85rem;
  }

  .delivery-option {
    min-height: 76px;
    padding: 1rem 1.1rem;
  }

  .delivery-option:has(input:checked) {
    padding: calc(1rem - 0.5px) calc(1.1rem - 0.5px);
  }

  .delivery-option__label {
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .delivery-type-group {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .delivery-option {
    min-height: 62px;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
  }

  .delivery-option:has(input:checked) {
    padding: calc(0.8rem - 0.5px) calc(0.9rem - 0.5px);
  }

  .delivery-option__label {
    font-size: 0.88rem;
  }
}

.product-page .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.product-page .radio-group.delivery-type-group {
  display: grid;
  flex-wrap: unset;
  gap: 0.75rem;
  width: 100%;
}

.product-page .radio-group label:not(.delivery-option) {
  font-size: 0.88rem;
  color: var(--home-text, #2a2622);
}

.product-page .product-order-totals {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(42, 38, 34, 0.12);
}

.product-page .order-total-row.order-total-sub {
  font-size: 0.88rem;
  color: var(--home-muted, #6b6560);
  padding: 0.35rem 0;
}

.product-page .order-total-row.order-total-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--home-text, #2a2622);
  border-top: none;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}

.product-page .order-total-row.order-total-value strong {
  color: var(--home-gold-mid, #c9a227);
  font-size: 1.15rem;
}

.product-page .confirm-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-3);
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, #c9a227, #d4af37);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-page .confirm-order-btn:hover {
  filter: brightness(0.95);
}

.product-page .confirm-order-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .product-page .product-main {
    padding-top: calc(var(--header-offset) + 0.25rem);
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .product-page .product-main .container {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .product-page .product-details-row {
    gap: 0.85rem;
  }

  .product-page .product-gallery-card {
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    margin: 0;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: transparent;
  }

  .product-page .product-img-gallery {
    aspect-ratio: 1;
    min-height: 0;
    max-height: min(52vh, 380px);
    border-radius: 14px;
    border: 1px solid rgba(217, 205, 179, 0.45);
    background: var(--color-white);
  }

  .product-page .product-img-slide img {
    max-width: calc(100% - 0.75rem);
    max-height: calc(100% - 0.75rem);
  }

  .product-page .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .product-page .gallery-dots {
    bottom: 0.5rem;
    padding: 0.35rem 0.65rem;
  }

  .product-page .product-info-card {
    padding: 0 0 0.15rem;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }

  .product-page .product-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .product-page .product-price-block .price-current {
    font-size: 1.2rem;
  }

  .product-page .product-variants-section.product-variants-mobile {
    margin-top: 0;
    padding: 0;
    border-top: none;
    background: transparent;
  }

  .product-page .product-variants-section.product-variants-mobile .product-variant-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .product-page .product-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .product-page .product-color-chip {
    flex: none;
    min-width: 0;
    min-height: 42px;
    padding: 0.45rem 0.4rem;
    font-size: 0.78rem;
  }

  .product-page .product-size-chip {
    min-width: 4.75rem;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
  }

  .product-page .product-order-box {
    padding: 1rem;
    border-radius: 14px;
    margin: 0;
    width: 100%;
  }

  .product-page .product-order-form .form-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .product-page .product-order-form .form-group {
    margin-bottom: 0.75rem;
  }

  .product-page .product-order-totals {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }

  .product-page .sticky-order-btn,
  body.has-sticky-order .sticky-order-btn {
    padding: 0.65rem max(0.85rem, env(safe-area-inset-left)) max(0.65rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(217, 205, 179, 0.65);
    box-shadow: 0 -6px 20px rgba(49, 51, 13, 0.08);
  }

  .product-page .sticky-order-btn .confirm-order-btn {
    min-height: 52px;
    font-size: 1.05rem;
    border-radius: 14px;
    background: var(--pdp-confirm, #555d2e);
  }
}

/* === Product page UX polish === */
.product-page .product-main {
  padding-bottom: var(--space-8);
}

.product-page .product-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.product-page .product-info-card {
  padding: clamp(1.1rem, 2.2vw, 1.45rem);
  border: 1px solid rgba(217, 205, 179, 0.55);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 2px 18px rgba(49, 51, 13, 0.05);
}

.product-page .product-order-box .product-desc-box {
  display: none;
}

/* === PDP redesign: offers + color swatches + buy now (reference style) === */
.product-page {
  --pdp-orange: #f07a1a;
  --pdp-orange-dark: #e06a0e;
  --pdp-green: #22a45a;
  --pdp-confirm: #555d2e;
  --pdp-confirm-dark: #454b25;
  --pdp-border: #e5e7eb;
  --pdp-text: #1f2937;
}

.product-page .product-visual-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.product-page .product-heading-block.product-info-card {
  text-align: start;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid rgba(42, 38, 34, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.product-page .product-heading-block .product-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.12rem, 3.5vw, 1.4rem);
  font-weight: 700;
  color: var(--home-text, #2a2622);
  line-height: 1.35;
  text-align: start;
}

.product-page .product-size-hint {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #6b6f52;
  line-height: 1.35;
  text-align: start;
}

.product-page .product-heading-block .product-price-block {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 0.4rem;
}

.product-page .product-heading-block .price-current {
  color: var(--home-text, #2a2622) !important;
  font-size: clamp(1.3rem, 3.8vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.product-page .product-heading-block .price-old {
  color: #c13b3b !important;
  text-decoration: line-through;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}

.product-page .product-social-proof--in-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  margin: 0 0 0.55rem;
  padding: 0;
  border: none;
  text-align: start;
}

.product-page .product-social-proof--in-heading .product-social-proof__stars {
  display: flex;
  gap: 0.08rem;
  color: #eab308;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.product-page .product-social-proof--in-heading .product-social-proof__orders {
  width: auto;
  margin: 0;
  text-align: start;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b6f52;
  line-height: 1.3;
}

.product-page .product-free-ship {
  display: flex;
  justify-content: flex-start;
  margin: 0;
}

.product-page .product-free-ship__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 164, 90, 0.12);
  color: var(--pdp-green, #22a45a);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-page .gallery.product-gallery-inline .thumbs,
body.page-home.product-page .gallery.product-gallery-inline .thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.65rem;
  padding: 0.15rem 0.1rem 0.25rem;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-page .gallery.product-gallery-inline .thumb-btn,
body.page-home.product-page .gallery.product-gallery-inline .thumb-btn {
  flex: 0 0 auto !important;
  width: 58px !important;
  height: 58px !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 10px;
  border: 2px solid rgba(42, 38, 34, 0.12);
  opacity: 1;
  background: #fff;
  overflow: hidden;
}

.product-page .gallery.product-gallery-inline .thumb-btn.active,
body.page-home.product-page .gallery.product-gallery-inline .thumb-btn.active {
  border-color: var(--home-gold-mid, #c9a227);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.product-page .pdp-scroll-order-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--home-champagne, #f5efe6);
  color: var(--home-text, #2a2622);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 900px) {
  .product-page .pdp-scroll-order-hint {
    display: flex;
  }
}

.product-page .pdp-scroll-order-hint__icon {
  display: inline-flex;
  animation: pdp-scroll-bounce 1.4s ease-in-out infinite;
  font-size: 1rem;
  color: var(--pdp-confirm, #555d2e);
}

@keyframes pdp-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.product-page .pdp-colors-under-gallery {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: none;
}

.product-page .pdp-colors-under-gallery__label {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--home-text, #2a2622);
}

.product-page .pdp-colors-under-gallery__chips .product-color-chip {
  border-color: rgba(42, 38, 34, 0.16);
  background: #fff;
  border-radius: 12px;
  min-height: 46px;
  font-weight: 600;
}

.product-page .pdp-colors-under-gallery__chips .product-color-chip:has(input:checked) {
  border-color: var(--home-text, #2a2622);
  background: #f3ebdc;
  box-shadow: none;
  color: var(--home-text, #2a2622);
}

.product-page .pdp-order-section-title {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--home-champagne, #f5efe6);
  color: var(--home-text, #2a2622);
  font-size: 1rem;
  font-weight: 700;
  text-align: start;
  line-height: 1.35;
}

.product-page .confirm-order-btn,
.product-page .product-order-submit-btn {
  background: var(--pdp-confirm, #555d2e);
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(85, 93, 46, 0.22);
  font-weight: 800;
  font-size: 1.05rem;
  min-height: 54px;
}

.product-page .confirm-order-btn:hover,
.product-page .product-order-submit-btn:hover {
  background: var(--pdp-confirm-dark, #454b25);
  filter: none;
}

.product-page .sticky-order-btn__row--confirm-only {
  margin-top: 0;
}

.product-page .sticky-order-btn__row--confirm-only .confirm-order-btn {
  width: 100%;
  flex: 1;
  min-height: 54px;
  border-radius: 14px;
}

body.page-home.product-page .confirm-order-btn,
body.page-home.product-page .product-order-submit-btn {
  background: var(--pdp-confirm, #555d2e);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(85, 93, 46, 0.22);
}

body.page-home.product-page .confirm-order-btn:hover {
  background: var(--pdp-confirm-dark, #454b25);
  filter: brightness(1.05);
}

.product-page .product-social-proof--inline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.55rem;
  margin: 0.35rem 0 0.55rem;
  padding: 0;
  border: none;
  text-align: start;
}

.product-page .product-social-proof--inline .product-social-proof__rating {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
}

.product-page .product-social-proof--inline .product-social-proof__orders {
  width: 100%;
  text-align: start;
  font-size: 0.8rem;
}

.product-page .product-price-block .price-current {
  color: var(--home-text, #2a2622);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 800;
}

.product-page .product-price-block .price-old {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 500;
  margin-inline-start: 0.35rem;
}

.product-page .pdp-customer-card {
  border: 1px solid var(--pdp-border);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  margin-bottom: 1rem;
}

.product-page .pdp-delivery-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pdp-text);
}

.product-page .pdp-delivery-free-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(34, 164, 90, 0.12);
  color: var(--pdp-green);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-page .quantity-offers-wrap {
  margin-top: 0.25rem;
}

.product-page .qty-offer-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 2px solid #d1d5db;
  background: #fff;
  color: var(--pdp-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: none;
}

.product-page .qty-offer-card.has-badge {
  padding-right: 1rem;
}

.product-page .qty-offer-card:hover:not(.is-selected) {
  border-color: #9ca3af;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transform: none;
}

.product-page .qty-offer-card.is-selected {
  border-color: #111;
  background: #fff;
  color: var(--pdp-text);
  box-shadow: 0 0 0 1px #111;
  transform: none;
}

.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-price,
.product-page .product-order-form .quantity-offers-wrap label.qty-offer-card.is-selected .qty-offer-text {
  color: var(--pdp-text);
}

.product-page .qty-offer-radio,
.product-page .qty-offer-badge {
  display: none;
}

.product-page .qty-offer-check {
  position: absolute;
  top: -0.55rem;
  inset-inline-end: -0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.product-page .qty-offer-check::after {
  content: "✓";
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.product-page .qty-offer-card.is-selected .qty-offer-check {
  display: inline-flex;
}

.product-page .qty-offer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  text-align: start;
  padding-inline: 0;
}

.product-page .qty-offer-text {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 1;
  max-width: none;
  color: var(--pdp-text);
}

.product-page .qty-offer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.product-page .qty-offer-free {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(34, 164, 90, 0.12);
  color: var(--pdp-green);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-page .qty-offer-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.product-page .pdp-color-swatches-section {
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.product-page .pdp-color-swatches-label .required-star {
  color: #ef4444;
  margin-inline-start: 0.15rem;
}

.product-page .pdp-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.65rem;
  width: 100%;
}

.product-page .pdp-color-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 4.4rem;
  margin: 0;
  cursor: pointer;
}

.product-page .pdp-color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-page .pdp-color-swatch__media {
  display: block;
  width: 3.4rem;
  height: 4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f3f4f6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.product-page .pdp-color-swatch__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page .pdp-color-swatch__media--solid {
  border-radius: 12px;
}

.product-page .pdp-color-swatch__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #4b5563;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-page .pdp-color-swatch:has(input:checked) .pdp-color-swatch__media {
  border-color: var(--home-gold-mid, #c9a227);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.product-page .pdp-color-swatch:has(input:checked) .pdp-color-swatch__name {
  background: var(--home-text, #2a2622);
  color: #fff;
  font-weight: 700;
}

.product-page .pdp-buy-now-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.85rem 0 0.35rem;
  width: 100%;
}

.product-page .pdp-buy-now-row .pdp-buy-now-qty {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 0.2rem;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
}

.product-page .pdp-buy-now-row .pdp-buy-now-qty .qty-btn {
  width: 2.3rem;
  height: 2.3rem;
  min-width: 2.3rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-text, #2a2622);
}

.product-page .pdp-buy-now-row .pdp-buy-now-qty .qty-input {
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.3rem;
  margin: 0;
  padding: 0;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  box-shadow: none;
}

.product-page .pdp-buy-now-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  margin: 0;
  padding: 0.75rem 1rem;
  border: none;
  background: var(--pdp-confirm, #555d2e);
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(85, 93, 46, 0.28);
}

.product-page .pdp-buy-now-btn:hover {
  background: var(--pdp-confirm-dark, #454b25);
  filter: none;
}

.product-page .pdp-buy-now-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.product-page .pdp-buy-now-label {
  flex: 1;
  text-align: center;
  font-size: 1.05rem;
}

/* Desktop: hide mid-page Buy Now — keep only the bottom submit button */
@media (min-width: 641px) {
  .product-page .pdp-buy-now-row .pdp-buy-now-btn {
    display: none !important;
  }

  .product-page .pdp-buy-now-row {
    justify-content: flex-start;
  }

  .product-page .pdp-buy-now-row .pdp-buy-now-qty {
    min-width: 9.5rem;
  }
}

.product-page .pdp-buy-now-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-page .pdp-order-summary {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--pdp-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-page .pdp-order-summary__title {
  margin: 0;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pdp-text);
  border-bottom: 1px solid var(--pdp-border);
}

.product-page .pdp-order-summary__body {
  padding: 0 1rem 1rem;
}

.product-page .pdp-order-summary__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.product-page .pdp-order-summary__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
  flex-shrink: 0;
}

.product-page .pdp-order-summary__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-page .pdp-order-summary__meta strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.product-page .pdp-order-summary__meta span {
  font-size: 0.78rem;
  color: #6b7280;
}

.product-page .pdp-order-summary__price {
  font-size: 0.92rem;
  white-space: nowrap;
}

.product-page .pdp-order-summary__total {
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(240, 122, 26, 0.08);
  border-top: none;
}

.product-page .pdp-order-summary__total strong {
  color: var(--pdp-orange);
}

.product-page .pdp-qty-compact {
  margin-top: 0.25rem;
}

.product-page .sticky-order-btn .pdp-buy-now-btn {
  padding: 0.75rem 0.85rem;
}

@media (max-width: 640px) {
  .product-page .qty-offer-content {
    gap: 0.55rem;
  }

  .product-page .qty-offer-text {
    font-size: 0.85rem;
  }

  .product-page .product-details-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .product-page .product-visual-col {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .product-page .product-heading-block.product-info-card {
    order: 0;
    display: block;
    width: 100%;
  }

  .product-page .product-gallery-card {
    order: 1;
  }

  .product-page .pdp-scroll-order-hint {
    order: 2;
  }

  .product-page .product-info-column,
  .product-page .product-main-col {
    order: 3;
  }

  .product-page .pdp-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.5rem;
    width: 100%;
  }

  .product-page .pdp-color-swatch {
    width: 4.1rem;
    min-width: 0;
    gap: 0.35rem;
  }

  .product-page .pdp-color-swatch__media {
    width: 3.1rem;
    height: 3.65rem;
    border-radius: 11px;
  }

  .product-page .pdp-color-swatch__name {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    max-width: 100%;
  }

  .product-page .pdp-buy-now-btn {
    min-height: 50px;
  }
}

