@charset "UTF-8";

/* ==========================================================================
   Hobby Paint Store — fictional white-label storefront for BattleStack demos
   Independent visual system: warm paper, bottle green, terracotta accents and
   an editorial serif. It intentionally does not reuse the BattleStack header,
   palette or typography.
   ========================================================================== */

.store-page {
  --sp-paper: #f4eee3;
  --sp-paper-deep: #ebe2d2;
  --sp-surface: #fffdf7;
  --sp-surface-soft: #f8f3e9;
  --sp-ink: #19231d;
  --sp-ink-soft: #35413a;
  --sp-muted: #5c635d;
  --sp-line: #d9cfbd;
  --sp-line-soft: #e8dfd0;
  --sp-green: #274535;
  --sp-green-2: #345940;
  --sp-green-soft: #e6ece4;
  --sp-rust: #a54e32;
  --sp-rust-soft: #f6e7de;
  --sp-gold: #c6974f;
  --sp-focus: #205c86;
  --sp-serif: "EB Garamond", Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  min-height: 100vh;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--sp-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.store-page *,
.store-page *::before,
.store-page *::after { box-sizing: border-box; }

.store-page img,
.store-page svg { display: block; max-width: 100%; }

.store-page [hidden] { display: none !important; }

.store-page a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.store-page a:hover { color: var(--sp-rust); }

.store-page button,
.store-page input { font: inherit; }

.store-page :focus-visible {
  outline: 3px solid var(--sp-focus);
  outline-offset: 3px;
}

.store-page h1,
.store-page h2,
.store-page h3,
.store-page p,
.store-page ul,
.store-page dl,
.store-page dd { margin-top: 0; }

.store-page h1,
.store-page h2,
.store-page h3 {
  font-family: var(--sp-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.store-page h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 5vw, 4.8rem);
}

.store-page h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.store-page h3 {
  margin-bottom: 6px;
  font-size: 1.42rem;
  line-height: 1.1;
}

.store-page p { margin-bottom: 16px; }

.store-page .store-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 44px;
}

.store-page .store-eyebrow {
  margin-bottom: 10px;
  color: var(--sp-rust);
  font-family: var(--sp-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

/* Demo strip ----------------------------------------------------------------- */

.store-demo-strip {
  background: var(--sp-ink);
  color: #d8e0d7;
  font-size: 0.7rem;
  line-height: 1.45;
}

.store-demo-strip .store-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.store-demo-strip strong {
  color: #fff;
  font-weight: 650;
}

.store-demo-strip a {
  flex: none;
  color: #eccb8d;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(236, 203, 141, 0.45);
}

.store-demo-strip a:hover { color: #fff; }

/* Header --------------------------------------------------------------------- */

.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(255, 253, 247, 0.97);
  backdrop-filter: blur(10px);
}

.store-header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 94px;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  line-height: 1;
}

.store-brand__mark {
  position: relative;
  display: block;
  width: 31px;
  height: 38px;
  border: 2px solid var(--sp-ink);
  border-radius: 3px 3px 7px 7px;
  background: var(--sp-green);
  box-shadow: inset 0 8px 0 #f0d6a5;
}

.store-brand__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 10px;
  height: 16px;
  border-radius: 1px;
  background:
    linear-gradient(90deg, #c58d49 0 33%, #b04d34 33% 66%, #2a5e87 66% 100%);
}

.store-brand__copy { display: block; }

.store-brand strong {
  display: block;
  font-family: var(--sp-serif);
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.store-brand small {
  display: block;
  margin-top: 4px;
  color: var(--sp-muted);
  font-family: var(--sp-mono);
  font-size: 0.51rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 20px;
}

.store-nav a {
  padding: 9px 0;
  color: var(--sp-ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.store-nav a[aria-current="page"] {
  color: var(--sp-ink);
  text-decoration: underline;
  text-decoration-color: var(--sp-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.store-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 25vw);
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid var(--sp-line);
  border-radius: 2px;
  background: var(--sp-surface-soft);
}

.store-search input {
  width: 100%;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--sp-ink);
  font-size: 0.76rem;
}

.store-search input::placeholder { color: #5c635d; }
.store-search input:focus { outline: 0; }
.store-search:focus-within { border-color: var(--sp-green); box-shadow: 0 0 0 1px var(--sp-green); }
.store-search__icon { flex: none; color: var(--sp-muted); font-size: 1rem; line-height: 1; }

.store-bag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid var(--sp-line);
  border-radius: 2px;
  background: transparent;
  color: var(--sp-ink);
  font-size: 0.71rem;
  font-weight: 650;
}

.store-bag:hover { border-color: var(--sp-green); color: var(--sp-green); }

.store-bag__count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sp-green);
  color: #fff;
  font-size: 0.6rem;
  line-height: 1;
}

/* Breadcrumb and shared product elements ------------------------------------- */

.store-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-top: 22px;
  color: var(--sp-muted);
  font-family: var(--sp-mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.store-breadcrumb a { color: var(--sp-muted); }
.store-breadcrumb span[aria-hidden="true"] { color: #a69a86; }
.store-breadcrumb strong { color: var(--sp-ink-soft); font-weight: 650; }

.store-main { padding-bottom: 20px; }

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--sp-line);
  border-radius: 2px;
  background: var(--sp-surface);
  color: var(--sp-ink-soft);
  font-family: var(--sp-mono);
  font-size: 0.55rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-pill--demo {
  border-color: #dfc79f;
  background: #fbf1dd;
  color: #7c571b;
}

.store-pill--premium {
  border-color: #d7a992;
  background: var(--sp-rust-soft);
  color: #7e341d;
}

.store-pill--stock {
  border-color: #bed2c1;
  background: var(--sp-green-soft);
  color: #2e5a3b;
}

.store-pill--stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3e754c;
}

/* Paint pot illustration ----------------------------------------------------- */

.paint-pot {
  --pot-color: #0f3d7c;
  position: relative;
  width: 14.5em;
  height: 18.4em;
  margin: 0 auto;
  font-size: 13px;
  filter: drop-shadow(0 28px 22px rgba(37, 31, 20, 0.19));
}

.paint-pot__lid {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13.2em;
  height: 2.85em;
  transform: translateX(-50%);
  border: 0.14em solid #171717;
  border-radius: 0.7em 0.7em 0.25em 0.25em;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 0.45em, rgba(0, 0, 0, 0.1) 0.45em 0.9em),
    #292929;
  box-shadow: inset 0 0.5em 0.45em rgba(255, 255, 255, 0.08);
}

.paint-pot__lid::after {
  content: "";
  position: absolute;
  left: 2.8em;
  right: 2.8em;
  bottom: -0.33em;
  height: 0.36em;
  border-radius: 0.15em;
  background: #151515;
}

.paint-pot__body {
  position: absolute;
  left: 50%;
  top: 2.55em;
  width: 12.2em;
  height: 15.5em;
  transform: translateX(-50%);
  border: 0.14em solid #171717;
  border-radius: 0.35em 0.35em 1.1em 1.1em;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.13), transparent 32%, rgba(0, 0, 0, 0.12) 100%),
    #242424;
  box-shadow: inset 0 -1.2em 1.4em rgba(0, 0, 0, 0.25);
}

.paint-pot__label {
  position: absolute;
  left: 50%;
  top: 2.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 8.8em;
  min-height: 7.2em;
  padding: 0.75em 0.5em;
  transform: translateX(-50%);
  border: 0.1em solid #d5c8ae;
  border-radius: 0.15em;
  background: #f6efdf;
  text-align: center;
}

.paint-pot__brand {
  color: #4b4437;
  font-family: var(--sp-mono);
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.paint-pot__name {
  display: block;
  margin-top: 0.3em;
  color: #1d241f;
  font-family: var(--sp-serif);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.05;
}

.paint-pot__swatch {
  display: block;
  width: 4.3em;
  height: 1.55em;
  margin-top: 0.5em;
  border: 0.08em solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: var(--pot-color);
}

.paint-pot__volume {
  position: absolute;
  left: 50%;
  bottom: 1.15em;
  transform: translateX(-50%);
  color: #b8b8b4;
  font-family: var(--sp-mono);
  font-size: 0.48em;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.store-swatch {
  --pot-color: #0f3d7c;
  display: block;
  width: 38px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.26);
  border-radius: 3px 3px 6px 6px;
  background:
    linear-gradient(180deg, transparent 0 26%, rgba(255, 255, 255, 0.14) 26% 30%, transparent 30%),
    var(--pot-color);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.store-swatch--round {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: none;
}

/* Product page --------------------------------------------------------------- */

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 82px);
  padding: 28px 0 66px;
}

.product-gallery {
  align-self: start;
  padding: 28px 28px 18px;
  border: 1px solid var(--sp-line-soft);
  background:
    radial-gradient(circle at 50% 42%, #fffdf7 0 24%, transparent 60%),
    linear-gradient(145deg, #eee5d5, #f8f2e7 60%, #e9dfce);
}

.product-gallery__stage {
  display: grid;
  place-items: center;
  min-height: 510px;
  padding: 18px;
}

.product-gallery__note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 170, 144, 0.5);
  color: #6d675b;
  font-family: var(--sp-mono);
  font-size: 0.54rem;
  letter-spacing: 0.03em;
  line-height: 1.55;
  text-transform: uppercase;
}

.product-info { align-self: center; max-width: 590px; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.product-title {
  margin-bottom: 6px !important;
  color: var(--sp-ink);
  font-size: clamp(3.2rem, 5vw, 4.9rem) !important;
}

.product-brandline {
  margin-bottom: 24px;
  color: var(--sp-muted);
  font-size: 0.88rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 11px;
  padding: 17px 0;
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}

.product-price strong {
  color: var(--sp-ink);
  font-family: var(--sp-serif);
  font-size: 2.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.product-price span {
  color: var(--sp-muted);
  font-size: 0.7rem;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
  color: #2e5a3b;
  font-size: 0.74rem;
  font-weight: 650;
}

.product-stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e754c;
}

.product-description {
  max-width: 520px;
  color: var(--sp-ink-soft);
  font-size: 0.95rem;
  line-height: 1.72;
}

.product-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 10px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid var(--sp-green);
  border-radius: 2px;
  background: var(--sp-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.store-button:hover {
  background: var(--sp-green-2);
  border-color: var(--sp-green-2);
  color: #fff;
}

.store-button--secondary {
  background: transparent;
  color: var(--sp-ink);
  border-color: var(--sp-line);
}

.store-button--secondary:hover {
  background: var(--sp-surface);
  border-color: var(--sp-green);
  color: var(--sp-green);
}

.store-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--sp-gold);
  color: var(--sp-ink);
  font-size: 0.76rem;
  font-weight: 650;
}

.store-text-link:hover { color: var(--sp-rust); }

.product-demo-note {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.64rem;
  line-height: 1.6;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--sp-line);
}

.product-meta div {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--sp-line-soft);
}

.product-meta div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--sp-line-soft); }

.product-meta dt {
  margin-bottom: 3px;
  color: var(--sp-muted);
  font-family: var(--sp-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-meta dd { margin: 0; color: var(--sp-ink-soft); font-size: 0.72rem; }

/* Alternatives panel --------------------------------------------------------- */

.alternatives-section {
  padding: 54px 0 60px;
  border-top: 1px solid var(--sp-line);
  background: var(--sp-surface-soft);
}

.alternatives-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.alternatives-head h2 { margin-bottom: 0; }
.alternatives-head p { max-width: 460px; margin: 0; color: var(--sp-muted); font-size: 0.82rem; line-height: 1.7; }

.alternatives-list { border-top: 1px solid var(--sp-line); }

.alt-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(95px, 0.9fr) minmax(110px, 1fr) minmax(80px, 0.7fr) auto;
  align-items: center;
  gap: 18px;
  padding: 19px 2px;
  border-bottom: 1px solid var(--sp-line);
}

.alt-row__paint {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.alt-row__name { min-width: 0; }

.alt-row__name h3 {
  margin-bottom: 3px;
  overflow: hidden;
  font-size: 1.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alt-row__name p { margin: 0; color: var(--sp-muted); font-size: 0.68rem; }

.alt-row__ref span,
.alt-row__price small,
.alt-row__match small {
  display: block;
  margin-bottom: 3px;
  color: var(--sp-muted);
  font-family: var(--sp-mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alt-row__ref strong { display: block; color: var(--sp-ink-soft); font-size: 0.72rem; font-weight: 650; }

.alt-row__match .delta {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid #bdd0bf;
  border-radius: 2px;
  background: var(--sp-green-soft);
  color: #2e5a3b;
  font-family: var(--sp-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.alt-row__match small { margin-top: 4px; margin-bottom: 0; }

.alt-row__price strong {
  display: block;
  color: var(--sp-ink);
  font-family: var(--sp-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.alt-row__price small { margin-top: 3px; margin-bottom: 0; }

.alt-row .store-button { min-height: 40px; padding: 9px 14px; font-size: 0.68rem; }

.match-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 980px;
  margin: 22px 0 0;
  color: var(--sp-muted);
  font-size: 0.68rem;
  line-height: 1.65;
}

.match-disclaimer strong {
  flex: none;
  padding: 2px 6px;
  border: 1px solid #d9c49a;
  border-radius: 2px;
  background: #fdf4df;
  color: #7b5719;
  font-family: var(--sp-mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
}

/* Alternative product page --------------------------------------------------- */

.match-source {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--sp-line);
  border-left: 3px solid var(--sp-rust);
  background: var(--sp-surface);
}

.match-source__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.match-source h3 { margin: 0; font-size: 1.25rem; }
.match-source p { margin: 0; color: var(--sp-muted); font-size: 0.76rem; line-height: 1.65; }

.match-source__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--sp-line-soft);
}

.match-source__row .store-swatch { width: 32px; height: 38px; }
.match-source__row span { min-width: 0; line-height: 1.3; }
.match-source__row strong { display: block; font-family: var(--sp-serif); font-size: 1.15rem; font-weight: 600; }
.match-source__row small { display: block; color: var(--sp-muted); font-size: 0.64rem; }
.match-source__row .store-pill { margin-left: auto; }
.match-source__back { margin: 14px 0 0; }

.more-alternatives { padding: 48px 0 62px; border-top: 1px solid var(--sp-line); }
.more-alternatives > .store-wrap > p { max-width: 580px; color: var(--sp-muted); font-size: 0.8rem; }

/* Army preview --------------------------------------------------------------- */

.army-hero {
  margin-top: 22px;
  padding: 54px 0 50px;
  background:
    radial-gradient(circle at 82% 16%, rgba(198, 151, 79, 0.18), transparent 32%),
    linear-gradient(135deg, #22392d, #182a21);
  color: #f7f1e4;
}

.army-hero .store-eyebrow { color: #e2b46d; }
.army-hero h1 { color: #fffdf7; }
.army-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; color: #c7d4c7; font-family: var(--sp-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.army-hero__summary { max-width: 660px; margin: 0; color: #e0e7dd; font-size: 0.88rem; line-height: 1.75; }
.army-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.army-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 21px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.army-picker__label { margin-right: 3px; color: #c0d0bf; font-family: var(--sp-mono); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.army-picker__chip { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 2px; color: #c9d5c8; font-size: 0.63rem; line-height: 1.3; }
.army-picker__chip--active { border-color: #f4eee3; background: #f4eee3; color: #20372a; font-weight: 650; }
.army-picker__chip--muted { border-style: dashed; color: #b6c6b6; }
.army-picker__note { margin-left: auto; color: #b6c6b6; font-family: var(--sp-mono); font-size: 0.48rem; letter-spacing: 0.04em; text-transform: uppercase; }
.army-hero .store-pill { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #f5ead4; }
.army-hero .store-pill--premium { border-color: #d7a992; background: var(--sp-rust-soft); color: #7e341d; }

.army-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
  align-items: start;
  gap: 40px;
  padding: 42px 0 60px;
}

.scheme-panel {
  border: 1px solid var(--sp-line);
  background: var(--sp-surface);
}

.scheme-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--sp-line);
}

.scheme-panel__head h2 { margin: 0; font-size: 2.1rem; }
.scheme-panel__head p { max-width: 390px; margin: 0; color: var(--sp-muted); font-size: 0.72rem; line-height: 1.6; }

.scheme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--sp-line-soft);
  background: var(--sp-surface-soft);
}

.scheme-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--sp-line);
  border-radius: 2px;
  background: var(--sp-surface);
  color: var(--sp-ink-soft);
  font-size: 0.62rem;
}

.scheme-chip i {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  background: var(--pot-color);
}

.scheme-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--sp-line-soft);
}

.scheme-row:last-child { border-bottom: 0; }

.scheme-row__index {
  color: var(--sp-rust);
  font-family: var(--sp-mono);
  font-size: 0.57rem;
  font-weight: 700;
}

.scheme-row__paint { display: flex; align-items: center; gap: 11px; min-width: 0; }
.scheme-row__paint .store-swatch { width: 30px; height: 36px; }
.scheme-row__paint h3 { margin-bottom: 2px; overflow: hidden; font-size: 1.25rem; text-overflow: ellipsis; white-space: nowrap; }
.scheme-row__paint p { margin: 0; color: var(--sp-muted); font-size: 0.62rem; }
.scheme-row__role span,
.scheme-row__coats span,
.scheme-row__mapping span { display: block; margin-bottom: 2px; color: var(--sp-muted); font-family: var(--sp-mono); font-size: 0.48rem; letter-spacing: 0.05em; text-transform: uppercase; }
.scheme-row__role strong,
.scheme-row__coats strong { color: var(--sp-ink-soft); font-size: 0.68rem; font-weight: 600; line-height: 1.45; }
.scheme-row__mapping strong { color: var(--sp-ink-soft); font-size: 0.66rem; font-weight: 600; line-height: 1.45; }
.scheme-row__mapping small { display: block; margin-top: 2px; color: var(--sp-muted); font-size: 0.58rem; }
.scheme-row__mapping a { display: inline-flex; margin-top: 3px; color: var(--sp-rust); font-size: 0.6rem; font-weight: 650; }
.scheme-row--alternative { background: #fdf7ec; }

.scheme-note {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--sp-line);
  background: var(--sp-surface-soft);
  color: var(--sp-muted);
  font-size: 0.64rem;
  line-height: 1.65;
}

.scheme-note strong { flex: none; color: var(--sp-rust); font-family: var(--sp-mono); font-size: 0.54rem; letter-spacing: 0.05em; text-transform: uppercase; }

.basket-preview {
  position: sticky;
  top: 116px;
  border: 1px solid var(--sp-line);
  background: var(--sp-surface);
}

.basket-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sp-line);
  background: var(--sp-surface-soft);
}

.basket-preview__head span:first-child { color: var(--sp-ink); font-family: var(--sp-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.basket-preview h2 { margin: 20px 20px 3px; font-size: 2rem; }
.basket-preview__sub { margin: 0 20px 15px; color: var(--sp-muted); font-size: 0.66rem; }

.basket-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sp-line-soft); }
.basket-items li { display: flex; align-items: center; gap: 11px; padding: 11px 20px; border-bottom: 1px solid var(--sp-line-soft); }
.basket-items .store-swatch { width: 27px; height: 32px; }
.basket-items__copy { min-width: 0; flex: 1; }
.basket-items__copy strong { display: block; overflow: hidden; font-family: var(--sp-serif); font-size: 1.02rem; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.basket-items__copy small { display: block; color: var(--sp-muted); font-size: 0.56rem; }
.basket-items__price { flex: none; color: var(--sp-ink-soft); font-family: var(--sp-mono); font-size: 0.62rem; }

.basket-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px 12px;
}

.basket-total span { color: var(--sp-muted); font-family: var(--sp-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; }
.basket-total strong { color: var(--sp-ink); font-family: var(--sp-serif); font-size: 1.85rem; font-weight: 500; }

.basket-preview .store-button { width: calc(100% - 40px); margin: 0 20px 10px; }
.basket-preview__note { margin: 0 20px 20px; color: var(--sp-muted); font-size: 0.6rem; line-height: 1.6; }

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

.store-demo-footer {
  margin-top: 20px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--sp-line);
  background: #eee5d6;
}

.store-demo-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.store-demo-footer strong { display: block; margin-bottom: 5px; font-family: var(--sp-serif); font-size: 1.2rem; font-weight: 600; }
.store-demo-footer p { max-width: 700px; margin: 0; color: var(--sp-muted); font-size: 0.64rem; line-height: 1.7; }
.store-demo-footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: none; padding-top: 4px; }
.store-demo-footer__links a { color: var(--sp-ink-soft); font-size: 0.64rem; text-decoration: underline; text-decoration-color: var(--sp-gold); text-underline-offset: 4px; }

/* Dialog --------------------------------------------------------------------- */

.store-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--sp-line);
  border-radius: 3px;
  background: var(--sp-surface);
  color: var(--sp-ink);
  box-shadow: 0 30px 80px rgba(30, 25, 17, 0.28);
}

.store-dialog::backdrop { background: rgba(22, 30, 25, 0.55); }
.store-dialog__inner { padding: 28px 28px 24px; }
.store-dialog h2 { margin-bottom: 10px; font-size: 2rem; }
.store-dialog p { color: var(--sp-muted); font-size: 0.8rem; line-height: 1.7; }
.store-dialog .store-button { width: 100%; margin-top: 8px; }

/* Responsive ----------------------------------------------------------------- */

@media (max-width: 1120px) {
  .store-page .store-wrap { padding-left: 30px; padding-right: 30px; }
  .store-header__inner { gap: 17px; }
  .store-nav { gap: 17px; margin-left: 8px; }
  .store-search { width: min(260px, 23vw); }
  .alt-row { grid-template-columns: minmax(0, 1.9fr) minmax(80px, 0.8fr) minmax(100px, 1fr) auto; }
  .alt-row__price { display: none; }
  .army-layout { grid-template-columns: 1fr; }
  .basket-preview { position: static; max-width: 620px; }
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 50px; }
  .product-gallery { max-width: 640px; }
  .product-info { max-width: 680px; }
  .product-gallery__stage { min-height: 420px; }
  .alternatives-head { display: block; }
  .alternatives-head p { margin-top: 10px; }
  .alt-row { grid-template-columns: minmax(0, 1.8fr) minmax(85px, 0.8fr) auto; }
  .alt-row__ref { display: none; }
  .scheme-row { grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1fr); }
  .scheme-row__role { display: none; }
}

@media (max-width: 760px) {
  .store-demo-strip .store-wrap { display: block; padding-top: 7px; padding-bottom: 7px; }
  .store-demo-strip a { display: inline-block; margin-top: 2px; }
  .store-header { position: static; }
  .store-header__inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 14px; padding-bottom: 12px; }
  .store-brand strong { font-size: 1.3rem; }
  .store-nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; margin: 0; padding-top: 4px; border-top: 1px solid var(--sp-line-soft); }
  .store-nav a { white-space: nowrap; }
  .store-search { order: 4; width: 100%; margin: 0; }
  .store-bag { margin-left: auto; }
  .store-page .store-wrap { padding-left: 20px; padding-right: 20px; }
  .store-page h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .store-page h2 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .product-gallery { padding: 18px 18px 14px; }
  .product-gallery__stage { min-height: 350px; }
  .paint-pot { font-size: 11px; }
  .product-price strong { font-size: 2.3rem; }
  .product-meta { grid-template-columns: 1fr; }
  .product-meta div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .alternatives-section { padding-top: 40px; padding-bottom: 44px; }
  .alt-row { grid-template-columns: 1fr auto; gap: 12px; }
  .alt-row__paint { grid-column: 1 / -1; }
  .alt-row__ref { display: none; }
  .alt-row__match { grid-column: 1; }
  .alt-row .store-button { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .match-disclaimer { display: block; }
  .match-disclaimer strong { display: inline-block; margin-bottom: 6px; }
  .army-hero { padding: 40px 0 38px; }
  .army-layout { padding-top: 30px; }
  .scheme-panel__head { display: block; padding: 20px; }
  .scheme-panel__head p { margin-top: 8px; }
  .scheme-chips { padding: 14px 20px; }
  .scheme-row { grid-template-columns: 24px minmax(0, 1fr); padding: 15px 20px; }
  .scheme-row__coats { display: none; }
  .scheme-row__mapping { grid-column: 2; }
  .store-demo-footer__inner { display: block; }
  .store-demo-footer__links { margin-top: 16px; }
  .store-dialog__inner { padding: 22px; }
}

@media (max-width: 480px) {
  .store-page .store-wrap { padding-left: 16px; padding-right: 16px; }
  .product-gallery__stage { min-height: 300px; }
  .paint-pot { font-size: 9.5px; }
  .product-buy .store-button { width: 100%; }
  .product-buy .store-text-link { margin: 2px auto 0; }
  .scheme-row { grid-template-columns: 22px minmax(0, 1fr); }
  .scheme-row__paint h3 { font-size: 1.1rem; }
  .basket-preview h2 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .store-page *,
  .store-page *::before,
  .store-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Search submit control */
.store-search__submit {
  flex: none;
  padding: 2px 1px 2px 5px;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  font-size: 0.92rem;
  line-height: 1;
}

.store-search__submit:hover { color: var(--sp-green); }

.store-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.product-stock--out { color: var(--sp-rust); }
.product-stock--out::before { background: var(--sp-rust); }

.store-button--disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
