/* Boutique storefront. Depends on base.css.

   The product page is built to fit one screen: a fixed-height two-pane layout
   where the media pane holds still and the detail pane scrolls inside itself,
   with the long-form content behind tabs so it cannot push the buy action
   below the fold. Below 900px it collapses to a natural stacked page. */

:root { --header-h: 60px; }

body { background: var(--paper); }
body[dir="rtl"] { direction: rtl; }

.locale-switch { width: auto; min-width: 168px; font-size: 12.5px; padding: 7px 10px; }
.chrome-aside { font-size: 12.5px; color: var(--ink-3); }
.chrome-aside:hover { color: var(--ink); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 32px; }

/* ---------- collection grid ---------- */

.collection-head {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.collection-head h1 {
  font-size: 30px; font-weight: 300; letter-spacing: -0.028em; line-height: 1.15;
}
.collection-head p { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.collection-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.collection-meta { display: flex; align-items: center; gap: 10px; }
.search-source { color: var(--good); border: 1px solid currentColor; border-radius: 99px; padding: 3px 7px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.collection-search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 20px 0 0; }
.collection-search input { width: 100%; padding: 12px 13px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.collection-search button { padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--ink-invert); font: inherit; font-size: 12px; cursor: pointer; }
.collection-search .quiet-search { border-color: var(--rule-2); background: var(--paper); color: var(--ink-2); }
.collection-filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding: 14px 0 18px; }
.collection-filter { display: grid; gap: 5px; color: var(--ink-3); font-size: 11px; }
.collection-filter select { min-width: 142px; padding: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; }
.clear-filters, .collection-empty button { padding: 9px 12px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.collection-empty { padding: 55px 0 90px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 44px 26px;
  padding: 40px 0 90px;
}

/* A column so the price row sits on the card's baseline: titles run to one or
   two lines, and a ragged row of prices reads as misalignment. */
.card { cursor: pointer; display: flex; flex-direction: column; text-align: start; height: 100%; }
.card .card-foot { margin-top: auto; padding-top: 4px; }
/* One neutral plane for every product — no per-product tint. Jewellery is
   photographed on light backgrounds, so `contain` keeps the whole piece
   visible instead of cropping into it. */
.plate {
  aspect-ratio: 1 / 1;
  background: var(--plane);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.card:hover .plate { border-color: var(--rule-2); }
.plate img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plate-mono {
  font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
}

.card-collection {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.card-title { font-size: 13.5px; font-weight: 500; margin-bottom: 3px; }
.card-tagline { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-price { font-size: 13.5px; font-variant-numeric: tabular-nums; }

.fallback-badge {
  display: inline-block; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-wash); border-radius: 2px;
  padding: 2px 6px; margin-inline-start: 7px;
}

/* ---------- product page: fits the viewport ---------- */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 52px;
  height: calc(100vh - var(--header-h));
  padding: 22px 0 26px;
  align-items: stretch;
}

.pdp-media {
  position: relative;
  min-height: 0;                 /* lets the child shrink inside the grid row */
  /* White, not the grey plane: product photography is shot on near-white, and
     `contain` letterboxes a square image in this taller pane — grey bands
     would read as a rendering fault. */
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  width: 100%; padding: 0; cursor: zoom-in; font: inherit;
}
.pdp-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-media .plate-mono { font-size: 22px; }
.zoom-hint { position: absolute; inset-inline-end: 12px; bottom: 12px; padding: 6px 9px; background: rgba(255,255,255,.9); color: var(--ink-2); border: 1px solid var(--rule); font-size: 11px; opacity: 0; transition: opacity .15s; }
.pdp-media:hover .zoom-hint, .pdp-media:focus-visible .zoom-hint { opacity: 1; }
.pdp-media-wrap { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pdp-media-wrap .pdp-media { height: calc(100% - 54px); min-height: 0; }
.gallery-controls { display: flex; gap: 8px; min-height: 44px; overflow-x: auto; }
.gallery-thumb { width: 44px; height: 44px; flex: 0 0 44px; padding: 2px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* The detail pane is the only thing that scrolls, so the image and the buy
   action stay put while the copy is read. */
.pdp-info {
  min-height: 0;
  overflow-y: auto;
  padding-inline-end: 16px;
  display: flex; flex-direction: column;
}
.pdp-info::-webkit-scrollbar { width: 9px; }
.pdp-info::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 9px; }
.pdp-info::-webkit-scrollbar-track { background: transparent; }

.back {
  align-self: flex-start;
  font-size: 12px; color: var(--ink-3); background: none; border: none;
  font-family: inherit; cursor: pointer; padding: 0 0 16px;
}
.back:hover { color: var(--ink); }

.pdp-collection {
  display: inline-block; width: fit-content;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 9px;
}
.pdp-collection:hover { text-decoration: underline; }
.pdp-title { margin: 0 0 8px; font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; color: var(--ink); }
.pdp-tagline {
  font-size: 14px; line-height: 1.5; font-weight: 400;
  letter-spacing: 0; color: var(--ink-2); margin: 0 0 14px;
}
.pdp-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.pdp-price { font-size: 19px; font-variant-numeric: tabular-nums; }
.pdp-reviews { font-size: 12.5px; color: var(--ink-3); }
button.pdp-reviews { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pdp-sku { margin: -10px 0 14px; color: var(--ink-3); font-size: 11px; }
.data-source {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--good); border: 1px solid currentColor; border-radius: 99px; padding: 3px 7px;
}

.cta {
  width: 100%; margin: 4px 0 20px;
  font: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 2px;
  background: var(--ink); color: var(--ink-invert); border: 1px solid var(--ink);
  cursor: pointer; transition: background .15s;
}
.cta:hover { background: #2e2e36; }
.ask-product { display: none; }

/* ---------- inline PDP AI assist ---------- */
.pdp-ai-assist {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 16px;
  margin: 0 0 18px;
  background: var(--plane);
}
.ai-assist-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.ai-assist-icon { font-size: 14px; color: var(--gold); }
.ai-assist-head h2 {
  margin: 0; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.ai-assist-suggestions {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px;
}
.ai-suggest-chip {
  font: inherit; font-size: 12px; padding: 6px 11px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--paper); color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ai-suggest-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.ai-suggest-chip:disabled { opacity: .45; cursor: wait; }
.ai-suggest-loading { font-size: 11.5px; color: var(--ink-3); padding: 4px 0; }
.ai-assist-form {
  display: flex; gap: 7px;
}
.ai-assist-input {
  flex: 1; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 13px;
}
.ai-assist-input:focus { outline: none; border-color: var(--ink-3); }
.ai-assist-send {
  font: inherit; font-size: 12px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ink-invert); border: 1px solid var(--ink);
  cursor: pointer; white-space: nowrap;
}
.ai-assist-send:hover { background: #2e2e36; }
.ai-assist-thread {
  margin-top: 12px; display: flex; flex-direction: column; gap: 8px;
  max-height: 260px; overflow-y: auto;
}
.ai-assist-thread:empty { display: none; }
.ai-q {
  align-self: flex-end; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 12px 12px 3px 12px;
  padding: 8px 12px; font-size: 13px; max-width: 90%;
}
.ai-a {
  align-self: flex-start; font-size: 13px; color: var(--ink-2);
  line-height: 1.55; white-space: pre-line; max-width: 100%;
  padding: 2px 0;
}

.purchase-box { border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.quantity-label, .fulfillment-title { margin: 0; font-size: 12px; font-weight: 500; }
.quantity-control { display: inline-grid; grid-template-columns: 30px 34px 30px; align-items: center; border: 1px solid var(--rule); }
.quantity-control button { height: 30px; border: 0; background: var(--paper); font-size: 17px; cursor: pointer; color: var(--ink-2); }
.quantity-control button:hover { background: var(--plane); color: var(--ink); }
.quantity-control output { text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.fulfillment-options { border-top: 1px solid var(--rule); padding-top: 14px; }
.fulfillment-title { margin-bottom: 9px; }
.fulfillment-option { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.fulfillment-option:has(input:checked) { color: var(--ink); }
.fulfillment-option:focus-within { outline: 1px solid var(--rule-2); outline-offset: 3px; }
.fulfillment-option input { width: auto; margin: 4px 0 0; }
.fulfillment-option strong, .fulfillment-option small { display: block; }
.fulfillment-option strong { font-size: 12.5px; font-weight: 500; }
.fulfillment-option small, .fulfillment-note { font-size: 11.5px; color: var(--ink-3); }
.fulfillment-note { margin: 5px 0 0; }
.fulfillment-selected { margin: 8px 0 0; color: var(--ink-3); font-size: 10.5px; }
.fulfillment-availability { margin-top: 3px; color: var(--good) !important; }
.postal-check { padding: 12px 0; border-top: 1px solid var(--rule); }
.postal-check > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 500; }
.postal-check > div { display: flex; gap: 7px; }
.postal-check input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; }
.postal-check button { padding: 7px 12px; border: 1px solid var(--rule-2); background: var(--plane); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.postal-check > span { display: block; min-height: 16px; margin-top: 5px; color: var(--ink-3); font-size: 10.5px; }
.commerce-disclosure { margin: -9px 0 12px; color: var(--ink-3); font-size: 10.5px; line-height: 1.45; }
.purchase-assurances { display: grid; grid-template-columns: 1fr; gap: 0; margin: -2px 0 18px; border-bottom: 1px solid var(--rule); }
.purchase-assurances > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.purchase-assurances > div > span { width: 22px; color: var(--ink-2); font-size: 18px; text-align: center; }
.purchase-assurances p { margin: 0; }
.purchase-assurances strong, .purchase-assurances small { display: block; }
.purchase-assurances strong { font-size: 11.5px; font-weight: 500; }
.purchase-assurances small { margin-top: 2px; color: var(--ink-3); font-size: 10.5px; }

/* Tabs bound the vertical cost of the long-form content. */
.tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--rule);
  margin-bottom: 18px; flex-wrap: wrap;
}
.tab {
  font: inherit; font-size: 12px; color: var(--ink-3);
  background: none; border: none; cursor: pointer;
  padding: 9px 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.tab-panel { padding-bottom: 30px; }
.pdp-desc { font-size: 14px; color: var(--ink-2); white-space: pre-line; margin: 0 0 16px; }
.pdp-features { margin: 0; padding-inline-start: 18px; }
.pdp-features li { font-size: 13.5px; color: var(--ink-2); margin: 6px 0; }

.spec-list { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.spec-list dt { font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.spec-list dd { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ---- customer signal on the PDP ---- */
.signal-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 16px;
}
.signal-score { font-size: 34px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.signal-of { font-size: 12.5px; color: var(--ink-3); }
.signal-note { font-size: 12.5px; color: var(--ink-3); margin-inline-start: auto; }

.dist { margin-bottom: 20px; }
.dist-row {
  display: grid; grid-template-columns: 24px 1fr 22px;
  gap: 9px; align-items: center; margin-bottom: 4px;
  font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
/* Spans need an explicit block display before height applies. */
.dist-track { display: block; height: 6px; background: var(--seq-track); border-radius: 1px; }
.dist-fill { display: block; height: 6px; background: var(--seq-4); border-radius: 0 2px 2px 0; }

.signal-group { margin-bottom: 18px; }
.signal-group .eyebrow { display: block; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.prov-row { margin-bottom: 12px; }
.prov-row .eyebrow { display: block; margin-bottom: 4px; }
.prov-row p { margin: 0; font-size: 13px; color: var(--ink-2); }
.prov-codes { display: flex; flex-wrap: wrap; gap: 5px; }
.prov-code {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2);
}
.prov-code[data-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-invert); }

.question-item { border-top: 1px solid var(--rule); padding: 12px 0; }
.question-item:last-of-type { border-bottom: 1px solid var(--rule); }
.question-item summary { cursor: pointer; font-size: 13px; color: var(--ink); }
.question-item p, .question-contact { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.question-contact { margin-top: 16px; }

.related-products { border-top: 1px solid var(--rule); margin-top: 46px; padding: 34px 0 70px; }
.related-head { margin-bottom: 20px; }
.related-head h2 { font-size: 23px; font-weight: 300; letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.related-card { cursor: pointer; min-width: 0; }
.related-image { aspect-ratio: 1; border: 1px solid var(--rule); background: var(--plane); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; }
.related-image img { width: 100%; height: 100%; object-fit: contain; }
.related-card h3 { font-size: 13px; font-weight: 500; margin: 0 0 3px; }
.related-card p { margin: 0 0 7px; min-height: 36px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.related-card strong { font-size: 12.5px; font-weight: 500; }

/* Interactive visual discovery inspired by Lowe's Visual Scout. */
.visual-scout { margin: 34px 0 12px; padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.visual-scout-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.visual-scout-head .eyebrow { margin-bottom: 6px; }
.visual-scout-head h2 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; margin: 0; }
.visual-scout-intro { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.scout-reset { padding: 7px 13px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.scout-reset:hover { border-color: var(--ink-3); color: var(--ink); }
.scout-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.scout-card { min-width: 0; border: 1px solid var(--rule); background: var(--paper); }
.scout-product { display: flex; width: 100%; padding: 0; flex-direction: column; text-align: start; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.scout-image { width: 100%; aspect-ratio: 1; background: var(--plane); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scout-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.scout-card-title { min-height: 36px; margin: 10px 10px 4px; font-size: 12px; line-height: 1.45; }
.scout-rating { margin: 0 10px 4px; }
.scout-rating .rating-marks { color: var(--gold); }
.scout-price { margin: 0 10px 11px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.scout-actions { display: flex; align-items: stretch; border-top: 1px solid var(--rule); }
.scout-actions button { min-height: 37px; border: 0; background: var(--paper); color: var(--ink-2); font: inherit; cursor: pointer; }
.scout-actions button:hover { background: var(--plane); color: var(--ink); }
.scout-actions [data-scout-action="like"] { flex: 1; padding: 7px 5px; text-align: center; font-size: 11px; }
.scout-actions .scout-dislike { width: 38px; flex: 0 0 38px; border-inline-start: 1px solid var(--rule); font-size: 20px; line-height: 1; }
.scout-actions button:disabled, .scout-reset:disabled { cursor: wait; opacity: .55; }
.visual-scout.is-loading .scout-grid { opacity: .55; }
.scout-disclosure { margin: 12px 0 0; font-size: 11px; color: var(--ink-3); }
.scout-disclosure[data-error="true"] { color: var(--crit); }
.scout-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px solid var(--rule); color: var(--ink-3); text-align: center; font-size: 13px; }

.better-together { margin: 18px 0 48px; padding: 28px; background: var(--plane); border: 1px solid var(--rule); }
.bundle-heading { max-width: 620px; margin-bottom: 18px; }
.bundle-heading .eyebrow { margin-bottom: 6px; }
.bundle-heading h2, .product-details > h2 { margin: 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.bundle-heading > p:last-child { margin: 7px 0 0; color: var(--ink-3); font-size: 12.5px; }
.bundle-list { border-top: 1px solid var(--rule); }
.bundle-line { display: grid; grid-template-columns: 18px 58px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.bundle-line > input { width: auto; margin: 0; accent-color: var(--ink); }
.bundle-image { width: 58px; height: 58px; background: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bundle-image img { width: 100%; height: 100%; object-fit: contain; }
.bundle-copy strong, .bundle-copy small { display: block; }
.bundle-product-link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; text-align: start; cursor: pointer; }
.bundle-product-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.bundle-copy small { margin-top: 4px; color: var(--ink-3); font-size: 10.5px; }
.bundle-unavailable .bundle-copy small { color: var(--warn); }
.bundle-price { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bundle-footer { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding-top: 17px; }
.bundle-footer > div { display: grid; gap: 3px; font-size: 11px; color: var(--ink-3); }
.bundle-footer strong { color: var(--ink); font-size: 15px; font-weight: 500; }
.bundle-add.cta { width: auto; min-width: 210px; margin: 0; padding: 13px 18px; }
.bundle-add:disabled { opacity: .4; cursor: not-allowed; }
.bundle-status { margin: 12px 0 0; color: var(--ink-3); font-size: 10.5px; }

.product-details { margin: 30px 0 54px; scroll-margin-top: 24px; }
.product-details > .eyebrow { margin-bottom: 6px; }
.product-details > h2 { margin-bottom: 15px; }
.product-accordion { border-top: 1px solid var(--rule-2); scroll-margin-top: 18px; }
.product-accordion:last-child { border-bottom: 1px solid var(--rule-2); }
.product-accordion > summary { position: relative; padding: 17px 34px 17px 0; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.product-accordion > summary::-webkit-details-marker { display: none; }
.product-accordion > summary::after { content: "+"; position: absolute; inset-inline-end: 6px; font-size: 20px; font-weight: 300; }
.product-accordion[open] > summary::after { content: "−"; }
.product-accordion > div { padding: 0 0 22px; }
.related-searches { margin: 34px 0 65px; padding-top: 24px; border-top: 1px solid var(--rule); }
.related-searches h2 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.related-searches > div { display: flex; flex-wrap: wrap; gap: 8px; }
.related-searches button { padding: 8px 12px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.related-searches button:hover { border-color: var(--ink-3); color: var(--ink); }
.image-lightbox { width: min(92vw, 1000px); max-width: none; max-height: 92vh; padding: 42px 18px 18px; border: 1px solid var(--rule); background: var(--paper); }
.image-lightbox::backdrop { background: rgba(20,20,24,.76); }
.image-lightbox > img { display: block; width: 100%; height: min(78vh, 780px); object-fit: contain; }
.image-lightbox > button { position: absolute; top: 8px; inset-inline-end: 12px; border: 0; background: transparent; color: var(--ink); font-size: 27px; cursor: pointer; }

/* Stacked layout on smaller screens — a fixed viewport height stops making
   sense once the panes are one column. */
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
    height: auto;
    gap: 26px;
    padding-bottom: 60px;
  }
  .pdp-media { aspect-ratio: 1 / 1; }
  .pdp-media-wrap .pdp-media { height: auto; }
  .pdp-info { overflow: visible; padding-inline-end: 0; }
  .pdp-title { font-size: 22px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .better-together { padding: 18px; }
}

@media (max-width: 520px) {
  .collection-search { grid-template-columns: 1fr auto; }
  .collection-search .quiet-search { grid-column: 1 / -1; min-height: 36px; }
  .collection-filter { flex: 1 1 calc(50% - 6px); }
  .collection-filter select { width: 100%; min-width: 0; }
  .scout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .visual-scout-head h2 { font-size: 20px; }
  .bundle-line { grid-template-columns: 18px 48px minmax(0,1fr); gap: 9px; }
  .bundle-image { width: 48px; height: 48px; }
  .bundle-price { grid-column: 3; }
  .bundle-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .bundle-add.cta { width: 100%; }
}

/* ---------- states ---------- */

.empty, .loading {
  text-align: center; padding: 100px 24px; color: var(--ink-3); font-size: 13px;
}
.empty a, .loading a { color: var(--ink); border-bottom: 1px solid var(--rule-2); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); background: var(--plane); }
.foot-inner {
  max-width: var(--measure); margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.foot-note { font-size: 11.5px; color: var(--ink-3); }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--ink); color: var(--ink-invert);
  border-radius: 2px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5;
  max-width: 240px; opacity: 0; transition: opacity .12s;
}
.tip[data-show="true"] { opacity: 1; }
.tip .tip-row { display: flex; justify-content: space-between; gap: 14px; }
.tip .tip-row span:last-child { color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }

/* Sample-data disclosure on the product page. Deliberately plain and
   unmissable: a storefront must never imply real customers wrote demo text. */
.sample-note {
  margin: 0 0 16px; padding: 10px 12px;
  background: var(--warn-wash); border-left: 2px solid var(--warn);
  font-size: 12.5px; color: var(--ink-2); border-radius: 2px;
}
.sample-note strong { font-weight: 500; }

/* ---------- commerce ---------- */
.bag-count {
  display: inline-block; min-width: 17px; padding: 1px 5px; margin-inline-start: 4px;
  background: var(--ink); color: var(--ink-invert); border-radius: 9px;
  font-size: 10.5px; text-align: center; font-variant-numeric: tabular-nums;
}
.stock-line { font-size: 12.5px; }
.stock-line[data-state="in"]  { color: var(--good); }
.stock-line[data-state="low"] { color: var(--warn); }
.stock-line[data-state="out"] { color: var(--crit); }
.cta:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- bag / checkout / account ---------- */
.bag-wrap { padding-top: 46px; padding-bottom: 90px; }
.bag-wrap.narrow { max-width: 460px; }
.bag-title { font-size: 27px; font-weight: 300; letter-spacing: -0.028em; margin-bottom: 26px; }

.bag-list { list-style: none; margin: 0 0 28px; padding: 0; }
.bag-row {
  display: grid; grid-template-columns: 68px minmax(0,1fr) auto auto auto;
  gap: 18px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.bag-plate {
  width: 68px; aspect-ratio: 1; background: var(--plane);
  border: 1px solid var(--rule); border-radius: 2px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bag-plate img { width: 100%; height: 100%; object-fit: contain; }
.bag-name { font-size: 13.5px; }
.bag-sku { font-size: 11.5px; color: var(--ink-3); }
.bag-qty { display: inline-flex; align-items: center; gap: 10px; }
.bag-qty button {
  width: 26px; height: 26px; border: 1px solid var(--rule); background: var(--paper);
  border-radius: 2px; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.bag-qty button:hover { border-color: var(--ink-3); }
.bag-qty span { font-size: 13px; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.bag-price { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bag-remove {
  background: none; border: none; color: var(--ink-3); font: inherit; font-size: 12px;
  cursor: pointer; padding: 0;
}
.bag-remove:hover { color: var(--crit); }
@media (max-width: 680px) {
  .bag-row { grid-template-columns: 56px minmax(0,1fr) auto; row-gap: 10px; }
  .bag-price, .bag-remove { grid-column: 2 / -1; }
}

.bag-foot { border-top: 1px solid var(--rule); padding-top: 20px; max-width: 380px; }
.bag-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; margin-bottom: 6px;
}
.bag-total strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.bag-note { margin: 0 0 18px; font-size: 12px; color: var(--ink-3); }

.checkout-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px;
}
.checkout-form.narrow { grid-template-columns: 1fr; }
.checkout-form .field.wide { grid-column: 1 / -1; }
.checkout-actions {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 6px;
}
.checkout-actions .cta { width: auto; margin: 0; }
.checkout-actions .status-text { margin: 0; }

/* Persona login is deliberately separate from a real commerce account: these
  buttons establish named, consented scenario fixtures for the chatbot demo. */
.persona-login { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.persona-login > p:not(.eyebrow) { color: var(--ink-2); font-size: 13px; margin: 5px 0 14px; }
.persona-login-options { display: grid; grid-template-columns: 1fr; gap: 7px; }
.persona-login-button { text-align: start; text-transform: none; letter-spacing: 0; padding: 10px 12px; }
.persona-login-button strong, .persona-login-button span { display: block; }
.persona-login-button strong { font-size: 13px; font-weight: 500; }
.persona-login-button span { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }

.order-line { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; }
.order-line a { border-bottom: 1px solid var(--rule-2); }
.order-list { list-style: none; margin: 14px 0 22px; padding: 0; }
.order-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px;
  padding: 11px 0; border-top: 1px solid var(--rule); font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ---------- brand / category storefront ---------- */
.brandstore-hero {
  position: relative; border-bottom: 1px solid var(--rule);
  background: var(--plane); overflow: hidden;
}
.brandstore-hero-img {
  width: 100%; height: 260px; object-fit: cover; display: block; opacity: .92;
}
.brandstore-hero-body {
  max-width: var(--measure); margin: 0 auto; padding: 34px 32px 30px;
  border-top: 3px solid var(--store-accent, var(--ink));
}
.brandstore-scope {
  margin: 0 0 8px; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.brandstore-name {
  font-size: 32px; font-weight: 300; letter-spacing: -0.03em; margin: 0 0 8px;
}
.brandstore-tagline { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 60ch; }

.brandstore-meta {
  display: flex; gap: 16px; align-items: baseline;
  padding: 26px 0 4px; font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
/* Products with no local content are not clickable — there is no product page
   for them yet, so a pointer cursor would promise something that is not there. */
.card[data-shoppable="false"] { cursor: default; }
.card[data-shoppable="false"]:hover .plate { border-color: var(--rule); }

/* ---------- promo bar ---------- */
.promo {
  background: var(--ink); color: var(--ink-invert);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 9px 44px 9px 16px; position: relative;
  font-size: 12.5px; letter-spacing: .01em;
}
.promo-close {
  position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.promo-close:hover { color: #fff; }

/* ---------- assistant toggle ---------- */
.assistant-toggle {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.assistant-toggle:hover { background: var(--ink); color: var(--ink-invert); }
body.assistant-open .assistant-toggle { background: var(--ink); color: var(--ink-invert); }

/* ---------- docked assistant ---------- */
.assistant {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: 420px; max-width: 100vw;
  background: var(--paper); border-inline-start: 1px solid var(--rule);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 60;
}
body[dir="rtl"] .assistant { transform: translateX(-100%); }
.assistant[data-open="true"] { transform: none; }
@media (max-width: 620px) { .assistant { width: 100%; } }

/* The shop stays usable beside the panel rather than being covered. */
@media (min-width: 1100px) {
  body.assistant-open .chrome-inner,
  body.assistant-open #app,
  body.assistant-open .foot-inner { padding-inline-end: 440px; }
}

.as-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--rule);
}
.as-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.as-new {
  margin-inline-start: auto; font: inherit; font-size: 12px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; color: var(--ink-2);
}
.as-new:hover { border-color: var(--ink-3); color: var(--ink); }
.as-close {
  background: none; border: none; font-size: 20px; line-height: 1;
  color: var(--ink-3); cursor: pointer; padding: 0 2px;
}
.as-close:hover { color: var(--ink); }

.as-body { flex: 1; overflow-y: auto; padding: 20px 16px; }

.as-welcome { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.as-hello {
  text-align: center; font-size: 14.5px; color: var(--ink-2);
  margin: 0 0 22px; padding: 0 12px; line-height: 1.55;
}
.as-prompts { display: flex; flex-direction: column; gap: 9px; }
.as-prompt {
  font: inherit; font-size: 13.5px; text-align: start;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  padding: 11px 16px; cursor: pointer; color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.as-prompt:hover { border-color: var(--ink-3); color: var(--ink); }
.as-scenarios { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.as-scenarios-label {
  margin: 0 0 9px; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.as-scenario { border-radius: 2px; }
.as-active-persona { margin: 0; font-size: 12.5px; color: var(--ink-2); }

.as-turn + .as-turn { margin-top: 18px; }
.as-you {
  background: var(--plane); border-radius: 14px 14px 4px 14px;
  padding: 10px 14px; font-size: 13.5px; margin-inline-start: 32px;
}
.as-agent-text { font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }
.as-thinking { font-size: 13px; color: var(--ink-3); }

.as-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.as-card {
  display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 12px;
  border: 1px solid var(--rule); border-radius: 2px; padding: 10px;
  align-items: center;
}
.as-card-plate {
  width: 62px; aspect-ratio: 1; background: var(--plane); border-radius: 2px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.as-card-plate img { width: 100%; height: 100%; object-fit: contain; }
.as-card-mono { font-size: 15px; color: var(--ink-3); letter-spacing: .2em; }
.as-card-collection {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.as-card-title { font-size: 13px; margin: 2px 0 3px; }
.as-card-price { font-size: 12.5px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.as-card-link {
  font: inherit; font-size: 12px; background: none; border: none; padding: 0;
  color: var(--ink); border-bottom: 1px solid var(--rule-2); cursor: pointer;
}
.as-card-link:hover { border-bottom-color: var(--ink); }
.as-card-scenario { font-size: 11.5px; color: var(--ink-3); }

.as-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--rule);
}
.as-composer input { flex: 1; border-radius: 999px; padding: 10px 14px; font-size: 13.5px; }
.as-voice, .as-send {
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
  border-radius: 999px; padding: 9px 13px;
}
.as-voice { background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); }
.as-voice:hover { border-color: var(--ink-3); color: var(--ink); }
.as-voice[data-listening="true"] { background: var(--crit-wash); border-color: var(--crit); color: var(--crit); }
.as-send { background: var(--ink); border: 1px solid var(--ink); color: var(--ink-invert); }

/* Consent-aware shopper profile and recommendation signals. */
.personalization-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 24px 0; padding: 18px 20px; border: 1px solid var(--rule); background: var(--plane); }
.personalization-card h2 { margin: 0; font-size: 17px; font-weight: 500; }
.personalization-card .eyebrow { margin: 0 0 5px; }
.personalization-card > div > p:last-child, .personalization-heading p { margin: 5px 0 0; color: var(--ink-3); font-size: 12px; }
.personalization-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.personalization-off { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 11px; cursor: pointer; }
.personalization-off:hover { border-color: var(--crit); color: var(--crit); }
.personalization-signals { display: grid; gap: 10px; margin-top: 12px; }
.personalization-signals > div { display: grid; gap: 3px; font-size: 11px; }
.personalization-signals strong { font-weight: 500; }
.personalization-signals span, .personalization-note { color: var(--ink-3); }
.personalization-note { margin: 10px 0 0; font-size: 10.5px; }
.personalized-products { margin: 30px 0; }
.fulfillment-policy { display: grid; gap: 4px; margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 12px; }
.fulfillment-policy strong { font-weight: 500; }
.fulfillment-policy span { color: var(--ink-3); }
.persona-login-button { display: grid; gap: 3px; }
.persona-login-button strong { font-size: 13px; font-weight: 500; }
.persona-login-button span { color: var(--ink-3); font-size: 11px; }
@media (max-width: 620px) {
  .personalization-card { align-items: stretch; flex-direction: column; gap: 12px; padding: 15px; }
  .personalization-heading { align-items: flex-start; }
}
