/* =====================================================
   PDP Vertical Gallery
   Page Scoped - No Global Leakage
   ===================================================== */

.pdp-page .product-gallery {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

/* Desktop Layout */
@media (min-width: 1000px) {
  .pdp-page .product-gallery {
    flex-direction: row;
  }
}

/* Thumbnail Rail */
.pdp-page .product-gallery__thumbnail-list {
  flex: 0 0 auto;
  width: 70px;
}

/* Sticky behavior (desktop only) */
@media (min-width: 1000px) {
  .pdp-page .product-gallery__thumbnail-list {
    position: sticky;
    top: 120px;
    max-height: 45rem;
  }
}

/* Vertical Stacking */
.pdp-page .product-gallery__thumbnail-scroller {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 70px;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

/* Hide scrollbar */
.pdp-page .product-gallery__thumbnail-scroller::-webkit-scrollbar {
  display: none;
}

/* Thumbnail Button */
.pdp-page .product-gallery__thumbnail {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

/* Active Thumbnail */
.pdp-page .product-gallery__thumbnail[aria-current="true"] {
  border-color: #000;
}

/* Thumbnail Image */
.pdp-page .product-gallery__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Main Image Column */
.pdp-page .product-gallery__image-list {
  flex: 1 1 auto;
  min-width: 0;
}

/* Carousel Wrapper */
.pdp-page .product-gallery__image-list > .contents,
.pdp-page .product-gallery__image-list > .contents > scroll-carousel.product-gallery__carousel,
.pdp-page .product-gallery__carousel {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Main Image Frame */
.pdp-page .product-gallery__image-list > .contents > scroll-carousel.product-gallery__carousel > .product-gallery__media,
.pdp-page .product-gallery__carousel > .product-gallery__media,
.pdp-page .product-gallery__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

/* Main Product Image */
.pdp-page .product-gallery__image-list > .contents > scroll-carousel.product-gallery__carousel > .product-gallery__media > img,
.pdp-page .product-gallery__media > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: none;
  box-shadow: none;
}

/* =====================================================
   PDP Product Info Column
   Page Scoped - No Global Leakage
   ===================================================== */

.pdp-page .product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  gap: 0;
  overflow: hidden;
}

.pdp-page .product-info__block-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.625rem;
  margin: 0;
}

.pdp-page .product-info .product-detail__kicker,
.pdp-page .product-info .product-title,
.pdp-page .product-info .product-detail__price,
.pdp-page .product-info .product-detail__rating {
  margin: 0;
}

.pdp-page .product-info .product-detail__rating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  letter-spacing: normal;
  line-height: 1;
}

.pdp-page .product-info .product-detail__rating .star-rating,
.pdp-page .product-info .product-detail__rating .product-detail__rating-stars {
  margin: 0;
  line-height: 1;
}

.pdp-page .product-info .product-detail__rating .star-rating {
  float: none;
  position: relative;
  display: inline-block;
  width: 5.4em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  font-family: star;
  color: rgba(26, 26, 26, 0.18);
  font-size: 1rem;
  letter-spacing: normal;
}

.pdp-page .product-info .product-detail__rating .star-rating::before {
  content: "\73\73\73\73\73";
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(26, 26, 26, 0.22);
}

.pdp-page .product-info .product-detail__rating .star-rating > span {
  top: 0;
  left: 0;
  float: left;
  position: absolute;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  padding-top: 1.5em;
}

.pdp-page .product-info .product-detail__rating .star-rating > span::before {
  content: "\53\53\53\53\53";
  position: absolute;
  left: 0;
  top: 0;
  font-family: star;
  color: #b7863a;
}

.pdp-page .product-info .product-detail__rating .product-detail__rating-stars {
  color: #b7863a;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.pdp-page .product-info .product-detail__rating .star-rating > span {
  margin-left: 0;
  line-height: 1;
}

.pdp-page .product-info .product-detail__rating .product-detail__rating-count {
  margin-left: 0;
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pdp-page .product-info .product-detail__availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
  margin: 0.15rem 0 0.35rem;
}

.pdp-page .product-info .product-detail__availability-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 2px rgba(123, 138, 120, 0.2);
}

.pdp-page .product-info .price-list {
  gap: 0.5rem;
}

.pdp-page .product-info .product-info__summary {
  gap: 0.5rem;
}

.pdp-page .product-info .product-info__short-description {
  margin: 0;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.55;
}

.pdp-page .product-info .product-info__short-description p {
  margin: 0;
}

.pdp-page .product-info .product-detail__badges {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.pdp-page .product-info .product-detail__badge {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
}

.pdp-page .product-info .product-detail__purchase {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.875rem;
  margin: 0;
}

.pdp-page .product-info .product-detail__cart-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.875rem;
}

.pdp-page .product-info .product-detail__quantity,
.pdp-page .product-info .product-detail__quantity-controls,
.pdp-page .product-info .product-detail__cta {
  margin: 0;
}

.pdp-page .product-info .product-detail__cta {
  width: 100%;
}

@media (max-width: 999px) {
  .pdp-page .product-info {
    gap: 0;
  }

  .pdp-page .product-info .product-detail__badges {
    gap: 0.625rem;
  }
}

/* =====================================================
   PDP Feature Badge List
   Page Scoped - No Global Leakage
   ===================================================== */

.pdp-page .product-info .feature-badge-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin: 1rem 0 0;
}

.pdp-page .product-info .feature-badge {
  --background: 255 255 255;
  --text-color: 47 56 47;
  --border-color: 209 216 209;
  display: inline-flex;
  align-items: stretch;
  column-gap: 0.5rem;
  width: auto;
  max-width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.2;
  background-color: rgb(var(--background, 255 255 255));
  color: rgb(var(--text-color, 47 56 47));
  border: 1px solid rgb(var(--border-color, 209 216 209));
  border-radius: 0;
}

.pdp-page .feature-badge .product-detail__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  min-width: 24px;
  width: auto;
  height: auto;
  color: currentColor;
  flex: 0 0 24px;
}

.pdp-page .feature-badge .product-detail__badge-icon svg {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: none;
  display: block;
  color: currentColor;
  stroke: currentColor;
  fill: none;
}

.pdp-page .feature-badge .product-detail__badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.125rem;
  min-width: 0;
}

.pdp-page .feature-badge .product-detail__badge-title,
.pdp-page .feature-badge .product-detail__badge-text,
.pdp-page .feature-badge p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* =====================================================
   PDP Reviews
   Page Scoped - No Global Leakage
   ===================================================== */

.pdp-page .product-reviews {
  padding: clamp(2.2rem, 4vw, 3.2rem) 0 clamp(2.4rem, 4.4vw, 3.8rem);
  background: #f3ede4;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.pdp-page .product-reviews__container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

.pdp-page .product-reviews .woocommerce-Reviews-title,
.pdp-page .product-reviews__fallback h2 {
  margin: 0 0 1rem;
  color: #121212;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.pdp-page .product-reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.pdp-page .product-reviews .commentlist > li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
}

.pdp-page .product-reviews .comment-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.pdp-page .product-reviews .comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #121212;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdp-page .product-reviews .comment-form input[type="text"],
.pdp-page .product-reviews .comment-form input[type="email"],
.pdp-page .product-reviews .comment-form textarea,
.pdp-page .product-reviews .comment-form select {
  width: 100%;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: #1a1a1a;
  font: inherit;
  padding: 0.72rem 0.8rem;
}

.pdp-page .product-reviews .comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pdp-page .product-reviews .form-submit {
  margin: 0;
}

.pdp-page .product-reviews .form-submit input[type="submit"] {
  min-height: 3rem;
  padding: 0.5rem 1.6rem;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.pdp-page .product-reviews .woocommerce-verification-required,
.pdp-page .product-reviews .must-log-in,
.pdp-page .product-reviews__fallback p {
  margin: 0;
  color: rgba(26, 26, 26, 0.8);
  font-size: 0.92rem;
  line-height: 1.6;
}

