/* ============================================================
   Hani Len — Product page (עמוד מוצר). Prefix: pd-
   Relies on shop.css for the product-card look (related carousel
   reuses .sh- price/label classes are NOT used here — pd- has its
   own). Cart drawer lives in main.css. RTL.
   ============================================================ */

.pd-wrap { padding-block: clamp(18px, 2vw, 30px) clamp(28px, 3.5vw, 52px); }
.pd-crumb { font-family: var(--font-body); font-size: .85rem; letter-spacing: .03em;
  color: var(--muted); display: flex; gap: 9px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.pd-crumb a { color: var(--ink); }
.pd-crumb a:hover { color: var(--gold-deep); }
.pd-crumb span { color: var(--pale-border, #BFC8CB); }

/* ---- Top: gallery + info ---- */
.pd-top {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 4vw, 68px); align-items: start;
}

/* gallery */
.pd-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
.pd-thumbs { display: flex; flex-direction: column; gap: 12px; }
.pd-thumb {
  width: 84px; height: clamp(84px, 9vh, 104px); border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #f3efe9; border: 1.5px solid transparent; padding: 0;
  transition: border-color .2s var(--ease-out);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.on { border-color: var(--gold-deep); }
.pd-stage {
  position: relative; aspect-ratio: 4/5; max-height: min(72vh, 620px); border-radius: var(--radius-card);
  overflow: hidden; background: #f3efe9; box-shadow: var(--shadow-card);
}
.pd-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pd-stage__label { position: absolute; top: 14px; inset-inline-start: 14px;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--gold-gradient); color: var(--navy); }

/* info column */
.pd-brand { font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep-text); }
.pd-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.08; color: var(--ink); margin: 0; }
.pd-rating { display: flex; align-items: center; gap: 9px; margin-top: 11px;
  font-family: var(--font-body); font-size: .88rem; color: var(--muted); }
.pd-stars { display: inline-flex; gap: 2px; color: var(--gold-deep); }
.pd-stars svg { width: 16px; height: 16px; }

.pd-prices { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-card);
  background: var(--sand); display: flex; flex-direction: column; gap: 10px; }
.pd-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-price-row__label { font-family: var(--font-body); font-size: .95rem; color: var(--muted); }
.pd-price-row__val { font-family: var(--font-body); font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.pd-price-row__val ins { text-decoration: none; }
.pd-price-row__val del { font-size: .7em; color: var(--muted); }
.pd-price-row--member { padding-top: 10px; border-top: 1px dashed var(--pale-border, #BFC8CB); }
.pd-price-row--member .pd-price-row__label { color: var(--gold-deep); font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; }
.pd-price-row--member .pd-price-row__label svg { width: 15px; height: 15px; }
.pd-price-row--member .pd-price-row__val { color: var(--gold-deep); }
.pd-member-note { font-family: var(--font-body); font-size: .8rem; color: var(--muted); margin: 0; }
.pd-member-note a { color: var(--gold-deep); font-weight: 600; }

/* volume + qty + add */
.pd-opt { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pd-opt__label { font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; color: var(--ink); margin: 0; }
.pd-sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-size {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--pale-border, #BFC8CB); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.pd-size:hover { border-color: var(--gold-deep); }
.pd-size.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.pd-size:disabled { opacity: .4; cursor: not-allowed; }
.pd-variation-select { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.pd-actions { display: flex; gap: 14px; margin-top: 20px; align-items: stretch; }
.pd-qty { display: flex; align-items: center; border: 1.5px solid var(--pale-border, #BFC8CB);
  border-radius: 999px; overflow: hidden; }
.pd-qty button { width: 44px; height: 100%; border: none; background: #fff; cursor: pointer;
  font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.pd-qty button:hover { color: var(--gold-deep); }
.pd-qty input { width: 40px; text-align: center; border: none; font-family: var(--font-body);
  font-size: 1rem; color: var(--ink); -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-add { flex: 1; justify-content: center; border: none; cursor: pointer; }
.pd-add.added, .pd-add.loading { background: var(--teal) !important; border-color: var(--teal) !important; color: #fff !important; }
.pd-add:disabled { opacity: .55; cursor: not-allowed; }

.pd-meta { margin-top: 18px; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-body); font-size: .88rem; color: var(--muted); }
.pd-meta div { display: flex; align-items: center; gap: 9px; }
.pd-meta svg { width: 16px; height: 16px; stroke: var(--teal); flex: 0 0 auto; }

/* ---- Accordion ---- */
.pd-acc { margin-top: 22px; border-top: 1px solid var(--hairline); }
.pd-acc details { border-bottom: 1px solid var(--hairline); }
.pd-acc summary {
  list-style: none; cursor: pointer; padding: 16px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.28rem; color: var(--ink);
}
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary .pd-acc__ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-deep);
  transition: transform .3s var(--ease-out); }
.pd-acc details[open] summary .pd-acc__ic { transform: rotate(45deg); }
.pd-acc__body { padding: 0 4px 22px; font-family: var(--font-body); font-size: 1rem;
  line-height: 1.68; color: var(--muted); }
.pd-acc__body p { margin: 0 0 .8em; }
.pd-acc__body ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 7px; }

/* ---- Benefits split ---- */
.pd-benefits { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,4vw,64px);
  align-items: center; }
.pd-benefits__media { border-radius: var(--radius-arch); overflow: hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 4/5; max-height: min(70vh, 640px); }
.pd-benefits__media img { width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.12) saturate(1.06) contrast(.98); }
.pd-benlist { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.pd-ben { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.pd-ben__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--warm-white);
  display: inline-flex; align-items: center; justify-content: center; color: var(--teal); }
.pd-ben__ic svg { width: 22px; height: 22px; stroke-width: 1.6; }
.pd-ben h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--ink);
  margin: 0 0 5px; line-height: 1.15; }
.pd-ben p { font-family: var(--font-body); font-size: .98rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---- Related carousel ---- */
.pd-rel__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.pd-rel__nav { display: flex; gap: 10px; }
.pd-rel__btn { width: 46px; height: 46px; border-radius: 50%; background: #fff;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out); }
.pd-rel__btn:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.pd-rel__btn svg { width: 20px; height: 20px; }
.pd-rel__viewport { overflow: hidden; }
.pd-rel__track { display: flex; gap: clamp(16px,1.8vw,26px); transition: transform .5s var(--ease-out); }
.pd-rel__card { flex: 0 0 calc((100% - 3 * clamp(16px,1.8vw,26px)) / 4); min-width: 0; }
.pd-rel__media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius-card); background: #f3efe9; box-shadow: var(--shadow-card); }
.pd-rel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pd-rel__media:hover img { transform: scale(1.04); }
.pd-rel__label { position: absolute; top: 10px; inset-inline-start: 10px;
  font-family: var(--font-body); font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #fff; }
.pd-rel__label.is-sale { background: var(--dusty-rose, #A57F74); }
.pd-rel__label.is-best { background: var(--gold-gradient); color: var(--navy); }
.pd-rel__brand { font-family: var(--font-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-top: 13px; }
.pd-rel__name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem;
  line-height: 1.2; color: var(--ink); margin: 5px 0 0; }
.pd-rel__name a { color: inherit; }
.pd-rel__name a:hover { color: var(--gold-deep); }
.pd-rel__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pd-rel__price { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.pd-rel__price .was { font-weight: 400; font-size: .88rem; color: var(--muted); text-decoration: line-through; margin-inline-start: 7px; }
.pd-rel__foot .sh-add { padding: 9px; flex: 0 0 auto; }
.pd-rel__foot .sh-add svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .pd-top { grid-template-columns: 1fr; }
  .pd-benefits { grid-template-columns: 1fr; }
  .pd-rel__card { flex-basis: calc((100% - clamp(16px,1.8vw,26px)) / 2); }
}
@media (max-width: 560px) {
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { flex-direction: row; order: 2; }
  .pd-thumb { width: 70px; height: 70px; }
  .pd-rel__card { flex-basis: calc((100% - clamp(16px,1.8vw,26px)) / 2); }
}
