/* Store B (the minimal grid). Every rule is scoped to html[data-store="b"], so store A is untouched when both skins
   load in one page. Tokens are store A's (skin/tokens.css); this file only changes the ground and adds store B's parts.
   One field of Fog, the photographs multiplied onto it with no visible box. Labels: Archivo SemiCondensed 600 caps at
   +6%, tabular figures. Select only for what the buyer selected. Square everywhere. */

html[data-store="b"] {
  --util: 0px; --hdr: 64px;
  --bg: var(--xh-grey-100); --plate: var(--xh-grey-100); --bg-alt: var(--xh-grey-200);
  --g-gx: 16px; --g-gy: 44px; --g-max: 1680px;
}
@media (prefers-color-scheme: dark) {
  html[data-store="b"]:not([data-theme="light"]) { --bg: var(--xh-ink); --plate: var(--xh-grey-100); --bg-alt: var(--xh-grey-900); }
}
html[data-store="b"][data-theme="dark"] { --bg: var(--xh-ink); --plate: var(--xh-grey-100); --bg-alt: var(--xh-grey-900); }
/* one ground: supplier mockups are shot on white and multiply onto Fog; the drawings and set composites are already
   on Fog, so they sit as they are (multiplying Fog onto Fog would print a darker box) */
html[data-store="b"] .media img[data-k="render"], html[data-store="b"] .media img[data-k="composite"] { mix-blend-mode: normal; }
@media (max-width: 599px) { html[data-store="b"] { --g-gx: 8px; --g-gy: 28px; --hdr: 56px; } }

/* the label voice */
html[data-store="b"] .g-bag, html[data-store="b"] .g-code, html[data-store="b"] .g-st, html[data-store="b"] .g-rule, html[data-store="b"] .g-line,
html[data-store="b"] .g-foot-l a, html[data-store="b"] .g-foot-n, html[data-store="b"] .g-sku, html[data-store="b"] .g-pdp-st, html[data-store="b"] .g-opt-h,
html[data-store="b"] .g-chip, html[data-store="b"] .g-add, html[data-store="b"] .g-acc summary, html[data-store="b"] .g-count, html[data-store="b"] .g-lnk,
html[data-store="b"] .g-facts dt, html[data-store="b"] .g-parts-c {
  font-family: var(--font); font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase;
  font-stretch: var(--l-stretch); font-variant-numeric: tabular-nums;
}

/* ---------- header: the Notch alone, the bag ---------- */
html[data-store="b"] .site-header { top: env(safe-area-inset-top, 0px); background: var(--bg); }
html[data-store="b"] .g-hdr { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); padding-inline: var(--margin); }
html[data-store="b"] .g-logo { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--text); }
html[data-store="b"] .g-mk { display: block; width: 48px; height: 20px; }
html[data-store="b"] .g-bag { min-height: 44px; margin-right: -12px; padding: 0 12px; border: 0; background: none; color: var(--text); }
html[data-store="b"] .g-bag.bump .g-bag-n { animation: g-bump var(--d3) var(--ease-mark); }
@keyframes g-bump { 40% { transform: translateY(calc(-1 * var(--notch))); } }
html[data-store="b"] .g-bag-n { display: inline-block; }

/* ---------- the grid ---------- */
html[data-store="b"] main { min-height: 70vh; }
html[data-store="b"] .g-home { padding: 12px var(--margin) 0; }
html[data-store="b"] .g-grid { list-style: none; margin: 0 auto; padding: 0; max-width: var(--g-max);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--g-gy) var(--g-gx); }
@media (max-width: 1279px) { html[data-store="b"] .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 959px) { html[data-store="b"] .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { html[data-store="b"] .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-store="b"] .g-tile { min-width: 0; }
html[data-store="b"] .g-a { display: block; color: var(--text); text-decoration: none; }
html[data-store="b"] .g-a:focus-visible { outline-offset: 4px; }
html[data-store="b"] .g-m .media { aspect-ratio: 1; }
html[data-store="b"] .g-code { margin: 10px 0 0; text-align: center; }
html[data-store="b"] .g-st { margin: 2px 0 0; text-align: center; font-size: 11px; color: var(--text-2); }
@media (hover: hover) { html[data-store="b"] .g-a:hover .g-code { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
html[data-store="b"] .g-line { margin: 4px 0 28px; text-align: center; }
html[data-store="b"] .g-later { margin-top: 112px; }
html[data-store="b"] .g-rule { display: flex; align-items: center; gap: 16px; max-width: var(--g-max); margin: 0 auto 36px; color: var(--text-2); }
html[data-store="b"] .g-rule::before, html[data-store="b"] .g-rule::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
@media (max-width: 599px) { html[data-store="b"] .g-later { margin-top: 72px; } }

/* ---------- footer ---------- */
html[data-store="b"] .site-footer { background: var(--bg); }
html[data-store="b"] .g-foot { display: grid; justify-items: center; gap: 16px; padding: 136px var(--margin) calc(40px + env(safe-area-inset-bottom)); text-align: center; }
html[data-store="b"] .g-foot-l { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
html[data-store="b"] .g-foot-l a { display: inline-block; padding: 12px 0; color: var(--text-2); text-decoration: none; }
html[data-store="b"] .g-foot-l a:hover { color: var(--text); }
html[data-store="b"] .g-foot-n { margin: 0; font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
@media (max-width: 599px) { html[data-store="b"] .g-foot { padding-top: 96px; } html[data-store="b"] .g-foot-l { gap: 0 16px; } }

/* ---------- product view ---------- */
html[data-store="b"] .g-pdp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 64px;
  max-width: 1440px; margin: 0 auto; padding: 8px var(--margin) 96px; align-items: start; }
html[data-store="b"] .g-close { position: absolute; top: 4px; right: calc(var(--margin) - 12px); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: var(--text); }
html[data-store="b"] .g-close .ic { width: 22px; height: 22px; }
html[data-store="b"] .g-pdp-gal { min-width: 0; display: flex; justify-content: center; }
html[data-store="b"] .g-gal { --gal-mode: carousel; display: grid; gap: 16px; justify-items: center; width: min(100%, calc(100vh - var(--hdr) - 164px)); min-width: min(100%, 420px); }
html[data-store="b"] .g-stage { position: relative; width: 100%; min-width: 0; }
html[data-store="b"] .g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline-offset: -2px; }
html[data-store="b"] .g-track::-webkit-scrollbar { display: none; }
html[data-store="b"] .g-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
html[data-store="b"] .g-slide .media { aspect-ratio: 1; }
html[data-store="b"] .g-count { display: none; }
html[data-store="b"] .g-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html[data-store="b"] .g-thumb { position: relative; width: 56px; height: 56px; padding: 0; border: 0; background: none; opacity: .5;
  transition: opacity var(--d1) var(--ease-ui), transform var(--d2) var(--ease-ui); }
html[data-store="b"] .g-thumb .media { position: absolute; inset: 0; aspect-ratio: auto; pointer-events: none; }
html[data-store="b"] .g-thumb:hover { opacity: .85; }
html[data-store="b"] .g-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 1px 0 0 var(--text); }
html[data-store="b"] .g-gal.is-single .g-thumbs { display: none; }

html[data-store="b"] .g-pdp-info { position: sticky; top: calc(var(--hdr) + 16px); padding-top: 12px; min-width: 0; }
html.hdr-hidden[data-store="b"] .g-pdp-info { top: 24px; }
html[data-store="b"] .g-sku { margin: 0 44px 20px 0; color: var(--text-2); overflow-wrap: anywhere; }
html[data-store="b"] .g-pdp-st { margin: 0 0 6px; color: var(--text); }
html[data-store="b"] .g-name { margin: 0; font: 500 22px/1.25 var(--font); letter-spacing: 0; }
html[data-store="b"] .g-type { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
html[data-store="b"] .g-price { margin: 12px 0 32px; font-size: 16px; font-variant-numeric: tabular-nums; }
html[data-store="b"] .g-opt { margin-bottom: 24px; }
html[data-store="b"] .g-opt-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
html[data-store="b"] .g-opt-h b { font-weight: 600; color: var(--text-2); }
html[data-store="b"] .g-opt-h .g-lnk { margin-left: auto; }
html[data-store="b"] .g-lnk { padding: 0; border: 0; background: none; color: var(--text-2); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[data-store="b"] .g-lnk:hover { color: var(--text); }
html[data-store="b"] .g-sws { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -6px; }
html[data-store="b"] .g-sw { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; transition: transform var(--d2) var(--ease-ui); }
html[data-store="b"] .g-sw-c { position: absolute; inset: 8px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .16); transition: box-shadow var(--d2) var(--ease-ui); }
html[data-store="b"] .g-sw:hover .g-sw-c { box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .16), 0 0 0 1px var(--text-2); }
html[data-store="b"] .g-sw[aria-checked="true"] { transform: translateY(calc(-1 * var(--notch))); }
html[data-store="b"] .g-sw[aria-checked="true"] .g-sw-c { box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .16), 0 0 0 2px var(--bg), 0 0 0 4px var(--sel); }
html[data-store="b"] .g-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
html[data-store="b"] .g-chips-w { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
html[data-store="b"] .g-chip { min-height: 44px; padding: 6px 8px; border: 0; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform var(--d2) var(--ease-ui), background-color var(--d2) var(--ease-ui), box-shadow var(--d1) var(--ease-ui); }
html[data-store="b"] .g-chip:hover { box-shadow: inset 0 0 0 1px var(--text); }
html[data-store="b"] .g-chip[aria-checked="true"] { background: var(--sel); color: var(--on-sel); box-shadow: none; transform: translateY(calc(-1 * var(--notch))); }
html[data-store="b"] [data-need] > .g-chip { box-shadow: inset 0 0 0 1px var(--err); }
html[data-store="b"] .g-d { display: block; margin-top: 2px; font-size: 10px; line-height: 12px; color: var(--text-2); }
html[data-store="b"] .g-chip[aria-checked="true"] .g-d { color: inherit; }
html[data-store="b"] .g-msg { min-height: 0; margin: 0; }
html[data-store="b"] .g-msg:not(:empty) { margin: 0 0 12px; }
html[data-store="b"] .g-add { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin: 8px 0 0; padding: 0 20px; border: 0;
  background: var(--btn); color: var(--btn-text); font-size: 13px; letter-spacing: .08em; transition: background-color var(--d1) var(--ease-ui); }
html[data-store="b"] .g-add:hover { background: var(--btn-hover); }
html[data-store="b"] .g-add:disabled { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: default; }
html[data-store="b"] .g-add[aria-busy="true"] { opacity: .7; }
html[data-store="b"] .g-note { margin: 12px 0 28px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
html[data-store="b"] .g-accs { border-top: 1px solid var(--line-strong); }
html[data-store="b"] .g-acc { border-bottom: 1px solid var(--line-strong); }
html[data-store="b"] .g-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; }
html[data-store="b"] .g-acc summary::-webkit-details-marker { display: none; }
html[data-store="b"] .g-acc summary .ic { width: 16px; height: 16px; transition: transform var(--d2) var(--ease-ui); }
html[data-store="b"] .g-acc[open] summary .ic { transform: rotate(180deg); }
html[data-store="b"] .g-acc-b { padding: 0 0 20px; font-size: 14px; line-height: 1.6; }
html[data-store="b"] .g-acc-b p { margin: 0 0 12px; }
html[data-store="b"] .g-acc-b p:last-child { margin-bottom: 0; }
html[data-store="b"] .g-comfort b { font-weight: 600; }
html[data-store="b"] .g-facts { display: grid; gap: 10px; margin: 16px 0 0; }
html[data-store="b"] .g-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
html[data-store="b"] .g-facts div:not(:has(dt)) { grid-template-columns: minmax(0, 1fr); }
html[data-store="b"] .g-facts dt { font-size: 11px; color: var(--text-2); padding-top: 2px; }
html[data-store="b"] .g-facts dd { margin: 0; }
html[data-store="b"] .g-parts { list-style: none; margin: 0; padding: 0; }
html[data-store="b"] .g-parts a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--text); text-decoration: none; }
html[data-store="b"] .g-parts a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
html[data-store="b"] .g-parts-c { color: var(--text-2); font-size: 11px; }

/* phone bag bar (engine: shown once the main button has scrolled away; hidden from 960 px) */
html[data-store="b"] .g-buybar { background: var(--bg); box-shadow: 0 -1px 0 var(--line-strong); padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom)); }
html[data-store="b"] .g-buybar-in { display: flex; align-items: center; gap: 12px; }
html[data-store="b"] .g-buybar-t { flex: 1; min-width: 0; margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-store="b"] .g-buybar-t b { font-weight: 500; }
html[data-store="b"] .g-add-s { width: auto; flex: 0 0 auto; height: 44px; margin: 0; }

@media (max-width: 959px) {
  html[data-store="b"] .g-pdp { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 0 112px; }
  html[data-store="b"] .g-gal { width: 100%; min-width: 0; }
  html[data-store="b"] .g-thumbs { display: none; }
  html[data-store="b"] .g-count { display: block; position: absolute; left: var(--margin); bottom: 12px; color: var(--text-2); }
  html[data-store="b"] .g-pdp-info { position: static; padding: 0 var(--margin); }
  html[data-store="b"] .g-close { top: 4px; right: 8px; background: var(--bg); border-radius: 50%; }
  html[data-store="b"] .campaign-caption { left: 12px; right: auto; text-align: left; }
  html[data-store="b"] .g-sku { margin-right: 0; }
}

/* ---------- bag page and drawer on the field ---------- */
html[data-store="b"] .g-bagp { padding-top: 16px; }
html[data-store="b"] .drawer { background: var(--bg); }

/* ---------- motion: the photograph carries between the grid and the product view ---------- */
html[data-store="b"]::view-transition-old(root) { animation: g-out var(--d1) var(--ease-ui) both; }
html[data-store="b"]::view-transition-new(root) { animation: g-in var(--d2) var(--ease-ui) both; }
html[data-store="b"].g-vt-morph::view-transition-new(root) { animation-delay: 120ms; }
html[data-store="b"]::view-transition-group(g-hero) { animation-duration: 420ms; animation-timing-function: var(--ease-mark); z-index: 50; }
html[data-store="b"]::view-transition-old(g-hero), html[data-store="b"]::view-transition-new(g-hero) { animation-duration: 420ms; animation-timing-function: var(--ease-mark); height: 100%; }
@keyframes g-in { from { opacity: 0; } }
@keyframes g-out { to { opacity: 0; } }

/* ---------- preview switch (preview builds only; both stores) ---------- */
.ab-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 6px 16px; background: #0B0B0B; color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12); font-family: var(--font); font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: .06em;
  text-transform: uppercase; font-stretch: var(--l-stretch); font-variant-numeric: tabular-nums; }
.ab-set { display: inline-flex; }
.ab-bar button { min-height: 32px; padding: 0 12px; border: 0; background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.ab-bar button + button { margin-left: -1px; }
.ab-bar button[aria-pressed="true"] { background: #FFFFFF; color: #0B0B0B; box-shadow: inset 0 0 0 1px #FFFFFF; cursor: default; }
.ab-bar button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.ab-note { color: rgba(255, 255, 255, .62); }
@media (max-width: 599px) { .ab-note { display: none; } .ab-bar { padding-inline: 8px; } }
