
/* ── Product Detail Page ──────────────────────────────────────────── */
.pdp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 80px; }

.pdp-crumb { display: flex; align-items: center; gap: 6px; padding: 20px 0 28px;
  font-size: 12px; color: var(--color-text-muted); flex-wrap: wrap; }
.pdp-crumb a { color: var(--color-text-muted); text-decoration: none; transition: color .15s; }
.pdp-crumb a:hover { color: var(--color-brand); }
.pdp-crumb__sep { opacity: .4; }
.pdp-crumb__current { color: var(--color-text); font-weight: 500; }

/* Hero two-col */
.pdp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Gallery */
.pdp-gallery { position: sticky; top: 100px; }
.pdp-gallery__main { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
  background: var(--color-bg-alt); }
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gallery__bg  { width: 100%; height: 100%; display: block; }
.pdp-gallery__badge  { position: absolute; top: 16px; left: 16px; }


.pdp-thumbs-wrap { position: relative; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb  { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s; flex-shrink: 0; }
.pdp-thumb:hover, .pdp-thumb.is-active { border-color: var(--color-brand); }
.pdp-thumb img            { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb__swatch        { width: 100%; height: 100%; }

/* Summary */
.pdp-brand  { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-brand); margin-bottom: 8px; }
.pdp-name   { font-family: var(--font-serif); font-size: 32px; font-weight: 500; line-height: 1.15;
  color: var(--color-text); margin-bottom: 14px; }

.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pdp-stars  { display: flex; gap: 2px; }
.pdp-star   { font-size: 16px; color: var(--color-brand); }
.pdp-star--empty { color: var(--color-border); }
.pdp-rating__count { font-size: 13px; color: var(--color-text-muted); }
.pdp-rating__link  { font-size: 13px; color: var(--color-brand); text-decoration: underline; cursor: pointer; }

.pdp-price  { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.pdp-price__current  { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--color-text); }
.pdp-price__original { font-size: 18px; color: var(--color-text-muted); text-decoration: line-through; }
.pdp-price__save     { font-size: 12px; font-weight: 600; color: var(--color-brand);
  background: rgba(192,96,122,.1); padding: 2px 8px; border-radius: 99px; }

/* Shade selector */
.pdp-shades { margin-bottom: 22px; }
.pdp-shades__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--color-text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pdp-shades__selected { color: var(--color-text); font-weight: 500; text-transform: none; letter-spacing: 0; }
.pdp-shades__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-shade-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, border-color .15s; padding: 0; outline-offset: 2px; }
.pdp-shade-btn:hover { transform: scale(1.12); }
.pdp-shade-btn.is-active { border-color: var(--color-brand); box-shadow: 0 0 0 2px #fff inset; }

/* Qty + cart */
.pdp-cart-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden; background: var(--color-surface); flex-shrink: 0; }
.pdp-qty__btn { width: 42px; height: 52px; border: none; background: none; cursor: pointer;
  font-size: 20px; color: var(--color-text-soft); display: flex; align-items: center;
  justify-content: center; transition: background .15s; }
.pdp-qty__btn:hover { background: var(--color-bg-alt); }
.pdp-qty__val { width: 44px; text-align: center; font-size: 14px; font-weight: 600; border: none;
  background: none; color: var(--color-text); -moz-appearance: textfield; }
.pdp-qty__val::-webkit-outer-spin-button,
.pdp-qty__val::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-add-btn { flex: 1; height: 52px; background: var(--color-brand); color: #fff; border: none;
  border-radius: 10px; font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; transition: background .2s; display: flex;
  align-items: center; justify-content: center; gap: 8px; }
.pdp-add-btn:hover:not(:disabled) { background: var(--color-brand-dark, #9a3e58); }
.pdp-add-btn:disabled { background: var(--color-border); cursor: not-allowed; }

.pdp-secondary-actions { display: flex; gap: 10px; margin-bottom: 28px; }
.pdp-ghost-btn { flex: 1; height: 44px; border: 1px solid var(--color-border); border-radius: 10px;
  background: none; font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--color-text-soft); cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; transition: all .15s; }
.pdp-ghost-btn:hover { border-color: var(--color-brand-light); color: var(--color-brand); background: rgba(192,96,122,.04); }
.pdp-ghost-btn.is-active { color: var(--color-brand); border-color: var(--color-brand-light); }
.pdp-ghost-btn.is-active svg { fill: var(--color-brand); }

/* Meta */
.pdp-meta { font-size: 12px; color: var(--color-text-muted); display: flex; flex-direction: column;
  gap: 6px; border-top: 1px solid var(--color-border); padding-top: 20px; }
.pdp-meta__row { display: flex; gap: 8px; align-items: center; }
.pdp-meta__key { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; min-width: 80px; }
.pdp-meta__val { color: var(--color-text-soft); }
.tag-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tag-pill--new        { background: rgba(91,141,184,.1);  color: #2a5070; }
.tag-pill--sale       { background: rgba(192,80,96,.1);   color: #9a2030; }
.tag-pill--bestseller { background: rgba(201,160,96,.1);  color: #7a5010; }


/* Related */
.pdp-related { margin-top: 72px; }
.pdp-related__title { font-family: var(--font-serif); font-size: 26px; font-weight: 500;
  margin-bottom: 28px; color: var(--color-text); }
.pdp-related__grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Tablet ── */
@media (max-width: 900px) {
  .pdp-hero { grid-template-columns: 1fr; gap: 24px; }
  .pdp-gallery { position: static; }
  .pdp-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .pdp-wrap { padding: 0 16px 48px; }

  /* Breadcrumb — compact */
  .pdp-crumb { padding: 14px 0 18px; font-size: 11px; gap: 4px; }

  /* Gallery — square on mobile */
  .pdp-gallery__main { aspect-ratio: 1/1; border-radius: 12px; }

  /* Thumbnails — horizontal scroll strip */
  .pdp-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; }

  /* Scroll cue — right-edge fade that disappears once fully scrolled */
  .pdp-thumbs-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 4px;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--color-bg, #FEF6F6));
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s;
  }
  .pdp-thumbs-wrap.is-end::after { opacity: 0; }

  /* Text */
  .pdp-brand { font-size: 10px; margin-bottom: 4px; }
  .pdp-name  { font-size: 22px; margin-bottom: 10px; }
  .pdp-price__current  { font-size: 22px; }
  .pdp-price__original { font-size: 15px; }
  .pdp-desc  { font-size: 13px; margin-bottom: 18px; padding-bottom: 18px; }

  /* Shade buttons — bigger tap targets */
  .pdp-shade-btn { width: 36px; height: 36px; }

  /* Cart row — full width add to bag */
  .pdp-cart-row { gap: 8px; }
  .pdp-qty__btn { width: 38px; height: 48px; }
  .pdp-add-btn  { height: 48px; font-size: 13px; }

  /* Secondary actions */
  .pdp-secondary-actions { gap: 8px; }
  .pdp-ghost-btn { font-size: 12px; height: 40px; }

  /* Meta */
  .pdp-meta__key { min-width: 70px; }

  /* Related */
  .pdp-related { margin-top: 48px; }
  .pdp-related__title { font-size: 20px; margin-bottom: 16px; }
  .pdp-related__grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ══ CONVERSION ADD-ONS (temporary — move to style.css if approved) ══ */

/* Buy Now */
.pdp-buynow-btn { width: 100%; height: 50px; margin-bottom: 16px; border-radius: 10px;
  background: var(--color-text); color: #fff; border: none; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; letter-spacing: .04em; cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.pdp-buynow-btn:hover:not(:disabled) { background: var(--color-brand-dark, #9a3e58); }
.pdp-buynow-btn:disabled { background: var(--color-border); cursor: not-allowed; }

/* Trust chips */
.pdp-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.pdp-trust__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--color-border); border-radius: 99px; font-size: 11.5px; font-weight: 500;
  color: var(--color-text-soft); background: var(--color-surface); }
.pdp-trust__chip svg { color: var(--color-brand); flex-shrink: 0; }

/* Delivery line */
.pdp-delivery { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 22px;
  border: 1px dashed var(--color-border-strong); border-radius: 10px; background: rgba(201,164,120,.07);
  font-size: 13px; color: var(--color-text-soft); }
.pdp-delivery svg { color: var(--color-gold-dark, #a07a4a); flex-shrink: 0; }
.pdp-delivery strong { color: var(--color-text); font-weight: 600; }

/* Accordions */
.pdp-accordions { margin-top: 26px; border-top: 1px solid var(--color-border); }
.pdp-acc { border-bottom: 1px solid var(--color-border); }
.pdp-acc__head { width: 100%; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 16px 2px; background: none; border: none;
  cursor: pointer; text-align: left; font-family: var(--font-serif); font-size: 17px;
  font-weight: 500; color: var(--color-text); }
.pdp-acc__icon { flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--color-brand);
  transition: transform .25s; }
.pdp-acc.is-open .pdp-acc__icon { transform: rotate(45deg); }
.pdp-acc__body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.pdp-acc.is-open .pdp-acc__body { max-height: 800px; }
.pdp-acc__inner { padding: 0 2px 20px; font-size: 14px; line-height: 1.75; color: var(--color-text-soft); }
.pdp-acc__inner .muted { color: var(--color-text-muted); font-style: italic; }

/* Reviews */
.pdp-reviews { margin-top: 64px; }
.pdp-reviews__title { font-family: var(--font-serif); font-size: 26px; font-weight: 500;
  margin-bottom: 24px; color: var(--color-text); }
.pdp-review-list { display: grid; gap: 16px; }
.pdp-review { padding: 20px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface); }
.pdp-review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap; }
.pdp-review__author { display: flex; align-items: center; gap: 10px; }
.pdp-review__avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg,#E8A0B4,#C0607A); font-family: var(--font-serif); font-size: 16px;
  display: flex; align-items: center; justify-content: center; }
.pdp-review__name { font-size: 14px; font-weight: 600; color: var(--color-text); }
.pdp-review__verified { font-size: 11px; color: var(--color-success, #6b9e7a); }
.pdp-review__date { font-size: 12px; color: var(--color-text-muted); }
.pdp-review__stars { color: var(--color-brand); font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.pdp-review__title { font-weight: 600; font-size: 14px; color: var(--color-text); margin-bottom: 4px; }
.pdp-review__body { font-size: 13.5px; line-height: 1.7; color: var(--color-text-soft); }

/* Sticky mobile add-to-bag bar */
.pdp-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border); box-shadow: 0 -4px 20px rgba(44,26,26,.08);
  transform: translateY(110%); transition: transform .3s ease; }
.pdp-sticky-bar.is-visible { transform: translateY(0); }
.pdp-sticky-bar__info { flex-shrink: 0; line-height: 1.2; }
.pdp-sticky-bar__price { font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: var(--color-text); }
.pdp-sticky-bar__shade { font-size: 11px; color: var(--color-text-muted); }
.pdp-sticky-bar__btn { flex: 1; height: 46px; background: var(--color-brand); color: #fff; border: none;
  border-radius: 10px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.pdp-sticky-bar__btn:disabled { background: var(--color-border); cursor: not-allowed; }

@media (max-width: 600px) {
  .pdp-sticky-bar { display: flex; }
  .pdp-wrap { padding-bottom: 96px; }   /* clear the sticky bar */
  .pdp-reviews { margin-top: 44px; }
  .pdp-reviews__title { font-size: 20px; }
}

/* Connect the original product design to WooCommerce's purchase and review forms. */
.aurra-pdp .pdp-gallery__main img { width:100%; height:100%; object-fit:cover; }
.aurra-pdp .pdp-summary { min-width:0; }
.aurra-pdp .pdp-price { color:var(--color-text); font-family:var(--font-serif); font-size:28px; }
.aurra-pdp .pdp-price ins { text-decoration:none; background:none; }
.aurra-pdp .pdp-price del { font-size:18px; color:var(--color-text-muted); margin-right:10px; }
.pdp-purchase form.cart { margin:0; }
.pdp-purchase form.cart:not(.variations_form), .pdp-purchase .woocommerce-variation-add-to-cart { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.aurra-pdp .pdp-purchase .quantity { float:none; margin:0; display:flex; width:auto; }
.aurra-pdp .pdp-qty input.qty { width:44px; height:52px; border:0; padding:0; background:transparent; text-align:center; appearance:textfield; }
.pdp-qty input::-webkit-inner-spin-button { appearance:none; }
.aurra-pdp .pdp-purchase .single_add_to_cart_button { flex:1; height:52px; border:0; border-radius:10px; background:var(--color-brand); color:#fff; padding:0 20px; font:600 15px var(--font-sans); }
.aurra-pdp .pdp-purchase button:disabled { opacity:.5; cursor:not-allowed; }
.aurra-pdp .pdp-buynow-btn { width:100%; flex-basis:100%; }
.pdp-enhanced .pdp-purchase .variations { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.pdp-purchase .woocommerce-variation-price { display:none; }
.pdp-purchase .stock { margin:0 0 16px; font-size:12px; }
.pdp-purchase .woocommerce-variation { width:100%; }
#pdpCartStatus { font-size:13px; margin:8px 0; }
#pdpCartStatus:empty { display:none; }
.pdp-option-btn { width:auto; height:auto; min-height:32px; border-radius:6px; padding:6px 10px; font-size:12px; }
.pdp-shade-btn:disabled { opacity:.35; cursor:not-allowed; }
.pdp-acc__head { list-style:none; }
.pdp-acc__head::-webkit-details-marker { display:none; }
.pdp-acc[open] .pdp-acc__icon { transform:rotate(45deg); }
.pdp-acc__inner p + p { margin-top:10px; }
.aurra-pdp .woocommerce-Reviews-title { display:none; }
.aurra-pdp #reviews ol.commentlist { display:grid; gap:16px; list-style:none; padding:0; margin:0 0 24px; }
.aurra-pdp #reviews ol.commentlist li { margin:0; }
.aurra-pdp .comment-respond { border:1px solid var(--color-border); border-radius:14px; padding:20px; background:var(--color-surface); }
.aurra-pdp .comment-reply-title { display:block; font-family:var(--font-serif); font-size:22px; margin-bottom:16px; }
.aurra-pdp #review_form textarea, .aurra-pdp #review_form input[type=text], .aurra-pdp #review_form input[type=email] { width:100%; padding:10px; border:1px solid var(--color-border); border-radius:6px; background:var(--color-bg); font:inherit; }
.aurra-pdp #review_form #submit { background:var(--color-brand); color:white; border-radius:8px; padding:12px 20px; }
.aurra-pdp :focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; }
@media(max-width:600px) { .aurra-pdp { padding-bottom:60px; } }
.woocommerce .aurra-pdp .pdp-purchase button.single_add_to_cart_button.button.alt { background:var(--color-brand); color:#fff; }
.woocommerce .aurra-pdp #review_form #respond .form-submit input { background:var(--color-brand); color:#fff; border-radius:8px; padding:12px 20px; }
.aurra-pdp #review_form_wrapper { border:1px solid var(--color-border); border-radius:14px; padding:20px; background:var(--color-surface); }
.aurra-pdp .pdp-stars { color:var(--color-brand); }
.aurra-pdp .pdp-purchase .in-stock { color:var(--color-success,#6b9e7a); }
/* Fit tall, wide, and square product photos inside the same portrait frame. */
.aurra-pdp .pdp-gallery__main { aspect-ratio:3/4; background:var(--color-surface); }
.aurra-pdp .pdp-gallery__main img,
.aurra-pdp .pdp-thumb img { width:100%; height:100%; object-fit:contain; object-position:center; background:var(--color-surface); }
/* A more compact main product gallery, with complete uncropped photos. */
.aurra-pdp .pdp-gallery { width:100%; max-width:340px; justify-self:center; }
@media(max-width:600px) { .aurra-pdp .pdp-gallery { max-width:260px; } }

/* Clear selection and availability without relying on swatch color alone. */
.aurra-pdp .pdp-shades__list { gap: 12px; }
.aurra-pdp .pdp-shade-btn { position: relative; min-width: 44px; min-height: 44px; }
.aurra-pdp .pdp-shade-btn.is-active { outline: 2px solid var(--color-brand); outline-offset: 3px; border-color: #fff; }
.aurra-pdp .pdp-shade-btn:focus-visible { outline: 3px solid var(--color-text); outline-offset: 4px; }
.aurra-pdp .pdp-shade-btn:disabled { opacity: .55; transform: none; }
.aurra-pdp .pdp-shade-btn.is-unavailable::after { content: ''; position: absolute; left: 10%; top: 50%; width: 80%; height: 2px; background: #392424; transform: rotate(-45deg); }
.aurra-pdp .pdp-shades__availability { margin: 12px 0 0; font-size: 12px; color: var(--color-text); }
.aurra-pdp .pdp-shades__availability:empty { display: none; }
