/* ============================================================
   LAMSA Ã¢â‚¬â€ modules.css
   Storefront component styles added after layout.css:
   product page, reviews, cart line items, toast, modal,
   quick-view, checkout, order confirmation.
   RTL-friendly: logical properties throughout.
   ============================================================ */

/* ============================================================
   PRODUCT DETAIL PAGE (PDP)
   Media-first layout: gallery + buy box, then story + specs.
   ============================================================ */

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  border-block-end: 1px solid var(--border);
  padding-block: clamp(0.85rem, 1.8vw, 1.2rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb__sep {
  color: rgb(var(--ink-rgb) / 0.26);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.pdp {
  padding-block-start: clamp(1.25rem, 3vw, 2.25rem);
}

.pdp__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .pdp__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

/* ---------- Media / gallery ---------- */

.pdp-media {
  min-width: 0;
}

@media (min-width: 900px) {
  .pdp-media {
    position: sticky;
    inset-block-start: 5.5rem;
  }
}

.pdp-media__stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-elev);
}

/* 4:5 matches the product photography, so on phones and tablets the shot fills
   the card edge to edge with no side bars. */
.pdp-media__frame {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* Desktop: keep the whole gallery (image + thumbnails) inside the viewport so
   the sticky column never hides its own thumbnails. On short screens the photo
   letterboxes inside the white card instead of being cropped. */
@media (min-width: 900px) {
  .pdp-media__frame {
    max-height: calc(100vh - 14rem);
  }
}

.pdp-media__frame--empty .pdp-media__img {
  position: static;
  width: 46%;
  height: auto;
  opacity: 0.35;
  object-fit: contain;
}

/* Absolute so `height: 100%` resolves against the frame: as a grid child the
   image sized to its intrinsic height and the frame clipped the bottom off. */
.pdp-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity var(--dur-mid) var(--ease-soft);
  -webkit-user-drag: none;
  user-select: none;
}

.pdp-media__badges {
  position: absolute;
  inset-block-start: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 70%;
}

.pdp-media__counter {
  position: absolute;
  inset-block-end: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 2;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.pdp-media__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}

.pdp-media__stage:hover .pdp-media__nav,
.pdp-media__nav:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .pdp-media__nav {
    opacity: 0.9;
  }
}

.pdp-media__nav:hover {
  background: var(--ink);
  color: var(--paper);
}

.pdp-media__thumbs[hidden],
.pdp-media__nav[hidden] {
  display: none;
}

.pdp-media__nav--prev {
  inset-inline-start: 0.7rem;
}

.pdp-media__nav--next {
  inset-inline-end: 0.7rem;
}

.pdp-media__zoom {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.pdp-media__zoom:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Touch: 44px minimum hit area for the gallery controls. */
@media (hover: none), (max-width: 899px) {
  .pdp-media__nav,
  .pdp-media__zoom {
    width: 44px;
    height: 44px;
  }
}

.pdp-media__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 0.55rem;
  margin-block-start: 0.7rem;
  padding-block-end: 0.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

@media (min-width: 900px) {
  .pdp-media__thumbs {
    grid-auto-columns: 84px;
  }
}

.pdp-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  opacity: 0.5;
  scroll-snap-align: start;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumb:hover {
  opacity: 0.8;
}

.pdp-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

/* ---------- Info / buy box ---------- */

.pdp-info {
  min-width: 0;
}

.pdp-info__cat {
  display: inline-block;
  margin-block-end: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.pdp-info__cat:hover {
  color: var(--text);
}

.pdp-info__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.pdp-info__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin-block-end: 1.35rem;
}

.pdp-info__reviews {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--dur-fast);
}

a.pdp-info__reviews:hover {
  color: var(--text);
}

/* Star rating: base row + clipped colour fill */
.pdp-stars {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.2em;
  color: rgb(var(--ink-rgb) / 0.16);
}

.pdp-stars__base {
  display: block;
}

.pdp-stars__fill {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: calc(var(--rating, 0) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
}

.pdp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-block-end: 1.1rem;
}

.pdp-price__now {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pdp-price__old {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration-thickness: 1px;
}

.pdp-price__save {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdp-info__lead {
  margin: 0 0 1.6rem;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.pdp-options {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  padding-block-start: 1.4rem;
  border-block-start: 1px solid var(--border);
  margin-block-end: 1.1rem;
}

/* ---------- Option groups (size / color) ---------- */

.option-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 0.55rem;
}

.option-group__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.option-group__value {
  display: block;
  margin-block-end: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* The rule under the label is a text underline, not a box border: it hugs the
   words so the button can grow to a 40 px target without a floating line. */
.pdp-sizeguide-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}

.pdp-sizeguide-link:hover {
  color: var(--text);
  text-decoration-color: var(--ink);
}

.option-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-size {
  min-width: 56px;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}

.option-size:hover:not(:disabled) {
  border-color: var(--ink);
}

.option-size.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.option-size.is-unavailable,
.option-size:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.option-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

/* 44px button, 30px visual swatch: the tap target is finger sized while the
   circle keeps its size. */
.option-color {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 0;
}

.option-color::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  outline: 1px solid rgb(var(--ink-rgb) / 0.18);
  transition: outline-color var(--dur-fast), transform var(--dur-fast);
}

.option-color:hover:not(:disabled)::before {
  transform: scale(1.08);
}

.option-color.is-selected::before {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.option-color.is-unavailable,
.option-color:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Stock message ---------- */

.product-info__stock {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}

/* ---------- Quantity stepper ---------- */

.product-info__qty {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1.25rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  align-self: flex-start;
}

.qty__btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.qty__btn:hover {
  color: var(--text);
  background: rgb(var(--ink-rgb) / 0.04);
}

.qty__input {
  width: 52px;
  height: 44px;
  text-align: center;
  background: transparent;
  border: 0;
  border-inline: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty__input:focus {
  outline: none;
}

/* ---------- Buy actions ---------- */

.pdp-buy {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

.pdp-buy__actions {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 560px) {
  .pdp-buy:not(.pdp-buy--out) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}

/* Two buttons side by side only once the buy column is wide enough to hold
   the label on one line; below that they stack full width. */
@media (min-width: 1360px) {
  .pdp-buy__actions {
    grid-template-columns: 1fr 1fr;
  }
}

.pdp-buy--out {
  grid-template-columns: 1fr;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Trust row ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
  margin-block-end: 1.6rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-row li::before {
  /* CSS escape, not a literal glyph: the file is not guaranteed to be
     decoded as UTF-8, and a literal checkmark turned into mojibake. */
  content: "\2713";
  color: var(--text-muted);
  margin-inline-end: 0.5rem;
}

/* ---------- Materials note ---------- */

.pdp-note {
  padding-block-start: 1.6rem;
}

.pdp-note__label {
  display: block;
  margin-block-end: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pdp-note__body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Story / details section ---------- */

.pdp-story {
  background: var(--bg);
  border-block: 1px solid var(--border);
  scroll-margin-block-start: 5rem;
}

.pdp-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .pdp-story__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  }
}

/* No description on this product: one column, spec card capped to a readable
   measure instead of stretching across the container. */
.pdp-story__grid.pdp-story__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.pdp-story__grid--single .pdp-spec {
  max-width: 44rem;
}

@media (min-width: 900px) {
  .pdp-story__grid--single .pdp-story__aside {
    position: static;
  }
}

.pdp-story__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.pdp-story__aside {
  align-self: start;
}

@media (min-width: 900px) {
  .pdp-story__aside {
    position: sticky;
    inset-block-start: 5.5rem;
  }
}

.rich-text {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.rich-text > * + * {
  margin-block-start: 1rem;
}

.rich-text .rich-heading {
  margin-block: 2rem 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}

.rich-text .rich-heading:first-child {
  margin-block-start: 0;
}

.rich-text .rich-p {
  margin: 0;
}

.rich-text .rich-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-inline-start: 1.2rem;
}

.rich-text ol.rich-list {
  list-style: decimal;
}

.rich-text ul.rich-list {
  list-style: disc;
}

.rich-text .rich-list li::marker {
  color: var(--text-muted);
  font-weight: 600;
}

.rich-text .rich-list li > .rich-list {
  margin-block-start: 0.5rem;
}

.rich-text .rich-list li p.rich-p {
  margin-block-start: 0.35rem;
}

.rich-text strong {
  color: var(--text);
  font-weight: 700;
}

.pdp-spec {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg-card);
  overflow: hidden;
}

.pdp-spec__row {
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 1.2rem;
}

.pdp-spec__row + .pdp-spec__row {
  border-block-start: 1px solid var(--border);
}

.pdp-spec dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pdp-spec dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.pdp-ask {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 1.1rem;
  min-height: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity var(--dur-fast);
}

/* Underline lives on the label so it stays glued to the text next to the icon. */
.pdp-ask span {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: text-decoration-color var(--dur-fast);
}

.pdp-ask:hover {
  opacity: 0.6;
}

.pdp-ask:hover span {
  text-decoration-color: var(--ink);
}

/* ---------- Reviews header ---------- */

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 2rem;
}

.reviews__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews__score {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.reviews__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Sticky mobile buy bar ---------- */

.pdp-sticky {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem clamp(1rem, 4vw, 2rem) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgb(var(--bg-rgb) / 0.96);
  border-block-start: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform var(--dur-mid) var(--ease-expo);
}

.pdp-sticky[hidden] {
  display: none;
}

.pdp-sticky.is-visible {
  transform: none;
}

@media (min-width: 900px) {
  .pdp-sticky {
    display: none;
  }
}

.pdp-sticky__info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.pdp-sticky__name {
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdp-sticky__price {
  font-size: 0.92rem;
  font-weight: 600;
}

.pdp-sticky .btn {
  flex: 0 0 auto;
  padding-inline: 1.4rem;
}

/* The bar only exists below 900px, so the WhatsApp float and the footer only
   need to make room there. */
@media (max-width: 899px) {
  body.pdp-sticky-active .wa-float {
    inset-block-end: 5.75rem;
  }

  /* Keep the footer's last row clear of the fixed buy bar. The footer is the
     only dark surface, so extending it reads as part of the page. */
  body.pdp-sticky-active .site-footer {
    padding-block-end: 5.25rem;
  }
}

/* ---------- Lightbox ---------- */

.pdp-lightbox[hidden],
.pdp-drawer[hidden] {
  display: none;
}

.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(17, 17, 17, 0.97);
  animation: pdp-fade var(--dur-mid) var(--ease-soft);
}

.pdp-lightbox__frame {
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdp-lightbox__frame img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform var(--dur-mid) var(--ease-expo);
}

.pdp-lightbox__frame.is-zoomed {
  display: block;
  width: 100%;
  height: 86vh;
  overflow: auto;
}

.pdp-lightbox__frame.is-zoomed img {
  display: block;
  margin: 0 auto;
  width: min(180vw, 2000px);
  max-width: none;
  max-height: none;
  transform: none;
  cursor: zoom-out;
}

.pdp-lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background var(--dur-fast);
}

.pdp-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pdp-lightbox__close {
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
}

.pdp-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.pdp-lightbox__nav--prev {
  inset-inline-start: 1rem;
}

.pdp-lightbox__nav--next {
  inset-inline-end: 1rem;
}

.pdp-lightbox__counter {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

/* ---------- Size guide drawer ---------- */

.pdp-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
}

.pdp-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(2px);
}

.pdp-drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 92vw);
  height: 100%;
  overflow-y: auto;
  background: var(--bg-elev);
  border-inline-start: 1px solid var(--border);
  animation: pdp-slide var(--dur-mid) var(--ease-expo);
}

.pdp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-block-end: 1px solid var(--border);
  position: sticky;
  inset-block-start: 0;
  background: var(--bg-elev);
  z-index: 1;
}

.pdp-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pdp-drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  color: var(--text-muted);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.pdp-drawer__close:hover {
  color: var(--text);
  background: rgb(var(--ink-rgb) / 0.05);
}

.pdp-drawer__body {
  padding: 1.35rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.pdp-drawer__intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.pdp-drawer__list {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.pdp-drawer__list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.3rem;
}

.pdp-drawer__list dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.pdp-drawer__note {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 2px;
  background: rgb(var(--ink-rgb) / 0.03);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

body.pdp-modal-open {
  overflow: hidden;
}

@keyframes pdp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pdp-slide {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-sticky,
  .pdp-lightbox,
  .pdp-drawer__panel,
  .pdp-lightbox__frame img {
    transition: none;
    animation: none;
  }
}

/* ---------- Accordion (kept for quick view / legacy blocks) ---------- */

.accordion {
  border-block-start: 1px solid var(--border);
}

.accordion details {
  border-block-end: 1px solid var(--border);
}

.accordion summary {
  padding: 1rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: transform var(--dur-mid) var(--ease-soft);
}

.accordion details[open] summary::after {
  content: "\2212";
}

.accordion p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.65;
  padding: 0 0.2rem 1.1rem;
  margin: 0;
}

/* ---------- Reviews ---------- */

.reviews {
  scroll-margin-block-start: 5rem;
}

.reviews__empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding-block: 1.5rem;
  border-block-start: 1px solid var(--border);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 15rem;
}

.review-card__stars {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.review-card__stars-dim {
  color: rgb(var(--ink-rgb) / 0.16);
}

.review-card__quote {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
  flex: 1;
}

.review-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-card__meta strong {
  font-weight: 600;
  color: var(--text);
}

.review-card__verified {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------- Cart drawer line items ---------- */

.cart-line {
  display: flex;
  gap: 0.9rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--border);
}

.cart-line__media {
  flex: 0 0 64px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.cart-line__name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-line__name:hover {
  color: var(--terra-soft);
}

.cart-line__remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-faint);
  font-size: 1.05rem;
  line-height: 1;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.cart-line__remove:hover {
  color: var(--danger);
  background: rgb(var(--ink-rgb) / 0.06);
}

.cart-line__meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-faint);
}

.cart-line__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.cart-line__qty button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--dur-fast);
}

.cart-line__qty button:hover {
  color: var(--terra-soft);
}

.cart-line__qty input {
  width: 36px;
  height: 28px;
  text-align: center;
  background: transparent;
  border: 0;
  border-inline: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-line__qty input::-webkit-outer-spin-button,
.cart-line__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-line__qty input:focus {
  outline: none;
}

.cart-line__price {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-line__warn {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
}

.cart-summary__row--discount {
  color: var(--success);
}

.cart-summary__row--discount em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  inset-block-start: 1.25rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 0.9rem 1.3rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-float);
  animation: toastIn var(--dur-mid) var(--ease-expo) both;
  pointer-events: none;
}

[dir="rtl"] .toast {
  transform: translateX(50%);
}

.toast--error {
  background: var(--danger);
  color: #fff;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

[dir="rtl"] .toast,
[dir="rtl"] .toast--error {
  animation-name: toastInRtl;
}

@keyframes toastInRtl {
  from { opacity: 0; transform: translate(50%, -12px); }
  to { opacity: 1; transform: translate(50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  [dir="rtl"] .toast {
    animation: none;
  }
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn var(--dur-mid) var(--ease-soft) both;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 900px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  animation: modalUp var(--dur-mid) var(--ease-expo) both;
}

.modal__dialog--lg {
  max-width: 880px;
}

.modal__close {
  position: absolute;
  inset-block-start: 0.7rem;
  inset-inline-end: 0.7rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.06);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.modal__close:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal__body {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.modal__loading {
  color: var(--text-faint);
  text-align: center;
  margin: 2rem 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Quick view ---------- */

.quickview {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
}

@media (min-width: 720px) {
  .quickview {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.quickview__media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.quickview__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quickview__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quickview__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  padding-inline-end: 2.2rem;
}

.quickview__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.quickview__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quickview__stock {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
}

/* ---------- Checkout ---------- */

.checkout-empty__inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.checkout-empty__body {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.checkout__head {
  text-align: center;
  margin-block-end: clamp(2rem, 5vw, 3rem);
}

.checkout__guest-note {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 1024px) {
  .checkout__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  }
}

.checkout__block {
  margin-block-end: 2.25rem;
}

.checkout__block-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-block-end: 1.25rem;
  padding-block-end: 0.7rem;
  border-block-end: 1px solid var(--border);
}

.checkout__notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
}

.checkout__notice.is-error {
  color: var(--danger);
}

.checkout__secure-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-block-start: 0.6rem;
}

/* City autocomplete combobox */

.city-combo {
  position: relative;
}

.city-combo__list {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  max-height: 260px;
  overflow-y: auto;
}

.city-combo__item {
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.city-combo__item:hover,
.city-combo__item.is-active {
  background: var(--terra);
  color: var(--paper);
}

.city-combo__item + .city-combo__item {
  margin-top: 2px;
}

.city-combo__empty {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* Payment options */

.payment-option {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-block-end: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.payment-option:has(input:checked) {
  border-color: var(--ink);
  background: rgb(var(--ink-rgb) / 0.04);
}

.payment-option input {
  margin-block-start: 0.25rem;
  accent-color: var(--terra);
}

.payment-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.payment-option__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.payment-option__desc {
  font-size: 0.82rem;
  /* --text-faint rather than --text-muted: the checked option adds a 4%
     ink wash, which drops #6E6E6E to 4.30:1 on #ECECE9. The faint token
     keeps 5.0:1 there and 5.4:1 on the plain card. */
  color: var(--text-faint);
}

/* Coupon */

.coupon-box__apply {
  display: flex;
  gap: 0.6rem;
}

.coupon-box__apply .input {
  flex: 1;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-block-start: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--success);
  border-radius: 6px;
  background: rgba(46, 125, 79, 0.08);
  font-size: 0.85rem;
  color: var(--success);
}

.coupon-applied .link {
  color: inherit;
  text-decoration: underline;
}

/* Summary */

.checkout__summary {
  position: sticky;
  inset-block-start: 6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-block-end: 1.25rem;
}

.summary-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.summary-item__media {
  flex: 0 0 56px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
}

.summary-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-item__name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.summary-item__name:hover {
  color: var(--terra-soft);
}

.summary-item__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.summary-item__price {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary-totals {
  border-block-start: 1px solid var(--border);
  padding-block-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.8;
}

.summary-row--discount {
  color: var(--success);
}

.summary-row--total {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
  border-block-start: 1px dashed var(--border);
  padding-block-start: 0.7rem;
  margin-block-start: 0.35rem;
}

.summary-meta {
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.summary-meta__free {
  color: var(--success);
  font-weight: 700;
}

/* ---------- Order confirmation ---------- */

.order-confirm__inner {
  max-width: 980px;
}

.order-confirm__head {
  text-align: center;
  margin-block-end: clamp(2rem, 5vw, 3rem);
}

.order-confirm__check {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-block-end: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  animation: popIn var(--dur-mid) var(--ease-expo) both;
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.order-confirm__sub {
  color: var(--text-muted);
  margin-block-end: 1.25rem;
}

.order-confirm__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.order-confirm__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .order-confirm__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}

.order-confirm__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  inset-block-start: 6rem;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-block-end: 1.25rem;
}

.order-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-block-end: 1rem;
  padding-block-end: 0.6rem;
  border-block-end: 1px solid var(--border);
}

.order-card__text {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.order-card__hint {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 0.6rem 0 0;
}

.order-items {
  display: flex;
  flex-direction: column;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.8rem;
  border-block-end: 1px solid var(--border);
}

.order-item:last-child {
  border-block-end: 0;
}

.order-item__img {
  flex: 0 0 56px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink);
  border: 1px solid var(--border);
}

.order-item__img--empty {
  display: block;
}

.order-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-item__name {
  font-size: 0.88rem;
  font-weight: 600;
}

.order-item__meta {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.order-item__price {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.order-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__dialog,
  .order-confirm__check {
    animation: none !important;
  }
}

/* ---------- Touch targets (phones / tablets) ---------- */

/* The cart drawer is thumb territory: the stepper and the remove button get
   a 40 px box instead of the 26-28 px desktop size. */
@media (max-width: 899px) {
  .cart-line__qty button {
    width: 40px;
    height: 40px;
  }
  .cart-line__qty input {
    width: 44px;
    height: 40px;
  }
  .cart-line__remove {
    width: 40px;
    height: 40px;
  }
}

/* Radios and checkboxes are wrapped in a full-width label, but a 13 px dot is
   still hard to see and hit on a phone. */
.payment-option input,
.drop-consent input {
  width: 18px;
  height: 18px;
  flex: none;
}

/* The product name in a cart line: the hit area grows, the row does not. */
@media (max-width: 899px) {
  .cart-line__name {
    display: inline-block;
    padding-block: 0.7rem;
    margin-block: -0.7rem;
  }

  /* Quick-view / lightbox close button. */
  .modal__close {
    width: 40px;
    height: 40px;
  }
}
