@import url('../tokens.css');
@import url('./product-action-pills.css?v=20260604-saved-label1');

body.page[data-listing-page-live="1"] {
  background: var(--color-page-bg);
  --listing-sticky-header-height: calc(73px * var(--scale));
  --listing-product-column-gap: 10px;
}

@media (min-width: 721px) {
  body.page[data-listing-page-live="1"] {
    padding-top: 98px;
  }

  body.page[data-listing-page-live="1"] .fixed-header,
  body.page[data-listing-page-live="1"] .fixed-header::before {
    height: calc(73px * var(--scale)) !important;
  }

  body.page[data-listing-page-live="1"] .fixed-header .header-desktop-shell {
    height: 73px;
  }

  body.page[data-listing-page-live="1"] .fixed-header .header-desktop-nav,
  body.page[data-listing-page-live="1"] .fixed-header .header-desktop-divider {
    display: none !important;
  }
}

/* Gift Assistant desktop dock: the panel slides in on the right and the page
   compresses beside it (site-wide is-ai-panel-open infra). Listing locks its
   header (position:absolute, right:0), so re-narrow it here, and reserve the
   panel width on the listing content columns so nothing sits under the dock. */
@media (min-width: 981px) {
  body.page[data-listing-page-live="1"].is-ai-panel-open {
    overflow-x: clip;
  }

  body.page[data-listing-page-live="1"].is-ai-panel-open.is-header-position-locked .fixed-header {
    right: var(--lume-panel-reserve, 360px) !important;
  }

  body.page[data-listing-page-live="1"].is-ai-panel-open .listing-page > .container {
    margin-left: auto;
    margin-right: calc(var(--lume-panel-reserve, 360px) + 15px - clamp(0px, calc(2160px - 100vw), var(--lume-panel-reserve, 360px)));
  }
}

@media (max-width: 760px) {
  body.page[data-listing-page-live="1"] {
    --listing-sticky-header-height: 68px;
    padding-top: calc(var(--listing-sticky-header-height) + 15px);
  }

  body.page[data-listing-page-live="1"] .fixed-header .header-tablet-nav {
    display: none !important;
  }

  /* listing-page imports the shared product-action pills after
     listing-detail-card.css, so the compact mobile listing actions need
     to be re-anchored here to avoid falling back to the desktop 50px pills. */
  body.page[data-listing-page-live="1"] .listing-detail-card__mobile-board,
  body.page[data-listing-page-live="1"] .listing-detail-card__mobile-save {
    height: 44px;
    min-height: 44px;
    flex: 0 0 auto;
  }

  body.page[data-listing-page-live="1"] .listing-detail-card__mobile-board {
    --product-action-board-height: 44;
    --product-action-board-min-width: 136;
    --product-action-board-max-width: 136;
    --product-action-board-pad-x: 13;
    --product-action-board-gap: 8;
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    justify-content: center;
  }

  body.page[data-listing-page-live="1"] .listing-detail-card__mobile-save {
    --product-action-save-height: 44;
    --product-action-save-min-width: 102;
    --product-action-save-pad-x: 13;
    width: 102px;
    min-width: 102px;
  }
}

.listing-page {
  display: flex;
  flex-direction: column;
  padding-bottom: 96px;
  background: var(--color-page-bg);
}

.listing-page__breadcrumbs {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

/* Header (top of page): short — home icon + parent → leaf category.
   marketplace-style "where am I from" link, not a full SEO chain.
   margin-top:0 keeps the rail governed by body padding, which is tuned to
   leave the compact mobile rail 15px below the fixed header. */
.listing-page__breadcrumbs--header {
  margin-top: 0;
}
.listing-page__breadcrumbs--header .crumbs {
  width: 100%;
}
.listing-page__breadcrumbs--header .crumbs__track {
  max-width: calc(100% - 41px);
}

/* Footer (above site-footer): full route incl. product title. */
.listing-page__breadcrumbs--footer {
  margin-top: 56px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.listing-page__breadcrumbs--footer .crumbs {
  margin-inline: 0;
  justify-content: flex-start;
}
.listing-page__breadcrumbs--footer .crumbs__pill--current {
  /* Listing title can be long — let the track scroll horizontally on overflow. */
  max-width: none;
  white-space: nowrap;
}

.listing-page__product-shell {
  margin-top: 20px;
}

.listing-page__back-results {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--color-ink);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.listing-page__back-results[hidden] {
  display: none !important;
}

.listing-page__back-results:hover,
.listing-page__back-results:focus-visible {
  color: var(--color-ink);
  background: transparent;
  border-color: transparent;
  outline: none;
}

.listing-page__back-results:focus-visible {
  box-shadow: 0 0 0 2px var(--color-ink);
}

.listing-page__back-results-icon {
  width: 17px;
  height: 10px;
  flex: 0 0 17px;
  transform: scaleX(-1);
  transition: transform .2s ease;
}

.listing-page__back-results:hover .listing-page__back-results-icon,
.listing-page__back-results:focus-visible .listing-page__back-results-icon {
  transform: translateX(-3px) scaleX(-1);
}

/* Icon-only twin of the back link living inside the header breadcrumbs row.
   Desktop keeps the standalone text link; mobile (≤760px) swaps them. */
.listing-page__back-results--crumb {
  display: none;
}

.listing-page__product-topbar {
  width: 100%;
  min-height: 60px;
  position: relative;
  position: sticky;
  top: var(--listing-sticky-header-height, 73px);
  z-index: 140;
  background: var(--color-page-bg);
  box-sizing: border-box;
  overflow: visible;
  isolation: isolate;
}

.listing-page__product-topbar::before {
  /* Full-bleed bg: spans to the parent's edges (full-body-width)
     instead of 100vw — correct with an assistant-compressed body. */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-page-bg);
  z-index: -2;
}

.listing-page__product-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #c9d2ca;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.18s ease;
}

body.page[data-listing-page-live="1"].is-listing-topbar-docked .listing-page__product-topbar::after {
  opacity: 1;
}

.listing-page__product-topbar-main {
  position: absolute;
  top: 8px;
  left: 0;
  width: 850px;
  box-sizing: border-box;
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.listing-page__product-topbar-pill,
.listing-page__product-topbar-buy {
  height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.listing-page__product-topbar-pill {
  background: #eee5da;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13px;
}

.listing-page__product-topbar-pill--active {
  width: 157px;
  background: #e1d1bc;
}

.listing-page__product-topbar-pill:not(.listing-page__product-topbar-pill--active) {
  background: #eee5da;
}

.listing-page__product-topbar-pill:nth-child(2) {
  width: 176px;
}

.listing-page__product-topbar-pill--reviews {
  width: 106px;
}

.listing-page__product-topbar-buy {
  width: 132px;
  margin-left: auto;
  background: var(--color-page-bg);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.listing-page__product-topbar-pill:hover,
.listing-page__product-topbar-pill:focus-visible {
  background: #eadfce;
}

.listing-page__product-topbar-pill--active:hover,
.listing-page__product-topbar-pill--active:focus-visible {
  background: #dcc8ae;
}

.listing-page__product-topbar-buy:hover,
.listing-page__product-topbar-buy:focus-visible {
  background: var(--color-sand);
  box-shadow: var(--shadow-card-hover);
}

.listing-page__product-topbar-pill:focus-visible,
.listing-page__product-topbar-buy:focus-visible {
  outline: 1px solid rgba(35, 32, 48, 0.7);
  outline-offset: 0;
}

.listing-page__product-topbar-side-title {
  position: absolute;
  top: 19px;
  left: calc(860px + var(--listing-product-column-gap));
  right: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  justify-content: center;
  text-align: center;
}

.listing-page__product-grid {
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(320px, 1fr);
  align-items: start;
  justify-content: start;
  gap: var(--listing-product-column-gap);
}

@media (min-width: 761px) {
  .listing-page__product-shell:has(.listing-page__back-results:not([hidden])) .listing-page__product-grid {
    margin-top: -12px;
  }
}

.listing-page__primary-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.listing-page__similar-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 10px;
  box-sizing: border-box;
}

.listing-page__similar-heading {
  position: static;
  width: auto;
  height: auto;
  padding: 0 4px 6px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.listing-page__similar-heading h2 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading, var(--font-body));
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.listing-page__similar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.listing-page__recently {
  margin-top: 56px;
}

@media (min-width: 1201px) {
  /* In affiliate / partner mode the right column is a solid grid that flows
     with the page — NOT a scrollable sticky pane. Marketplace mode uses the
     sticky buy box instead of the partner-only similar rail. */
  body:not([data-native-commerce="1"]) .listing-page__similar-column {
    position: static;
    max-height: none;
    overflow: visible;
    gap: 0;
    padding-top: 4px;
  }
  body:not([data-native-commerce="1"]) .listing-page__similar-heading {
    padding-bottom: 4px;
  }
  body[data-native-commerce="1"] .listing-page__similar-column {
    display: none !important;
  }
}

body.page[data-listing-page-live="1"].is-listing-marketplace-mode .listing-page__similar-column {
  display: none !important;
}

@media (max-width: 1200px) {
  .listing-page__product-shell {
    margin-top: 20px;
  }

  .listing-page__product-topbar {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  }

  .listing-page__product-topbar-main {
    position: static;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .listing-page__product-topbar-side-title {
    position: static;
    display: none;
  }

  .listing-page__product-grid {
    grid-template-columns: 1fr;
  }

  .listing-page__similar-column {
    padding-top: 0;
    margin-top: 12px;
  }

  .listing-page__similar-heading {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
  }
}

@media (max-width: 760px) {
  .listing-page {
    padding-bottom: 64px;
  }

  .listing-page__breadcrumbs {
    margin-top: 0;
  }

  .listing-page__product-shell {
    margin-top: 12px;
    width: auto;
    max-width: none;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* Mobile: the standalone text back-link collapses into the icon-only
     arrow sitting on the breadcrumbs row (left of the home pill). */
  .listing-page__product-shell > .listing-page__back-results {
    display: none !important;
  }

  .listing-page__back-results--crumb:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
  }

  .listing-page__back-results--crumb .listing-page__back-results-icon {
    width: 20px;
    height: 12px;
    flex: 0 0 20px;
  }

  .listing-page__breadcrumbs--header {
    gap: 8px;
  }

  .listing-page__breadcrumbs--header .crumbs {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .listing-page__product-grid {
    margin-top: 0;
  }

  /* Full-bleed gallery: the hero cancels the 10px shell margin + 10px card
     padding on each side and the 16px card top padding, dropping its rounded
     corners so media runs edge-to-edge. Card overflow must be visible for
     the negative margins to escape the rounded card box. */
  .listing-detail-card {
    overflow: visible;
  }

  .listing-detail-card__hero {
    width: calc(100% + 40px);
    max-width: none;
    margin: -16px -20px 0;
    border-radius: 0;
  }

  .listing-page__product-topbar {
    min-height: 0;
    gap: 10px;
  }

  .listing-page__product-topbar-main {
    gap: 10px;
  }

  .listing-page__product-topbar-pill,
  .listing-page__product-topbar-buy {
    height: 42px;
    width: auto;
    min-width: 0;
    padding-inline: 14px;
    font-size: 13px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .listing-page__similar-heading h2 {
    font-size: 19px;
    letter-spacing: -0.4px;
  }

  .listing-page__recently {
    margin-top: 40px;
  }

  /* Sticky CTA-bar on mobile: topbar pinned to bottom (above tab-bar) so the
     Buy button is always one tap away while scrolling the listing. */
  .listing-page__product-topbar {
    position: fixed;
    top: auto;
    bottom: calc(72px + max(8px, env(safe-area-inset-bottom)));
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    width: auto;
    border-radius: 18px;
    padding: 8px;
    background: rgba(248, 241, 235, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(35, 32, 48, 0.16);
    z-index: 19;
  }

  .listing-page__product-topbar::before,
  .listing-page__product-topbar::after {
    display: none;
  }

  /* Reserve room at the bottom of the page so content doesn't sit under the
     sticky CTA + tab-bar (~140px stack on mobile) */
  .listing-page {
    padding-bottom: 156px !important;
  }
}

@media (max-width: 460px) {
  .listing-page__product-topbar-pill,
  .listing-page__product-topbar-buy {
    padding-inline: 11px;
    font-size: 12px;
  }
}


/* === Listing detail card — screenshot-spec design === */
.listing-page__product-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.listing-page__trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.listing-page__trust-badge-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
}
.listing-page__trust-badge-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-alert-red);
  line-height: 1.25;
  margin-bottom: 1px;
}
.listing-page__trust-badge-sub {
  font-size: 13px;
  color: var(--color-alert-red);
  line-height: 1.3;
}

.listing-page__product-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.listing-page__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.listing-page__price-new {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-forest);
  line-height: 1.15;
}
.listing-page__price-old {
  font-size: 14px;
  color: var(--color-ink-soft);
  text-decoration: line-through;
}
.listing-page__price-sale {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-alert-soft, #FBE8E8);
  color: var(--color-alert-red, #b91515);
  font-size: 12px;
  font-weight: 700;
}

.listing-page__seller-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.listing-page__seller-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 22px;
  display: block;
}
.listing-page__seller-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}
body.is-jedipic-official-shop .listing-page__seller-name,
body.is-jedipic-official-shop .listing-page__partner-meta-shop,
body.is-jedipic-official-shop .listing-page__sticky-buy-eyebrow,
body.is-jedipic-official-shop .seller-contact__name,
body.is-jedipic-official-shop .seller-contact__panel-name {
  color: var(--color-forest);
}
.listing-page__seller-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
/* "JediPic Picks" and similar are CURATION labels, NOT shops. When a curated
   placeholder pick opens as a listing there is no real seller yet, so hide the
   whole seller cluster + contact widget rather than showing a fake shop pill.
   Toggled by listing-live-product.js (body.is-listing-no-shop). */
body.is-listing-no-shop .listing-page__seller-line,
body.is-listing-no-shop .listing-page__store-pill,
body.is-listing-no-shop .listing-page__partner-meta-shoplink,
body.is-listing-no-shop .seller-contact {
  display: none !important;
}
.listing-page__seller-stars {
  color: var(--color-ink);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.listing-page__variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.listing-page__variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-page__variant-chip,
.listing-page__variant-swatch {
  min-height: 44px;
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  border-radius: 999px;
  background: var(--color-sand);
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.listing-page__variant-chip {
  padding: 0 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.listing-page__variant-swatch {
  width: 44px;
  min-width: 44px;
  padding: 0;
  box-shadow: inset 0 0 0 4px var(--color-cream);
}

.listing-page__variant-chip:hover,
.listing-page__variant-chip:focus-visible,
.listing-page__variant-swatch:hover,
.listing-page__variant-swatch:focus-visible {
  border-color: rgba(35, 32, 48, 0.36);
  box-shadow: var(--shadow-card-hover);
}

.listing-page__variant-chip.is-selected,
.listing-page__variant-swatch.is-selected {
  border-color: var(--color-forest);
}

.listing-page__variant-chip.is-selected {
  background: var(--color-forest);
  color: var(--color-cream);
}

.listing-page__variant-swatch.is-selected {
  box-shadow: inset 0 0 0 4px var(--color-cream), 0 0 0 2px var(--color-forest);
}

.listing-page__variant-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-page__variant-select-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 600;
}
.listing-page__variant-translate {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  border: 0;
  padding: 0;
  background: var(--color-forest);
  -webkit-mask: url("/assets/icons/listing/globe-translate.svg") center / contain no-repeat;
  mask: url("/assets/icons/listing/globe-translate.svg") center / contain no-repeat;
  cursor: pointer;
  transition: opacity 0.16s ease;
}
.listing-page__variant-translate:hover,
.listing-page__variant-translate:focus-visible { opacity: 0.72; outline: 0; }
.listing-page__variant-select-input {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 999px;
  background-color: var(--color-sand);
  background-image: url('../../assets/icons/listing/dropdown-arrow.svg');
  background-position: right 16px center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  color: var(--color-ink);
  caret-color: var(--color-forest);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 40px 11px 16px;
  min-height: 44px;
  cursor: pointer;
}
.listing-page__variant-select-input:focus {
  outline: 2px solid rgba(35, 32, 48, 0.16);
  outline-offset: 2px;
}

.listing-page__quantity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.listing-page__quantity-label {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 700;
}

.listing-page__quantity-stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(76px, 1fr) 44px;
  align-items: center;
  width: min(100%, 240px);
  min-height: 44px;
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  border-radius: 999px;
  background: var(--color-sand);
  overflow: hidden;
}

.listing-page__quantity-btn,
.listing-page__quantity-input {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
}

.listing-page__quantity-btn {
  width: 44px;
  cursor: pointer;
}

.listing-page__quantity-btn:hover,
.listing-page__quantity-btn:focus-visible {
  background: rgba(35, 32, 48, 0.06);
  outline: none;
}

.listing-page__quantity-input {
  min-width: 0;
  width: 100%;
  text-align: center;
  outline: none;
}

.listing-page__description-toggle,
.listing-page__maker-btn {
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
}

.listing-page__description-toggle {
  border: 0;
  background: transparent;
  color: var(--color-forest);
  padding: 0 2px;
}

.listing-page__maker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.listing-page__maker-btn {
  border: 0;
  background: var(--color-forest);
  color: var(--color-cream);
  outline: 1px solid var(--color-forest-dark);
  outline-offset: -1px;
  padding: 0 18px;
  font-size: 13px;
}

.listing-page__maker-btn--ghost {
  background: var(--color-page-bg);
  color: var(--color-ink);
}

.listing-page__maker-btn:hover,
.listing-page__maker-btn:focus-visible {
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

@media (max-width: 640px) {
  .listing-page__quantity-stepper {
    width: 100%;
  }

  .listing-page__maker-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* === Personalize details (expandable marketplace pattern) === */
/* "Add personalization" belongs to the FIELD family (variant selects, qty):
   closed = a pill with the ONE unified control outline
   (var(--popup-control-border) — same as "Choose an option" above it);
   open = the pill unrolls DOWNWARD into a rounded card with the same
   outline colour and matching corner radius. No sand header plate. */
.listing-page__personalize {
  margin-top: 6px;
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 999px;
  background: var(--color-cream);
  transition: border-radius 0.18s ease;
}
.listing-page__personalize[open] {
  border-radius: 23px;
}
.listing-page__personalize-summary {
  list-style: none;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 0.16s ease;
}
.listing-page__personalize-summary:hover,
.listing-page__personalize-summary:focus-visible {
  background: var(--filter-pill-bg, #eee5da);
}
.listing-page__personalize[open] .listing-page__personalize-summary {
  border-radius: 21px 21px 0 0;
}
.listing-page__personalize[open] .listing-page__personalize-summary:hover,
.listing-page__personalize[open] .listing-page__personalize-summary:focus-visible {
  background: transparent;
}
.listing-page__personalize-summary:focus-visible { outline: 0; }
.listing-page__personalize-summary::-webkit-details-marker { display: none; }
.listing-page__personalize-plus {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  transition: transform 0.18s ease;
}
.listing-page__personalize[open] .listing-page__personalize-plus {
  transform: rotate(45deg);
}
.listing-page__personalize-label {
  letter-spacing: -0.005em;
}
.listing-page__personalize-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-soft);
  letter-spacing: 0.02em;
}
.listing-page__personalize-status[data-state="ready"] {
  color: #3F6A60;
}

.listing-page__personalize-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 18px 18px;
}
.listing-page__personalize-hint {
  margin: 0;
  font-size: 12px;
  color: var(--color-ink-soft);
  line-height: 1.45;
}
.listing-page__personalize-instructions {
  padding: 12px 14px;
  background: var(--popup-bg-soft, #F8F1EB);
  border: 1px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-page__personalize-seller-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.listing-page__personalize-seller-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink);
}
.listing-page__personalize-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.listing-page__personalize-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.listing-page__personalize-textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 14px;
  background: var(--color-sand);
  color: var(--color-ink);
  caret-color: var(--color-forest);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  min-height: 96px;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.listing-page__personalize-textarea:focus {
  border-color: var(--color-ink);
}
.listing-page__personalize-counter {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: var(--color-ink-soft);
  background: rgba(248, 241, 235, 0.92);
  padding: 2px 6px;
  border-radius: 999px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.listing-page__personalize-counter[data-state="warning"] { color: #b91515; }
.listing-page__personalize-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Canonical grow: the ink fill scales via ::before, label stays put — same
   pattern as .listing-page__cta / .listing-page__sticky-buy-cta. */
.listing-page__personalize-save {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--color-page-bg);
  border-radius: 999px;
  padding: 11px 22px;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
.listing-page__personalize-save::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-ink);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__personalize-save:hover::before,
.listing-page__personalize-save:focus-visible::before {
  transform: scale(var(--hover-grow-scale, 1.035));
}
.listing-page__personalize-cancel {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0 12px;
  min-height: 44px;
}

.listing-page__qty-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.listing-page__qty-label {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 600;
}
.listing-page__qty-input-wide {
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 999px;
  background: var(--color-sand);
  color: var(--color-ink);
  caret-color: var(--color-forest);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  min-height: 44px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.listing-page__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.listing-page__cta {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.16s ease;
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: transparent;
}
/* Save-button hover: a background layer scales via ::before while the label
   stays pixel-stable (no text jitter). */
.listing-page__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.22s ease;
}
.listing-page__cta:hover::before,
.listing-page__cta:focus-visible::before {
  transform: scale(1.035);
}
.listing-page__cta:active::before {
  transform: scale(0.99);
}
.listing-page__cta--primary {
  color: var(--color-page-bg);
}
/* Buy button is INK (Etsy-style black). No glow/shadow, no light sweep — the
   only hover feedback is the canonical ::before scale shared by all CTAs. */
.listing-page__cta--primary::before { background: var(--color-ink); }

@media (prefers-reduced-motion: reduce) {
  .listing-page__cta::before {
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.22s ease;
  }
  .listing-page__cta:hover::before,
  .listing-page__cta:focus-visible::before,
  .listing-page__cta:active::before {
    transform: none;
  }
  .listing-page__price-sale {
    animation: none;
  }
  .listing-page__store-pill:hover,
  .listing-page__store-pill:focus-visible,
  .listing-page__store-pill:hover .listing-page__store-pill-icon-wrap,
  .listing-page__store-pill:focus-visible .listing-page__store-pill-icon-wrap {
    transform: none;
  }
}
.listing-page__cta--outline {
  color: var(--color-ink);
}
.listing-page__cta--outline::before { border: 1.5px solid rgba(35, 32, 48, 0.32); }
.listing-page__cta--outline:hover::before { border-color: var(--color-ink); }
.listing-page__cta--ghost {
  color: var(--color-ink);
}
.listing-page__cta--ghost::before { border: 1.5px solid rgba(35, 32, 48, 0.32); }
.listing-page__cta--ghost:hover::before,
.listing-page__cta--ghost:focus-visible::before { border-color: var(--color-ink); }
.listing-page__cta--cart {
  flex: 0 0 auto;
  padding-inline: 18px;
}

body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__trust-badge,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__variant-grid,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__personalize,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__qty-block,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__action-row,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__star-seller-card,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__translate-note,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__policy-accordion,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__protection,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__shop-policies-cta,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__product-topbar-buy,
body.page[data-listing-page-live="1"].is-listing-partner-mode .seller-contact,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__qa,
body.page[data-listing-page-live="1"].is-listing-partner-mode #listingQA,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__review-photos,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__reviews-zone {
  display: none !important;
}

/* Partner Highlights: hide the block only when the feed gave us no real spec
   rows (applyLiveSpecs sets data-jp-has-specs). Static demo keeps its rows. */
.listing-page__specs[data-jp-has-specs="0"] {
  display: none !important;
}

body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__trust-badge,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__variant-grid,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__personalize,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__qty-block,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__action-row,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__star-seller-card,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__policy-accordion,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__protection,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__shop-policies-cta,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__product-topbar-buy,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__review-photos,
body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__reviews {
  display: none !important;
}

body.page[data-listing-page-live="1"].is-listing-native-actions-disabled .listing-page__reviews-zone[data-reviews-state] [data-reviews-empty] {
  display: flex !important;
}

body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__product-detail {
  gap: 12px;
}

body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__seller-line {
  margin-top: 0;
}

/* === Partner listing polish (2026-07-03) ===============================
   Affiliate listings drop the big plate behind the detail column and show
   a card-style store pill instead of the avatar seller line. */
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__product-detail {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Store pill — one clean coloured capsule (icon disc + name). Neutral sand
   fallback for unknown merchants; JS paints the merchant colour. */
.listing-page__store-pill {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 3px 14px 3px 4px;
  border-radius: 999px;
  background: #eee5da;
  color: var(--color-ink);
  text-decoration: none;
  /* No transform on hover: the old translateY(-1px) + icon scale(1.09) made the
     pill visibly JUMP/jitter on hover (Steven 2026-07-13). Keep a calm, static
     hover — brightness + a soft shadow only, nothing that moves. */
  transition:
    filter 0.16s ease,
    box-shadow 0.2s ease;
}
.listing-page__store-pill:hover,
.listing-page__store-pill:focus-visible {
  filter: brightness(0.97);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-ink) 14%, transparent);
}
.listing-page__store-pill-icon-wrap {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Neutral fallback: tint the icon disc so the ink glyph stays visible. */
.listing-page__store-pill:not([style*="background"]) .listing-page__store-pill-icon-wrap {
  background: rgba(35, 32, 48, 0.08);
}
.listing-page__store-pill-icon {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
}
.listing-page__store-pill-name {
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seller rating (gold star + value + count) — partner mode only. */
.listing-page__seller-rating {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-ink-soft);
}
.listing-page__seller-rating-star {
  width: 14px;
  height: 14px;
  display: block;
}
.listing-page__seller-rating-value {
  font-weight: 700;
  color: var(--color-ink);
}

/* Partner mode: pill + stars + rating replace avatar / name / badge. */
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__store-pill:not([hidden]) {
  display: inline-flex;
}
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__seller-rating {
  display: inline-flex;
}
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__seller-avatar,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__seller-badge,
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__seller-stars {
  display: none;
}
body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__store-pill:not([hidden]) ~ .listing-page__seller-name {
  display: none;
}


.listing-page__star-seller-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(63, 106, 96, 0.06);
  border: 1px solid rgba(63, 106, 96, 0.18);
  border-radius: 14px;
}
.listing-page__star-seller-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
}
.listing-page__star-seller-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 2px;
}
.listing-page__star-seller-text {
  font-size: 12px;
  color: var(--color-ink);
  line-height: 1.45;
}

.listing-page__details-accordion {
  margin-top: 8px;
  border: 0;
  border-radius: 0;
}
/* Toggle: page-coloured by default (no border); a sand pill that GROWS on
   hover via a ::before scale layer — no text jitter. */
.listing-page__details-summary {
  position: relative;
  isolation: isolate;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  min-height: 44px;
}
.listing-page__details-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: transparent;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__details-summary:hover::before,
.listing-page__details-summary:focus-visible::before {
  background: var(--filter-pill-bg, #eee5da);
  transform: scale(1.015);
}
.listing-page__details-summary:focus-visible { outline: 0; }
.listing-page__details-summary::-webkit-details-marker { display: none; }
.listing-page__details-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
  display: block;
}
.listing-page__details-accordion[open] .listing-page__details-chevron { transform: rotate(180deg); }
.listing-page__details-body {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink);
}
.listing-page__details-body p { margin: 0 0 8px; }
.listing-page__details-body p:last-child { margin-bottom: 0; }

.listing-page__specs { margin-top: 16px; }
.listing-page__specs-heading {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.listing-page__specs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.listing-page__specs-row {
  display: grid;
  grid-template-columns: 24px auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-ink);
  min-height: 24px;
}
@media (max-width: 420px) {
  /* Narrow phones: long values like "Premium cardstock, lamination, linen
     texture" don't fit alongside the label in a 3-col grid. Drop to a
     2-row stack: [icon] [label] on row 1, value on row 2. */
  .listing-page__specs-row {
    grid-template-columns: 20px 1fr;
    column-gap: 8px;
    row-gap: 2px;
    align-items: start;
  }
  .listing-page__specs-icon { width: 20px; height: 20px; }
  .listing-page__specs-value,
  .listing-page__specs-link { grid-column: 2; }
}
.listing-page__specs-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.listing-page__specs-label { font-weight: 600; color: var(--color-ink); }
.listing-page__specs-value { color: var(--color-ink); font-weight: 500; }

@media (max-width: 760px) {
  .listing-page__product-detail {
    padding: 12px 14px 16px;
    border-radius: 16px;
    margin-top: 8px;
    gap: 7px;
  }
  body.page[data-listing-page-live="1"].is-listing-partner-mode .listing-page__product-detail {
    gap: 7px;
  }
  .listing-page__product-title {
    font-size: 16px;
    line-height: 1.22;
  }
  .listing-page__price-row {
    gap: 2px 8px;
    margin-top: 0;
  }
  .listing-page__price-new {
    font-size: 21px;
    line-height: 1.1;
  }
  .listing-page__price-old {
    font-size: 13px;
    line-height: 1.15;
  }
  .listing-page__price-sale {
    font-size: 12px;
    line-height: 1.2;
  }
  .listing-page__seller-line {
    gap: 7px;
    margin-top: 0;
  }
  .listing-page__seller-avatar,
  .listing-page__seller-badge {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .listing-page__seller-name {
    font-size: 13px;
  }
  .listing-page__variant-grid { grid-template-columns: 1fr; gap: 8px; }
  .listing-page__action-row { gap: 8px; }
  .listing-page__cta { flex: 1 1 100%; }
  .listing-page__cta--cart { flex: 0 0 auto; }

  .listing-page__similar-column {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .listing-page__similar-grid {
    display: flex;
    gap: 12px;
    margin-inline: -10px;
    padding: 2px 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .listing-page__similar-grid::-webkit-scrollbar {
    display: none;
  }

  .listing-page__similar-grid .listing-similar-card {
    flex: 0 0 min(76vw, 300px);
    scroll-snap-align: start;
  }
}

@media (max-width: 380px) {
  .listing-page__cta--cart { flex: 1 1 100%; padding-inline: 16px; }
}

/* === Specs link + Google-translate footer === */
.listing-page__specs-row .listing-page__specs-link {
  grid-column: 3;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  justify-self: start;
  cursor: pointer;
}
.listing-page__translate-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
}
.listing-page__translate-mark {
  font-size: 14px;
  color: var(--color-ink-soft);
}
.listing-page__translate-text {
  font-size: 12px;
  color: var(--color-ink-soft);
}
.listing-page__translate-btn {
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
}

/* === Item description (lives inside the "Item details" accordion) ===
   Clamped by height with a gradient fade + a "Learn more" toggle, Etsy-style. */
.listing-page__description {
  margin-top: 16px;
  display: block;
}
.listing-page__description-text {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
  max-height: 9.6em; /* ~6 lines while clamped */
  overflow: hidden;
}
.listing-page__description-text > p { margin: 0 0 12px; }
.listing-page__description-text > p:last-child { margin-bottom: 0; }
/* Gradient fade at the bottom while clamped — hides that there's more text. */
.listing-page__description:not([data-expanded="true"]) .listing-page__description-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--color-page-bg, var(--color-cream)) 84%);
  pointer-events: none;
}
.listing-page__description[data-expanded="true"] .listing-page__description-text {
  max-height: none;
  overflow: visible;
}
/* While clamped, pull "Learn more" up onto the gradient so it sits tight to the
   text (no empty gap); the expanded state uses the normal margin below. */
.listing-page__description:not([data-expanded="true"]) .listing-page__description-more {
  margin-top: -18px;
  position: relative;
  z-index: 1;
}
.listing-page__description-more {
  display: block;
  margin: 8px auto 0;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  min-height: 40px;
  cursor: pointer;
  text-decoration: none;
}
.listing-page__description-more:hover,
.listing-page__description-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0;
}

/* === Policy accordions (pills) === */
/* NO outlines — policy accordions are the same family as "Item details":
   a plain page-coloured pill that gets the sand fill + grow on hover, and
   simply unrolls its content below when open (no box, no border). */
.listing-page__policy-accordion {
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  overflow: visible;
}
.listing-page__policy-accordion[open] {
  border: 0;
  border-radius: 23px;
  background: transparent;
  overflow: visible;
}
/* Typography matches .listing-page__details-summary exactly — every pill in
   the stack ("Item details" + policies) must read as ONE family. */
.listing-page__policy-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  min-height: 44px;
}
.listing-page__policy-summary::-webkit-details-marker { display: none; }
.listing-page__policy-chevron {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.18s ease;
}
.listing-page__policy-accordion[open] .listing-page__policy-chevron {
  transform: rotate(180deg);
}
.listing-page__policy-body {
  padding: 4px 20px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink);
}
.listing-page__policy-body p { margin: 0 0 8px; }
.listing-page__policy-body p:last-child { margin-bottom: 0; }

.listing-page__policy-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-page__policy-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-ink);
}
.listing-page__policy-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.listing-page__policy-row strong {
  font-weight: 600;
}

.listing-page__policy-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 4px 0 14px;
  cursor: pointer;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.listing-page__policy-edit-pencil {
  width: 14px;
  height: 14px;
  display: block;
  text-decoration: none;
}

.listing-page__policy-shipto {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-page__policy-shipto-label {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 600;
}
.listing-page__policy-shipto-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.listing-page__policy-shipto-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  border-radius: 999px;
  background: var(--color-page-bg);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 36px 11px 16px;
  min-height: 44px;
  cursor: pointer;
  background-image: linear-gradient(135deg, transparent 50%, var(--color-ink) 50%), linear-gradient(45deg, var(--color-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.listing-page__policy-shipto-submit {
  border: 0;
  background: var(--color-ink);
  color: var(--color-page-bg);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 24px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease;
}
.listing-page__policy-shipto-submit:hover {
  background: var(--intent-cta-ink-hover);
}

/* === Purchase protection card === */
.listing-page__protection {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(118, 161, 196, 0.10);
  border: 1px solid rgba(118, 161, 196, 0.24);
  border-radius: 16px;
}
.listing-page__protection-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
}
.listing-page__protection-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-page__protection-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}
.listing-page__protection-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink);
}
.listing-page__protection-link {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* === Full-width shop policies CTA === */
/* Outline + hover fill live on ::before (see the block near the policy
   summaries) so the pill grows on hover exactly like every other pill. */
.listing-page__shop-policies-cta {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
}
.listing-page__shop-policies-cta--alt {
  margin-top: 18px;
  margin-bottom: 24px;
}

/* === Reviews state toggle (demo) + mutual exclusion === */
.listing-page__reviews-zone[data-reviews-state="has"] [data-reviews-empty] { display: none !important; }
.listing-page__reviews-zone[data-reviews-state="empty"] [data-reviews-has] { display: none !important; }

.listing-page__reviews-state-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 -4px;
  padding: 4px 6px;
  background: rgba(35, 32, 48, 0.04);
  border: 1px solid rgba(35, 32, 48, 0.10);
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-ink-soft);
}
.listing-page__reviews-state-toggle-label {
  margin-left: 6px;
  font-weight: 600;
}
.listing-page__reviews-state-toggle-btn {
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 26px;
}
.listing-page__reviews-state-toggle-btn.is-active {
  background: var(--color-ink);
  color: var(--color-page-bg);
}

/* === Reviews placeholder === */
.listing-page__review-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  background: transparent;
}
.listing-page__review-empty-icon {
  width: 88px;
  height: 80px;
  flex: 0 0 88px;
  display: block;
}
.listing-page__review-empty-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-page__review-empty-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.3;
}
.listing-page__review-empty-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink);
}
.listing-page__review-empty-link {
  display: inline-block;
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* === Reviews block === */
.listing-page__reviews {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.listing-page__reviews-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.listing-page__reviews-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.listing-page__reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.listing-page__reviews-star {
  width: 22px;
  height: 22px;
  display: block;
}
.listing-page__reviews-rating-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
}
.listing-page__reviews-rating-of {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-left: 1px;
}
.listing-page__reviews-rating-label {
  font-size: 12px;
  color: var(--color-ink-soft);
}
.listing-page__reviews-satisfaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.listing-page__reviews-satisfaction-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(118, 161, 196, 0.14);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}
.listing-page__reviews-satisfaction-label {
  font-size: 12px;
  color: var(--color-ink);
}

/* === Rating breakdown bars === */
.listing-page__reviews-breakdown {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  background: rgba(35, 32, 48, 0.03);
  border: 1px solid rgba(35, 32, 48, 0.10);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.listing-page__reviews-breakdown-row {
  display: grid;
  grid-template-columns: 28px 1fr 54px;
  align-items: center;
  gap: 12px;
}
.listing-page__reviews-breakdown-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
}
.listing-page__reviews-breakdown-bar {
  height: 8px;
  background: rgba(35, 32, 48, 0.10);
  border-radius: 999px;
  overflow: hidden;
}
.listing-page__reviews-breakdown-fill {
  display: block;
  height: 100%;
  background: var(--color-ink);
  border-radius: 999px;
}
.listing-page__reviews-breakdown-count {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* === Reviews toolbar (sort + filter) === */
.listing-page__reviews-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.listing-page__reviews-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.listing-page__reviews-sort-label {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 600;
}
.listing-page__reviews-sort-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 30px 8px 14px;
  min-height: 36px;
  cursor: pointer;
  background-image: linear-gradient(135deg, transparent 50%, var(--color-ink) 50%), linear-gradient(45deg, var(--color-ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.listing-page__reviews-filter {
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  background: transparent;
  color: var(--color-ink);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  margin-left: auto;
}
.listing-page__reviews-filter:hover {
  border-color: var(--color-ink);
  background: rgba(35, 32, 48, 0.04);
}

.listing-page__reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.listing-page__review-card {
  padding: 18px 0 16px;
  border-top: 1px solid rgba(35, 32, 48, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.listing-page__review-card:first-child { border-top: 0; padding-top: 6px; }

.listing-page__review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.listing-page__review-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.listing-page__review-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C9A45F, #75443B);
  color: var(--color-page-bg);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.listing-page__review-avatar[data-initials="A"] { background: linear-gradient(135deg, #C9A45F, #75443B); }
.listing-page__review-avatar[data-initials="K"] { background: linear-gradient(135deg, #B3BFB2, #3F6A60); }
.listing-page__review-avatar[data-initials="T"] { background: linear-gradient(135deg, #C9A45F, #7A563D); }
.listing-page__review-avatar[data-initials="M"] { background: linear-gradient(135deg, #DB7373, #9A3A3A); }
.listing-page__review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.listing-page__review-author {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}
.listing-page__review-author-sub {
  font-size: 12px;
  color: var(--color-ink-soft);
}
.listing-page__review-date {
  font-size: 12px;
  color: var(--color-ink-soft);
  flex: 0 0 auto;
  white-space: nowrap;
}

.listing-page__review-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.listing-page__review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.listing-page__review-stars img { display: block; }
.listing-page__review-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(35, 32, 48, 0.08);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
}
.listing-page__review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3F6A60;
  font-weight: 600;
}
/* Brand hand-drawn check (masked, inherits the forest text colour) instead of
   a literal "✓" glyph. */
.listing-page__review-verified::before,
.reviews-modal__review-verified::before {
  content: "";
  width: 13px;
  height: 11px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("/assets/gift-room-icons/shared/check.svg") center / contain no-repeat;
  mask: url("/assets/gift-room-icons/shared/check.svg") center / contain no-repeat;
}

.listing-page__review-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink);
}

.listing-page__review-photos-attached {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.listing-page__review-photo-attached {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #efe6da;
  flex: 0 0 84px;
}

.listing-page__review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.listing-page__review-helpful {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 32px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.listing-page__review-helpful:hover {
  border-color: var(--color-ink);
  background: rgba(35, 32, 48, 0.04);
}
.listing-page__review-helpful svg {
  flex: 0 0 14px;
}
.listing-page__review-translate {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.listing-page__reviews-pager {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}
.listing-page__reviews-pager-info {
  font-size: 12px;
  color: var(--color-ink-soft);
  text-align: center;
}

.listing-page__reviews-more {
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px;
  border: 1.5px solid rgba(35, 32, 48, 0.32);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.listing-page__reviews-more:hover {
  border-color: var(--color-ink);
  background: rgba(35, 32, 48, 0.04);
}

/* === Review photos rail === */
.listing-page__review-photos {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.listing-page__review-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.listing-page__review-photos-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.listing-page__review-photos-next {
  border: 1.5px solid rgba(35, 32, 48, 0.22);
  background: transparent;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.listing-page__review-photos-next img {
  width: 14px;
  height: 9px;
  max-width: none;
}
.listing-page__review-photos-next:hover {
  border-color: var(--color-ink);
  background: rgba(35, 32, 48, 0.04);
}
.listing-page__review-photos-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.listing-page__review-photo {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #efe6da;
  position: relative;
  overflow: hidden;
}

/* === Mobile === */
@media (max-width: 760px) {
  .listing-page__description {
    margin-top: 14px;
    gap: 12px;
  }
  .listing-page__description-text {
    font-size: 14px;
    -webkit-line-clamp: 4;
    max-height: 6.2em;
  }
  /* Same size as "Item details" on mobile too — one pill family. */
  .listing-page__policy-summary {
    padding: 12px 16px;
  }
  .listing-page__policy-body {
    padding: 4px 16px 16px;
    font-size: 13px;
  }
  .listing-page__policy-shipto-row {
    grid-template-columns: 1fr;
  }
  .listing-page__protection,
  .listing-page__review-empty {
    padding: 14px 14px;
    gap: 12px;
    border-radius: 14px;
  }
  .listing-page__reviews-heading { font-size: 17px; }
  .listing-page__reviews-summary { gap: 16px; }
  .listing-page__review-photos-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .listing-page__review-meta {
    gap: 6px;
  }
  .listing-page__reviews-breakdown {
    padding: 12px 14px;
  }
  .listing-page__reviews-breakdown-row {
    grid-template-columns: 22px 1fr 42px;
    gap: 8px;
  }
  .listing-page__reviews-toolbar {
    gap: 8px;
  }
  .listing-page__reviews-filter {
    margin-left: 0;
  }
  .listing-page__review-photo-attached {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }
}

/* === Shop reviews modal === */
.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-front, 13000);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.reviews-modal[hidden] { display: none !important; }
.reviews-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--popup-overlay);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: auto;
}
.reviews-modal[data-open] .reviews-modal__overlay { opacity: 1; }
.reviews-modal__panel {
  position: relative;
  width: min(100%, 720px);
  max-height: min(90vh, 880px);
  background: var(--popup-bg);
  border: 1px solid var(--popup-border);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  box-shadow: var(--popup-shadow);
  /* Not hidden: the floating X pill hangs above the sheet's top edge on
     mobile (JEDI_SHEET_FLOATING_CLOSE). The reviews list scrolls itself. */
  overflow: visible;
}
.reviews-modal[data-open] .reviews-modal__panel { transform: translateY(0); }
@media (max-width: 759px) {
  /* Bottom-sheet mode: the base --popup-shadow points down and is invisible
     above the sheet — use the canonical upward sheet shadow. */
  .reviews-modal__panel {
    box-shadow: var(--popup-sheet-shadow, 0 -18px 48px rgba(35, 32, 48, 0.22));
  }
}

@media (min-width: 760px) {
  .reviews-modal { align-items: center; }
  .reviews-modal__panel { border-radius: 24px; max-height: 88vh; overflow: visible; transform: translateY(20px) scale(0.98); opacity: 0.001; transition: transform 0.24s ease, opacity 0.18s ease; }
  .reviews-modal__footer { border-radius: 0 0 24px 24px; }
  .reviews-modal[data-open] .reviews-modal__panel { transform: translateY(0) scale(1); opacity: 1; }
}

.reviews-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 12px;
  border-bottom: 1px solid var(--popup-border);
  flex: 0 0 auto;
}
.reviews-modal__shop {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviews-modal__shop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 40px;
}
.reviews-modal__heading {
  margin: 0;
  font-family: var(--popup-title-font, var(--font-display));
  font-size: var(--popup-title-size, 25px);
  font-weight: var(--popup-title-weight, 600);
  color: var(--color-ink);
  letter-spacing: var(--popup-title-letter-spacing, 0);
  line-height: var(--popup-title-line-height, 1.16);
}
.reviews-modal__sub {
  display: block;
  font-size: 12px;
  color: var(--color-ink-soft);
  margin-top: 2px;
}
.reviews-modal__close.header-auth-close {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  right: auto;
  border: 0;
  background: var(--popup-bg);
  box-shadow: var(--popup-shadow-soft);
  font-size: 0;
  line-height: 1;
  color: var(--color-ink);
  cursor: pointer;
  width: var(--popup-close-width, 78px);
  height: var(--popup-close-height, 55px);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.24s ease, filter 0.24s ease;
  will-change: transform;
}
.reviews-modal__close.header-auth-close:hover,
.reviews-modal__close.header-auth-close:focus-visible {
  background: var(--popup-close-hover-bg, var(--sort-control-bg));
  animation: header-auth-close-bounce 0.28s cubic-bezier(0.23, 1.3, 0.32, 1) both;
  filter: var(--popup-close-hover-filter);
}
.reviews-modal__close.header-auth-close:focus-visible {
  outline: 2px solid var(--popup-focus);
  outline-offset: 2px;
}
.reviews-modal__close .header-auth-close-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--popup-close-icon-size, 17px);
  height: var(--popup-close-icon-size, 17px);
  display: block;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.reviews-modal__tabs {
  display: flex;
  gap: 6px;
  padding: 12px 22px 0;
  border-bottom: 1px solid var(--popup-border);
  flex: 0 0 auto;
}
.reviews-modal__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-soft);
  padding: 10px 14px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}
.reviews-modal__tab.is-active {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}
.reviews-modal__tab-count {
  font-size: 12px;
  color: var(--color-ink-soft);
  font-weight: 600;
  background: var(--popup-hover);
  padding: 2px 8px;
  border-radius: 999px;
}
.reviews-modal__tab.is-active .reviews-modal__tab-count {
  background: var(--popup-bg-muted);
  color: var(--color-ink);
}

.reviews-modal__stats {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--popup-border);
}
.reviews-modal__rating {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.reviews-modal__rating-star {
  width: 20px;
  height: 20px;
  display: inline-block;
  transform: translateY(2px);
}
.reviews-modal__rating-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1;
}
.reviews-modal__rating-of {
  font-size: 13px;
  color: var(--color-ink-soft);
  font-weight: 600;
}
.reviews-modal__breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reviews-modal__breakdown-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-ink-soft);
}
.reviews-modal__breakdown-bar {
  height: 6px;
  background: var(--popup-disabled);
  border-radius: 999px;
  overflow: hidden;
}
.reviews-modal__breakdown-bar > span {
  display: block;
  height: 100%;
  background: var(--color-ink);
  border-radius: 999px;
}

.reviews-modal__toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 22px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--popup-border);
}
.reviews-modal__search {
  display: block;
}
.reviews-modal__search-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--popup-border-strong);
  border-radius: 999px;
  background: var(--popup-bg);
  color: var(--color-ink);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 40px;
  outline: none;
  box-sizing: border-box;
}
.reviews-modal__search-input:focus { border-color: var(--color-forest); box-shadow: 0 0 0 3px rgba(63, 106, 96, 0.12); }
.reviews-modal__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.reviews-modal__sort {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--popup-border-strong);
  border-radius: 999px;
  background-color: var(--popup-bg);
  background-image: url('../../assets/icons/listing/dropdown-arrow.svg');
  background-position: right 14px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 34px 8px 14px;
  min-height: 36px;
  cursor: pointer;
}
.reviews-modal__chip {
  border: 1.5px solid var(--popup-border-strong);
  background: var(--popup-bg);
  color: var(--color-ink);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.reviews-modal__chip.is-active,
.reviews-modal__chip:hover { border-color: var(--color-forest); background: var(--popup-hover); }
.reviews-modal__chip.is-active { background: var(--color-ink); color: var(--color-page-bg); }

.reviews-modal__list {
  padding: 8px 22px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.reviews-modal__review {
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--popup-border);
}
.reviews-modal__review:last-child { border-bottom: 0; }
.reviews-modal__review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.reviews-modal__review-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C9A45F, #75443B);
  color: var(--color-page-bg);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reviews-modal__review-avatar[data-initials="K"] { background: linear-gradient(135deg, #B3BFB2, #3F6A60); }
.reviews-modal__review-avatar[data-initials="T"] { background: linear-gradient(135deg, #C9A45F, #7A563D); }
.reviews-modal__review-avatar[data-initials="M"] { background: linear-gradient(135deg, #DB7373, #9A3A3A); }
.reviews-modal__review-avatar[data-initials="J"] { background: linear-gradient(135deg, #3F6A60, #2D4F48); }
.reviews-modal__review-avatar[data-initials="O"] { background: linear-gradient(135deg, #D69B5D, #8B5A28); }
.reviews-modal__review-avatar[data-initials="N"] { background: linear-gradient(135deg, #E1D1BC, #7A563D); }
.reviews-modal__review-author {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}
.reviews-modal__review-sub {
  font-size: 12px;
  color: var(--color-ink-soft);
}
.reviews-modal__review-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.reviews-modal__review-stars {
  color: var(--color-ink);
  font-size: 13px;
  letter-spacing: 1px;
}
.reviews-modal__review-verified {
  font-size: 12px;
  color: #3F6A60;
  font-weight: 600;
}
.reviews-modal__review-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--popup-hover);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ink);
}
.reviews-modal__review-tag--other {
  background: rgba(63, 106, 96, 0.10);
  color: #7A563D;
}
.reviews-modal__review-body {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink);
}
.reviews-modal__review-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.reviews-modal__review-photo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #efe6da;
}

.reviews-modal__review[hidden] { display: none; }

.reviews-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--popup-border);
  flex: 0 0 auto;
  background: var(--popup-bg);
}
.reviews-modal__footer-info {
  font-size: 12px;
  color: var(--color-ink-soft);
  text-align: center;
}
.reviews-modal__more {
  border: 1.5px solid var(--popup-border-strong);
  border-radius: 999px;
  background: var(--popup-bg);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  min-height: 44px;
  cursor: pointer;
}

body.reviews-modal-open { overflow: hidden; }

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

/* === Seller contact widget ===
   Moved to styles/components/seller-contact.css (shared with shop.html).
   Listing-page CONTEXT overrides for it remain below/above (partner-mode
   hide ~L1297, official-shop tints ~L722, mbuy-open hide further down). */


/* === Listing toast (demo action feedback) ===
   Centered above the mobile tabbar; fades in/out. Demo-only — never
   persists, never blocks the UI longer than 1.6s. */
.listing-page__toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: fit-content;
  min-width: min(248px, calc(100vw - 40px));
  max-width: min(493px, calc(100vw - 40px));
  min-height: 46px;
  transform: translate(-50%, 20px) scale(0.94);
  z-index: 11000;
  background: var(--color-forest);
  color: var(--color-cream);
  outline: 1px solid var(--color-forest-dark);
  outline-offset: -1px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 32px;
  border-radius: 999px;
  box-shadow:
    0 24px 56px color-mix(in srgb, var(--color-forest-dark) 52%, transparent),
    0 4px 16px color-mix(in srgb, var(--color-ink) 16%, transparent);
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.34s ease;
  text-align: center;
  pointer-events: none;
}
.listing-page__toast.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, 0) scale(1);
}
@media (min-width: 760px) {
  .listing-page__toast { bottom: 24px; }
}

/* === Mobile floating Buy pill + config bottom-sheet (marketplace only) ===
   The pill lives above the mobile tab bar; a tap opens a sheet that holds the
   real buy box (moved in by js/listing-mobile-buy.js). Desktop never sees it. */
.listing-mbuy-pill {
  position: fixed;
  right: 14px;
  bottom: calc(var(--mobile-bottom-nav-height, 72px) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 12520;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--color-forest);
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 12px 30px color-mix(in srgb, var(--color-forest-dark, #2C4A43) 42%, transparent),
    0 3px 10px rgba(35, 32, 48, 0.16);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.listing-mbuy-pill.is-visible {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.listing-mbuy-pill:active { transform: translateY(0) scale(0.97); }
.listing-mbuy-pill__icon {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.listing-mbuy-overlay {
  position: fixed;
  inset: 0;
  z-index: 12530;
  background: rgba(35, 32, 48, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.listing-mbuy-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.listing-mbuy-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12540;
  max-height: 88dvh;
  /* The sheet itself must not clip: the floating X pill hangs above its top
     edge. The inner __body is the scroll container instead. */
  overflow: visible;
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 48px rgba(35, 32, 48, 0.22);
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-mbuy-sheet.is-open { transform: translateY(0); }
.listing-mbuy-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* The floating field labels blend with the PAGE background on the listing
   itself; inside the cream sheet they must blend with the sheet instead —
   otherwise they read as grey stickers over the fields. */
.listing-mbuy-sheet .listing-page__variant-select-label,
.listing-mbuy-sheet .listing-page__qty-label {
  background: var(--color-cream, #FFF9F1);
}
/* Grip doubles as the close affordance (tap or swipe); the X pill floats
   above the sheet via the homepage.css JEDI_SHEET_FLOATING_CLOSE contract. */
.listing-mbuy-sheet__grip {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.listing-mbuy-sheet__grip::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink) 18%, transparent);
}
.listing-mbuy-sheet__grip:focus-visible { outline: 0; }
.listing-mbuy-sheet__grip:focus-visible::before {
  background: color-mix(in srgb, var(--color-ink) 32%, transparent);
}
.listing-mbuy-sheet__body { display: block; }
/* The buy box is already inside the cream sheet — drop its own card chrome so
   it doesn't read as a card-in-a-card. */
.listing-mbuy-sheet .listing-page__sticky-buy-inner {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 4px 0 0;
}
.listing-mbuy-sheet .listing-page__variant-grid { margin-bottom: 14px; }
body.listing-mbuy-open { overflow: hidden; }
/* The floating seller-chat dock must not sit over the open buy sheet. */
body.listing-mbuy-open .seller-contact,
body.listing-mbuy-open [data-seller-contact] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 761px) {
  .listing-mbuy-pill,
  .listing-mbuy-overlay,
  .listing-mbuy-sheet { display: none !important; }
}

/* Review helpful: locked state after click */
.listing-page__review-helpful.is-helpful {
  border-color: #3F6A60;
  background: rgba(63, 106, 96, 0.08);
  color: #3F6A60;
  cursor: default;
}
.listing-page__review-helpful.is-helpful svg path {
  stroke: #3F6A60;
}

/* === Group D mobile fixes from audit === */
@media (max-width: 760px) {
  .reviews-modal {
    --reviews-modal-mobile-top: clamp(84px, 13dvh, 128px);
    align-items: flex-end;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + var(--reviews-modal-mobile-top)) 0 0;
    overflow: hidden;
  }

  .reviews-modal__panel {
    width: 100%;
    max-width: 100%;
    height: calc(100vh - (env(safe-area-inset-top, 0px) + var(--reviews-modal-mobile-top)));
    height: calc(100dvh - (env(safe-area-inset-top, 0px) + var(--reviews-modal-mobile-top)));
    max-height: none;
    border-radius: 22px 22px 0 0;
  }

  .reviews-modal__panel::before {
    content: "";
    flex: 0 0 44px;
    width: 100%;
    min-height: 44px;
    background: var(--popup-sheet-grip-pseudo-bg);
    border-radius: var(--popup-sheet-radius, 22px 22px 0 0);
  }

  /* Bump small touch targets to 44px Apple HIG / WCAG 2.5.5 minimum */
  .listing-page__review-helpful { min-height: 44px; padding: 8px 16px; }
  .listing-page__review-photos-next { width: 44px; height: 44px; }
  .listing-page__reviews-state-toggle-btn { min-height: 36px; padding: 6px 14px; }
  /* The close shows as the floating X pill ABOVE the sheet
     (JEDI_SHEET_FLOATING_CLOSE canon) — restated here because this file loads
     after homepage.css and its desktop rule would win the cascade otherwise. */
  .reviews-modal__close.header-auth-close {
    display: inline-flex !important;
    position: absolute;
    top: auto;
    bottom: calc(100% + var(--popup-close-offset, 10px));
    left: calc(50% - (var(--popup-sheet-close-width, 78px) / 2));
    right: auto;
    width: var(--popup-sheet-close-width, 78px);
    height: var(--popup-sheet-close-height, 55px);
    background: var(--popup-bg);
    box-shadow: var(--popup-shadow-soft);
    z-index: 6;
  }
  .reviews-modal__heading {
    font-size: var(--popup-title-size, 25px);
    line-height: var(--popup-title-line-height, 1.16);
  }
  .reviews-modal__head,
  .reviews-modal__tabs,
  .reviews-modal__stats,
  .reviews-modal__toolbar,
  .reviews-modal__list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .reviews-modal__footer {
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .reviews-modal__chip,
  .reviews-modal__sort { min-height: 40px; }
  .reviews-modal__tab { padding: 10px 14px 14px; }

  body.seller-contact-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Seller-contact becomes a full-screen chat on phones. */
  .seller-contact {
    inset: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-modal-front, 13000);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
  }
  .seller-contact[data-open] {
    pointer-events: auto;
  }
  .seller-contact__backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: color-mix(in srgb, var(--color-ink) 42%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .seller-contact[data-open] .seller-contact__backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .seller-contact__pill {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    z-index: 1;
  }
  .seller-contact[data-open] .seller-contact__pill {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
  }
  .seller-contact__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: clamp(72px, 11vh, 112px);
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - clamp(72px, 11vh, 112px));
    max-height: calc(100dvh - clamp(72px, 11vh, 112px));
    background: var(--popup-bg);
    border-radius: 22px 22px 0 0;
    border: 1px solid color-mix(in srgb, var(--color-line) 72%, transparent);
    border-bottom: 0;
    padding: 0;
    box-shadow: 0 -8px 22px color-mix(in srgb, var(--color-ink) 10%, transparent);
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    transform: none;
    transition: none;
  }
  .seller-contact__sheet-grip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: auto;
  }
  .seller-contact__sheet-grip span {
    display: block;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-ink) 20%, transparent);
  }
  .seller-contact__panel-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 0 66px 12px 18px;
    cursor: default;
    touch-action: auto;
    user-select: none;
  }
  .seller-contact__panel-head .seller-contact__avatar-wrap--lg {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    align-self: center;
  }
  .seller-contact__panel-meta {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 44px;
  }
  .seller-contact__panel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.08;
  }
  .seller-contact__panel-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    line-height: 1.25;
  }
  /* Mobile close styling lives in styles/components/seller-contact.css
     (floating X pill above the sheet — JEDI_SHEET_FLOATING_CLOSE canon). */
  .seller-contact__name,
  .seller-contact__meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100vw - 200px);
  }

  .seller-contact__thread {
    padding: 14px 18px 16px;
  }

  .seller-contact__product {
    grid-template-columns: 52px minmax(0, 1fr);
    border-radius: 18px;
  }

  .seller-contact__product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .seller-contact__bubble {
    max-width: 84%;
    font-size: 14px;
  }

  .seller-contact__composer {
    padding: 7px 10px 5px;
    gap: 6px;
  }
  .seller-contact__actions {
    gap: 6px;
    align-items: center;
  }
  .seller-contact__attach {
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .seller-contact__tool {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    aspect-ratio: 1 / 1;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }
  .seller-contact__tool span {
    display: none;
  }
  .seller-contact__tool img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .seller-contact__textarea {
    min-height: 62px;
    resize: none;
  }
  .seller-contact__counter {
    top: 15px;
    right: 18px;
  }
  .seller-contact__send {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    aspect-ratio: 1 / 1;
    padding: 0;
    font-size: 0;
  }
  .seller-contact__legal {
    display: none;
  }
}

/* Footer breadcrumb track: keep the chain in nowrap horizontal scroll
   but on narrow phones reserve less room for the home icon so the
   visible portion shows more category names. */
@media (max-width: 420px) {
  .listing-page__breadcrumbs--header .crumbs__home { width: 36px; height: 36px; flex-basis: 36px; }
  .listing-page__breadcrumbs--header .crumbs__home-icon { width: 18px; height: 18px; }
  .listing-page__breadcrumbs--header .crumbs__track { max-width: calc(100% - 41px); }
}

@media (max-width: 720px) {
  .reviews-modal__heading {
    font-size: var(--popup-title-size, 25px) !important;
    line-height: var(--popup-title-line-height, 1.16) !important;
  }
}

/* ── Listing skeleton (live-product routes only) ──
   Visible only under body.is-listing-preparing (gate script in
   listing-page-phase1.html). Shapes come from the canonical .jp-skeleton
   system (styles/components/skeleton.css, imported via homepage.css); this
   block only lays them out to match the real .listing-page__product-grid
   footprint so the reveal causes no layout jump. */
.listing-skeleton {
  width: 100%;
  margin-top: 8px;
  grid-template-columns: minmax(0, 860px) minmax(320px, 1fr);
  align-items: start;
  justify-content: start;
  gap: var(--listing-product-column-gap);
}

.listing-skeleton__primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-skeleton__gallery {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.listing-skeleton__thumbs {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-skeleton__thumb {
  height: 132px;
  border-radius: 14px;
}

.listing-skeleton__hero {
  flex: 1 1 auto;
  min-width: 0;
  height: 574px;
}

.listing-skeleton__title {
  max-width: 560px;
}

.listing-skeleton__title--short {
  max-width: 380px;
}

.listing-skeleton__price {
  max-width: 240px;
}

.listing-skeleton__seller {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-skeleton__seller-avatar {
  width: 26px;
  height: 26px;
}

.listing-skeleton__seller-name {
  width: 150px;
}

.listing-skeleton__cta {
  max-width: 420px;
}

.listing-skeleton__rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
}

.listing-skeleton__rail-title {
  max-width: 150px;
}

.listing-skeleton__rail-card {
  height: 360px;
}

@media (max-width: 1200px) {
  .listing-skeleton {
    grid-template-columns: 1fr;
  }

  .listing-skeleton__rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .listing-skeleton__gallery {
    flex-direction: column;
    gap: 10px;
  }

  .listing-skeleton__thumbs {
    order: 2;
    flex-direction: row;
    flex-basis: auto;
  }

  .listing-skeleton__thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
  }

  .listing-skeleton__hero {
    width: 100%;
    height: clamp(205px, 58vw, 250px);
  }
}

/* === Related searches (bottom funnel) — reuses the category page's
   .category-related-links pill component (olive pill, grow-on-hover). These
   rules live here because category-page.css isn't loaded on the listing. */
.listing-page__related-searches { margin-top: 22px; }

/* "You may also like" — desktop-only (>=1201px, where the 2-col layout exists)
   discovery grid in the LEFT column. Fills the tail when the right "Similar
   finds" side-feed runs taller than the comments/Q&A, so there is no dead space.
   Below 1200px the columns already stack, so it is hidden. */
.listing-page__more-like { margin-top: 32px; }
.listing-page__more-like-head { margin-bottom: 14px; }
.listing-page__more-like-title {
  margin: 0;
  font-family: var(--font-heading, Fraunces, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink, #232030);
}
.listing-page__more-like .listing-side-feed--grid .listing-side-feed__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
/* The side-card is a horizontal (media | content) capsule built for the narrow
   1-col rail. In this grid we flip it VERTICAL — full-width image on top, all
   content below — so it reads as a clean product tile like the category grids
   instead of a cramped, ragged 2-up row. */
.listing-page__more-like .listing-side-card {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
  padding: 6px;
  align-content: start;
}
.listing-page__more-like .listing-side-card__media {
  aspect-ratio: 4 / 3;
}
@media (max-width: 1200px) {
  .listing-page__more-like { display: none; }
}
.category-related-links {
  margin-top: 12px;
  margin-bottom: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(35, 32, 48, 0.1);
  color: var(--color-ink);
}
.category-related-links__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.category-related-links__copy { max-width: 720px; }
.category-related-links__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}
.category-related-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-related-links__item { min-width: 0; }
.category-related-links__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.category-related-links__link-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-olive-pill);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease;
}
.category-related-links__link-label {
  position: relative;
  z-index: 1;
}
.category-related-links__link:hover .category-related-links__link-bg,
.category-related-links__link:focus-visible .category-related-links__link-bg {
  transform: scale(var(--hover-grow-scale, 1.035));
}
.category-related-links__link:focus-visible {
  outline: 2px solid rgba(63, 106, 96, 0.38);
  outline-offset: 3px;
}

/* === Marketplace desktop: kill the left-column title/price/seller duplicate ==
   They live in the right sticky buy box on our own listings. Keep the h1 in the
   DOM (visually hidden) for SEO; mobile keeps the in-flow left column. */
@media (min-width: 761px) {
  body.is-listing-marketplace-mode .listing-page__product-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  body.is-listing-marketplace-mode .listing-page__price-row,
  body.is-listing-marketplace-mode .listing-page__seller-line {
    display: none;
  }
}

/* Etsy-style "Explore related searches" — the product's tags as clickable
   chips (shared .chip / .chips-row component). */
.listing-page__tags {
  margin-top: 44px;
}

.listing-page__tags-title {
  margin: 0 0 6px;
  font-family: var(--font-display, var(--font-heading));
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
}

.listing-page__tags-row {
  flex-wrap: wrap;
}

.listing-page__tag-chip {
  text-decoration: none;
  color: var(--color-ink);
}

.listing-page__tag-chip:hover,
.listing-page__tag-chip:focus-visible {
  color: var(--color-forest);
  text-decoration: none;
}

/* Explore-by-interest tiles: keep the EXACT category-page look — the native
   fixed-width carousel that scrolls inside its own viewport (so the page never
   scrolls horizontally). No grid override — we use the component as-is. */
.listing-page__explore .shop-by-interest__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.listing-page__explore .shop-by-interest__viewport::-webkit-scrollbar { display: none; }

/* ======================================================================
   Listing polish 2026-07-11 — marketplace buy box + brand field pattern.
   1) body overflow-x uses `clip` (NOT hidden): hidden turns <body> into a
      scroll container, which silently kills position:sticky for the right
      buy box. clip keeps the horizontal clamp without breaking sticky.
   2) Right rail is ~10px narrower from the left (wider column gap).
   3) Buy-box assurance rows use the site-wide policy-row scale (24px icons).
   4) Variant/quantity/personalization fields use the canonical pill-field
      pattern (label chip on the outline + forest focus ring) shared with
      the auth modal (.header-auth-*) and dashboard (.workspace-input).
   5) Policy accordions get the same hover grow as "Item details".
   ====================================================================== */

body.page[data-listing-page-live="1"] {
  overflow-x: clip;
}

@media (min-width: 1201px) {
  body.is-listing-marketplace-mode .listing-page__product-grid {
    gap: calc(var(--listing-product-column-gap) + 10px);
  }
}

/* --- Buy-box assurance rows: match the policy-row scale ---------------- */
.listing-page__sticky-buy-assurance {
  gap: 8px;
}
.listing-page__sticky-buy-assurance li {
  gap: 10px;
  font-size: 14px;
  color: var(--color-ink);
}
.listing-page__sticky-buy-assurance li img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.listing-page__sticky-buy-trust {
  font-size: 13px;
  color: var(--color-ink);
}
.listing-page__sticky-buy-trust-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

/* --- Canonical pill fields (label on the outline + forest focus ring) --- */
.listing-page__variant-select {
  position: relative;
  padding-top: 8px;
  gap: 0;
}
.listing-page__variant-select-label {
  position: absolute;
  top: 2px;
  left: 22px;
  z-index: 3;
  max-width: calc(100% - 36px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-page-bg, var(--color-cream));
  color: var(--color-ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.listing-page__variant-select-label .listing-page__variant-translate {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.listing-page__variant-select-input {
  min-height: 46px;
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  background-color: var(--color-cream);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.listing-page__variant-select-input:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-forest) 14%, transparent);
}
.listing-page__variant-select-input.is-filled {
  border-color: var(--color-forest);
}

/* Quantity (left column) joins the same field family. */
.listing-page__qty-block {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  margin-top: 10px;
  gap: 0;
}
.listing-page__qty-label {
  position: absolute;
  top: 2px;
  left: 22px;
  z-index: 3;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-page-bg, var(--color-cream));
  color: var(--color-ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.listing-page__qty-input-wide {
  min-height: 46px;
  border: 1.5px solid var(--popup-control-border, rgba(35, 32, 48, 0.22));
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-ink);
  caret-color: var(--color-forest);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 0 22px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.listing-page__qty-input-wide:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-forest) 14%, transparent);
}

/* Personalization textarea + ship-to select reuse the ring. */
.listing-page__personalize-textarea:focus,
.listing-page__policy-shipto-select:focus,
[data-jp-qa-input]:focus {
  outline: none !important;
  border-color: var(--color-forest) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-forest) 14%, transparent) !important;
}

/* --- Policy accordions: identical to "Item details" in every state -----
   No outline anywhere. ::before is the sand fill that grows on hover. */
.listing-page__policy-summary {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
}
.listing-page__policy-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: transparent;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__policy-summary:hover::before,
.listing-page__policy-summary:focus-visible::before {
  background: var(--filter-pill-bg, #eee5da);
  transform: scale(1.015);
}
.listing-page__policy-summary:focus-visible { outline: 0; }

/* "View more shop policies" / "View shop registration details" join in. */
.listing-page__shop-policies-cta {
  position: relative;
  isolation: isolate;
}
.listing-page__shop-policies-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: transparent;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__shop-policies-cta:hover::before,
.listing-page__shop-policies-cta:focus-visible::before {
  background: var(--filter-pill-bg, #eee5da);
  transform: scale(1.015);
}

/* --- Star Seller: official first-party variant -------------------------- */
body.is-jedipic-official-shop .listing-page__star-seller-card {
  background: color-mix(in srgb, var(--color-forest) 9%, var(--color-cream));
  border-color: color-mix(in srgb, var(--color-forest) 32%, transparent);
  border-radius: 16px;
  align-items: center;
}
body.is-jedipic-official-shop .listing-page__star-seller-card .listing-page__star-seller-icon {
  display: none;
}
.listing-page__official-seal {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: var(--color-forest);
  align-items: center;
  justify-content: center;
}
.listing-page__official-seal img {
  width: 18px;
  height: 15px;
  display: block;
  filter: brightness(0) invert(1);
}
body.is-jedipic-official-shop .listing-page__official-seal {
  display: inline-flex;
}
body.is-jedipic-official-shop .listing-page__star-seller-title {
  color: var(--color-forest);
  font-size: 14px;
}

/* [hidden] must beat the display:inline-flex above — a live product with no
   sale still showed the static demo "Flash sale" badge on mobile. */
.listing-page__price-sale[hidden],
.listing-page__price-old[hidden] {
  display: none !important;
}

/* --- "Leave a review" CTA button: canonical grow, forest fill ----------- */
.listing-page__leave-review-btn {
  flex: 0 0 auto;
  padding: 12px 24px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-cream, #FFF9F1);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  isolation: isolate;
}
.listing-page__leave-review-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-forest, #3F6A60);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__leave-review-btn:hover::before,
.listing-page__leave-review-btn:focus-visible::before {
  transform: scale(var(--hover-grow-scale, 1.035));
}

/* --- Q&A "Ask a question" submit: same canonical grow ------------------- */
.listing-page__qa-submit {
  padding: 12px 24px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-cream, #FFF9F1);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}
.listing-page__qa-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-forest, #3F6A60);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.18s ease, background-color 0.16s ease;
}
.listing-page__qa-submit:hover::before,
.listing-page__qa-submit:focus-visible::before {
  transform: scale(var(--hover-grow-scale, 1.035));
}

/* --- Leave-a-review popup: standard JediPic popup ------------------------
   Mirrors .jp-rate-modal exactly: .collection-modal shell + close pill +
   .jp-rate-modal__star gold stars + .collection-modal__cancel/__create
   actions. Only the layout that is unique to this popup lives here. */
.jp-review-modal {
  position: fixed;
  inset: 0;
  z-index: 12660;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.jp-review-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--popup-overlay, rgba(35, 32, 48, 0.52));
}
/* overflow stays visible so the canonical detached close pill (floating to
   the panel's right, from .collection-modal__close) is not clipped. */
.jp-review-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  overflow: visible;
  padding: 26px 24px 22px;
  border-radius: var(--popup-radius);
}
.jp-review-modal__title {
  margin: 0 40px 4px 0;
}
.jp-review-modal__sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--color-ink-soft);
  line-height: 1.5;
  text-align: center;
}
.jp-review-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(35, 32, 48, 0.12);
  margin-bottom: 14px;
}
.jp-review-modal__label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-ink);
}
.jp-review-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--control-border-resting, var(--popup-border-strong));
  border-radius: 14px;
  background: var(--popup-control-bg, #FFF9F1);
  color: var(--color-ink);
  caret-color: var(--color-forest);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  min-height: 120px;
  resize: vertical;
}
.jp-review-modal__textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-forest) 14%, transparent);
}
.jp-review-modal__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-ink-soft);
}
.jp-review-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.jp-review-modal__cancel.collection-modal__cancel {
  min-width: 0;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 999px;
}
.jp-review-modal__publish.collection-modal__create {
  min-width: 0;
  padding: 14px 32px;
  min-height: 48px;
}
.jp-review-modal__note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--color-ink-soft);
  text-align: center;
  line-height: 1.4;
}

/* --- Buy box primary CTA: INK (black), Etsy-style ----------------------- */
.listing-page__sticky-buy-cta--primary { color: var(--color-cream); }
.listing-page__sticky-buy-cta--primary::before { background: var(--color-ink); }

/* --- JediPic Official: order-request flow ------------------------------
   Payments aren't live on our own shop yet — the box sells ONE action:
   "Place order" (pay later). Cart & offers stay hidden until they're real. */
body.is-jedipic-official-shop .listing-page__sticky-buy-cta--outline,
body.is-jedipic-official-shop .listing-page__sticky-buy-cta--offer,
body.is-jedipic-official-shop .listing-page__cta--cart,
body.is-jedipic-official-shop .listing-page__cta--outline {
  display: none !important;
}
.listing-page__order-note {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-soft);
}
