
  /* ===================================================================
     Product page — matches the shop / cart / login / register / search
     visual language: soft white cards, 16px radii, subtle shadows,
     accent-colored actions, uppercase micro-labels, color-mix focus
     tints. Fully responsive: desktop (2-col, sticky info panel),
     tablet/mobile (stacked, full-width). No cart/variant/config-group
     logic was changed — styling only.
     =================================================================== */

  .pdp-page {
    position: relative;
    padding: 3rem 0 4rem;
  }

  .pdp-page .container {
    position: relative;
    z-index: 1;
  }

  .pdp-page::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
  }

  .pdp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  /* ---- Media ------------------------------------------------------------- */
  .pdp-media {
    min-width: 0;
  }

  /* ---- Desktop gallery grid (2-up tiles, adidas PDP style) --------------- */
  .pdp-gallery-grid {
    display: none;
  }

  /* "Show more/less" toggle for the desktop 2-up grid — hidden by default
     (and thus on mobile, which uses the swipeable single-image carousel
     instead and has no grid to expand); shown only at the desktop
     breakpoint alongside the grid itself. */
  .pdp-gallery-more {
    display: none;
  }

  @media (min-width: 901px) {
    .pdp-gallery-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
    }

    .pdp-gallery-grid__item {
      position: relative;
      aspect-ratio: 3 / 4;
      overflow: hidden;
      background: #efe6de;
    }

    .pdp-gallery-grid__item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      cursor: zoom-in;
    }

    .pdp-gallery-grid__item[hidden] {
      display: none;
    }

    .pdp-gallery-grid__item--placeholder {
      background: #efe6de;
    }

    /* Hover zoom, desktop gallery tiles: the whole image scales up and pans
       toward the cursor as the mouse moves (see the hover-zoom script
       further down) — no lens/crop overlay, the image itself zooms. */
    .pdp-gallery-grid__item img {
      transition: transform 0.2s ease;
    }

    .pdp-gallery-grid__item.is-zooming img {
      transform: scale(var(--pdp-hover-zoom-scale, 2));
      transition: transform 0.1s ease-out;
    }

    .pdp-gallery-more {
      grid-column: 1 / -1;
      display: flex;
      justify-content: center;
      margin-top: 1rem;
    }

    .pdp-gallery-more__btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.7rem 1.4rem;
      border: 1px solid #111;
      background: #fff;
      color: #111;
      font-size: 12.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .pdp-gallery-more__btn:hover {
      background: #111;
      color: #fff;
    }

    .pdp-gallery-more__btn svg {
      transition: transform 0.2s ease;
    }

    .pdp-gallery-grid.is-expanded ~ .pdp-gallery-more .pdp-gallery-more__btn svg {
      transform: rotate(180deg);
    }

    /* Single-image mobile carousel is desktop-hidden; the grid above is the
       desktop gallery. Thumbnails are hidden site-wide in this layout since
       dots/swipe (mobile) and the grid (desktop) already cover navigation. */
    .pdp-media__mobile-carousel {
      display: none;
    }

    .pdp-thumbs {
      display: none !important;
    }
  }

  @media (max-width: 900px) {
    .pdp-media__mobile-carousel {
      display: block;
    }

    .pdp-thumbs {
      display: none !important;
    }
  }

  .pdp-media__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    overflow: hidden;
    background: color-mix(in srgb, var(--pdp-accent) 6%, #f4f4f5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  }

  .pdp-media__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
  }

  /* ---- Hover zoom: the whole image scales up and pans toward the cursor
     as the mouse moves over it — no lens/crop overlay. Desktop/mouse only
     (see JS feature check); touch devices never get the mouseover events
     that drive it. --- */
  @media (hover: hover) and (pointer: fine) {
    .pdp-media__main[data-hover-zoom] {
      cursor: zoom-in;
    }
  }

  .pdp-media__main.is-zooming img {
    transform: scale(var(--pdp-hover-zoom-scale, 2));
    transition: transform 0.1s ease-out;
  }

  /* ---- Zoom popup / lightbox --------------------------------------------- */
  .pdp-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ececec;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .pdp-zoom-modal.is-open {
    opacity: 1;
    visibility: visible;
  }

  .pdp-zoom-modal__figure {
    position: relative;
    margin: 0;
    width: 100%;

    height: calc(100% - 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 6rem;
    box-sizing: border-box;
  }

  .pdp-zoom-modal__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
    user-select: none;
    touch-action: none;
    transform: translate(0px, 0px) scale(1);
    cursor: zoom-in;
  }

  .pdp-zoom-modal__img.is-zoomed {
    cursor: grab;
  }

  @media (hover: hover) and (pointer: fine) {
    /* Desktop: no drag needed once zoomed — the image pans as the mouse
       moves, so the cursor hints "click to zoom back out" instead of "drag". */
    .pdp-zoom-modal__img.is-zoomed {
      cursor: zoom-out;
    }
  }

  .pdp-zoom-modal__img.is-panning {
    cursor: grabbing;
  }

  .pdp-zoom-modal__close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .pdp-zoom-modal__close:hover {
    background: #111;
    color: #fff;
  }

  .pdp-zoom-modal__close svg {
    width: 18px;
    height: 18px;
  }

  .pdp-zoom-modal__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid #111;
    border-radius: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }

  .pdp-zoom-modal__nav:hover {
    background: #111;
    color: #fff;
  }

  .pdp-zoom-modal__nav:active {
    transform: translateY(-50%) scale(0.94);
  }

  .pdp-zoom-modal__nav svg {
    width: 20px;
    height: 20px;
  }

  .pdp-zoom-modal__nav--prev {
    left: auto; inset-inline-start: 1.25rem;
  }

  .pdp-zoom-modal__nav--next {
    right: auto; inset-inline-end: 1.25rem;
  }

  .pdp-zoom-modal__counter {
    display: none;
  }

  /* ---- Bottom thumbnail strip ------------------------------------------- */
  .pdp-zoom-modal__thumbs {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 1rem 1.5rem;
    max-width: 100%;
    overflow-x: auto;
  }

  .pdp-zoom-modal__thumb {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 0;
    border-bottom: 3px solid transparent;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
  }

  .pdp-zoom-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pdp-zoom-modal__thumb.is-active {
    border-bottom-color: #111;
  }

  @media (max-width: 640px) {
    .pdp-zoom-modal__figure {
      width: 100%;
      max-width: 100%;
      height: calc(100% - 6rem);
      padding: 1.5rem 3.5rem;
      margin: 0;
    }

    .pdp-zoom-modal__img {
      width: 100%;
      max-width: 100%;
      height: 100%;
    }

    .pdp-zoom-modal__nav--prev {
      left: auto; inset-inline-start: 0.5rem;
    }

    .pdp-zoom-modal__nav--next {
      right: auto; inset-inline-end: 0.5rem;
    }

    .pdp-zoom-modal__nav {
      width: 2.5rem;
      height: 2.5rem;
    }

    .pdp-zoom-modal__thumb {
      width: 3.5rem;
      height: 3.5rem;
    }
  }

  .pdp-media__main[data-transition="fade"] #pdpMainImage {
    transition: opacity 0.25s ease;
  }

  .pdp-media__main[data-transition="slide"] #pdpMainImage {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .pdp-media__main[data-transition="none"] #pdpMainImage {
    transition: none;
  }

  .pdp-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--pdp-accent) 45%, #999);
  }

  .pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 0.75rem;
  }

  .pdp-thumb {
    position: relative;
    display: block;
    padding: 0;
    border: 1.5px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: color-mix(in srgb, var(--pdp-accent) 6%, #f4f4f5);
    cursor: pointer;
    transition: border-color 0.15s ease;
  }

  .pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pdp-thumb__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: color-mix(in srgb, var(--pdp-accent) 45%, #999);
  }

  .pdp-thumb:hover,
  .pdp-thumb.is-active {
    border-color: var(--pdp-accent);
  }

  /* ---- Main image prev/next nav + dots (shown only when there is more
     than one product image) ------------------------------------------- */
  .pdp-media__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 3px;
    background: var(--pdp-nav-bg, rgba(255, 255, 255, 0.85));
    color: var(--pdp-nav-icon, #111);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .pdp-media__nav:hover {
    background: var(--pdp-nav-bg, #fff);
    filter: brightness(1.03);
  }

  .pdp-media__nav:active {
    transform: translateY(-50%) scale(0.92);
  }

  .pdp-media__nav svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .pdp-media__nav--prev {
    left: 0.75rem;
  }

  .pdp-media__nav--next {
    right: 0.75rem;
  }

  .pdp-media__zoom-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 3px;
    background: var(--pdp-nav-bg, rgba(255, 255, 255, 0.85));
    color: var(--pdp-nav-icon, #111);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .pdp-media__zoom-btn:hover {
    background: var(--pdp-nav-bg, #fff);
    filter: brightness(1.03);
  }

  .pdp-media__zoom-btn:active {
    transform: scale(0.92);
  }

  .pdp-media__zoom-btn svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .pdp-media__dots {
    position: absolute;
    inset-block-end: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
  }

  .pdp-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--pdp-dot, rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .pdp-dot:hover {
    background: var(--pdp-dot, rgba(255, 255, 255, 0.9));
    filter: brightness(0.95);
  }

  .pdp-dot.is-active {
    background: var(--pdp-dot-active, var(--pdp-accent));
    transform: scale(1.2);
  }

  /* ---- Info panel -------------------------------------------------------- */
  .pdp-info {
    min-width: 0;
    position: sticky;
    top: 7rem;
  }

  .pdp-breadcrumb {
    margin: 0 0 1.25rem;
    font-size: 13px;
    color: #767676;
  }

  .pdp-breadcrumb a {
    color: #767676;
    text-decoration: none;
  }

  .pdp-breadcrumb a:hover {
    text-decoration: underline;
    color: #111;
  }

  .pdp-breadcrumb__sep {
    margin: 0 0.4rem;
  }

  .pdp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.6rem;
  }

  .pdp-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #111;
  }

  .pdp-wishlist-form {
    flex-shrink: 0;
  }

  .pdp-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  .pdp-wishlist svg {
    width: 20px;
    height: 20px;
  }

  .pdp-wishlist:hover {
    color: var(--pdp-accent);
    border-color: var(--pdp-accent);
  }

  .pdp-wishlist:active {
    transform: scale(0.92);
  }

  .pdp-wishlist.is-active {
    color: #e0245e;
    border-color: #e0245e;
  }

  .pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
  }

  .pdp-price-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
  }

  .pdp-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
  }

  .pdp-price--sale {
    color: #b3261e;
  }

  .pdp-price-compare {
    font-size: 1.05rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
  }

  .pdp-badge-save {
    display: inline-flex;
    align-items: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
  }

  .pdp-accordions {
    max-width: 62%;
    margin: 2.5rem 0 0;
    border-top: 1px solid #eee;
  }

  @media (max-width: 900px) {
    .pdp-accordions {
      max-width: none;
    }
  }

  .pdp-accordion {
    border-bottom: 1px solid #eee;
  }

  .pdp-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .pdp-accordion__head::-webkit-details-marker {
    display: none;
  }

  .pdp-accordion__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .pdp-accordion[open] .pdp-accordion__chevron {
    transform: rotate(180deg);
  }

  .pdp-accordion__body {
    padding: 0 0 1.25rem;
    line-height: 1.7;
    color: #555;
    white-space: pre-line;
  }

  /* ---- Form ---------------------------------------------------------------- */
  .pdp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .pdp-fieldset {
    border: 0;
    border-top: 1px solid #eee;
    border-radius: 0;
    padding: 1.15rem 0 0;
    margin: 0;
  }

  .pdp-fieldset:first-of-type {
    border-top: 0;
    padding-top: 0;
  }

  .pdp-fieldset legend {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
  }

  .pdp-fieldset legend .pdp-required {
    color: #b3261e;
  }

  .pdp-fieldset legend .pdp-hint {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    color: #aaa;
    font-size: 12px;
  }

  /* ---- Config groups (option group / menu selection / default option) —
     each renders as a bordered card with a grey header bar (title + rule
     pills), matching the product-view design language. Scoped to
     [data-config-group] so the variant-picker fieldset above keeps its
     original plain divider style untouched. ------------------------------- */
  .pdp-fieldset[data-config-group],
  .pdp-fieldset[data-config-group]:first-of-type {
    border: 1.5px solid #e8e8e8;
    border-radius: 3px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
  }

  .pdp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pdp-legend-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 12px 12px 0px 0px;
    background: #fafafa;
    border-bottom: 1.5px solid #e8e8e8;
  }

  .pdp-legend-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: #333;
  }

  .pdp-legend-title .pdp-required {
    color: #b3261e;
    font-weight: 700;
    margin-inline-start: 1px;
  }

  .pdp-legend-rules {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .pdp-rule {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #666;
    background: #f2f2f2;
    border: 1px solid #e5e5e5;
    padding: 2px 9px;
    border-radius: 2px;
    white-space: nowrap;
  }

  .pdp-rule:empty {
    display: none;
  }

  .pdp-rule--accent {
    color: var(--pdp-accent);
    background: color-mix(in srgb, var(--pdp-accent) 10%, #fff);
    border-color: color-mix(in srgb, var(--pdp-accent) 30%, #e5e5e5);
  }

  /* ---- Package groups ("Package Products") drop the bordered-card /
     grey-header chrome that modifier, selection and options groups use —
     a package's contents are fixed (pre-checked, disabled), so the group
     reads as a plain section label with a thin rule underneath, sitting
     above a single-column stack of item cards (not the 2-col grid used for
     real choices). Nested groups inside a package item (e.g. a Brisket
     Bao's own Option Group) are a different kind — .pdp-fieldset--modifier
     / --selection / --options — so they keep the full card treatment and
     2-col item grid untouched. ------------------------------------------ */
  .pdp-fieldset--package.pdp-fieldset[data-config-group] {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .pdp-fieldset--package > .pdp-legend-bar {
    padding: 0 0 10px;
    margin-bottom: 14px;
    background: transparent;
    border-bottom: 1px solid #eee;
    border-radius: 0;
  }

  .pdp-fieldset--package > .pdp-legend-bar .pdp-legend-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
  }

  .pdp-fieldset--package > .pdp-option-list {
    padding: 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ---- Package item card: image box + bold label + optional "Customizable"
     badge. No tick indicator — the item is always included, so there's
     nothing to toggle. --------------------------------------------------- */
  .pdp-option--package {
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 2px;
  }

  .pdp-package-item__media {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 2px;
    border: 1.5px solid #e2e2e2;
    background: #fff;
    overflow: hidden;
  }

  .pdp-package-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pdp-package-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .pdp-package-item__label {
    font-size: 15px;
    font-weight: 700;
    color: var(--pdp-accent);
  }

  .pdp-package-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 3px 10px 3px 8px;
    border: 1px solid color-mix(in srgb, var(--pdp-accent) 45%, #fff);
    border-radius: 2px;
    background: #fff;
    color: var(--pdp-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .pdp-package-item__badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  /* ---- Required modifier groups (min > 0) get a pink-tinted border and a
     "Min N" danger pill next to the usual "Max N" pill while the minimum
     hasn't been picked yet — the .pdp-fieldset--unmet class is toggled live
     by the required-group watcher script below and cleared once enough
     items are checked, so the border reverts to the normal grey card. */
  .pdp-fieldset--unmet.pdp-fieldset[data-config-group] {
    border-color: #f3c1c1;
  }

  .pdp-rule--danger {
    gap: 3px;
    color: #d64545;
    background: #fdecec;
    border-color: #f6c9c9;
  }

  .pdp-rule--danger .pdp-rule__icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  /* Once the required minimum is met, the watcher script drops
     .pdp-fieldset--unmet from the group — the Min pill turns neutral to
     match the Max pill instead of staying red. */
  .pdp-fieldset--required:not(.pdp-fieldset--unmet) [data-min-rule] {
    color: #666;
    background: #f2f2f2;
    border-color: #e5e5e5;
  }

  /* ---- Option cards: modifier / selection / package choices render as a
     2-column grid of bordered cards (media, name + price, tick), matching
     the og-checkbox-card / ms-item-card pattern. Cards stay col-6 always,
     except an item that carries its own image, which spans the full row
     (col-12) since there isn't room for media + label + price + tick at
     half width. ------------------------------------------------------- */
  .pdp-option-list {
    list-style: none;
    padding: 12px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Cards with an item image don't have room for media + label + price +
     tick at half width, so they always take the full row. */
  .pdp-option-list > li:has(> label .pdp-option__media-wrap) {
    grid-column: 1 / -1;
  }

  .pdp-option-list > li {
    min-width: 0;
  }

  .pdp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 0;
    border: 1.5px solid #e8e8e8;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
  }

  .pdp-option:hover {
    border-color: #bbb;
    background: #fafafa;
  }

  .pdp-option:has(input:checked) {
    border-color: var(--pdp-accent);
    background: color-mix(in srgb, var(--pdp-accent) 6%, #fff);
  }

  .pdp-option:has(input:disabled):not(:has(input:checked)) {
    opacity: 0.45;
    cursor: not-allowed;
    background: #fafafa;
  }

  .pdp-option--disabled {
    cursor: default;
  }

  .pdp-option--disabled:hover {
    border-color: #e8e8e8;
    background: #fff;
  }

  /* ---- Selection indicator ---------------------------------------------
     The native input stays in the DOM (fully keyboard/AT accessible) but is
     visually hidden; a tick badge on the trailing edge of the card reflects
     its state instead — the checkbox/radio "card" pattern used throughout
     product-view (og-checkbox-tick / ms-checkbox-tick). */
  .pdp-option__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }

  .pdp-option__tick {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  }

  .pdp-option__tick svg {
    width: 11px;
    height: 11px;
  }

  .pdp-option:has(input:checked) .pdp-option__tick {
    background: var(--pdp-accent);
    border-color: var(--pdp-accent);
    color: #fff;
  }

  .pdp-option__input:focus-visible ~ .pdp-option__tick {
    outline: 2px solid var(--pdp-accent);
    outline-offset: 2px;
  }

  .pdp-option__input:disabled ~ .pdp-option__tick {
    border-color: #e5e5e5;
    background: #f5f5f5;
  }

  .pdp-option__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .pdp-option__label {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pdp-option:has(input:checked) .pdp-option__label {
    color: color-mix(in srgb, var(--pdp-accent) 55%, #111);
    font-weight: 600;
  }

  .pdp-option__price {
    font-weight: 700;
    font-size: 13px;
    color: var(--pdp-accent);
    white-space: nowrap;
  }

  .pdp-option__extra {
    font-size: 13px;
    font-weight: 700;
    color: var(--pdp-accent);
    white-space: nowrap;
  }

  .pdp-option__soldout {
    color: #b3261e;
    font-size: 12px;
    font-weight: 600;
  }

  .pdp-option__media-wrap {
    position: relative;
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
  }

  .pdp-option__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #f0f0f0;
    display: block;
  }

  .pdp-option__media-placeholder {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    border: 1px solid #f0f0f0;
    background: color-mix(in srgb, var(--pdp-accent) 6%, #f4f4f5);
    color: color-mix(in srgb, var(--pdp-accent) 45%, #999);
    box-sizing: border-box;
  }

  /* ---- Matrix dimensions: dropdown / colour swatches / segmented pills ----- */
  .pdp-dim + .pdp-dim {
    margin-top: 1.1rem;
  }

  .pdp-dim__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0 0 0.6rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
  }

  .pdp-size-chart-link {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: #111;
    text-decoration: underline;
  }

  .pdp-dim__value {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
    color: #111;
  }

  .pdp-select {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1.5px solid #e8e8e8;
    border-radius: 2px;
    padding: 0 2.25rem 0 14px;
    font-size: 14.5px;
    color: #222;
    background: #fff;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .pdp-select:focus {
    border-color: var(--pdp-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdp-accent) 12%, transparent);
  }

  /* ---- Colour swatches: real chips with a contrast-safe checkmark ---------- */
  .pdp-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .pdp-swatch {
    cursor: pointer;
  }

  .pdp-swatch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }

  .pdp-swatch__chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .pdp-swatch:hover .pdp-swatch__chip {
    transform: scale(1.08);
  }

  .pdp-swatch__input:checked + .pdp-swatch__chip {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pdp-accent);
  }

  .pdp-swatch__input:focus-visible + .pdp-swatch__chip {
    outline: 2px solid var(--pdp-accent);
    outline-offset: 3px;
  }

  .pdp-swatch__input:disabled + .pdp-swatch__chip {
    opacity: 0.35;
    cursor: not-allowed;
  }

  /* Checkmark contrasts against ANY swatch colour via mix-blend-mode, so a
     single icon works on light and dark chips alike without per-colour rules. */
  .pdp-swatch__check {
    color: #fff;
    mix-blend-mode: difference;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .pdp-swatch__input:checked + .pdp-swatch__chip .pdp-swatch__check {
    opacity: 1;
    transform: scale(1);
  }

  /* ---- Segmented pills: size / style / other non-colour dimensions --------- */
  .pdp-pills {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.6rem;
  }

  @media (max-width: 640px) {
    .pdp-pills {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }

  .pdp-pill-opt {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }

  .pdp-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.4rem;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }

  .pdp-pill-opt:hover + .pdp-pill {
    border-color: color-mix(in srgb, var(--pdp-accent) 45%, #e2e2e2);
  }

  .pdp-pill-opt:checked + .pdp-pill {
    border-color: var(--pdp-accent);
    background: var(--pdp-accent);
    color: #fff;
  }

  .pdp-pill-opt:focus-visible + .pdp-pill {
    outline: 2px solid var(--pdp-accent);
    outline-offset: 2px;
  }

  .pdp-pill-opt:disabled + .pdp-pill {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
  }

  .pdp-variant-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0.6rem 0.85rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 2px;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    display: none;
  }

  /* ---- Menu selection: each required "choice" slot renders as its own
     nested card with an index badge + title bar (ms-group-card pattern),
     sitting inside the outer group card. ----------------------------------- */
  .pdp-config-slot {
    margin: 10px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
  }

  .pdp-config-slot__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 12px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #777;
  }

  /* A slot's own items (e.g. "Choice 2": Brisket Bao / Pulled brisket
     burger / ...) always render one per row — col-12 — regardless of
     image or count. Any config-group nested *inside* one of those items
     (its own topping/add-on options) is a separate .pdp-option-list not
     matched by this selector, so it keeps the 2-col grid above. */
  .pdp-config-slot > .pdp-option-list {
    grid-template-columns: 1fr;
  }

  /* Once the shopper picks an item in a radio-driven option list — a
     "Choice N" menu-selection slot, or a single-select modifier group —
     hide the other choices in that same list so only the selected one (and
     its own nested config, if any) stays visible. Checkbox-driven lists
     (multi-select modifiers, "choose N" options, packages) are untouched,
     since the [type="radio"] requirement in :has() excludes them. Driven
     purely by :checked, so it reacts to both a native click and the
     click-to-deselect script above (which sets .checked programmatically) —
     clearing the pick (re-clicking the selected option) brings every choice
     back automatically, no extra JS needed.
     ">" (not a descendant combinator) ties each fieldset to only its own
     option-list, so a differently-configured group nested inside a selected
     item never inherits its parent fieldset's behavior here.
     A modifier ("option group") whose min and max are both 1 is excluded
     here — see the rule just below, which dims those instead of hiding
     them. */
  .pdp-fieldset:not([data-kind="modifier"][data-min="1"][data-max="1"])
    > .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked)
    > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)) {
    display: none;
  }
  .pdp-config-slot > .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked)
    > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)) {
    display: none;
  }

  /* Option group (modifier) with min 1 / max 1: exactly one pick, same as
     above, but the shopper should still see every option — so instead of
     hiding the rest, dim them and block clicks until the current pick is
     cleared (click-to-deselect script above). Matches the existing
     disabled-option look (.pdp-pill-opt:disabled + .pdp-pill). */
  .pdp-fieldset[data-kind="modifier"][data-min="1"][data-max="1"]
    > .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked)
    > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)) .pdp-option {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  .pdp-config-slot__index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
  }

  .pdp-config-count {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
  }

  /* ---- Nested (recursive) config for a configurable item ------------------ */
  .pdp-config-nested {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.65rem 0 0.15rem;
  }

  /* ---- Default options: quantity-stepper rows, styled as flat divided
     rows inside the group card (dopt-row pattern) rather than grid cards. -- */
  .pdp-option-list:has(.pdp-option--stepper) {
    display: block;
    padding: 0;
  }

  .pdp-option-list:has(.pdp-option--stepper) > li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
  }

  .pdp-option--stepper {
    cursor: default;
    height: auto;
    border: 0;
    border-radius: 0;
    padding: 10px 14px;
  }

  .pdp-option--stepper:hover {
    background: #fff;
  }

  .pdp-stepper--sm {
    flex-shrink: 0;
  }

  .pdp-stepper--sm .pdp-stepper__btn {
    width: 1.7rem;
    height: 2.1rem;
    font-size: 14px;
  }

  .pdp-stepper--sm .pdp-stepper__input {
    width: 2.4rem;
    height: 2.1rem;
    font-size: 13.5px;
  }

  /* ---- Quantity + submit row ------------------------------------------------ */
  .pdp-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .pdp-qty-row label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
  }

  .pdp-qty-row .pdp-add-row {
    flex-basis: 100%;
    order: 3;
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
  }

  .pdp-delivery-info {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .pdp-delivery-info li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 13.5px;
    color: #333;
  }

  .pdp-delivery-info svg {
    flex-shrink: 0;
    color: #111;
  }

  .pdp-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .pdp-stepper__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.5rem;
    border: 0;
    background: #fff;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
  }

  .pdp-stepper__btn:hover {
    background: color-mix(in srgb, var(--pdp-accent) 10%, transparent);
    color: var(--pdp-accent);
  }

  .pdp-stepper__input {
    width: 3rem;
    height: 2.5rem;
    border: 0;
    border-inline: 1.5px solid #e8e8e8;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    color: #222;
    font-family: inherit;
    -moz-appearance: textfield;
  }

  .pdp-stepper__input::-webkit-outer-spin-button,
  .pdp-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .pdp-add {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 3.25rem;
    border: 0;
    background: var(--pdp-accent);
    color: #fff;
    border-radius: 0;
    font-weight: 700;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  }

  .pdp-add:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--pdp-accent) 38%, transparent);
  }

  .pdp-add:active {
    transform: translateY(0);
  }

  .pdp-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  /* ---- Wishlist toggle, square outline button beside Add to Cart ------------
     The #pdpWishlistForm itself only carries hidden fields (its visible button
     lives in .pdp-add-row and targets it via form="pdpWishlistForm"), so it
     renders nothing and needs no layout of its own. */
  #pdpWishlistForm {
    display: none;
  }

  .pdp-wishlist-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 0;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  .pdp-wishlist-btn svg {
    width: 20px;
    height: 20px;
  }

  .pdp-wishlist-btn:hover {
    color: var(--pdp-accent);
    border-color: var(--pdp-accent);
  }

  .pdp-wishlist-btn:active {
    transform: scale(0.92);
  }

  .pdp-wishlist-btn.is-active {
    color: #e0245e;
    border-color: #e0245e;
  }

  /* ---- Unavailable state ---------------------------------------------------- */
  .pdp-unavailable {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 2px;
    font-size: 14.5px;
    font-weight: 600;
  }

  /* ---- Share to social ---------------------------------------------------- */
  .pdp-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  .pdp-share__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-right: 0.15rem;
  }

  .pdp-share__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #F5F0E6;
    border-radius: 50%;
    background: #F5F0E6;
    color: #1A3F33;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  .pdp-share__link svg {
    width: 16px;
    height: 16px;
  }

  .pdp-share__link:hover {
    color: var(--pdp-accent);
    border-color: var(--pdp-accent);
  }

  .pdp-share__link:active {
    transform: scale(0.92);
  }

  .pdp-share__link.is-copied {
    color: #1a7f37;
    border-color: #1a7f37;
  }

  .pdp-share__toast {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  }

  .pdp-share__link.is-copied .pdp-share__toast {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* ---- Tablet / mobile -------------------------------------------------------- */
  @media (max-width: 900px) {
    .pdp-layout {
      grid-template-columns: 1fr;
      gap: 1.75rem;
    }

    .pdp-info {
      position: static;
      top: auto;
    }
  }

  @media (max-width: 640px) {
    .pdp-page {
      padding: 2rem 0 3rem;
    }

    .pdp-title {
      font-size: 1.5rem;
    }

    .pdp-form,
    .pdp-unavailable {
      max-width: none;
    }

    .pdp-thumbs {
      grid-template-columns: repeat(4, 1fr);
    }

    .pdp-option-list {
      grid-template-columns: 1fr;
    }

    .pdp-option__media-wrap {
      width: 2.25rem;
      height: 2.25rem;
    }
  }

  /* ---- Quick-add bar: a separate, compact Add to Cart control pinned to
     the bottom of the screen on mobile/tablet. The real quantity + Add to
     Cart button (.pdp-qty-row) always stays put in the product content and
     is never hidden. This bar is just a scroll-convenience shortcut: it's
     shown while the shopper hasn't scrolled down to the real button yet
     (or has scrolled back up above it), and hides itself once the real
     button is reached/visible, or once it's been scrolled past entirely.
     Clicking it submits the real form. Desktop never shows this bar. ---- */
  .pdp-quick-add {
    display: none;
  }

  @media (max-width: 900px) {
    .pdp-quick-add {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      position: fixed;
      inset-block-end: 0;
      inset-inline: 0;
      z-index: 45;
      background: #fff;
      padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom));
      border-radius: 0;
      box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
      transform: translateY(120%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .pdp-quick-add.is-visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  }

  /* ===================================================================
     Dish page design (overrides the base rules above, which stay in place
     for every selector this block does not touch). Cream page, one large
     rounded photo, serif uppercase name + price, pill option groups, a pill
     quantity stepper and a primary "Add to cart · price" button.
     =================================================================== */
  .pdp-page {
    --pd-ink: #1A3F33;
    --pd-card: #F5F0E6;
    background: var(--pd-bg);
    color: var(--pd-ink);
    font-family: var(--font-body);
    padding: 1.5rem 0 4rem;
  }

  .pdp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pd-ink);
    text-decoration: none;
    transition: color 0.15s ease;
  }
  .pdp-back__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--pd-ink);
    color: var(--pd-card);
    box-shadow: 0 3px 10px rgba(26, 63, 51, 0.18);
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .pdp-back:hover { color: var(--pdp-accent); }
  .pdp-back:hover .pdp-back__icon { background: var(--pdp-accent); transform: translateX(-2px); }
  [dir="rtl"] .pdp-back__icon svg { transform: scaleX(-1); }

  .pdp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.8rem);
  }

  /* One large photo on desktop too (the 2-up grid is replaced by the carousel). */
  @media (min-width: 901px) {
    .pdp-gallery-grid,
    .pdp-gallery-more { display: none !important; }
    .pdp-media__mobile-carousel { display: block !important; }
  }
  .pdp-media__main {
    aspect-ratio: 465 / 430;
    border-radius: 22px;
    background: color-mix(in srgb, var(--pd-bg) 82%, var(--pdp-accent));
    box-shadow: 0 14px 36px rgba(26, 63, 51, 0.14);
  }
  .pdp-media__main img { object-fit: cover; }
  /* Desktop: the photo stays in view while the (longer) details column scrolls. */
  @media (min-width: 901px) {
    .pdp-media { position: sticky; top: 7.5rem; }
  }

  .pdp-info { padding-top: clamp(0.5rem, 3vw, 2.4rem); }
  .pdp-title-row { margin: 0 0 1.2rem; }
  .pdp-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--pd-ink);
  }
  .pdp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 1.2rem; }
  .pdp-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--pdp-accent);
  }
  .pdp-price-label { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(26, 63, 51, 0.65); }
  .pdp-price-compare { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: lightgray; text-decoration: line-through; }
  .pdp-badge-save {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--pdp-accent);
    color: #fff;
    font-size: 0.87rem;
    font-weight: 700;
  }
  .pdp-desc {
    margin: 0 0 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(26, 63, 51, 0.85);
  }

  .pdp-form { gap: 1.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(26, 63, 51, 0.18); }

  /* ---- Option groups: small uppercase label + pills ---------------------- */
  .pdp-dim__label {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    color: var(--pd-ink);
  }
  .pdp-dim__value { color: var(--pdp-accent); font-weight: 700; }
  .pdp-size-chart-link { color: var(--pd-ink); }

  .pdp-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .pdp-pill {
    width: auto;
    height: auto;
    padding: 0.8rem 1.7rem;
    border: 1px solid var(--pd-ink);
    border-radius: 999px;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pd-ink);
  }
  .pdp-pill-opt:hover + .pdp-pill { background: rgba(26, 63, 51, 0.08); border-color: var(--pd-ink); }
  .pdp-pill-opt:checked + .pdp-pill { background: var(--pd-ink); border-color: var(--pd-ink); color: var(--pd-card); }
  .pdp-pill-opt:focus-visible + .pdp-pill { outline-color: var(--pdp-accent); }

  .pdp-select {
    height: 46px;
    border: 1px solid rgba(26, 63, 51, 0.3);
    border-radius: 12px;
    background-color: transparent;
    color: var(--pd-ink);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .pdp-fieldset[data-config-group],
  .pdp-fieldset[data-config-group]:first-of-type {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .pdp-legend-bar { padding: 0 0 0.8rem; border: 0; border-radius: 0; background: transparent; }
  .pdp-legend-title { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pd-ink); }
  .pdp-rule { border-radius: 999px; border-color: rgba(26, 63, 51, 0.25); background: transparent; color: var(--pd-ink); font-size: 0.92rem; padding: 2px 10px; }

  .pdp-option-list { padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .pdp-option-list > li { flex: 0 1 auto; min-width: 0; }
  .pdp-option-list > li:has(> label .pdp-option__media-wrap),
  .pdp-option-list > li:has(> .pdp-option--stepper),
  .pdp-fieldset--package .pdp-option-list > li { flex-basis: 100%; }
  .pdp-option {
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--pd-ink);
    border-radius: 999px;
    background: transparent;
    gap: 0.5rem;
  }
  .pdp-option:hover { background: rgba(26, 63, 51, 0.08); border-color: var(--pd-ink); }
  .pdp-option:has(input:checked) { background: var(--pd-ink); border-color: var(--pd-ink); }
  .pdp-option__tick { display: none; }
  .pdp-option__info { flex: 0 1 auto; flex-direction: row; align-items: center; gap: 0.4rem; }
  .pdp-option__label { flex: 0 1 auto; overflow: visible; white-space: nowrap; font-size: 0.92rem; font-weight: 700; color: var(--pd-ink); }
  .pdp-option__extra { font-size: 0.92rem; font-weight: 700; color: var(--pd-ink); }
  .pdp-option:has(input:checked) .pdp-option__label,
  .pdp-option:has(input:checked) .pdp-option__extra { color: var(--pd-card); }
  /* Rows that carry a photo, a stepper or a fixed package item are cards, not pills. */
  .pdp-option--stepper,
  .pdp-option--package,
  .pdp-option:has(.pdp-option__media-wrap) {
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    border-color: rgba(26, 63, 51, 0.22);
    background: var(--pd-card);
  }
  .pdp-option--stepper .pdp-option__info,
  .pdp-option:has(.pdp-option__media-wrap) .pdp-option__info { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
  .pdp-option--stepper .pdp-option__label,
  .pdp-option:has(.pdp-option__media-wrap) .pdp-option__label { white-space: normal; }
  .pdp-option:has(.pdp-option__media-wrap):has(input:checked) { background: var(--pd-ink); }
  .pdp-option__media, .pdp-option__media-placeholder { border-radius: 10px; }
  .pdp-option__media-placeholder { background: rgba(26, 63, 51, 0.08); color: rgba(26, 63, 51, 0.55); }
  .pdp-option:has(input:checked) .pdp-option__media-placeholder { background: rgba(245, 240, 230, 0.16); color: var(--pd-card); }
  .pdp-option--disabled:hover { background: var(--pd-card); }

  /* ---- Group chrome: "Choice N" slots, rule pills, required states, steppers,
     package rows — all moved off the old white / grey / black palette. ------- */
  .pdp-config-slot {
    margin: 0 0 0.8rem;
    border: 1px solid rgba(26, 63, 51, 0.18);
    border-radius: 18px;
    background: transparent;
  }
  .pdp-config-slot:last-child { margin-bottom: 0; }
  .pdp-config-slot__label {
    padding: 0.8rem 1rem;
    background: transparent;
    border-bottom: 1px solid rgba(26, 63, 51, 0.14);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    color: var(--pd-ink);
  }
  .pdp-config-slot__index {
    width: 1.35rem;
    height: 1.35rem;
    background: var(--pd-ink);
    color: var(--pd-card);
    font-size: 0.82rem;
  }
  .pdp-config-slot > .pdp-option-list { padding: 0.8rem; }
  .pdp-legend-title .pdp-required,
  .pdp-config-slot__label .pdp-required { color: var(--pdp-accent); }

  .pdp-fieldset--unmet.pdp-fieldset[data-config-group] { border: 0; }
  .pdp-fieldset--unmet .pdp-config-slot { border-color: color-mix(in srgb, var(--pdp-accent) 45%, transparent); }
  .pdp-rule--danger {
    border-color: color-mix(in srgb, var(--pdp-accent) 35%, transparent);
    background: color-mix(in srgb, var(--pdp-accent) 12%, transparent);
    color: var(--pdp-accent);
  }
  .pdp-fieldset--required:not(.pdp-fieldset--unmet) [data-min-rule] {
    border-color: rgba(26, 63, 51, 0.25);
    background: transparent;
    color: var(--pd-ink);
  }

  .pdp-fieldset--package > .pdp-legend-bar { border-bottom-color: rgba(26, 63, 51, 0.14); }
  .pdp-fieldset--package > .pdp-legend-bar .pdp-legend-title { color: var(--pd-ink); }
  .pdp-package-item__label { color: var(--pd-ink); }
  .pdp-package-item__badge { border-color: rgba(26, 63, 51, 0.25); background: transparent; color: var(--pd-ink); }
  .pdp-option-list > li[style] {
    border: 1px solid rgba(26, 63, 51, 0.18) !important;
    border-radius: 16px !important;
    background: var(--pd-card) !important;
  }

  .pdp-option-list:has(.pdp-option--stepper) { display: flex; flex-direction: column; gap: 0.6rem; }
  .pdp-option-list:has(.pdp-option--stepper) > li:not(:last-child) { border-bottom: 0; }
  .pdp-option--stepper { border: 1px solid rgba(26, 63, 51, 0.22); border-radius: 16px; padding: 0.7rem 0.9rem; }
  .pdp-option--stepper:hover { background: var(--pd-card); border-color: rgba(26, 63, 51, 0.22); }
  .pdp-stepper--sm .pdp-stepper__btn { width: 2rem; height: 2.1rem; }

  /* ---- Quantity + add to cart ---------------------------------------------- */
  .pdp-qty-row { flex-wrap: nowrap; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
  .pdp-qty-row > label { display: none; }
  .pdp-qty-row .pdp-add-row { flex: 1; flex-basis: auto; order: 0; gap: 0; }
  .pdp-stepper { border: 1px solid var(--pd-ink); border-radius: 999px; background: transparent; }
  .pdp-stepper__btn { width: 2.6rem; height: 2.75rem; background: transparent; color: var(--pd-ink); font-weight: 700; }
  .pdp-stepper__btn:hover { background: var(--pd-ink); color: var(--pd-card); }
  .pdp-stepper__input { width: 2.4rem; height: 2.75rem; border: 0; background: transparent; color: var(--pd-ink); font-size: 0.92rem; font-weight: 700; }
  .pdp-add {
    height: 2.9rem;
    border-radius: 999px;
    background: var(--pdp-accent);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 18px rgba(26, 63, 51, 0.18);
  }
  .pdp-add svg { display: none; }
  .pdp-add:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 63, 51, 0.24); }

  /* Zoom view: the photo fills the available space (it used to show at its
     natural, often small, size), in the cream palette with round buttons. */
  .pdp-zoom-modal__figure { padding: 1.5rem 5rem; }
  .pdp-zoom-modal__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
  }
  .pdp-zoom-modal__close,
  .pdp-zoom-modal__nav {
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #123f50;
    box-shadow: 0 4px 14px rgba(15, 59, 76, 0.18);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }
  .pdp-zoom-modal__close:hover,
  .pdp-zoom-modal__nav:hover { background: var(--pdp-accent); color: #fff; }
  .pdp-zoom-modal__thumb { border-radius: 10px; overflow: hidden; border-bottom: 0; opacity: 0.6; transition: opacity 0.15s ease, box-shadow 0.15s ease; }
  .pdp-zoom-modal__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--pdp-accent); }
  @media (max-width: 640px) {
    .pdp-zoom-modal__figure { padding: 1rem 3.5rem; }
  }

  /* Photo carousel: swipe (touch) or drag (mouse), with pagination dots. */
  .pdp-media__main { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .pdp-media__main.is-dragging { cursor: grabbing; }
  .pdp-media__main img { -webkit-user-drag: none; user-drag: none; }
  /* Round arrow and zoom buttons, in the cream / green palette. */
  .pdp-media__nav,
  .pdp-media__zoom-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #F5F0E6;
    color: var(--pd-ink);
    box-shadow: 0 4px 14px rgba(26, 63, 51, 0.22);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }
  .pdp-media__nav:hover,
  .pdp-media__zoom-btn:hover { background: var(--pdp-accent); color: #fff; filter: none; }
  .pdp-media__nav svg { width: 18px; height: 18px; }
  .pdp-media__zoom-btn svg { width: 17px; height: 17px; }
  .pdp-media__nav--prev { left: auto; inset-inline-start: 0.9rem; }
  .pdp-media__nav--next { right: auto; inset-inline-end: 0.9rem; }
  .pdp-media__dots { inset-block-end: 1rem; gap: 0.45rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: rgba(26, 63, 51, 0.28); }
  .pdp-dot { width: 0.55rem; height: 0.55rem; background: rgba(255, 255, 255, 0.75); box-shadow: none; transition: background 0.15s ease, width 0.2s ease; }
  .pdp-dot.is-active { width: 1.4rem; border-radius: 999px; background: #fff; transform: none; }

  /* Extras not in this design. */
  .pdp-wishlist-btn,
  .pdp-delivery-info { display: none; }

  .pdp-quick-add { background: var(--pd-card); }

  @media (max-width: 900px) {
    .pdp-layout { grid-template-columns: 1fr; }
    .pdp-info { padding-top: 0; }
  }

  /* ===================================================================
     Fishline dish page: white page, teal accent, Playfair headings, bordered
     option cards, full-width primary add button. Kept last so it wins.
     =================================================================== */
  .pdp-page {
    --pd-ink: #123f50;
    --pd-card: #ffffff;
    --pd-muted: #5f6f78;
    --pd-line: #d3e5ea;
    --pd-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    background: var(--pd-bg);
    color: var(--pd-ink);
    padding: 1.5rem 0 1rem;
  }

  /* ---- Back link + breadcrumb ---- */
  .pdp-page .pdp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
  .pdp-page .pdp-back { margin: 0; gap: 0.4rem; font-size: 0.84rem; font-weight: 500; color: var(--pdp-accent); }
  .pdp-page .pdp-back__icon { width: auto; height: auto; background: transparent; color: inherit; box-shadow: none; border-radius: 0; }
  .pdp-page .pdp-back__icon svg { width: 12px; height: 12px; }
  .pdp-page .pdp-back:hover { opacity: 0.75; }
  .pdp-page .pdp-back:hover .pdp-back__icon { background: transparent; transform: translateX(-2px); }
  [dir="rtl"] .pdp-page .pdp-back:hover .pdp-back__icon { transform: translateX(2px); }
  .pdp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--pd-muted); }
  .pdp-crumbs a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
  .pdp-crumbs a:hover { color: var(--pdp-accent); }
  .pdp-crumbs__current { color: var(--pd-ink); }

  /* ---- Layout ---- */
  .pdp-page .pdp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--pd-line);
  }
  .pdp-page .pdp-media { position: static; }

  /* ---- Gallery ---- */
  .pdp-page .pdp-media__main {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #efe6de;
    box-shadow: none;
  }
  .pdp-page .pdp-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.7rem; }
  .pdp-page .pdp-thumb {
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .pdp-page .pdp-thumb:hover { box-shadow: 0 8px 18px rgba(15, 59, 76, 0.14); transform: translateY(-2px); }
  .pdp-page .pdp-thumb.is-active { box-shadow: 0 0 0 2px var(--pdp-accent); }
  .pdp-page .pdp-media__nav,
  .pdp-page .pdp-media__zoom-btn { background: #fff; color: var(--pd-ink); box-shadow: 0 4px 14px rgba(15, 59, 76, 0.18); }
  .pdp-page .pdp-media__nav:hover,
  .pdp-page .pdp-media__zoom-btn:hover { background: var(--pdp-accent); color: #fff; }
  .pdp-page .pdp-media__dots { background: rgba(18, 63, 80, 0.3); }

  /* ---- Story under the photos ---- */
  .pdp-story { margin-top: 1.9rem; }
  .pdp-story__waves { display: block; width: 4.5rem; height: auto; margin-bottom: 1.2rem; color: #4fc3cf; }
  .pdp-story__title { margin: 0 0 0.9rem; font-family: var(--pd-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; color: var(--pd-ink); }
  .pdp-story__desc { margin: 0; font-size: 0.86rem; line-height: 1.85; color: var(--pd-muted); }
  .pdp-story__note { margin: 1rem 0 0; font-size: 0.8rem; line-height: 1.8; color: var(--pd-muted); }
  .pdp-page .pdp-share { margin-top: 1.3rem; gap: 0.3rem 1rem; }
  .pdp-page .pdp-share__label { margin: 0; font-size: 0.78rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--pd-muted); }
  .pdp-page .pdp-share__link {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pdp-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  .pdp-page .pdp-share__link svg { display: none; }
  .pdp-page .pdp-share__link:hover { background: transparent; color: var(--pdp-accent); opacity: 0.65; transform: none; }
  .pdp-page .pdp-share__link.is-copied { background: transparent; color: var(--pdp-accent); }

  /* ---- Details column ---- */
  .pdp-page .pdp-info { padding-top: 0; }
  .pdp-page .pdp-title-row { margin: 0 0 0.9rem; }
  .pdp-eyebrow { margin: 0 0 0.9rem; font-size: 0.74rem; font-weight: 500; text-transform: uppercase; color: var(--pdp-accent); }
  .pdp-page .pdp-title { font-family: var(--pd-serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.4rem); line-height: 1.2; text-transform: none; color: var(--pd-ink); }
  .pdp-page .pdp-price-row { margin: 0 0 1.4rem; gap: 0.6rem; }
  .pdp-page .pdp-price { font-size: 0.95rem; font-weight: 700; color: var(--pd-ink); }
  .pdp-page .pdp-price-label { font-size: 0.82rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--pd-muted); }
  .pdp-page .pdp-price-compare { font-size: 0.92rem; color: #9aa8af; }
  .pdp-page .pdp-badge-save { border-radius: 6px; font-size: 0.77rem; }
  .pdp-page .pdp-form { gap: 1.1rem; padding-top: 0; border-top: 0; }

  /* dropdown / dimension pickers */
  .pdp-page .pdp-dim__label { font-size: 0.84rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--pd-ink); }
  .pdp-page .pdp-dim__value { color: var(--pdp-accent); font-weight: 600; }
  .pdp-page .pdp-select {
    height: 2.9rem;
    padding: 0 2.2rem 0 0.9rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background-color: #fff;
    color: var(--pd-ink);
    font-size: 0.86rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .pdp-page .pdp-select:hover { border-color: color-mix(in srgb, var(--pdp-accent) 45%, var(--pd-line)); }
  .pdp-page .pdp-select:focus { outline: 0; border-color: var(--pdp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pdp-accent) 14%, transparent); }
  .pdp-page .pdp-pill { border: 1px solid var(--pd-line); border-radius: 8px; background: #fff; color: var(--pd-ink); font-size: 0.84rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
  .pdp-page .pdp-pill-opt:hover + .pdp-pill { background: color-mix(in srgb, var(--pdp-accent) 6%, #fff); border-color: var(--pdp-accent); }
  .pdp-page .pdp-pill-opt:checked + .pdp-pill { background: var(--pdp-accent); border-color: var(--pdp-accent); color: #fff; }

  /* option groups */
  .pdp-page .pdp-fieldset[data-config-group],
  .pdp-page .pdp-fieldset[data-config-group]:first-of-type {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .pdp-page .pdp-legend-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0 0 0.8rem; border: 0; background: transparent; }
  .pdp-page .pdp-legend-title { font-size: 0.84rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--pd-ink); }
  .pdp-page .pdp-legend-title .pdp-required { color: var(--pdp-accent); }
  .pdp-page .pdp-rule,
  .pdp-page .pdp-rule--danger,
  .pdp-page .pdp-fieldset--required:not(.pdp-fieldset--unmet) [data-min-rule] {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--pd-muted);
  }
  .pdp-page .pdp-rule.pdp-rule--pending,
  .pdp-page .pdp-fieldset--required.pdp-fieldset--unmet .pdp-rule.pdp-rule--pending { color: #d64545; font-weight: 500; }
  .pdp-page .pdp-rule__icon { display: none; }
  .pdp-page .pdp-legend-rules { display: flex; gap: 0.5rem; }
  .pdp-page .pdp-option-list { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .pdp-page .pdp-option-list > li { flex: initial; min-width: 0; }
  .pdp-page .pdp-option-list > li:has(> label .pdp-option__media-wrap),
  .pdp-page .pdp-option-list > li:has(> .pdp-option--stepper),
  .pdp-page .pdp-fieldset--package .pdp-option-list > li { grid-column: 1 / -1; }
  .pdp-page .pdp-option-list:has(.pdp-option--stepper) { display: flex; flex-direction: column; }
  .pdp-page .pdp-option {
    align-items: flex-start;
    gap: 0.55rem;
    height: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }
  .pdp-page .pdp-option:hover { background: color-mix(in srgb, var(--pdp-accent) 4%, #fff); border-color: color-mix(in srgb, var(--pdp-accent) 55%, var(--pd-line)); }
  .pdp-page .pdp-option:has(input:checked) { background: color-mix(in srgb, var(--pdp-accent) 8%, #fff); border-color: var(--pdp-accent); }
  .pdp-page .pdp-option__tick {
    order: -1;
    width: 11px;
    height: 11px;
    margin: 0.2rem 0 0;
    border: 1px solid #8fa6af;
    background: #fff;
  }
  .pdp-page .pdp-option__tick svg { display: none; }
  .pdp-page .pdp-option:has(input:checked) .pdp-option__tick { background: var(--pdp-accent); border-color: var(--pdp-accent); box-shadow: inset 0 0 0 2px #fff; }
  .pdp-page .pdp-option__info { flex: 1; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .pdp-page .pdp-option__label { flex: initial; overflow: visible; white-space: normal; font-size: 0.84rem; font-weight: 500; color: var(--pd-ink); }
  .pdp-page .pdp-option:has(input:checked) .pdp-option__label { color: var(--pd-ink); font-weight: 500; }
  .pdp-page .pdp-option__extra,
  .pdp-page .pdp-option__price { font-size: 0.74rem; font-weight: 400; color: var(--pd-muted); }
  .pdp-page .pdp-option:has(input:checked) .pdp-option__extra { color: var(--pd-muted); }
  .pdp-page .pdp-option--stepper { align-items: center; border: 1px solid var(--pd-line); border-radius: 8px; }
  .pdp-page .pdp-option-list > li[style] { border: 1px solid var(--pd-line) !important; border-radius: 8px !important; background: #fff !important; }

  /* quantity + add to cart */
  .pdp-page .pdp-qty-row { flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 0.5rem; }
  .pdp-page .pdp-qty-row .pdp-add-row { flex: 1 1 100%; order: 1; }
  .pdp-page .pdp-stepper { order: 0; border: 1px solid var(--pd-line); border-radius: 8px; background: #fff; }
  .pdp-page .pdp-stepper__btn { width: 2.3rem; height: 2.4rem; background: transparent; color: var(--pdp-accent); font-size: 0.9rem; font-weight: 500; border-radius: 8px; transition: background-color 0.2s ease; }
  .pdp-page .pdp-stepper__btn:hover { background: color-mix(in srgb, var(--pdp-accent) 8%, #fff); color: var(--pdp-accent); }
  .pdp-page .pdp-stepper__input { width: 2.2rem; height: 2.4rem; font-size: 0.9rem; font-weight: 500; color: var(--pd-ink); }
  .pdp-page .pdp-add {
    width: 100%;
    height: 3rem;
    gap: 1.4rem;
    border-radius: 8px;
    background: var(--pdp-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 1px 2px rgba(15, 59, 76, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }
  .pdp-page .pdp-add svg { display: block; flex-shrink: 0; transition: transform 0.2s ease; }
  .pdp-page .pdp-add:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--pdp-accent) 88%, #000);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--pdp-accent) 35%, transparent);
    transform: translateY(-1px);
  }
  .pdp-page .pdp-add:hover svg { transform: translate(2px, -2px); }
  .pdp-quick-add .pdp-add svg { display: none; }
  .pdp-page .pdp-quick-add { background: #fff; }

  /* ---- Detail pass: sizes and finishes from the design ---- */
  .pdp-page .pdp-media__main { border-radius: 16px; }
  .pdp-page .pdp-thumb { aspect-ratio: 2.4 / 1; border-radius: 12px; }
  /* thumbnails: swipeable row, two in view, snaps; drag with mouse, swipe on touch */
  .pdp-page .pdp-thumbs {
    display: flex !important;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }
  .pdp-page .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-page .pdp-thumbs.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .pdp-page .pdp-thumbs.is-dragging .pdp-thumb { pointer-events: none; }
  .pdp-page .pdp-thumb { flex: 0 0 calc((100% - 0.6rem) / 2); scroll-snap-align: start; }
  .pdp-page .pdp-thumb img { -webkit-user-drag: none; user-select: none; }
  .pdp-page .pdp-thumb img { transition: transform 0.5s ease; }
  .pdp-page .pdp-thumb:hover img { transform: scale(1.06); }
  .pdp-page .pdp-title-row { display: block; }
  .pdp-page .pdp-option__tick { width: 8px; height: 8px; }
  /* choice cards sit directly in the grid; an item's sub-groups open full-width right under it */
  .pdp-page .pdp-option-list > li:has(> label.pdp-option--selection),
  .pdp-page .pdp-option-list > li:has(> label.pdp-option--modifier) { display: contents; }
  .pdp-page .pdp-option { height: auto; align-self: stretch; }
  .pdp-page .pdp-option, .pdp-page .pdp-config-nested, .pdp-page .pdp-info, .pdp-page .pdp-media { min-width: 0; }
  .pdp-page .pdp-layout > * { min-width: 0; }
  .pdp-page .pdp-option-list > li > .pdp-config-nested {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 1rem;
    margin: 0.1rem 0 0.4rem;
    padding: 1rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pdp-accent) 4%, #fff);
  }
  .pdp-page .pdp-config-nested .pdp-fieldset[data-config-group] { margin: 0; }
  .pdp-page .pdp-config-nested .pdp-option { background: #fff; }
  .pdp-page .pdp-config-nested .pdp-option:has(input:checked) { background: color-mix(in srgb, var(--pdp-accent) 8%, #fff); }
  /* thumbnail ring drawn inside the tile so the scroller can't clip it */
  .pdp-page .pdp-thumb.is-active,
  .pdp-page .pdp-thumb:hover { box-shadow: none; }
  .pdp-page .pdp-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; pointer-events: none; transition: border-color 0.2s ease; }
  .pdp-page .pdp-thumb.is-active::after { border-color: var(--pdp-accent); }
  .pdp-page .pdp-thumb { border: 0; }
  @media (min-width: 901px) { .pdp-page .pdp-thumb { aspect-ratio: 1.55 / 1; border-radius: 14px; } .pdp-page .pdp-thumbs { gap: 0.8rem; margin-top: 0.8rem; } .pdp-page .pdp-thumb { flex-basis: calc((100% - 0.8rem) / 2); } }
  .pdp-page .pdp-thumbs { gap: 0.6rem; margin-top: 0.6rem; }
  .pdp-page .pdp-title { font-size: clamp(2.1rem, 3.8vw, 2.7rem); }
  .pdp-page .pdp-price { font-size: 1.1rem; }
  .pdp-eyebrow { font-size: 0.72rem; }
  .pdp-crumbs { font-size: 0.74rem; }

  /* dropdown with chevron, and a divider under the variant picker */
  .pdp-page .pdp-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23137f9d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
  }
  [dir="rtl"] .pdp-page .pdp-select { background-position: left 1rem center; padding-inline: 2.2rem 0.9rem; }
  .pdp-page .pdp-fieldset[data-variant-picker] {
    margin: 0;
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid var(--pd-line);
    border-radius: 0;
    background: transparent;
  }
  .pdp-page .pdp-fieldset[data-variant-picker] legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .pdp-page .pdp-dim__label { margin-bottom: 0.6rem; font-weight: 500; }

  /* option group header + cards */
  .pdp-page .pdp-legend-title { font-weight: 600; }
  .pdp-page .pdp-legend-bar { padding-bottom: 0.7rem; }
  .pdp-page .pdp-option { min-height: 4.1rem; padding: 0.8rem 0.85rem; }
  .pdp-page .pdp-option__label { font-size: 0.8rem; line-height: 1.3; }
  .pdp-page .pdp-option__extra, .pdp-page .pdp-option__price { font-size: 0.72rem; }
  .pdp-page .pdp-option__info { gap: 0.55rem; }
  .pdp-page .pdp-option__tick { width: 9px; height: 9px; margin-top: 0.15rem; border-width: 1px; border-color: var(--pd-ink); }
  .pdp-page .pdp-option:has(input:checked) .pdp-option__tick { background: var(--pdp-accent); border-color: var(--pdp-accent); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--pdp-accent); }
  .pdp-page .pdp-fieldset[data-config-group] + .pdp-fieldset[data-config-group] { margin-top: 0.4rem; }
  .pdp-page .pdp-form { gap: 1.25rem; }
  .pdp-page .pdp-qty-row { margin-top: 0.4rem; }
  .pdp-page .pdp-stepper { width: 6.6rem; justify-content: space-between; }

  /* ---- Forced option-group design (selection slots, modifiers) ---- */
  .pdp-page .pdp-fieldset[data-config-group] { display: block; min-width: 0; }
  .pdp-page .pdp-config-slot { margin: 0 0 0.9rem; border: 0; border-radius: 0; background: transparent; }
  .pdp-page .pdp-config-slot__label { padding: 0 0 0.6rem; border: 0; background: transparent; font-size: 0.78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pd-muted); }
  .pdp-page .pdp-config-slot__index { display: none; }
  .pdp-page .pdp-config-slot > .pdp-option-list { padding: 0; }
  .pdp-page .pdp-fieldset--unmet .pdp-config-slot { border: 0; }
  .pdp-page .pdp-fieldset--unmet.pdp-fieldset[data-config-group] { border: 0; }
  /* every choice is a compact 3-up card, with no photo */
  .pdp-page .pdp-option-list > li:has(> label.pdp-option--selection),
  .pdp-page .pdp-option-list > li:has(> label.pdp-option--modifier),
  .pdp-page .pdp-option-list > li:has(> label .pdp-option__media-wrap) { grid-column: auto; }
  .pdp-page .pdp-option--selection .pdp-option__media-wrap,
  .pdp-page .pdp-option--modifier .pdp-option__media-wrap { display: none; }
  .pdp-page .pdp-option--selection,
  .pdp-page .pdp-option--modifier { width: 100%; box-sizing: border-box; cursor: pointer; }
  .pdp-page .pdp-option-list > li > .pdp-config-nested { grid-column: 1 / -1; }
  .pdp-page .pdp-option--package { border-radius: 8px; }
  .pdp-page .pdp-option__tick { display: block; position: relative; flex-shrink: 0; margin-inline-start: 0; }
  /* keep every choice visible once one is picked (radio groups), like the design */
  .pdp-page .pdp-fieldset .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked) > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)),
  .pdp-page .pdp-config-slot > .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked) > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)) { display: contents !important; }
  .pdp-page .pdp-fieldset[data-kind="modifier"][data-min="1"][data-max="1"] > .pdp-option-list:has(> li > label > .pdp-option__input[type="radio"]:checked) > li:not(:has(> label > .pdp-option__input[type="radio"]:checked)) .pdp-option { opacity: 1; cursor: pointer; pointer-events: auto; }
  @media (max-width: 900px) {
    .pdp-page .pdp-layout { grid-template-columns: 1fr; }
    .pdp-page .pdp-option-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 480px) {
    .pdp-page .pdp-option-list { grid-template-columns: 1fr; }
  }
