/* Anushka Fashion — PRODUCT DETAIL page */

.pdp-crumb { padding-block: 18px 0; }
.pdp-root { padding-block: 18px clamp(40px, 6vw, 80px); }

.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

/* gallery */
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { .pdp-gallery { position: static; } }
.pdp-main {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cream);
  border: 1px solid var(--line);
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-real, .pdp-badge {
  position: absolute; top: 14px; z-index: 2; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 12px; background: var(--ink); color: var(--ivory);
}
.pdp-real { left: 14px; background: var(--gold-deep); }
.pdp-badge { right: 14px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumb {
  flex: 0 0 74px; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--cream);
  padding: 0; cursor: pointer; overflow: hidden; transition: border-color .2s var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* info column */
.pdp-cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 8px; }
.pdp-name { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; line-height: 1.15; margin: 0 0 10px; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.pdp-rating span { border-bottom: 1px solid var(--line-strong); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.pdp-price .price { font-size: 26px; font-weight: 500; }
.pdp-tax { font-size: 11.5px; color: var(--muted); margin: 4px 0 0; }

.pdp-block { margin-top: 26px; }
.pdp-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pdp-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-urgency { font-size: 12px; color: var(--danger); margin: 10px 0 0; }

.pdp-actions { display: flex; gap: 12px; margin-top: 22px; align-items: stretch; }
.pdp-actions .qty { flex: 0 0 auto; }
.pdp-actions .btn { flex: 1; }
.pdp-info .btn--outline.btn--block { margin-top: 10px; }

.pdp-mini-actions { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.pdp-mini {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; transition: color .2s var(--ease);
}
.pdp-mini:hover { color: var(--gold-deep); }
.pdp-mini.is-on { color: var(--wine); }

.pdp-pincode { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdp-pincode__row { display: flex; gap: 8px; margin-top: 8px; }
.pdp-pincode__row .input { flex: 1; }
.pdp-pin-result { font-size: 12.5px; margin: 8px 0 0; min-height: 18px; }
.pdp-pin-result.is-ok { color: var(--success); }
.pdp-pin-result.is-error { color: var(--danger); }

.pdp-offers { margin-top: 22px; padding: 16px; background: var(--cream); border: 1px dashed var(--line-strong); }
.pdp-offer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 8px; }
.pdp-offer code { font-family: var(--font-body); letter-spacing: .12em; font-weight: 600; background: var(--ivory); padding: 4px 9px; border: 1px solid var(--line-strong); }
.pdp-offer span { flex: 1; min-width: 140px; color: var(--ink-2); }

.pdp-accordions { margin-top: 28px; }
.pdp-list { margin: 0; padding-left: 18px; }
.pdp-list li { margin-bottom: 6px; }

/* reviews */
.pdp-reviews { border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 4vw, 48px); }
.pdp-section-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; margin: 0 0 22px; }
.pdp-reviews__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 800px) { .pdp-reviews__grid { grid-template-columns: 1fr; } }

.rev-summary { display: flex; gap: 26px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.rev-score { text-align: center; }
.rev-score strong { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; }
.rev-score span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.rev-bars { flex: 1; min-width: 180px; }
.rev-bar { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.rev-bar i { flex: 1; height: 5px; background: var(--sand); display: block; }
.rev-bar i b { display: block; height: 100%; background: var(--gold); }
.rev-list { list-style: none; margin: 0; padding: 0; }
.rev-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rev-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rev-city { font-size: 11.5px; color: var(--muted); }
.rev-verified { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--success); border: 1px solid currentColor; padding: 2px 7px; }
.rev-title { font-weight: 500; margin: 8px 0 4px; }
.rev-text { margin: 0; color: var(--ink-2); }
.rev-date { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
.rev-reply { margin-top: 8px; padding: 10px 12px; background: var(--cream); font-size: 13px; }
.rev-empty { color: var(--muted); }

.rev-form { background: var(--cream); padding: 22px; border: 1px solid var(--line); }
.rev-form h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; margin: 0 0 14px; }
.rev-stars-input { display: flex; gap: 4px; margin-bottom: 14px; }
.rev-stars-input button { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--sand); cursor: pointer; padding: 0; }
/* A deeper gold so the chosen stars clear 3:1 against the ivory card. */
.rev-stars-input button.is-on { color: #A57B34; }
:root[data-theme="dark"] .rev-stars-input button.is-on { color: var(--gold); }

/* mobile sticky bar */
.pdp-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ivory) 97%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.pdp-sticky-bar__price { display: flex; align-items: baseline; gap: 8px; }
.pdp-sticky-bar .btn { flex: 1; margin: 0; }
@media (max-width: 760px) { .pdp-sticky-bar { display: flex; } }

.pdp-loading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; }
.pdp-loading__img { aspect-ratio: 3/4; }
.pdp-loading__info { display: grid; gap: 16px; align-content: start; padding-top: 12px; }
@media (max-width: 900px) { .pdp-loading { grid-template-columns: 1fr; } }

/* qty stepper — force a single row (store.css base can wrap in this narrow column) */
.pdp-actions .qty {
  display: inline-flex; flex-direction: row; align-items: stretch; flex-wrap: nowrap;
  border: 1px solid var(--line-strong); min-width: 116px; height: 52px;
}
.pdp-actions .qty button {
  flex: 0 0 38px; background: none; border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.pdp-actions .qty button:hover { background: var(--cream); }
.pdp-actions .qty > span {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--line);
}
.pdp-actions .btn { min-height: 52px; }
