/* JBD Planters retail product page.
   Selectors target WooCommerce / WooCommerce Product Options (WPO) / GP Premium default classes,
   so this file can be pasted into Customize → Additional CSS. jbd-pdp-* classes belong to new
   GP Hook Elements. Colors, fonts and buttons come only from jbd-live-tokens.css (layout-only rule). */


.pdp-textlink { font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--surface-accent); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; display: inline-flex; gap: 8px; }
.pdp-textlink:hover { color: var(--surface-inverse); }
.pdp-hint { font-size: 13px; color: var(--contrast-2); margin-top: 8px; }
.pdp-hint a { color: var(--surface-accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Page grid: gallery | summary, everything after spans full width ---------- */
.woocommerce-breadcrumb { font-size: 13px; color: var(--contrast-2); padding-block: 22px 18px; }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--surface-accent); }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.woocommerce div.product > :not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
.woocommerce-notices-wrapper:not(:empty) { margin-top: 16px; padding: 14px 18px; background: var(--cream-100); border-left: 3px solid var(--gold-600); font-size: 14px; }

/* ---------- 1. Gallery (native FlexSlider markup) ---------- */
.woocommerce div.product .woocommerce-product-gallery { position: relative; display: grid; gap: 12px; }
.woocommerce-product-gallery__image { position: relative; aspect-ratio: 1 / 1; background: #e9e9ea; overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: var(--base-3); color: var(--surface-inverse); display: grid; place-items: center; }
.woocommerce-product-gallery__trigger svg { width: 18px; height: 18px; }
.flex-control-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.flex-control-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; background: #e9e9ea; cursor: pointer; opacity: .6; transition: opacity .2s; }
.flex-control-thumbs img:hover, .flex-control-thumbs img.flex-active { opacity: 1; }
.pdp-slot-tag { position: absolute; left: 12px; bottom: 12px; font: 600 10px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: var(--surface-inverse); color: var(--cream-100); padding: 7px 10px; border-radius: 2px; }

/* ---------- 2. Summary ---------- */
.woocommerce div.product .summary { display: grid; gap: 18px; padding-bottom: 64px; }
.woocommerce div.product .product_title { font: 400 40px/1.12 var(--font-serif); letter-spacing: -0.005em; color: var(--surface-inverse); margin: 0; text-wrap: balance; }
.woocommerce div.product p.price, .woocommerce-variation-price .price { font: 500 22px/1.2 var(--font-body); color: var(--surface-inverse); font-variant-numeric: tabular-nums; margin: 0; }
.woocommerce-product-details__short-description p { max-width: 52ch; }

/* WPO fields */
.wpo-options-container { display: grid; gap: 0; }
.wpo-field { padding-block: 16px; border-top: 1px solid var(--line); }
.wpo-option-name { font: 600 11px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--surface-inverse); margin-bottom: 12px; }
.wpo-field-required-symbol { color: var(--surface-accent); }
.pdp-picked { font: 400 14px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--contrast); margin-left: 8px; }
.wpo-choice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wpo-image-buttons { display: grid; grid-template-columns: repeat(10, minmax(0, 36px)); gap: 10px 8px; }
.wpo-choice-item input { position: absolute; opacity: 0; pointer-events: none; }
/* Color: WPO image buttons as round swatches */
.wpo-image-button { display: block; cursor: pointer; }
.wpo-image-wrap { margin: 0; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(4 34 51 / 18%); outline: 1.5px solid transparent; outline-offset: 3px; }
.wpo-choice-image { width: 100%; height: 100%; object-fit: cover; }
.wpo-image-button:hover .wpo-image-wrap { outline-color: rgb(4 34 51 / 35%); }
.wpo-choice-item input:checked + .wpo-image-wrap { outline-color: var(--surface-inverse); }
.wpo-choice-item input:focus-visible + .wpo-image-wrap, .wpo-choice-item input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 3px; }
/* Dimension + Drainage: WPO text labels as outlined pills */
.wpo-text-label { cursor: pointer; display: block; }
.wpo-text-label span { display: block; font: 500 14px/1.2 var(--font-body); color: var(--surface-inverse); border: 1px solid rgb(4 34 51 / 25%); border-radius: 2px; padding: 11px 16px; font-variant-numeric: tabular-nums; }
.wpo-text-label:hover span { border-color: var(--surface-inverse); }
.wpo-choice-item input:checked + span { border-color: var(--surface-inverse); background: var(--cream-100); box-shadow: inset 0 0 0 1px var(--surface-inverse); }

/* Variation price, quantity (GP Premium buttons), Add to cart (looks like .Yellowsolid) */
.single_variation_wrap { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.quantity.buttons-added { display: flex; align-items: center; border: 1px solid rgb(4 34 51 / 25%); border-radius: 2px; }
.quantity.buttons-added a { width: 38px; text-align: center; font-size: 18px; text-decoration: none; color: var(--surface-inverse); }
.quantity .qty { width: 42px; border: 0; background: transparent; text-align: center; font: 500 15px var(--font-body); color: var(--surface-inverse); -moz-appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.woocommerce div.product .single_add_to_cart_button {
  flex: 1; font: 600 10px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold-600); color: var(--base-3); border: 1px solid var(--gold-600); border-radius: 2px; padding: 18px 36px; cursor: pointer; transition: background-color .2s;
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--gold-700); border-color: var(--gold-700); }
.woocommerce div.product .single_add_to_cart_button.disabled { opacity: .55; }
.reset_variations { font-size: 13px; color: var(--contrast-2); justify-self: start; }

/* GP Hook Element after the add-to-cart form */
.jbd-pdp-extras { display: grid; gap: 18px; }
.jbd-pdp-ship { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.jbd-pdp-ship span { display: inline-flex; align-items: center; gap: 7px; }
.jbd-pdp-ship .jbd-icon { width: 16px; height: 16px; color: var(--surface-accent); }
.jbd-pdp-benefits { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; font-size: 14px; line-height: 1.45; }
.jbd-pdp-benefits li { padding-left: 26px; background: no-repeat 0 2px / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cd8312' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.jbd-pdp-benefits b { display: block; font-weight: 600; color: var(--surface-inverse); }

/* ---------- 3. Description tab shown as an open section ---------- */
.woocommerce-tabs { background: var(--cream-100); box-shadow: 0 0 0 100vmax var(--cream-100); clip-path: inset(0 -100vmax); padding-block: clamp(56px, 7vw, 96px); }
.woocommerce-tabs ul.tabs { display: none; }
.woocommerce-tabs .panel { display: grid !important; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 80px); }
.woocommerce-tabs .panel > h2 { grid-row: 1 / span 20; font: 400 40px/1.12 var(--font-serif); color: var(--surface-inverse); margin: 0; }
.woocommerce-tabs .panel > :not(h2) { grid-column: 2; max-width: 60ch; margin-bottom: 14px; }

/* ---------- 4. Size + color guide (GP Hook Element) ---------- */
.jbd-pdp-guide { padding-block: clamp(56px, 7vw, 96px); }
.jbd-pdp-guide-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.jbd-pdp-sizes, .jbd-pdp-colorways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jbd-pdp-sizes > div { padding: 4px 28px 4px 0; display: grid; gap: 6px; align-content: start; }
.jbd-pdp-sizes > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.pdp-size-name { font: 400 22px/1.25 var(--font-serif); color: var(--surface-inverse); }
.jbd-pdp-colorways { gap: 20px; margin-top: 40px; }
.jbd-pdp-colorways > div { background: var(--cream-100); padding: 22px; display: grid; gap: 10px; align-content: start; }
.pdp-dots { display: flex; gap: 6px; }
.pdp-dots span { width: 26px; height: 26px; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgb(4 34 51 / 18%); }

/* ---------- 5. Craftsmanship (existing GB section, restyled) ---------- */
.jbd-pdp-craft { background: var(--cream-100); box-shadow: 0 0 0 100vmax var(--cream-100); clip-path: inset(0 -100vmax); padding-block: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.jbd-pdp-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-inverse); }
.jbd-pdp-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.jbd-pdp-video:hover img { opacity: 1; }
.jbd-pdp-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--gold-600); color: var(--base-3); display: grid; place-items: center; }
.jbd-pdp-play svg { width: 22px; height: 22px; margin-left: 3px; }
.jbd-pdp-craft p:not(.eyebrow) { max-width: 52ch; margin-bottom: 22px; }

/* ---------- 6. "Trusted by" logos: values copied from the live GB section ---------- */
.jbd-pdp-brands { background: var(--surface-inverse); box-shadow: 0 0 0 100vmax var(--surface-inverse); clip-path: inset(0 -100vmax); padding-block: 56px; text-align: center; }
.jbd-pdp-brands .eyebrow { color: var(--gold-500); }
.jbd-pdp-brands .h2 { color: var(--base-3); }
.jbd-pdp-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 22px; row-gap: 24px; align-items: center; justify-content: center; }
.jbd-pdp-logos li { display: flex; justify-content: center; }
.jbd-pdp-logo { display: block; max-height: 90px; max-width: 120px; object-fit: contain; filter: brightness(0) invert(1); }

/* ---------- 6. Testimonials (existing GB section) ---------- */
.jbd-pdp-reviews { padding-block: clamp(56px, 7vw, 96px); text-align: center; }
.jbd-pdp-review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; text-align: left; }
.jbd-pdp-review-list figure { margin: 0; padding: 6px clamp(18px, 2.5vw, 36px); border-left: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.jbd-pdp-review-list figure:first-child { border-left: 0; }
.jbd-stars { color: var(--surface-accent); letter-spacing: .2em; font-size: 13px; }
.jbd-pdp-review-list blockquote { margin: 0; }
.jbd-pdp-review-list figcaption { font: 600 11px/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--surface-accent); }

/* ---------- 7. Related products (native loop) ---------- */
.woocommerce .related.products { background: var(--cream-100); box-shadow: 0 0 0 100vmax var(--cream-100); clip-path: inset(0 -100vmax); padding-block: clamp(56px, 7vw, 96px); }
.woocommerce .related.products > h2 { font: 400 40px/1.12 var(--font-serif); color: var(--surface-inverse); margin: 0 0 24px; }
.woocommerce ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.woocommerce ul.products li.product { background: var(--base-3); border-left: 1px solid var(--line); margin: 0; width: auto; }
.woocommerce ul.products li.product:first-child { border-left: 0; }
.woocommerce ul.products li.product a.woocommerce-loop-product__link { display: grid; text-decoration: none; padding-bottom: 18px; }
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: #e9e9ea; margin: 0 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 11.5px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--surface-inverse); padding-inline: 16px; margin: 0 0 4px; }
.woocommerce ul.products li.product .price { font-size: 14px; color: var(--surface-inverse); padding-inline: 16px; font-variant-numeric: tabular-nums; }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--surface-accent); }
.woocommerce .related.products li.product .button { display: none; }

/* ---------- Responsive (GP breakpoints) ---------- */
@media (max-width: 1024px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .summary { padding-top: 28px; }
  .woocommerce-tabs .panel, .jbd-pdp-craft { grid-template-columns: 1fr; }
  .woocommerce-tabs .panel > h2 { grid-row: auto; margin-bottom: 18px; }
  .woocommerce-tabs .panel > :not(h2) { grid-column: 1; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products li.product:nth-child(3) { border-left: 0; }
  .woocommerce ul.products li.product:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .woocommerce div.product .product_title, .woocommerce-tabs .panel > h2, .woocommerce .related.products > h2 { font-size: 32px; }
  .flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jbd-pdp-benefits, .jbd-pdp-sizes, .jbd-pdp-colorways, .jbd-pdp-review-list { grid-template-columns: 1fr; }
  .jbd-pdp-sizes > div, .jbd-pdp-sizes > div + div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .jbd-pdp-review-list { gap: 24px; }
  .jbd-pdp-logo { max-width: 100%; }
  .jbd-pdp-review-list figure { border-left: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
}
