/* Xyncema Case — slate blue on unglazed clay, terracotta reserved for the tier ladder and the refusals.
   A trade page, so the summary panel is a ledger: numbers right-aligned, nothing decorative near them. */

[data-theme="wholesale"] body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.wh-wrap { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
.wh-muted { color: var(--muted); }
.wh-h1, .wh-h2, .wh-h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.14; margin: 0; letter-spacing: -0.015em; }
.wh-h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); }
.wh-h2 { font-size: clamp(1.5rem, 1.28rem + 1.3vw, 2.15rem); }
.wh-h3 { font-size: clamp(1.1rem, 1rem + 0.42vw, 1.32rem); }
.wh-h4 { font: 600 0.975rem/1.35 var(--font-body); margin: 0; }
.wh-h2 a, .wh-h3 a, .wh-h4 a { color: inherit; text-decoration: none; }
.wh-h2 a:hover, .wh-h3 a:hover, .wh-h4 a:hover { color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }
.wh-eyebrow { display: inline-block; font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary); margin: 0 0 0.85rem; }
.wh-lead { font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1rem); line-height: 1.75; color: var(--muted); }

/* ---------- Header ---------- */
.wh-notice { background: var(--surface-2); color: var(--on-surface-2); font-size: 0.8125rem; line-height: 1.45; padding: 0.5rem 0; }
.wh-notice p { margin: 0; }
.wh-header { position: sticky; top: 0; z-index: 30; background: rgba(247, 245, 242, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.wh-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.wh-logo { display: flex; align-items: baseline; gap: 0.45rem; text-decoration: none; color: var(--text); margin-right: auto; }
.wh-logo svg { width: 1.45rem; height: 1.45rem; color: var(--secondary); align-self: center; }
.wh-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; line-height: 1; letter-spacing: -0.02em; }
.wh-logo small { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.wh-nav { display: flex; gap: 1.3rem; }
.wh-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.wh-nav a:hover, .wh-nav a[aria-current="page"] { border-bottom-color: var(--secondary); }
.wh-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; padding: 0.6rem; color: var(--text); cursor: pointer; }
.wh-toggle svg { width: 100%; height: 100%; }
.wh-mobile { display: none; flex-direction: column; padding-bottom: 1rem; }
.wh-mobile a { padding: 0.85rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 500; }
.wh-mobile[data-open] { display: flex; }
@media (max-width: 1020px) { .wh-nav, .wh-header .wh-btn { display: none; } .wh-toggle { display: block; } }

/* ---------- Buttons ---------- */
.wh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.35rem; border-radius: var(--radius-btn); border: 1.5px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 600 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.wh-btn:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.wh-btn--line { background: var(--surface); color: var(--primary); }
.wh-btn--line:hover { background: #ECEDF3; }
.wh-btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.65); }
.wh-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #FFFFFF; }
.wh-btn svg { width: 1.05rem; height: 1.05rem; }

/* ---------- Sections ---------- */
.wh-section { padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem); }
.wh-section--pale { background: var(--surface); }
.wh-section--deep { background: var(--surface-2); color: var(--on-surface-2); }
.wh-section--deep .wh-eyebrow { color: #DCA46B; }
.wh-section--deep .wh-list li::before { background: #DCA46B; }
.wh-section--deep :focus-visible { outline-color: #DCA46B; }
.wh-head { display: grid; gap: 0.7rem; margin-bottom: 1.9rem; max-width: 48rem; }

/* ---------- Hero ---------- */
.wh-hero { position: relative; overflow: hidden; display: grid; }
.wh-hero__media, .wh-hero__inner { grid-area: 1 / 1; }
.wh-hero__media { position: relative; min-height: min(58vh, 540px); }
.wh-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 23, 36, 0.48) 0%, rgba(22, 23, 36, 0.62) 45%, rgba(22, 23, 36, 0.93) 100%); }
.wh-hero__inner { position: relative; z-index: 1; display: grid; align-content: end; padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); color: #FFFFFF; }
.wh-hero .wh-eyebrow { color: #DCA46B; }
.wh-hero h1 { max-width: 18ch; }
.wh-hero__copy { max-width: 56ch; line-height: 1.75; margin: 1.1rem 0 1.6rem; color: #CFD0DC; }
.wh-hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Order builder ---------- */
.wh-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.wh-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 2.4vw, 1.7rem); }
.wh-form { display: grid; gap: 1.8rem; }
.wh-set { border: 0; margin: 0; padding: 0; min-width: 0; min-inline-size: 0; }
.wh-set > legend { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); padding: 0; margin-bottom: 0.85rem; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.wh-chips label { position: relative; }
.wh-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.wh-chips span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.05rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-size: 0.9rem; cursor: pointer; }
.wh-chips label:has(input:checked) span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.wh-chips label:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 2px; }

.wh-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.wh-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.wh-line.is-on { border-color: var(--primary); background: #F0F1F6; }
.wh-line__body { min-width: 0; display: grid; gap: 0.2rem; }
.wh-line__meta, .wh-line__stock { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.wh-line__sum { min-width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.975rem; }
.wh-stepper { display: inline-flex; align-items: center; gap: 0.15rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: 0.2rem; }
.wh-stepper button { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); cursor: pointer; }
.wh-stepper button:hover:not(:disabled) { background: var(--primary); color: var(--on-primary); }
.wh-stepper button:disabled { opacity: 0.38; cursor: not-allowed; }
.wh-stepper button svg { width: 1.05rem; height: 1.05rem; }
.wh-stepper output { min-width: 4.6rem; text-align: center; font-weight: 600; font-size: 0.875rem; }
.wh-lines.is-plain li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--border); background: none; border-radius: 0; font-size: 0.93rem; }
.wh-lines.is-plain small { color: var(--muted); }
.wh-lines.is-plain b { font-variant-numeric: tabular-nums; }
.wh-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }

/* ---------- Summary ---------- */
.wh-sum { position: sticky; top: 6rem; display: grid; gap: 1.05rem; }
.wh-tier { margin: 0; display: grid; gap: 0.15rem; }
.wh-tier b { font-family: var(--font-heading); font-size: 1.35rem; }
.wh-tier span { color: var(--muted); font-size: 0.86rem; }
.wh-spec { margin: 0; display: grid; gap: 0.35rem; }
.wh-spec > div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; border-bottom: 1px dotted var(--border); padding-bottom: 0.35rem; }
.wh-spec dt { color: var(--muted); margin: 0; }
.wh-spec dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.wh-spec .is-total { border-bottom: 0; }
.wh-spec .is-total dt, .wh-spec .is-total dd { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.wh-block { padding: 0.9rem 1.05rem; border-radius: var(--radius); }
.wh-block p { margin: 0.45rem 0 0; font-size: 0.88rem; line-height: 1.7; }
.wh-block ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.86rem; }
.wh-block.is-no { background: #FAEDEA; border-left: 3px solid var(--danger); }
.wh-block.is-no h4 { color: #8A1F18; }
.wh-block.is-tier { background: #FBF1E6; border-left: 3px solid var(--secondary); }
.wh-block.is-tier h4 { color: #7C420F; }
.wh-block.is-stock { background: var(--bg); border-left: 3px solid var(--primary); }
.wh-block__hint { color: var(--muted); }
.wh-verdict { font-weight: 500; }
.wh-note { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }
.wh-retail { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--secondary); background: var(--surface); border-radius: var(--radius); line-height: 1.75; max-width: 54rem; }
.wh-ok { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 1.1rem; font-weight: 700; color: var(--primary); }
.wh-ok svg { flex: none; width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); }

/* ---------- Content blocks ---------- */
.wh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.wh-info { padding: 1.2rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.wh-section--pale .wh-info { background: var(--bg); }
.wh-info p { margin: 0.45rem 0 0; color: var(--muted); line-height: 1.75; font-size: 0.9375rem; }
.wh-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
.wh-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 52rem; }
.wh-list li { display: flex; gap: 0.6rem; line-height: 1.75; }
.wh-list li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.7rem; border-radius: 50%; background: var(--secondary); }
.wh-list.is-no li::before { background: var(--danger); }
.wh-faq { display: grid; gap: 0.5rem; max-width: 54rem; }
.wh-faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.wh-section--pale .wh-faq details { background: var(--bg); }
.wh-faq summary { padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wh-faq summary::-webkit-details-marker { display: none; }
.wh-faq summary::after { content: "+"; color: var(--secondary); font-weight: 700; }
.wh-faq details[open] summary::after { content: "\2212"; }
.wh-faq p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--muted); line-height: 1.8; }

/* ---------- Cards, table ---------- */
.wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.wh-pc { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.wh-section--pale .wh-pc { background: var(--bg); }
.wh-pc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wh-pc__body { padding: 1.05rem 1.2rem 1.25rem; display: grid; gap: 0.45rem; align-content: start; }
.wh-pc__body p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9375rem; }
.wh-pc__meta { font-size: 0.8rem !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary) !important; font-weight: 600; }
.wh-tablewrap { overflow-x: auto; padding-bottom: 0.4rem; }
.wh-table { width: 100%; min-width: 40rem; border-collapse: collapse; }
.wh-table th, .wh-table td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.wh-table thead th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); font-variant-numeric: normal; }
.wh-table tbody th { font-weight: 600; font-variant-numeric: normal; }

/* ---------- Collection & detail ---------- */
.wh-pagehead { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.wh-dhead { padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2rem, 3.5vw, 3.25rem); background: var(--surface); border-bottom: 1px solid var(--border); }
.wh-crumb { margin: 0 0 1.4rem; font-size: 0.85rem; color: var(--muted); }
.wh-crumb a { color: var(--muted); }
.wh-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.wh-dgrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
.wh-dprice { margin: 0.8rem 0 0; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wh-dprice span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.wh-dmeta { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }
.wh-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.wh-thumb { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer; }
.wh-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wh-thumb:hover img { opacity: 0.85; }

/* ---------- Footer ---------- */
.wh-footer { background: var(--surface-2); color: var(--on-surface-2); padding-block: clamp(2.5rem, 4vw, 3.75rem) 2rem; }
.wh-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr)); gap: 2rem; }
.wh-footer .wh-logo { color: var(--on-surface-2); }
.wh-footer .wh-logo svg { color: #DCA46B; }
.wh-footer .wh-logo small { color: #9A9CAD; }
.wh-footer__grid p { margin: 0.7rem 0 0; color: #BABCCB; line-height: 1.65; font-size: 0.9375rem; max-width: 32ch; }
.wh-footer h3 { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #DCA46B; margin: 0 0 0.9rem; }
.wh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.wh-footer a { color: var(--on-surface-2); text-decoration: none; font-size: 0.9375rem; }
.wh-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wh-footer__note { margin: 2.5rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); color: #9A9CAD; font-size: 0.85rem; line-height: 1.65; }
.wh-footer .xy-attribution, .wh-footer .xy-attribution a { color: #9A9CAD; }
.wh-footer :focus-visible { outline-color: #DCA46B; }

/* ---------- Narrow ---------- */
@media (max-width: 1000px) {
  .wh-grid2 { grid-template-columns: minmax(0, 1fr); }
  .wh-sum { position: static; }
  .wh-dgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wh-line { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-line__sum { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) { .wh-wrap { width: min(100% - 1.75rem, 78rem); } }
