/* ==========================================================================
   product — page styles for product.php
   Extracted from an inline <style> so it loads before the responsive and
   mobile layers and can be overridden by them.
   ========================================================================== */

.breadcrumb-bar { padding: 18px 48px; background: #fff; border-bottom: 1px solid #eee; font-size: 11px; color: #999; letter-spacing: .03em; }
.breadcrumb-bar a { color: #999; text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar .current { color: var(--black); font-weight: 600; }

.pd-wrap { max-width: 1200px; margin: 0 auto; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; background:#fafafa; }
.pd-gallery { grid-area: gallery; align-self: start; }
.pd-info { grid-area: info; }
.pd-more-info { grid-area: more; min-width: 0; }
/* Photos, then description & details below them on the left; the buy box
   spans the full height on the right. */
.pd-wrap { grid-template-areas: "gallery info" "more fbt"; grid-template-rows: auto 1fr; row-gap: 28px; }
/* no combo on this product: the details can use the whole right column too */
.pd-wrap:not(:has(> .fbt)) { grid-template-areas: "gallery info" "more info"; }
.pd-more-info .pd-acc { margin-top: 12px; }
.pd-main-img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  display: block;
  object-position: top;
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap:wrap; }
.pd-thumb {
  width: 62px;
  height: 76px;
  object-fit: contain;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: .65;
  transition: all .2s;
  border-radius: 5px;
}
 .pd-thumb.active, .pd-thumb:hover { border-color: var(--black); opacity: 1; }

.pd-info .tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.pd-info h1 { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--black); margin-bottom: 12px; line-height: 1.25; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; flex-wrap:wrap; }
.pd-rating .stars { color: var(--yellow); }
.pd-rating .stock { color: #16a34a; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.pd-rating .stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.pd-rating .stock.out { color:var(--red); }
.pd-rating .stock.out::before { background:var(--red); }

.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap:wrap; }
.pd-price { font-size: 1.9rem; font-weight: 700; color: var(--red); }
.pd-old-price { font-size: 1.1rem; color: #bbb; text-decoration: line-through; }
.pd-discount { font-size: 12px; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 3px 8px; }
.pd-tax-note { font-size: 12px; color: #888; margin-bottom: 28px; }
.pd-tax-note strong { color: #16a34a; }

.pd-section-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #444; margin-bottom: 12px; margin-top: 28px; }
.pd-sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-size-btn { padding: 12px 20px; border: 1.5px solid #ddd; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .2s; }
.pd-size-btn.active { background: var(--black); color: #fff; border-color: var(--black); }
.pd-size-btn:hover:not(.active) { border-color: var(--black); }
.pd-size-btn.disabled { opacity:.35; cursor:not-allowed; text-decoration:line-through; }
/* Sold out: crossed out but selectable (picking one offers "notify me"). */
.pd-size-btn.soldout { position:relative; color:#aaa; border-color:#e5e5e5; background:#fafafa; overflow:hidden; }
.pd-size-btn.soldout::after { content:''; position:absolute; left:-10%; top:50%; width:120%; height:1px; background:#c8c8c8; transform:rotate(-24deg); }
.pd-size-btn.soldout.active { background:#fff; color:var(--black); border-color:var(--black); }
.pd-size-btn.soldout.active::after { background:var(--black); }

.pd-colours { display:flex; gap:10px; flex-wrap:wrap; }
.pd-colour { width:38px; height:38px; border:2px solid #ddd; background:#fff; border-radius:50%;
  cursor:pointer; padding:3px; display:flex; align-items:center; justify-content:center; transition:border-color .2s; }
.pd-colour span { width:100%; height:100%; border-radius:50%; display:block; border:1px solid rgba(0,0,0,.12); }
.pd-colour.active { border-color: var(--black); }
.pd-colour:hover:not(.active):not(.soldout) { border-color:#999; }
.pd-colour.soldout { opacity:.4; cursor:not-allowed; position:relative; }
.pd-colour.soldout::after { content:''; position:absolute; inset:0; margin:auto;
  width:110%; height:1.5px; background:#e63946; transform:rotate(-45deg); }
#colourName { font-weight:400; text-transform:none; letter-spacing:0; color:#666; }

.pd-qty-row { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.pd-qty { display: flex; align-items: center; border: 1.5px solid #ddd; }
.pd-qty button { width: 42px; height: 42px; background: #fff; border: none; font-size: 16px; cursor: pointer; font-family: var(--font); }
.pd-qty button:hover { background: #f5f5f5; }
.pd-qty span { width: 44px; text-align: center; font-size: 14px; font-weight: 600; }

.pd-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap:wrap; }
.pd-btn { flex: 1; min-width:150px; padding: 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; font-family: var(--font); border: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s; text-decoration:none; }
.pd-btn-cart { background: var(--black); color: #fff; }
.pd-btn-cart:hover { opacity: .85; }
.pd-btn-buy { background: var(--red); color: #fff; }
.pd-btn-buy:hover { opacity: .85; }
.pd-wish { width: 56px; border: 1.5px solid #ddd; background: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.pd-wish.active { color: var(--red); border-color: var(--red); }

.pd-badges-row { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.pd-badge-item { flex: 1; min-width: 160px; background: #fff; border: 1px solid #eee; padding: 14px 16px; font-size: 12px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 10px; }
.pd-badge-item .ic { font-size: 17px; }

.pd-desc { margin-top: 36px; padding-top: 28px; border-top: 1px solid #eee; }
.pd-desc p { font-size: 13px; color: #555; line-height: 1.9; }
.pd-specs { list-style:none; margin-top:16px; font-size:13px; color:#555; }
.pd-specs li { padding:8px 0; border-bottom:1px dashed #e8e8e8; display:flex; gap:12px; }
.pd-specs li b { min-width:110px; color:var(--black); font-weight:600; }

.pd-reviews { max-width:1200px; margin:0 auto; padding:0 48px 56px; background:#fafafa; }
.pd-rev-head { display:flex; align-items:center; justify-content:space-between; border-bottom:2px solid #f0f0f0; padding-bottom:14px; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.pd-rev-head h2 { font-family:var(--serif); font-size:1.5rem; font-weight:700; }
.pd-rev-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-bottom:32px; }
.pd-rev { background:#fff; border:1px solid #eee; padding:20px; }
.pd-rev .rs { color:var(--yellow); font-size:14px; margin-bottom:8px; }
.pd-rev h4 { font-size:13px; margin-bottom:6px; }
.pd-rev p { font-size:13px; color:#555; line-height:1.7; margin-bottom:10px; }
.pd-rev small { font-size:11px; color:#aaa; }
.pd-rev-form { background:#fff; border:1px solid #eee; padding:24px; }

.related-section { max-width: 1200px; margin: 0 auto; padding: 0 48px 72px; background:#fafafa; }
.related-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid #f0f0f0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.rcard { background: #fff; border: 1px solid #eee; text-decoration: none; color: inherit; display: block; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.rcard:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.rcard img { width: 100%; height: 220px; object-fit: cover; }
.rcard-body { padding: 12px 14px; }
.rcard-body h4 { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.rcard-body .rp { font-size: 13px; font-weight: 700; color: var(--red); }

.not-found { max-width: 600px; margin: 80px auto; text-align: center; padding: 0 24px; }
.not-found h2 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 12px; }
.not-found p { color: #777; font-size: 14px; margin-bottom: 24px; }
.not-found a { display: inline-block; padding: 12px 28px; background: var(--black); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .pd-wrap { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .pd-gallery { position: static; }
  .pd-main-img { height: 380px; }
  .pd-reviews, .related-section { padding: 0 20px 48px; }
  .breadcrumb-bar { padding: 16px 20px; }
}

/* ── Frequently bought together: right column, under the buy box ─ */
.fbt{grid-area:fbt;align-self:start;min-width:0;background:#fff;border:1px solid #ebe6de;border-radius:12px;overflow:hidden;margin:0;}
.fbt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#f7f4ef;border-bottom:1px solid #ebe6de;}
.fbt-eyebrow{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:#8a7d6b;margin:0 0 4px;}
.fbt-title{font-family:var(--serif);font-size:1.15rem;font-weight:500;line-height:1.2;margin:0;}
.fbt-badge{flex:none;background:#111;color:#fff;border-radius:999px;padding:6px 12px;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;}
.fbt-items{padding:6px 18px;}
.fbt-card{display:grid;grid-template-columns:24px 64px minmax(0,1fr);align-items:center;gap:12px;padding:12px 0;transition:opacity .2s;}
.fbt-card.off{opacity:.45;}
.fbt-card.off .fbt-thumb img{filter:grayscale(.7);}
.fbt-tick{margin:0;cursor:pointer;position:relative;}
.fbt-tick input{position:absolute;opacity:0;width:1px;height:1px;}
.fbt-tick span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1.5px solid #111;color:transparent;background:#fff;font-size:13px;transition:background .15s,color .15s;}
.fbt-tick input:checked + span{background:#111;color:#fff;}
.fbt-tick input:focus-visible + span{outline:2px solid #111;outline-offset:2px;}
.fbt-thumb{display:block;width:64px;aspect-ratio:3/4;border-radius:6px;overflow:hidden;background:#f1ede6;}
.fbt-thumb img{width:100%;height:100%;object-fit:cover;object-position:50% 0;display:block;}
.fbt-info{min-width:0;display:flex;flex-direction:column;gap:5px;}
.fbt-this{align-self:flex-start;font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8a7d6b;}
.fbt-name{font-size:13px;line-height:1.35;color:#111;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.fbt-name:hover{text-decoration:underline;}
.fbt-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.fbt-opt{border:1px solid #e2ddd5;border-radius:6px;padding:4px 24px 4px 8px;font-size:12px;font-family:var(--font);background:#fff;min-width:64px;max-width:150px;}
.fbt-price-row{display:inline-flex;align-items:baseline;gap:6px;margin-left:auto;white-space:nowrap;}
.fbt-price{font-weight:600;font-size:13.5px;}
.fbt-mrp{font-size:11.5px;color:#9a9a9a;}
.fbt-plus{position:relative;height:1px;background:#efebe4;margin:0 0 0 36px;}
.fbt-plus span{position:absolute;left:21px;top:50%;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid #e5dfd6;display:grid;place-items:center;font-size:12px;color:#8a7d6b;}
.fbt-buy{padding:16px 18px 18px;border-top:1px solid #ebe6de;background:#fcfbf9;display:flex;flex-direction:column;gap:12px;}
.fbt-sum{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.fbt-total-label{font-size:10.5px;color:#777;text-transform:uppercase;letter-spacing:.12em;margin-bottom:3px;}
.fbt-total{display:flex;align-items:baseline;gap:8px;}
.fbt-total span{font-size:1.45rem;font-weight:600;line-height:1.1;}
.fbt-total s{font-size:.85rem;color:#9a9a9a;}
.fbt-saving{background:#e8f5ec;color:#166534;border-radius:4px;padding:5px 9px;font-size:12px;font-weight:600;white-space:nowrap;}
.fbt-buy .pd-btn{flex:none;width:100%;height:auto;min-height:0;min-width:0;padding:14px;font-size:11.5px;margin:0;}
.fbt-note{font-size:11.5px;line-height:1.45;color:#777;margin:0;text-align:center;}
@media (max-width:900px){
  .fbt{margin:0 var(--m-gutter,16px);}
}
/* ── Photo reviews ───────────────────────────────────────── */
.rev-verified-tag{margin-left:8px;font-size:11px;color:#166534;font-weight:600;vertical-align:middle;}
.rev-photos{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0;}
.rev-photos img{width:72px;height:72px;object-fit:cover;display:block;}
.rev-photo-strip{margin-bottom:22px;}
.rev-photo-strip .rev-photos img{width:96px;height:96px;}

/* ── Find my size ────────────────────────────────────────── */
.fh-sizer{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-top:8px;}
.fh-sizer label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;}
.fh-sizer input,.fh-sizer select{border:1px solid #ddd;padding:8px 10px;font-size:13px;width:90px;font-family:var(--font);}
.fh-sizer select{width:auto;}
.fh-sizer-result{margin-top:12px;font-size:14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;}

/* ── Sold-out choice: notify button + popup ──────────────── */
.pd-notify{margin-top:24px;}
.pd-notify[hidden]{display:none;}
.pd-notify-msg{display:flex;align-items:center;gap:8px;font-size:13px;color:#555;margin:0 0 10px;}
.pd-notify-msg i{font-size:16px;}
.pd-notify-row{display:flex;gap:12px;}
.pd-notify-row .pd-btn{flex:1;min-width:0;}
.pd-notify-wish{flex:0 0 56px;height:auto;}
.pd-actions[hidden]{display:none;}
#pdQtyWrap[hidden]{display:none;}

.fh-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:5000;animation:fhFade .2s ease;}
.fh-modal-overlay[hidden],.fh-modal[hidden]{display:none;}
.fh-modal{position:fixed;z-index:5001;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 32px));
  background:#fff;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.25);animation:fhPop .2s ease;}
.fh-modal-x{position:absolute;top:12px;right:12px;background:none;border:none;font-size:20px;cursor:pointer;line-height:1;padding:4px;}
.fh-modal-top{display:flex;gap:16px;margin-bottom:22px;padding-right:20px;}
.fh-modal-top img{width:76px;height:96px;object-fit:cover;background:#f4f4f4;flex:none;}
.fh-modal-eyebrow{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#555;margin:0 0 6px;display:flex;gap:6px;align-items:center;}
.fh-modal-top h3{font-family:var(--serif);font-size:17px;line-height:1.3;margin:0 0 6px;font-weight:500;}
.fh-modal-size{font-size:13px;color:var(--red);font-weight:600;margin:0;}
.fh-modal-form{display:flex;flex-direction:column;gap:10px;}
.fh-modal-form[hidden]{display:none;}
.fh-modal-form label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;}
.fh-modal-form input{height:48px;border:1px solid #d9d9d9;padding:0 14px;font-size:14px;font-family:var(--font);outline:none;}
.fh-modal-form input:focus{border-color:#111;}
.fh-modal-form .pd-btn{width:100%;height:50px;}
.fh-modal-fine{font-size:11.5px;color:#999;text-align:center;margin:2px 0 0;}
.fh-modal-done{text-align:center;padding:6px 0 0;}
.fh-modal-done[hidden]{display:none;}
.fh-modal-done i{font-size:44px;color:#16a34a;}
.fh-modal-done h3{font-family:var(--serif);font-size:20px;margin:8px 0 6px;font-weight:500;}
.fh-modal-done p{font-size:13.5px;color:#555;line-height:1.5;margin:0 0 18px;}
.fh-modal-done .pd-btn{width:100%;height:48px;}
@media (max-width:600px){
  .fh-modal{top:auto;bottom:0;left:0;transform:none;width:100%;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));animation:fhUp .22s ease;}
}

/* ── Delivery & returns card ─────────────────────────────── */
.pd-delivery{margin-top:24px;border:1px solid #e8e8e8;padding:16px 18px;}
.pd-delivery-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:#222;margin-bottom:12px;}
.pd-pin-change{background:none;border:none;padding:0;font-family:var(--font);font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;text-decoration:underline;cursor:pointer;color:#111;}
.pd-pin-form{display:flex;align-items:center;border:1px solid #d9d9d9;height:46px;padding-left:12px;transition:border-color .15s;}
.pd-pin-form[hidden]{display:none;}
.pd-pin-form:focus-within{border-color:#111;}
.pd-pin-form i{font-size:17px;color:#888;}
.pd-pin-form input{flex:1;min-width:0;border:none;outline:none;padding:0 10px;font-size:14px;letter-spacing:.12em;font-family:var(--font);background:transparent;height:100%;}
.pd-pin-form input::placeholder{letter-spacing:.02em;color:#aaa;}
.pd-pin-form button{height:100%;border:none;background:none;padding:0 18px;font-family:var(--font);font-weight:700;font-size:11px;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;color:#111;}
.pd-pin-status{font-size:12.5px;color:#777;margin:10px 0 4px;}
.pd-pin-status.ok{color:#222;}
.pd-pin-status.bad{color:var(--red);}
.pd-delivery-list{list-style:none;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #f0f0f0;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;}
.pd-delivery-list li{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:#666;line-height:1.35;}
.pd-delivery-list li[hidden]{display:none;}
.pd-delivery-list li#pdPinDate{grid-column:1/-1;font-size:13px;}
.pd-delivery-list i{font-size:16px;color:#111;flex:none;}
.pd-delivery-list strong{color:#111;font-weight:600;display:block;}
#pdPinDate strong{color:#166534;}
@media (max-width:900px){
  .pd-notify,.pd-delivery{margin-top:22px;}
  .pd-notify,.pd-delivery{padding-left:14px;padding-right:14px;}
  /* phones: email on its own line, then [Notify me][♡] */
  .pd-notify .pd-notify-form{flex-wrap:wrap;gap:10px 10px;}
  .pd-notify .pd-notify-form input{flex:1 1 100%;border-right:1px solid #ddd;height:48px;}
  .pd-notify .pd-notify-form .pd-btn{flex:1 1 auto;width:auto;min-width:0;height:48px;padding:0 16px;}
  .pd-notify .pd-notify-form .pd-notify-wish{margin-left:0;height:48px;flex:0 0 48px;width:48px;}
  .pd-pin-form input{font-size:16px !important;}
  .pd-pin-form button{padding:0 14px;}
}

/* ── Product info accordion ──────────────────────────────── */
.pd-acc{margin-top:28px;border-top:1px solid #e8e8e8;}
.pd-acc-item{border-bottom:1px solid #e8e8e8;}
.pd-acc-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px 0;
  font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#111;}
.pd-acc-item summary::-webkit-details-marker{display:none;}
.pd-acc-item summary::after{content:'+';font-size:18px;font-weight:300;letter-spacing:0;transition:transform .2s;}
.pd-acc-item[open] summary::after{content:'−';}
.pd-acc-body{padding:0 0 18px;}
.pd-desc-text{font-size:13.5px;line-height:1.75;color:#444;}
.pd-desc-text p{margin:0 0 10px;}
.pd-desc-text p:last-child{margin-bottom:0;}
.pd-desc-text:not(.open) p:not(:first-child){display:none;}
.pd-more{background:none;border:none;padding:0;margin-top:6px;font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer;font-family:var(--font);color:#111;}
.pd-more[hidden]{display:none;}
.pd-spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 18px;margin:0;}
.pd-spec-grid div{min-width:0;}
.pd-spec-grid dt{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#999;margin-bottom:3px;}
.pd-spec-grid dd{margin:0;font-size:13px;color:#111;}
.pd-spec-cat{font-size:12px;color:#888;margin:16px 0 0;}
.pd-spec-cat a{color:#111;}
.pd-acc-text p{font-size:13px;line-height:1.7;color:#444;margin:0 0 8px;}
@media (max-width:600px){ .pd-spec-grid{grid-template-columns:1fr 1fr;} .pd-delivery-list{grid-template-columns:1fr;} }

@media (max-width:900px){
  .pd-wrap{grid-template-areas:"gallery" "info" "more" "fbt";grid-template-rows:auto;}
  .pd-wrap:not(:has(> .fbt)){grid-template-areas:"gallery" "info" "more";}
  .pd-more-info{padding:0 var(--m-gutter, 16px);}
}
/* Desktop: the buy box follows you while you read the details on the left —
   only on screens tall enough to show all of it. */
@media (min-width:901px) and (min-height:880px){
  .pd-wrap:not(:has(> .fbt)) .pd-info{position:sticky;top:76px;align-self:start;}
}
