/* ============================================================
   MAHABAD — Product detail page
   ============================================================ */

/* ---------- Layout ---------- */

.product-page { padding: 44px 0 110px; }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

/* ---------- Gallery ---------- */

.pd-gallery { position: sticky; top: 110px; }

.pd-main {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 1;
  overflow: hidden;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pd-thumb {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  opacity: .55;
  transition: all .3s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: .85; }
.pd-thumb.active { opacity: 1; border-color: var(--gold); }

.pd-assurance {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.pd-assurance li {
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-assurance li::before { content: "✦"; color: var(--gold); font-size: .58rem; }

/* ---------- Info ---------- */

.pd-title { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 14px; }
.pd-title em { font-style: italic; color: var(--gold); }

.pd-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: .86rem;
  color: var(--muted);
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: .92rem; }

.pd-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pd-price {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
}
.pd-price s { color: var(--muted); font-size: 1.15rem; margin-left: 10px; }

.tier-chip {
  font-family: var(--font-caps);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: var(--red);
  color: var(--cream);
}
.tier-chip.gold { background: var(--gold); color: #171006; }

.pd-price-note { color: var(--muted); font-size: .95rem; margin: 8px 0 34px; }

/* ---------- Buy modes ---------- */

.buy-modes { margin: 34px 0 22px; border: 1px solid var(--line); }

.buy-mode {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: background .25s ease;
  position: relative;
}
.buy-mode + .buy-mode { border-top: 1px solid var(--line); }
.buy-mode:hover { background: rgba(201, 162, 94, .05); }
.buy-mode.active { background: rgba(201, 162, 94, .08); }
.buy-mode input { position: absolute; opacity: 0; pointer-events: none; }

.bm-radio {
  width: 18px; height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color .25s ease;
}
.buy-mode.active .bm-radio { border-color: var(--gold); }
.buy-mode.active .bm-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.bm-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bm-body strong { font-weight: 500; font-size: .98rem; }
.bm-body em { font-style: normal; font-size: .8rem; color: var(--muted); }

.bm-price { font-family: var(--font-num); font-size: .92rem; font-weight: 500; letter-spacing: .06em; }
.bm-price.gold { color: var(--gold-bright); }

.sub-freq { padding: 4px 20px 20px 54px; border-top: 1px dashed var(--line); background: rgba(201, 162, 94, .04); }
.sub-freq .opt-label { margin-top: 16px; }

/* ---------- Bundle offer ---------- */

.bundle-offer {
  border: 1px dashed var(--gold);
  background: linear-gradient(120deg, rgba(179, 36, 44, .07), rgba(201, 162, 94, .06));
  margin-bottom: 26px;
}

.bundle-check {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
}
.bundle-check input { position: absolute; opacity: 0; pointer-events: none; }

.bc-box {
  width: 19px; height: 19px;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  position: relative;
  transition: background .2s ease;
}
.bundle-check input:checked ~ .bc-box { background: var(--gold); }
.bundle-check input:checked ~ .bc-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #171006;
  font-size: .8rem;
  font-weight: 600;
}

.bundle-check img {
  width: 58px; height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.bc-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bc-body strong { font-size: .92rem; font-weight: 500; color: var(--gold-bright); }
.bc-body em { font-style: normal; font-size: .78rem; color: var(--muted); line-height: 1.4; }

.bc-price { font-family: var(--font-num); font-size: .85rem; font-weight: 500; letter-spacing: .05em; white-space: nowrap; }
.bc-price s { color: var(--muted); font-size: .74rem; }
.bc-price b { color: var(--gold-bright); font-weight: 500; margin-left: 4px; }

/* ---------- Qty + CTA ---------- */

.buy-row { display: flex; gap: 14px; margin-bottom: 30px; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.qty-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.2rem;
  width: 44px;
  height: 100%;
  transition: background .2s ease;
}
.qty-btn:hover { background: rgba(201, 162, 94, .12); }
.qty span, .qty > span { min-width: 34px; text-align: center; font-family: var(--font-caps); font-size: .95rem; }

.btn-cart { flex: 1; text-align: center; padding-block: 18px; }

/* ---------- Fulfilment ---------- */

.fulfil {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--panel);
  padding: 18px 22px;
  margin-bottom: 34px;
}
.fulfil-head { display: flex; align-items: center; gap: 12px; }
.fulfil-head svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  flex-shrink: 0;
}
.fulfil-head p { font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

#regionSelect {
  background: var(--bg-2);
  color: var(--gold-bright);
  border: 1px solid var(--line);
  font-family: var(--font-caps);
  font-size: .74rem;
  letter-spacing: .1em;
  padding: 7px 10px;
}
#regionSelect:focus { outline: none; border-color: var(--gold); }

.fulfil-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.fulfil-note strong { color: var(--cream); font-weight: 500; }

/* ---------- Accordion ---------- */

.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-caps);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .25s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold); font-size: 1.1rem; font-weight: 300; }
.accordion details[open] summary::after { content: "−"; }
.accordion summary:hover { color: var(--gold-bright); }
.accordion details p { color: var(--muted); font-size: .95rem; padding-bottom: 20px; max-width: 560px; }

/* ---------- Coffee profile spec ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  padding-bottom: 20px;
}
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.spec span {
  font-family: var(--font-caps);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec b { font-weight: 400; font-size: .92rem; color: var(--cream); text-align: right; }
.spec .dots { color: var(--gold); letter-spacing: 3px; font-size: .8rem; }

@media (max-width: 600px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ---------- Related ---------- */

.related { margin-top: 110px; }
.related .section-head { margin-bottom: 44px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .pd-grid { grid-template-columns: 1fr; gap: 50px; }
  .pd-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .product-page { padding: 28px 0 76px; }
  .buy-row { flex-direction: column; }
  .qty { justify-content: center; padding: 8px 0; }
  .sub-freq { padding-left: 20px; }
}
