/* Product view — Wide (full-bleed) */

.page-single-product.product-view--wide #main {
  padding-top: 0;
}

.product-wide {
  width: 100%;
}

.product-wide__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  color: var(--color-mid, #6b7280);
  border-bottom: 1px solid #f8f3ec;
  background: #fff;
}
.product-wide__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.product-wide__breadcrumb a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.product-wide__breadcrumb-current {
  color: var(--color-primary);
  font-weight: 500;
}

.product-wide__stage {
  display: grid;
  grid-template-columns: 10% 50% 40%;
  width: 100%;
  align-items: start;
  background: #fff;
}

.product-wide__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
  max-height: min(78vh, 920px);
  border-right: 1px solid #f8f3ec;
  background: #fafafa;
}
.product-wide__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid transparent;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
}
.product-wide__thumb.is-active,
.product-wide__thumb:hover {
  border-color: var(--color-primary, #0d0d0d);
}
.product-wide__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-wide__media {
  position: relative;
  overflow: hidden;
  background: #e8e6e1;
  min-height: min(78vh, 920px);
  height: min(78vh, 920px);
}
.product-wide__slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.product-wide__slider:active,
.product-wide__slider.is-dragging {
  cursor: grabbing;
}
.product-wide__slider.is-dragging {
  touch-action: none;
}
.product-wide__track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}
.product-wide__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: min(78vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e6e1;
}
.product-wide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.product-wide__placeholder {
  font-size: 3rem;
  color: #bbb;
}
.product-wide__dots {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 5;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
}
.product-wide__dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.product-wide__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
.product-wide__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 4;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  background: var(--color-accent, #b87333);
  color: #fff;
}
.product-wide__badge--featured {
  background: var(--color-primary, #0d0d0d);
}

.product-wide__summary {
  padding: 1.75rem 1.5rem 2rem;
  overflow: visible;
  min-width: 0;
  max-height: none;
  border-left: 1px solid #f8f3ec;
  background: #fff;
}
.product-wide__category {
  font-size: 0.78rem;
  color: var(--color-mid, #6b7280);
  margin: 0 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.product-wide__category a {
  color: inherit;
  text-decoration: none;
}
.product-wide__category a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}
.product-wide__title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: var(--fw-body, 400);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--color-primary);
}
.product-wide__price {
  margin-bottom: 1rem;
}
.product-wide__price > span:first-child {
  font-family: var(--font-price, var(--font-display));
  font-size: 1.35rem;
  font-weight: 600;
}
.product-wide__price-note {
  display: block;
  font-size: 0.75rem;
  color: var(--color-mid, #6b7280);
  margin-top: 0.25rem;
}
.product-wide__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-mid, #6b7280);
  margin-bottom: 1.25rem;
}
.product-wide__meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f8f3ec;
  font-size: 0.8rem;
  color: var(--color-mid, #6b7280);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.product-wide__meta a {
  color: inherit;
}

.product-wide__below {
  width: 100%;
  margin: 0;
  padding: 2.75rem 1.5rem 4rem;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #f8f3ec;
}
.product-wide__below .wc-tabs {
  margin-bottom: 3rem;
}
.product-wide__below .related.products {
  padding-top: 2.5rem;
  border-top: 1px solid #f8f3ec;
}
.product-wide__below .related.products + .related.products {
  border-top: 0;
  margin-top: 1.75rem;
  padding-top: 2.75rem;
}
.product-wide__below .related.products h2 {
  padding: 0;
}
.product-wide__below .product-grid {
  width: 100%;
}

@media (max-width: 1100px) {
  .product-wide__stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .product-wide__thumbs {
    display: none !important;
  }
  .product-wide__media {
    min-height: 0;
    height: auto;
  }
  .product-wide__slide {
    min-height: 70vw;
    max-height: 85vh;
    aspect-ratio: 3 / 4;
  }
  .product-wide__dots {
    display: flex;
  }
  .product-wide__summary {
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #f8f3ec;
    padding: 1.35rem 1.1rem 1.75rem;
  }
  .product-wide__below {
    width: 100%;
    padding: 1.5rem 1.1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  .product-wide {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767.98px) {
  .pdp-back--over-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: max(0.7rem, env(safe-area-inset-top, 0px));
    left: 0.7rem;
    z-index: 8;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    background: rgba(253, 252, 248, 0.94);
    color: var(--iso-title, #333);
    fill: currentColor;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  }
  .pdp-back--over-image .iso-icon {
    font-size: 1.05rem;
    width: 0.85em;
    height: 0.85em;
  }
  body.pdp-head-visible .pdp-back--over-image {
    opacity: 0;
    pointer-events: none;
  }
  body.page-single-product .product-wide__badge {
    left: auto;
    right: 1rem;
  }
}
