/* ==================================================
   SINGLE PRODUCT PAGE (Figma "Producto" — FINALES)
================================================== */

/* ── Layout ────────────────────────────────────── */
.pdp {
  max-width: 1440px;
  margin: 0 auto;
}

.pdp__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 50/50 per Figma; minmax(0,…) prevents the image's intrinsic width from blowing out the track */
  min-height: 600px;
}

/* ── LEFT col: gallery ─────────────────────────── */
.pdp__col-gallery {
  padding: 20px 38px 48px;
}


/* ── Breadcrumb ───────────────────────────────── */
.pdp-breadcrumb {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  color: #9b9b9b;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}

.pdp-breadcrumb__link {
  color: #9b9b9b;
  text-decoration: none;
}
.pdp-breadcrumb__link:hover { text-decoration: underline; }

.pdp-breadcrumb__sep,
.pdp-breadcrumb__current { color: #9b9b9b; }

/* ── Gallery ──────────────────────────────────── */
.pdp-gallery {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
}

/* Thumbstrip on the right, stacked vertically */
.pdp-gallery__thumbstrip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  order: 2;
  flex-shrink: 0;
}

.pdp-gallery__thumb {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  background: #e0e0e0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .15s;
}

.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery__thumb.is-active { border-color: #242323; }

.pdp-gallery__stage {
  position: relative;
  display: flex;
  align-items: stretch;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: 560px;
  flex: 1;
  order: 1;
  background: #f2f2f2;
  overflow: hidden;
}

.pdp-gallery__slides { flex: 1; overflow: hidden; height: 100%; }

.pdp-gallery__slide { display: none; height: 100%; }

.pdp-gallery__slide.is-active {
  display: block;
  height: 100%;
}

.pdp-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pdp-gallery__placeholder {
  width: 100%;
  height: 100%;
  background: #e7e7e7;
}

.pdp-gallery__arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #242323;
  z-index: 2;
}
.pdp-gallery__arrow--prev { left: 0; }
.pdp-gallery__arrow--next { right: 0; }

/* ── RIGHT col: product info ──────────────────── */
.pdp__col-info {
  padding: 20px 38px 48px;
  position: relative;
}

/* Wishlist bookmark (top-right corner) */
.pdp-info-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.pdp-wishlist {
  display: inline-flex;
  align-items: center;
  color: #242323;
  text-decoration: none;
}
.pdp-wishlist svg path { stroke: currentColor; }
.pdp-wishlist.is-wishlisted svg path { fill: currentColor; }

/* ── Title ────────────────────────────────────── */
.pdp-title {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 1.2px;
  color: #242323;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.25;
}

/* ── Brand ────────────────────────────────────── */
.pdp-brand {
  display: inline-block;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #242323;
  text-decoration: underline;
  margin-bottom: 10px;
}

/* ── Price ────────────────────────────────────── */
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.pdp-price__current {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  color: #000;
}

.pdp-price__regular {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #8e0000;
  text-decoration: line-through;
}

/* ── Stock badge ──────────────────────────────── */
.pdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 41px;
  white-space: nowrap;
}

.pdp-badge--low {
  background: #f1ad7c;
  color: #020202;
  border-radius: 3px;
  padding: 3px 10px 3px 6px;
  text-transform: none;
}

.pdp-badge--out {
  background: #b5b5b5;
  color: #fff;
  border-radius: 41px;
  padding: 0 12px;
  height: 23px;
  line-height: 23px;
}

.pdp-badge--next-drop {
  background: transparent;
  color: #db481a;
  border: 1px solid #db481a;
  border-radius: 41px;
  padding: 0 12px;
  height: 23px;
  line-height: 23px;
}

.pdp-badge__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #020202;
  flex-shrink: 0;
}

.pdp-badge--out .pdp-badge__dot { background: #999; }

.pdp-badge__i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #020202;
  font-style: normal;
  font-size: 9px;
  font-family: "Helvetica Neue", sans-serif;
  flex-shrink: 0;
}

/* ── Specs table ──────────────────────────────── */
.pdp-specs { margin-bottom: 72px; }

.pdp-specs__row {
  display: grid;
  grid-template-columns: 35% 65%;
  height: 35px;
  align-items: center;
  padding: 0 14px;
}

.pdp-specs__row--alt { background: #f2f2f2; }

.pdp-specs__label {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #939393;
  text-transform: uppercase; /* moved from PHP so labels translate via WPML */
}

.pdp-specs__value {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #000;
}

a.pdp-specs__value--link {
  color: #6d6d6d;
  text-decoration: none;
}

a.pdp-specs__value--link:hover {
  text-decoration: underline;
}

/* Strength leaves */
.pdp-specs__leaves {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.pdp-leaf--on  { fill: #5D1F24; }
.pdp-leaf--off { fill: #5D1F24; opacity: 0.2; }

/* ── Purchase row ─────────────────────────────── */
.pdp-purchase {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin-bottom: 18px;
}

/* Qty selector */
.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid #242323;
  border-radius: 5px;
  height: 42px;
  width: 79px;
  overflow: hidden;
  flex-shrink: 0;
}

.pdp-qty__btn {
  background: none;
  border: none;
  width: 24px;
  height: 100%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #242323;
  flex-shrink: 0;
}

.pdp-qty__input {
  flex: 1;
  border: none;
  background: none;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #242323;
  width: 100%;
  -moz-appearance: textfield;
  letter-spacing: 0.7px;
}
.pdp-qty__input::-webkit-inner-spin-button,
.pdp-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Add to cart button */
.pdp-add-to-cart {
  flex: 1 !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  height: 42px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-family: "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.7px !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .2s !important;
  box-shadow: none !important;
}
.pdp-add-to-cart:hover,
.pdp-add-to-cart:focus {
  background: #333 !important;
  color: #fff !important;
}

.pdp-add-to-cart--disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}
.pdp-add-to-cart--disabled:hover { background: #ccc !important; }

/* ── Notify me when available ─────────────────── */
.pdp-notify {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pdp-notify__label {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #242323;
  margin: 0;
}

.pdp-notify__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp-notify__input {
  width: 100%;
  height: 41px;
  padding: 0 16px;
  background: #ececec;
  border: 1px solid #9b9b9b;
  border-radius: 5px;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: #9b9b9b;
  box-sizing: border-box;
}

.pdp-notify__input:focus {
  outline: none;
  border-color: #242323;
  color: #242323;
}

.pdp-notify__btn {
  width: 100%;
  height: 42px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition: background .2s;
}

.pdp-notify__btn:hover,
.pdp-notify__btn:focus {
  background: #333;
}

.pdp-notify__success {
  font-size: 12px;
  color: #242323;
  margin: 0;
}

/* ── Share ────────────────────────────────────── */
.pdp-share-row {
  margin-bottom: 20px;
}

.pdp-share svg {
  display: block;
  flex-shrink: 0;
  margin-top: -3px;
}

.pdp-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.28px;
  color: #242323;
  cursor: pointer;
  padding: 0;
}

/* ── Accordions ───────────────────────────────── */
.pdp-accordions { border-top: 1px solid #e0e0e0; }

.pdp-accordion { border-bottom: 1px solid #e0e0e0; }

.pdp-accordion__heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.pdp-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 14px 0;
  cursor: pointer;
  min-height: 48px;
  text-align: left;
}

.pdp-accordion__label {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.32px;
  color: #242323;
}

.pdp-accordion__icon {
  font-size: 18px;
  color: #242323;
  transition: transform .25s;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 400;
}

.pdp-accordion.is-open .pdp-accordion__icon { transform: rotate(45deg); }

.pdp-accordion__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.pdp-accordion__body:not([hidden]) { max-height: 800px; }

.pdp-accordion__content {
  padding: 0 0 16px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.28px;
  color: #242323;
}

.pdp-accordion__content h3 {
  font-weight: 500;
}

/* ── Product carousels (below product detail) ─── */
.pdp-carousel {
  border-top: 1px solid #e0e0e0;
}

/* ==================================================
   WC CAROUSEL — layout for product page carousels
   .wc-card component styles are in base.css (shared)
================================================== */

.wc-cat-carousel {
  padding: 40px 0 60px;
  background: #fff;
  width: 100%;
}

.wc-cat-carousel__inner {
  width: 100%;
}

.wc-cat-carousel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 32px;
  box-sizing: border-box;
}

.wc-cat-carousel__title {
  margin: 0;
  font-family: "Blair ITC Std", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.32px;
  text-transform: uppercase;
  color: #000;
}

.wc-cat-carousel__arrows { display: flex; gap: 6px; }

.wc-cat-carousel__arrow {
  width: 30px;
  height: 26px;
  border: 1px solid rgba(0,0,0,.25);
  background: #f3f3f3;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wc-cat-carousel__arrow:hover { background: #e8e8e8; }

.wc-cat-carousel__viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  padding: 0 32px 10px;
  box-sizing: border-box;
  scroll-padding-left: 32px;
}
.wc-cat-carousel__viewport::-webkit-scrollbar { display: none; }

.wc-cat-carousel__track {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-wrap: nowrap;
}

/* Scroll indicator bar */
.wc-cat-carousel__scroll { padding: 10px 32px 0; }

.wc-cat-carousel__scroll-track {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.wc-cat-carousel__scroll-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #242323;
  border-radius: 2px;
  will-change: transform;
}

/* WC Card styles defined in base.css (shared across all pages) */

/* ==================================================
   RESPONSIVE — MOBILE
================================================== */

@media (max-width: 768px) {

  /* ── Layout: stack to single column ───────────── */
  .pdp__wrap {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .pdp__col-gallery,
  .pdp__col-info {
    padding: 16px 16px 24px;
  }

  /* ── Gallery: stage shrinks, thumbstrip goes horizontal below ── */
  .pdp-gallery {
    flex-direction: column;
  }

  .pdp-gallery__stage {
    height: 300px;
    order: 1;
  }

  .pdp-gallery__thumbstrip {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 8px;
    gap: 6px;
  }
  .pdp-gallery__thumbstrip::-webkit-scrollbar { display: none; }

  .pdp-gallery__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  /* ── Product info ──────────────────────────────── */
  .pdp-title {
    font-size: 20px;
  }

  .pdp-specs {
    margin-bottom: 32px;
  }

  .pdp-specs__label,
  .pdp-specs__value {
    font-size: 14px;
  }

  .pdp-badge {
    margin-bottom: 24px;
  }

  /* ── Purchase row: full width on small screens ── */
  .pdp-purchase {
    flex-wrap: wrap;
  }

  .pdp-add-to-cart {
    flex: 1 1 100% !important;
    order: 2;
  }

  .pdp-qty {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  /* ── Carousels ─────────────────────────────────── */
  .wc-cat-carousel__top,
  .wc-cat-carousel__viewport,
  .wc-cat-carousel__scroll {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .pdp-gallery__stage {
    height: 240px;
  }

  .pdp-title {
    font-size: 18px;
  }
}
