/* =====================================================================
   product.css — product page (templates/product.jinja, components/product/*). Loaded on product_details only.
   RTL-first logical properties; physical left/right only for cursor geometry (zoom) and the size-guide setting.
   ===================================================================== */
.pdp { --pdp-ratio: var(--pc-ratio, 1.25); --pdp-media-bg: #f6f6f8; --pdp-block-bg: #fff; --pdp-block-border: var(--c-border); padding-block: 10px 8px; }
.pdp--transparent { --pdp-block-bg: transparent; --pdp-block-border: transparent; }

/* breadcrumb */
.pdp-bc ol { display: flex; align-items: center; gap: 6px; padding-block: 6px 16px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; color: var(--c-muted); font-size: .8125rem; }
.pdp-bc li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.pdp-bc a:hover { color: var(--c-primary); }
.pdp-bc [aria-current] { color: var(--c-text); overflow: hidden; text-overflow: ellipsis; }

/* ---------- page layouts: classic | center (gallery in the middle) | stacked (gallery on top) ---------- */
.pdp__grid { display: grid; gap: 22px; align-items: start; }
.pdp__info, .pdp__summary, .pdp__buy { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pdp__info { gap: 18px; }
@media (min-width: 992px) {
  .pdp--classic .pdp__grid, .pdp--center .pdp__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; }
  .pdp--stacked .pdp__info { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
  .pdp--classic .pdp__gallery, .pdp--center .pdp__gallery { position: sticky; inset-block-start: calc(var(--hd-h, 72px) + 16px); }
  .pdp--g-stack .pdp__gallery, .pdp--g-grid-2 .pdp__gallery, .pdp--g-hero-grid .pdp__gallery { position: static; }
}
@media (min-width: 1200px) {
  .pdp--center .pdp__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.3fr) minmax(0, .95fr); gap: 32px; }
  .pdp--center .pdp__info { display: contents; }
  .pdp--center .pdp__summary { order: -1; }
}
.pdp--center-info .pdp__info { text-align: center; }
.pdp--center-info :is(.pdp-brand, .pdp-badges, .pdp-price, .pdp-proof, .pdp-meta, .pdp-share, .pdp-pay__title, .pdp-cd__label, .pdp-cd .cd, .pdp-urg__text, .pdp-alert) { justify-content: center; }
.pdp--center-info :is(.pdp-rating, .pdp-textlink) { justify-self: center; }

/* ---------- gallery ---------- */
.pdp__gallery { position: relative; min-width: 0; }
.pdp-gal { position: relative; display: grid; gap: 12px; }
.pdp-gal__main { --per-xs: 1; --cr-gap: 0px; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--pdp-media-bg); }
.pdp-gal__slide { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / var(--pdp-ratio); max-height: 78vh; overflow: hidden; background: var(--pdp-media-bg); grid-template: minmax(0, 1fr) / minmax(0, 1fr); } /* width: when 78vh caps the height, the ratio would narrow the slide to one side; minmax(0): an auto row grew to the photo's own height, so contain cropped instead of fitting */
.pdp-gal__slide[data-kind="image"] { cursor: zoom-in; }
.pdp-gal__img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gal__video, .pdp-gal__frame { width: 100%; height: 100%; object-fit: cover; border: 0; background: #000; }
.pdp-gal__slide--empty .ic { width: 64px; height: 64px; color: var(--c-border); }
.pdp-gal__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 18%); color: #fff; }
.pdp-gal__play .ic { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--c-text); fill: currentColor; box-shadow: var(--shadow); }
.pdp-gal__open { position: absolute; z-index: 3; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c-text); box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.pdp-gal__open:focus-visible { opacity: 1; }
.pdp-gal__badge { position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: var(--pill); background: var(--c-danger); color: #fff; font-size: .8125rem; font-weight: 800; pointer-events: none; }
.pdp-gal__main .cr__dots { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline: 0; margin: 0; pointer-events: none; }
.pdp-gal__main .cr__dot { pointer-events: auto; }
.pdp-gal__main .cr__arrow { --cr-arrow-top: 50%; opacity: 0; }
.pdp-gal__main .cr__arrow--prev { inset-inline-start: 12px; }
.pdp-gal__main .cr__arrow--next { inset-inline-end: 12px; }
.pdp-gal__main:hover .cr__arrow:not([disabled]), .pdp-gal__main:focus-within .cr__arrow:not([disabled]) { opacity: 1; }
@media (hover: none) { .pdp-gal__main .cr__arrow { display: none; } } /* touch swipes: no invisible tap targets on the photo */
.pdp-gal__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; }
.pdp-gal__thumbs::-webkit-scrollbar { display: none; }
.pdp-gal__thumb { position: relative; flex: none; width: 72px; aspect-ratio: 1 / var(--pdp-ratio); overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--pdp-media-bg); opacity: .65; transition: opacity .2s, border-color .2s; }
.pdp-gal__thumb:hover, .pdp-gal__thumb.is-active { opacity: 1; }
.pdp-gal__thumb.is-active { border-color: var(--c-primary); }
.pdp-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gal__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 30%); color: #fff; }
.pdp-gal__thumb-play .ic { width: 22px; height: 22px; fill: currentColor; }
.pdp-gal--carousel-only .pdp-gal__thumbs, .pdp-gal.has-thumbs .pdp-gal__main .cr__dots { display: none; }
@media (min-width: 992px) {
  .pdp-gal--carousel-side-thumbs.has-thumbs { grid-template-columns: 78px minmax(0, 1fr); align-items: start; }
  /* the column ends above the floating buttons' corner, also when the sticky buy bar lifts them (ISSUE-007) */
  .pdp-gal--carousel-side-thumbs .pdp-gal__thumbs { order: -1; flex-direction: column; max-height: min(78vh, calc(100vh - var(--hd-h, 72px) - 176px)); overflow-x: hidden; overflow-y: auto; }
  .pdp-gal--carousel-side-thumbs .pdp-gal__thumb { width: 100%; }
  .pdp-gal:is(.pdp-gal--stack, .pdp-gal--grid-2, .pdp-gal--hero-grid) .pdp-gal__main { overflow: visible; border-radius: 0; background: none; }
  .pdp-gal:is(.pdp-gal--stack, .pdp-gal--grid-2, .pdp-gal--hero-grid) .pdp-gal__track { grid-auto-flow: row; grid-auto-columns: auto; gap: 12px; overflow: visible; scroll-snap-type: none; }
  .pdp-gal:is(.pdp-gal--grid-2, .pdp-gal--hero-grid) .pdp-gal__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-gal--hero-grid .pdp-gal__slide:first-child { grid-column: 1 / -1; }
  .pdp-gal:is(.pdp-gal--stack, .pdp-gal--grid-2, .pdp-gal--hero-grid) .pdp-gal__slide { max-height: none; border-radius: var(--radius); }
  .pdp-gal:is(.pdp-gal--stack, .pdp-gal--grid-2, .pdp-gal--hero-grid) :is(.pdp-gal__thumbs, .cr__arrow, .cr__dots) { display: none; }
  /* stacked page layout: the gallery spans the page, so grids get more columns and slides a lower cap */
  .pdp--stacked .pdp-gal__slide { max-height: 72vh; }
  .pdp--stacked .pdp-gal:is(.pdp-gal--grid-2, .pdp-gal--hero-grid) .pdp-gal__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp--stacked .pdp-gal--hero-grid .pdp-gal__slide:first-child { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 767px) {
  .pdp__gallery { margin-inline: calc(var(--gutter) * -1); }
  .pdp-gal__main { border-radius: 0; }
  /* dots instead of the thumbnail row keep the name and price closer; the photo keeps its full ratio */
  .pdp-gal__thumbs { display: none; }
  .pdp-gal.has-thumbs .pdp-gal__main .cr__dots { display: flex; }
  .pdp-gal__main .cr__arrow { display: none; }
}

/* zoom: inside lens / external pane (desktop) — positioned from cursor coordinates, hence physical left */
.pdp-lens { position: absolute; z-index: 3; inset-block-start: 0; left: 0; pointer-events: none; will-change: transform; }
.pdp-lens--inside { width: 180px; height: 180px; border: 3px solid #fff; border-radius: 50%; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 8px 28px rgb(0 0 0 / 25%); }
.pdp-lens--box { border: 1px solid rgb(255 255 255 / 95%); background: rgb(255 255 255 / 30%); box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); }
.pdp-zoom { position: absolute; z-index: 30; inset-inline-start: calc(100% + 20px); width: min(560px, 100%); border: 1px solid var(--c-border); border-radius: var(--radius); background-color: #fff; background-repeat: no-repeat; box-shadow: var(--shadow-lg); pointer-events: none; }
.pdp-gal.is-zooming .pdp-gal__slide[data-kind="image"] { cursor: crosshair; }
/* the sticky gallery is its own stacking context: while zooming, lift it over the info column (still under the header) */
.pdp__gallery:has(.is-zooming) { z-index: 10; }

/* lightbox */
.pdp-lb { width: 100vw; height: 100dvh; margin: 0; background: rgb(12 12 16 / 96%); color: #fff; }
.pdp-lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pdp-lb::backdrop { background: rgb(0 0 0 / 70%); }
.pdp-lb__cr { --per-xs: 1; --cr-gap: 0px; min-height: 0; }
.pdp-lb__track { height: 100%; }
.pdp-lb__slide { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: calc(100dvh - 56px); padding: 20px; } /* definite tracks: the image's max-height: 100% fits the screen */
.pdp-lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-lb .cr__arrow { --cr-arrow-top: 50%; }
.pdp-lb .cr__arrow--prev { inset-inline-start: 16px; }
.pdp-lb .cr__arrow--next { inset-inline-end: 16px; }
.pdp-lb__close { position: absolute; z-index: 5; inset-block-start: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(0 0 0 / 45%); color: #fff; }
.pdp-lb__close:hover { background: rgb(0 0 0 / 70%); }
.pdp-lb__count { padding: 16px; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- summary ---------- */
.pdp-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--c-muted); font-size: .875rem; }
.pdp-brand__img { height: 34px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.pdp-brand__name { color: var(--c-text); font-weight: 700; }
.pdp-brand__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.pdp-brand a:hover { color: var(--c-primary); }
.pdp__title { color: var(--pdp-title, var(--c-text)); font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.95rem); line-height: 1.35; overflow-wrap: anywhere; } /* a long unbroken word panned the page (D-08) */
.pdp-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-badge { padding: 3px 12px; border-radius: var(--pill); background: var(--c-text); color: #fff; font-size: .75rem; font-weight: 700; }

/* promotional badge */
.pdp-promo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pp-gap, 16px); margin-block: var(--pp-mt, 0) var(--pp-mb, 10px); }
.pdp-promo--center { justify-content: center; }
.pdp-promo--end { justify-content: flex-end; }
.pdp-promo--vertical { flex-direction: column; align-items: flex-start; }
.pdp-promo--vertical.pdp-promo--center { align-items: center; }
.pdp-promo--vertical.pdp-promo--end { align-items: flex-end; }
.pdp-promo--text-first .pdp-promo__text { order: -1; }
.pdp-promo__badge { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--ppb-fg, var(--c-primary)); background: var(--ppb-bg, transparent); color: var(--ppb-fg, var(--c-primary)); font-weight: 700; line-height: 1.45; }
.pdp-promo__badge--filled { border-color: transparent; background: var(--ppb-bg, var(--c-primary)); color: var(--ppb-fg, var(--c-on-primary)); }
.pdp-promo__badge--none { border-color: transparent; }
.pdp-promo__badge--small { padding: 2px 10px; font-size: .72rem; }
.pdp-promo__badge--normal { font-size: .8125rem; }
.pdp-promo__badge--large { padding: 6px 16px; font-size: .95rem; }
.pdp-promo__badge--sharp { border-radius: 0; }
.pdp-promo__badge--rounded { border-radius: 6px; }
.pdp-promo__badge--pill { border-radius: var(--pill); }
.pdp-promo__text { display: inline-flex; align-items: center; gap: 6px; color: var(--ppt-fg, var(--c-text)); font-size: .875rem; font-weight: 600; }
.pdp-promo__text.has-bg { padding: 4px 12px; border-radius: var(--pill); background: var(--ppt-bg); }
.pdp-promo__icon { width: 18px; height: 18px; }
.pdp-promo__icon--zap { fill: currentColor; animation: pdp-flash 1.6s ease-in-out infinite; }
.pdp-promo__icon--flame { transform-origin: 50% 90%; animation: pdp-flicker 1.2s ease-in-out infinite; }
.pdp-promo__icon--gift { animation: pdp-wiggle 2.4s ease-in-out infinite; }
.pdp-promo__icon.is-still { animation: none; }
@keyframes pdp-flash { 50% { opacity: .35; transform: scale(.85); } }
@keyframes pdp-flicker { 25% { transform: scale(1.1) rotate(-5deg); } 75% { transform: scale(.94) rotate(4deg); } }
@keyframes pdp-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-5deg); } }

/* rating */
.pdp-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-self: start; color: var(--c-muted); font-size: .875rem; }
.pdp-rating b { color: var(--c-text); }
.pdp-rating:hover span { color: var(--c-primary); text-decoration: underline; }

/* price */
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pdp-price__now { color: var(--pdp-price, var(--c-text)); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.pdp-price__was { font-size: 1rem; }
.pdp-price__off { padding: 3px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--c-danger) 12%, #fff); color: color-mix(in srgb, var(--c-danger) 80%, #000); font-size: .8125rem; font-weight: 700; }
.pdp-price__unit { flex-basis: 100%; color: var(--c-muted); font-size: .8125rem; }
.pdp--center-info .pdp-price__unit { text-align: center; }

/* custom installment bar */
.pdp-bnpl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--c-text) 18%, transparent); border-radius: var(--radius-sm); background: var(--pdp-block-bg); font-size: .875rem; }
.pdp-bnpl__icon { color: var(--c-primary); }
.pdp-bnpl__text { flex: 1; min-width: 180px; }
.pdp-bnpl__text b { font-variant-numeric: tabular-nums; }
.pdp-bnpl__brands { display: flex; gap: 6px; }
.pdp-bnpl__brand { padding: 2px 10px; border-radius: 6px; color: #111; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.pdp-bnpl__brand--tabby { background: #3bffc1; }
.pdp-bnpl__brand--tamara { background: linear-gradient(90deg, #ffd8a8, #f8b3d2, #c6b7ff); }

/* viewers + sold */
.pdp [data-pending] { visibility: hidden; } /* room kept until product.js fills it (summary.jinja) */
.pdp-cd[data-pending] .cd[hidden] { display: flex !important; } /* the boxes' room too (still invisible) */
.pdp-proof { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-proof__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: var(--c-surface); font-size: .8125rem; font-weight: 600; }
.pdp-proof__item .ic { width: 16px; height: 16px; color: var(--c-danger); }
.pdp-proof__item--live .ic { color: var(--c-success); animation: pdp-pulse 1.8s ease-in-out infinite; }
@keyframes pdp-pulse { 50% { opacity: .35; } }

/* countdown */
.pdp-cd { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c-primary) 7%, #fff); }
.pdp-cd__label { display: flex; align-items: center; gap: 6px; color: var(--c-primary-dark); font-size: .875rem; font-weight: 700; }
.pdp-cd__label .ic { width: 17px; height: 17px; }
.pdp-cd .cd__unit { --cd-bg: var(--c-primary); --cd-fg: var(--c-on-primary); min-width: 52px; box-shadow: none; }

/* description + read more */
.pdp-desc { display: grid; gap: 6px; }
.pdp-desc__body { position: relative; max-height: 7.6em; overflow: hidden; color: color-mix(in srgb, var(--c-text) 82%, transparent); font-size: .9375rem; }
.pdp-desc:not(.is-open) .pdp-desc__body::after { content: ""; position: absolute; inset: auto 0 0; height: 2.2em; background: linear-gradient(transparent, var(--page-bg, var(--c-bg))); }
.pdp-desc.is-open .pdp-desc__body { max-height: none; }
.pdp-desc:not(:has(.pdp-desc__more:not([hidden]))) .pdp-desc__body::after { display: none; }
.pdp-desc__more { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--c-primary); font-size: .875rem; font-weight: 700; }
.pdp-desc__more .ic { width: 16px; height: 16px; transition: transform .2s; }
.pdp-desc.is-open .pdp-desc__more .ic { transform: rotate(180deg); }
.pdp--center-info .pdp-desc__more { justify-self: center; }

.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--c-muted); font-size: .8125rem; }
.pdp-meta li { display: inline-flex; align-items: center; gap: 5px; }
.pdp-meta .ic { width: 15px; height: 15px; }
.pdp-meta bdi { color: var(--c-text); font-weight: 600; }

/* ---------- options (platform V2 headless markup; local fallback renders the same) ---------- */
.pdp-opts { display: grid; gap: 16px; }
.product-options { display: grid; gap: 16px; }
.product-options__group { display: grid; gap: 8px; }
.pdp-opt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.product-options__label { font-size: .9rem; font-weight: 700; }
.pdp-opt-val { margin-inline-start: 6px; color: var(--c-muted); font-weight: 500; }
.pdp-opt-val:not(:empty)::before { content: "· "; }
.product-options__list { display: flex; flex-wrap: wrap; gap: 8px; }
.product-options__item { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 42px; padding: 6px 14px; border: 1px solid var(--opt-border, var(--c-border)); border-radius: var(--opt-radius, 10px); background: var(--opt-bg, #fff); color: var(--opt-fg, var(--c-text)); font-size: .875rem; font-weight: 600; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.product-options__item:hover { border-color: var(--opt-hover-border, var(--c-text)); background: var(--opt-hover-bg, #fff); color: var(--opt-hover-fg, var(--c-text)); }
.product-options__item.active { border-color: var(--opt-active-border, var(--c-text)); background: var(--opt-active-bg, var(--c-text)); color: var(--opt-active-fg, #fff); }
.product-options__item--color, .product-options__item--icon { min-width: 0; min-height: 0; padding: 3px; border-radius: 50%; background: #fff; }
.product-options__item--icon { border-radius: var(--radius-xs); }
.product-options__item--color.active, .product-options__item--icon.active { border-color: transparent; background: #fff; box-shadow: 0 0 0 2px var(--c-text); }
.product-options__swatch { display: block; width: 35px; height: 35px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 12%); }
.product-options__thumb { display: block; width: 2.75rem; height: 2.75rem; border-radius: 6px; object-fit: cover; }
.product-options__item-text--sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.product-options__select { max-width: 360px; }
.product-options__item:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (forced-colors: active) { .product-options__item.active { outline: 3px solid Highlight; outline-offset: 2px; } } /* colours and shadows are dropped there (C-19) */
/* require selection: the platform's preselection is not a choice until the shopper picks */
.pdp--require .product-options__group:not([data-chosen]) .product-options__item.active { border-color: var(--opt-border, var(--c-border)); background: var(--opt-bg, #fff); color: var(--opt-fg, var(--c-text)); box-shadow: none; }
.product-options__group.is-shake { animation: pdp-shake .45s; }
@keyframes pdp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pdp--center-info :is(.pdp-opt-head, .product-options__list) { justify-content: center; }

/* custom fields (platform V2 markup) */
.pdp-fields { display: grid; gap: 14px; }
.custom-field { display: grid; gap: 6px; }
.custom-field__label { font-size: .9rem; font-weight: 700; }
.custom-field__price { color: var(--c-muted); font-weight: 500; }
.custom-field__required { color: var(--c-danger); }
.custom-field__hint { color: var(--c-muted); font-size: .8125rem; }
.custom-field__options { display: grid; gap: 8px; }
.custom-field__option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.custom-field__checkbox { width: 18px; height: 18px; accent-color: var(--c-primary); }
.custom-field.is-wz-managed { display: none; }
/* the wizard moves or hides every field: the emptied platform wrappers kept their grid gaps, a ~60 px band (E-06) */
.custom-field-wrapper:not(:has(.custom-field:not(.is-wz-managed))), .pdp-fields:not(:has(.custom-field:not(.is-wz-managed))) { display: none; }

/* size guide button + dialog */
.pdp-sg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); background: var(--sg-bg, transparent); color: var(--sg-fg, var(--c-text)); font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pdp-sg__icon { width: var(--sg-icon-size, 20px); height: var(--sg-icon-size, 20px); color: var(--sg-icon, currentColor); }
/* link_position is a physical setting: auto margins push the button to that physical side of its row */
.pdp-sg-slot { display: flex; }
.pdp-sg-slot[data-move] { position: absolute; visibility: hidden; } /* product.js moves the button beside its option */
.pdp-sg--left { margin-right: auto; }
.pdp-sg--right { margin-left: auto; }
.pdp-sgd { --modal-w: 760px; }
.pdp-sgd__body { display: grid; gap: 16px; padding: 28px 24px 24px; }
.pdp-sgd__body .modal__title { display: flex; align-items: center; gap: 8px; }
.pdp-sgd__img { width: 100%; border-radius: var(--radius-sm); }
.pdp-sgd__table { overflow-x: auto; }
.pdp-sgd__table table { min-width: 420px; }
.pdp-sgd__table th { background: var(--c-surface); }
.pdp-sgd__link { justify-self: start; }

/* ---------- quantity + actions ---------- */
.pdp-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* minmax: platform blocks (bundle table min-width 600px) must not widen the page */
.pdp-actions { display: grid; gap: 10px; }
.pdp-actions__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pdp-actions__row--oos { grid-template-columns: minmax(0, 1fr) auto; }
.pdp-qty .qty { height: 52px; border-radius: var(--pill); }
.pdp-qty .qty button { width: 42px; height: 50px; }
.pdp-qty .qty input { width: 46px; height: 50px; font-size: 1rem; font-weight: 700; }
.pdp-qty__select { min-width: 84px; min-height: 52px; border-radius: var(--pill); font-weight: 700; }
.pdp-add, .pdp-buynow, .pdp-notify { width: 100%; white-space: nowrap; }
@media (max-width: 479px) {
  .pdp-add { padding-inline: 12px; }
  .pdp-qty .qty button { width: 34px; }
  .pdp-qty .qty input { width: 34px; }
}
@media (max-width: 359px) { .pdp-add .ic { display: none; } } /* the label needs the room at 320 px ("أضف إلى السلة") */
.pdp-buynow { grid-column: 1 / -1; }
.pdp-wish { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; transition: color .2s, border-color .2s, background .2s; }
.pdp-wish:hover { border-color: var(--c-text); }
.pdp-wish[aria-pressed="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); }
.pdp-wish[aria-pressed="true"] .ic { fill: currentColor; }
.pdp-actions__hint { display: flex; align-items: center; gap: 6px; color: var(--c-warning); font-size: .8125rem; font-weight: 600; }
.pdp-actions__hint .ic { width: 16px; height: 16px; }
.pdp-widgets { display: grid; gap: 10px; }
.pdp-widgets:empty, .pdp-widgets > :empty { display: none; }
.pdp-grouped, .pdp-bundle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

/* ---------- blocks ---------- */
.pdp-block { padding: 14px 16px; border: 1px solid var(--pdp-block-border); border-radius: var(--radius); background: var(--pdp-block-bg); }
.pdp--transparent .pdp-block { padding-inline: 0; }

/* cashback */
.pdp-cb { --r: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--cb-border); border-radius: var(--r); background: var(--cb-bg); color: var(--cb-title); overflow: hidden; }
.pdp-cb--sharp { --r: 0; }
.pdp-cb__value { display: grid; place-items: center; min-width: 64px; padding: 8px 12px; align-self: stretch; background: var(--cb-accent); color: var(--cb-value); font-size: 1.1rem; font-weight: 800; }
.pdp-cb__copy { display: grid; flex: 1; gap: 2px; padding-block: 8px; }
.pdp-cb__title { font-size: .9rem; }
.pdp-cb__sub { color: var(--cb-sub); font-size: .78rem; }
.pdp-cb__icon { margin-inline-end: 14px; color: var(--cb-accent); }
.pdp-cb--chip { justify-self: start; border-radius: calc(var(--r) * 3); }
.pdp-cb--chip.pdp-cb--sharp { border-radius: 0; }
.pdp-cb--chip .pdp-cb__value { min-width: 0; padding: 4px 12px; font-size: .875rem; }
.pdp-cb--chip .pdp-cb__copy { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.pdp-cb--chip .pdp-cb__icon { display: none; }
.pdp-cb--chip .pdp-cb__copy { padding-inline-end: 14px; }

/* urgency */
.pdp-urg { display: grid; gap: 8px; color: var(--urg-fg, var(--c-danger)); }
.pdp-urg__text { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; }
.pdp-urg__text .ic { width: 18px; height: 18px; animation: pdp-flicker 1.2s ease-in-out infinite; }
.pdp-urg__bar { position: relative; height: 8px; overflow: hidden; border-radius: var(--pill); background: color-mix(in srgb, currentColor 12%, transparent); }
.pdp-urg__bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 72%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--urg-a, #fb7185), var(--urg-b, #f59e0b), var(--urg-c, #ef4444)); }
/* moved with transform (compositor): animating background-position repainted every frame, ~45% of a slow phone's CPU (D-04) */
.pdp-urg__bar span::after { content: ""; position: absolute; inset-block: 0; left: 0; width: calc(100% + 45px); background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 28%) 0 8px, transparent 8px 16px); animation: pdp-stripes 1.4s linear infinite; }
[dir="rtl"] .pdp-urg__bar span { background: linear-gradient(-90deg, var(--urg-a, #fb7185), var(--urg-b, #f59e0b), var(--urg-c, #ef4444)); }
@keyframes pdp-stripes { to { transform: translateX(-45px); } }

.pdp-alert { display: flex; align-items: flex-start; gap: 8px; color: var(--alert, var(--c-text)); font-size: .875rem; font-weight: 600; }
.pdp-alert .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.pdp-textlink { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--c-primary); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pdp-textlink .ic { width: 16px; height: 16px; }
.pdp-banner { width: 100%; border-radius: var(--radius); }
.pdp-banner-link { display: block; }

.pdp-ship { display: grid; gap: 8px; }
.pdp-ship__item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: #fff4ed; color: #c2410c; font-size: .8125rem; }
.pdp-ship__item--pickup { background: #f5f0ff; color: #6d28d9; }
.pdp-ship__item span { display: grid; gap: 2px; }
.pdp-ship__item small { color: var(--c-muted); }

.pdp-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pdp-feat__item { display: flex; align-items: center; gap: 10px; }
@media (max-width: 479px) { .pdp-feat__item:last-child:nth-child(odd) { grid-column: 1 / -1; } } /* two columns on phones: a last item alone gets the whole row for a longer title */
.pdp-feat__img { flex: none; width: 42px; height: 42px; object-fit: contain; }
.pdp-feat__ic { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.pdp-feat__copy { display: grid; gap: 1px; min-width: 0; text-align: start; }
.pdp-feat__copy b { font-size: .875rem; }
.pdp-feat__copy small { color: var(--c-muted); font-size: .75rem; }

.pdp-pay { display: grid; gap: 8px; }
.pdp-pay__title { display: flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: .8125rem; font-weight: 600; }
.pdp-pay__title .ic { width: 16px; height: 16px; color: var(--c-success); }
.pdp-pay__row, .pdp-pay__mq .mq__track { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pay__mq .mq__track { flex-wrap: nowrap; }
.pdp-pay__mq { -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pdp-pay img { height: 32px; width: auto; padding: 4px 8px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; }
.pdp-pay__mq img { margin-inline-end: 8px; }

.pdp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdp-share__label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; color: var(--c-muted); font-size: .8125rem; font-weight: 600; }
.pdp-share__label .ic { width: 16px; height: 16px; }
.pdp-share__btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--c-border); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.pdp-share__btn:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-on-primary); }
.pdp-share__btn .ic { width: 17px; height: 17px; }

.pdp-offer { display: grid; gap: 10px; }
.pdp-offer__title { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.pdp-offer__title .ic { color: var(--c-primary); }
.pdp-offer__desc { color: var(--c-muted); font-size: .8125rem; }
.pdp-offer__list { display: grid; gap: 8px; }

/* frequently bought together */
.pdp-fbt { display: grid; gap: 12px; background: var(--fbt-bg, var(--pdp-block-bg)); color: var(--fbt-fg, inherit); }
.pdp-fbt__head { display: grid; gap: 2px; }
.pdp-fbt__title { color: var(--fbt-title, var(--c-text)); font-size: 1.05rem; }
.pdp-fbt__sub { color: var(--fbt-sub, var(--c-muted)); font-size: .8125rem; }
.pdp-fbt__list { display: grid; gap: 8px; }
.pdp-fbt__item { display: grid; grid-template-columns: auto 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); text-align: start; }
.pdp-fbt__item.is-off { opacity: .7; }
.pdp-fbt__check { width: 20px; height: 20px; accent-color: var(--c-primary); }
.pdp-fbt__media { display: block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--c-surface); }
.pdp-fbt__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-fbt__info { display: grid; gap: 2px; min-width: 0; }
.pdp-fbt__name { overflow: hidden; font-size: .8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pdp-fbt__tag { color: var(--c-primary); font-size: .72rem; font-weight: 700; } /* its own line: inside the one-line name it was cut off (A-06) */
.pdp-fbt__price { font-size: .8125rem; font-weight: 700; }
.pdp-fbt__price del { font-weight: 400; font-size: .75rem; }
.pdp-fbt__opts { justify-self: start; color: var(--c-primary); font-size: .75rem; font-weight: 700; text-decoration: underline; }
.pdp-fbt__item.is-loading .pdp-fbt__media, .pdp-fbt__item.is-loading .pdp-fbt__price:empty { background: linear-gradient(90deg, var(--c-surface), #fff, var(--c-surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.pdp-fbt__item.is-loading .pdp-fbt__price:empty { display: block; width: 70px; height: 12px; border-radius: 4px; }
.pdp-fbt__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pdp-fbt__total b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* custom fields wizard */
.pdp-wiz { display: grid; gap: 8px; }
.pdp-wiz__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-wiz__chips li { padding: 4px 10px; border-radius: var(--pill); background: var(--c-surface); font-size: .78rem; }
.pdp-wiz__chips span { color: var(--c-muted); }
.pdp-wizd { --modal-w: 720px; }
.pdp-wizd, .pdp-sgd { text-align: start; }
.pdp-wizd[open] { display: flex; flex-direction: column; } /* a column, not grid rows: an auto-height grid's minmax(0, 1fr) row can collapse in some Safari versions (iPhone report: step 2 empty) */
.pdp-wizd__head, .pdp-wizd__foot { flex: none; }
.pdp-wizd__head { display: grid; gap: 6px; padding: 22px 24px 14px; border-bottom: 1px solid var(--c-border); }
.pdp-wizd__count { color: var(--c-primary); font-size: .78rem; font-weight: 700; }
.pdp-wizd__title { font-size: 1.2rem; padding-inline-end: 44px; }
.pdp-wizd__desc { color: var(--c-muted); font-size: .875rem; }
.pdp-wizd__bar { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: var(--c-border); }
.pdp-wizd__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--c-primary); transition: width .3s var(--ease); }
.pdp-wizd__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 24px; }
.pdp-wizd__step { display: grid; gap: 18px; }
.pdp-wizd__field { display: grid; gap: 10px; }
.pdp-wizd__fname { font-weight: 700; }
.pdp-wizd__fname small { color: var(--c-muted); font-weight: 500; }
.pdp-wizd__req { color: var(--c-danger); }
.pdp-wizd__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pdp-wizd__card { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px; border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; text-align: start; transition: border-color .15s, box-shadow .15s; }
.pdp-wizd__card:hover { border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border)); }
.pdp-wizd__card.is-on { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.pdp-wizd__card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--c-surface); }
.pdp-wizd__cname { font-size: .875rem; font-weight: 700; }
.pdp-wizd__card small { color: var(--c-muted); font-size: .75rem; }
.pdp-wizd__card.is-skip { border-style: dashed; }
.pdp-wizd__badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: var(--pill); background: var(--c-primary); color: var(--c-on-primary); font-size: .6875rem; font-style: normal; font-weight: 700; }
.pdp-wizd__sum { display: grid; gap: 8px; }
.pdp-wizd__sum li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--c-surface); font-size: .875rem; }
.pdp-wizd__sum span { color: var(--c-muted); }
.pdp-wizd__sum b { flex: 1; }
.pdp-wizd__edit { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.pdp-wizd__edit .ic { width: 16px; height: 16px; }
.pdp-wizd__foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); }
.pdp-wizd__foot [data-wz-next] { margin-inline-start: auto; }

/* ---------- tabs / accordion / stacked ---------- */
.pdp-tabs { margin-block-start: clamp(28px, 4vw, 48px); }
.pdp-tabs__bar { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-border); background: var(--page-bg, var(--c-bg)); }
.pdp-tabs__bar::-webkit-scrollbar { display: none; }
.pdp-tabs__tab { position: relative; flex: none; padding: 14px 18px; color: var(--c-muted); font-weight: 700; white-space: nowrap; }
.pdp-tabs__tab small { font-weight: 600; }
.pdp-tabs__tab::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-primary); transform: scaleX(0); transition: transform .25s var(--ease); }
.pdp-tabs__tab.is-active { color: var(--c-text); }
.pdp-tabs__tab.is-active::after { transform: none; }
.pdp-tab { scroll-margin-top: calc(var(--hd-h, 72px) + 70px); }
.pdp-tab__head { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; font-size: 1rem; font-weight: 800; text-align: start; }
.pdp-tab__chev { width: 20px; height: 20px; transition: transform .25s; }
.pdp-tab.is-open .pdp-tab__chev { transform: rotate(180deg); }
.pdp-tab__panel { padding-block: 22px 8px; }
.pdp-tabs--tabs .pdp-tab:not(.is-active) { display: none; }
.pdp-tabs--sticky .pdp-tabs__bar { position: sticky; z-index: 6; inset-block-start: var(--hd-h, 0px); }
@media (max-height: 500px) { .pdp-tabs--sticky .pdp-tabs__bar { position: static; } } /* phone landscape: header, tabs and buy bar took half the screen (A-08) */
.pdp-tabs--accordion .pdp-tabs__bar, .pdp-tabs--stacked .pdp-tabs__bar { display: none; }
.pdp-tabs--accordion .pdp-tab, .pdp-tabs--stacked .pdp-tab { border-bottom: 1px solid var(--c-border); }
.pdp-tabs--accordion .pdp-tab__head, .pdp-tabs--stacked .pdp-tab__head { display: flex; }
.pdp-tabs--accordion .pdp-tab:not(.is-open) .pdp-tab__panel { display: none; }
.pdp-tabs--accordion .pdp-tab__panel { padding-block: 4px 20px; }
.pdp-tabs--stacked .pdp-tab__head { pointer-events: none; font-size: 1.15rem; }
.pdp-tabs--stacked .pdp-tab__chev { display: none; }
.pdp-tabs--stacked .pdp-tab__panel { padding-block: 0 24px; }
@media (min-width: 768px) { .pdp-tabs--tabs_mobile_accordion .pdp-tab:not(.is-active) { display: none; } }
@media (max-width: 767px) {
  .pdp-tabs--tabs_mobile_accordion .pdp-tabs__bar { display: none; }
  .pdp-tabs--tabs_mobile_accordion .pdp-tab { border-bottom: 1px solid var(--c-border); }
  .pdp-tabs--tabs_mobile_accordion .pdp-tab__head { display: flex; }
  .pdp-tabs--tabs_mobile_accordion .pdp-tab:not(.is-open) .pdp-tab__panel { display: none; }
  .pdp-tabs--tabs_mobile_accordion .pdp-tab__panel { padding-block: 4px 20px; }
}
.pdp-tab__rte { max-width: 900px; }

.pdp-vars { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pdp-vars__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.pdp-vars__item.is-oos { opacity: .6; }
.pdp-vars__media { width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: var(--c-surface); }
.pdp-vars__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-vars__info { display: grid; gap: 2px; min-width: 0; }
.pdp-vars__name { font-size: .875rem; font-weight: 700; }
.pdp-vars__price { font-size: .8125rem; }
.pdp-vars__oos { color: var(--c-muted); font-size: .75rem; font-weight: 600; }

.pdp-props { display: grid; max-width: 720px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.pdp-props > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; }
.pdp-props > div + div { border-top: 1px solid var(--c-border); }
.pdp-props dt { padding: 12px 14px; background: var(--c-surface); color: var(--c-muted); font-size: .875rem; }
.pdp-props dd { margin: 0; padding: 12px 14px; font-size: .875rem; font-weight: 600; }
.pdp-props:empty { display: none; }
.pdp-metafields { display: grid; gap: 8px; max-width: 720px; margin-top: 14px; font-size: .875rem; }
.pdp-metafields dt { color: var(--c-muted); }
.pdp-metafields dd { margin: 0; }

.pdp-rev { display: grid; gap: 22px; }
@media (min-width: 992px) { .pdp-rev { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } .pdp-more-link { grid-column: 2; } }
.pdp-rev__summary { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--c-surface); }
.pdp-rev__avg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pdp-rev__avg b { font-size: 2.2rem; line-height: 1; }
.pdp-rev__avg span:last-child { flex-basis: 100%; color: var(--c-muted); font-size: .8125rem; }
.pdp-rev__bars { display: grid; gap: 6px; font-size: .78rem; }
.pdp-rev__bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 8px; }
.pdp-rev__bars li > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.pdp-rev__bars .ic { width: 12px; height: 12px; fill: #f59e0b; stroke: none; }
.pdp-rev__track { height: 6px; overflow: hidden; border-radius: 6px; background: #fff; }
.pdp-rev__track span { display: block; height: 100%; width: var(--v, 0); border-radius: inherit; background: #f59e0b; }
.pdp-rev__summary .btn { justify-self: start; }
.pdp-rev__list { display: grid; gap: 12px; }
.pdp-rev__item { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.pdp-rev__item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pdp-rev__item time { margin-inline-start: auto; color: var(--c-muted); font-size: .75rem; }
.pdp-rev__item p { font-size: .9rem; }
.pdp-rev__imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-rev__imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.pdp-rev__reply { padding: 10px 12px; border-inline-start: 3px solid var(--c-primary); border-radius: 6px; background: var(--c-surface); font-size: .8125rem; }
.pdp-more-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--c-primary); font-weight: 700; }
.pdp-more-link .ic { width: 16px; height: 16px; }
.pdp-qa { display: grid; gap: 12px; max-width: 900px; }
.pdp-qa__item { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.pdp-qa__q { display: flex; gap: 8px; font-weight: 700; }
.pdp-qa__q .ic { flex: none; margin-top: 3px; color: var(--c-primary); }
.pdp-qa__by { color: var(--c-muted); font-size: .75rem; }
.pdp-qa__a { padding: 10px 12px; border-radius: 8px; background: var(--c-surface); font-size: .875rem; }
.pdp-qa > .btn { justify-self: start; }

/* ---------- lower sections ---------- */
.pdp-sec { margin-block-start: clamp(32px, 5vw, 56px); }
.pdp-faq .faq__q { font-size: .95rem; }
.pdp-ph { min-height: 320px; border-radius: var(--radius); background: linear-gradient(90deg, var(--c-surface), #fff, var(--c-surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------- sticky add-to-cart bar ---------- */
.pdp-sticky { position: fixed; z-index: 55; inset-inline: 0; inset-block-end: 0; padding-block: 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); background: color-mix(in srgb, #fff 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgb(16 24 40 / 8%); transform: translateY(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.pdp-sticky.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.pdp-sticky__in { display: flex; align-items: center; gap: 12px; }
.pdp-sticky__img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 10px; background: var(--c-surface); }
.pdp-sticky__info { display: grid; flex: 1; min-width: 0; }
.pdp-sticky__name { overflow: hidden; font-size: .875rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pdp-sticky__price { color: var(--pdp-price, var(--c-text)); font-weight: 800; }
.pdp-sticky__actions { display: flex; align-items: center; gap: 8px; }
.pdp-sticky [aria-disabled="true"] { opacity: .65; }
select.pdp-sticky__qty { width: auto; min-width: 72px; border-radius: var(--pill); }
body.pdp-sticky-on { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } /* the bar grows by the safe area (D-13) */
body.pdp-sticky-on :is(.wa, .to-top) { transform: translateY(calc(-76px - env(safe-area-inset-bottom))); }
@media (max-width: 767px) {
  .pdp-sticky__name, .pdp-sticky .qty, select.pdp-sticky__qty, .pdp-sticky__buy { display: none; }
  .pdp-sticky__img { width: 44px; height: 44px; }
  .pdp-sticky__actions .btn { min-height: 44px; padding-inline: 18px; }
}
