/* ==========================================================================
   Depot design system
   Brand colors come from config (theme.*) and are injected as --brand*
   variables in layouts/main.php. Everything else is shared by all brands.
   Area stylesheets (store.css, checkout.css, account.css, admin.css) and the
   brand's lookup.css build on these tokens and components.
   ========================================================================== */

:root {
  --brand: #e8710a;
  --brand-hover: #c95f05;
  --on-brand: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --brand-ring: color-mix(in srgb, var(--brand) 35%, transparent);
  /* Readable link/accent text on white for any brand color (yellow included) */
  --link: color-mix(in srgb, var(--brand) 35%, var(--text));
  --accent: #1d2433;
  --accent-2: #2f3a52;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e6e9ee;
  --border: #e1e5eb;
  --border-strong: #c9cfd8;
  --text: #151a24;
  --text-muted: #5a6475;
  --text-subtle: #8a93a3;

  --success: #13795b;
  --success-soft: #e6f5ef;
  --warning: #a35a04;
  --warning-soft: #fdf3e2;
  --danger: #c22a32;
  --danger-soft: #fdebec;
  --info: #1f5fc8;
  --info-soft: #e8f0fd;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgb(16 24 40 / 6%);
  --shadow-sm: 0 1px 3px rgb(16 24 40 / 8%), 0 1px 2px rgb(16 24 40 / 4%);
  --shadow: 0 4px 12px rgb(16 24 40 / 8%), 0 2px 4px rgb(16 24 40 / 4%);
  --shadow-lg: 0 16px 40px rgb(16 24 40 / 14%), 0 4px 10px rgb(16 24 40 / 6%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  /* Height of the whole sticky header (logo row + nav row); app.js replaces this estimate with the measured value. */
  --header-offset: calc(var(--header-h) + 48px);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 750; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
small, .small { font-size: .875rem; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
::selection { background: var(--brand-ring); }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 4px; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.25em;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--xl { width: 2.4em; height: 2.4em; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- layout */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.container--tight { max-width: 560px; }
main { flex: 1 0 auto; }
.section { padding-block: clamp(28px, 5vw, 56px); }
.section--tight { padding-block: clamp(16px, 3vw, 28px); }
.section--white { background: var(--surface); }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.stack--sm { --gap: 8px; }
.stack--lg { --gap: 28px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }
.spacer { flex: 1; }

.grid { display: grid; gap: var(--gap, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(var(--min, 240px), 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Two-column page with sidebar (filters, summaries) */
.layout-sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.layout-sidebar--right { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 960px) { .layout-sidebar, .layout-sidebar--right { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--header-offset) + 16px); }

/* --------------------------------------------------------------- utility bar + header */

.topbar { background: var(--accent); color: #d6dbe5; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__links { margin-left: auto; display: flex; gap: 18px; }
@media (max-width: 760px) { .topbar__hide-sm { display: none; } .topbar__links { gap: 14px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg, var(--surface));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.site-header__main { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: auto; max-height: 52px; width: auto; }
.site-search { flex: 1; max-width: 640px; }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r);
  color: var(--text); font-weight: 600; font-size: .95rem; position: relative; background: none; border: 0; cursor: pointer;
}
.header-action:hover { background: var(--surface-2); text-decoration: none; }
.header-action .icon { width: 1.4em; height: 1.4em; }
.cart-badge {
  position: absolute; top: 2px; left: 26px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--brand); color: var(--on-brand);
  font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.cart-badge[data-count="0"] { display: none; }
.nav-toggle { display: none; }

.site-nav { border-top: 1px solid var(--border); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: .95rem;
  color: var(--text-muted); border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-active { color: var(--text); border-bottom-color: var(--brand); }
.site-nav .nav-highlight { color: var(--link); }

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .header-action__label { display: none; }
  .site-logo img { max-height: 40px; }
  .site-header__main { flex-wrap: wrap; }
  .site-search { order: 10; flex-basis: 100%; max-width: none; padding-bottom: 12px; }
}

/* Off-canvas drawer (mobile nav) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(10 14 22 / 50%); opacity: 0; transition: opacity .25s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: var(--surface);
  transform: translateX(-100%); transition: transform .28s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer__nav { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: var(--r); color: var(--text); font-weight: 600; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--surface-2); text-decoration: none; }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-muted); }

/* Cart drawer: slides in from the right after "Add to cart" (partials/cart-drawer) */
.drawer--right .drawer__panel { left: auto; right: 0; width: min(100vw, 420px); transform: translateX(100%); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.drawer--right.is-open .drawer__panel { transform: none; }
.cart-drawer:focus { outline: none; }
.cart-drawer__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--border); }
.cart-drawer__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; }
.cart-drawer__title .icon { color: var(--success); }
.cart-drawer__close { margin-left: auto; }
.cart-drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.cart-drawer__list { list-style: none; margin: 0; padding: 0; }
.mini-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mini-line:last-child { border-bottom: 0; }
.mini-line__media { display: block; width: 64px; height: 64px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; overflow: hidden; }
.mini-line__media img { width: 100%; height: 100%; object-fit: contain; }
.mini-line__media .placeholder-img { width: 100%; height: 100%; border-radius: 0; }
.mini-line__info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mini-line__flag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.mini-line__title { color: var(--text); font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-line__title:hover { color: var(--brand-deep, var(--text)); }
.mini-line__meta { font-size: .85rem; color: var(--text-muted); }
.mini-line__total { font-weight: 700; white-space: nowrap; }
.mini-line.is-unavailable .mini-line__title { color: var(--text-muted); }
.mini-line { transition: opacity .2s, transform .2s; }
.mini-line.is-updating { opacity: .55; }
.mini-line.is-removing { opacity: 0; transform: translateX(16px); }
.mini-line { row-gap: 10px; }
.mini-line__controls { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mini-line__controls form { margin: 0; }
.mini-line__controls .qty-stepper button, .mini-line__controls .qty-stepper input { min-height: 34px; }
.mini-line__remove { display: inline-flex; align-items: center; gap: 5px; padding: 6px 2px; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.mini-line__remove:hover { color: var(--danger); }
.mini-line__remove.is-loading { opacity: .5; pointer-events: none; }
.cart-drawer__title--plain .icon { color: var(--text-muted); }
.cart-drawer__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 32px 24px; text-align: center; color: var(--text-muted); }
.cart-drawer__empty > .icon { width: 48px; height: 48px; color: var(--text-subtle); stroke-width: 1.5; margin-bottom: 8px; }
.cart-drawer__empty h3 { margin: 0; color: var(--text); }
.cart-drawer__empty p { margin: 0 0 14px; }
.cart-drawer__foot { display: grid; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -8px 20px rgb(16 24 40 / 5%); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.08rem; font-weight: 700; }
.cart-drawer__subtotal .muted { font-weight: 500; font-size: .92rem; }
.cart-drawer__note { margin: -4px 0 0; font-size: .84rem; color: var(--text-muted); }
.cart-drawer__free { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: .86rem; }
.cart-drawer__free p { margin: 0 0 8px; }
.cart-drawer__free .icon { color: var(--success); vertical-align: -2px; }
.cart-drawer__bar { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.cart-drawer__bar span { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.cart-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.availability { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.availability .icon { flex: none; }
.availability--now { color: var(--success); }
.availability--later { color: var(--warning); }
@media (max-width: 520px) { .drawer--right .drawer__panel { border-radius: 0; } }

/* Store-wide announcement (Admin → Settings) */
.announcement { background: var(--brand); color: var(--on-brand); font-size: .9rem; font-weight: 600; text-align: center; }
.announcement .container { padding-block: 8px; display: flex; gap: 8px; align-items: center; justify-content: center; }

/* Acting-as banner for phone orders */
.acting-banner { background: #fff4d6; border-bottom: 1px solid #f1d58a; color: #6b4b00; font-size: .9rem; }
.acting-banner .container { display: flex; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; }

/* --------------------------------------------------------------- search box */

.search-box { position: relative; display: flex; }
.search-box .input {
  padding-left: 44px; height: 46px; border-radius: var(--r-pill); background: var(--surface-2); border-color: transparent;
}
.search-box .input:focus { background: var(--surface); border-color: var(--brand); }
.search-box .input { padding-right: 104px; }
.search-box > .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.search-box .btn { position: absolute; right: 4px; top: 4px; bottom: 4px; border-radius: var(--r-pill); padding-inline: 18px; }
.search-box--lg .input { height: 58px; font-size: 1.05rem; padding-left: 52px; background: var(--surface); box-shadow: var(--shadow); }
.search-box--lg > .icon { left: 19px; }
.search-box--lg .btn { right: 6px; top: 6px; bottom: 6px; padding-inline: 24px; }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 42px; border-radius: var(--r);
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-border: var(--brand); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--dark { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: var(--accent); }
.btn--dark:hover { background: var(--accent-2); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-border: color-mix(in srgb, var(--danger) 40%, white); }
.btn--danger:hover { background: var(--danger-soft); }
.btn--danger-solid { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: var(--danger); }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: .875rem; border-radius: var(--r-sm); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 42px; }
.btn--icon.btn--sm { width: 34px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; font-weight: 600; }
.link-button:hover { text-decoration: underline; }
.link-muted { color: var(--text-muted); }

/* --------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.form-grid > * { grid-column: span 12; }
.span-6 { grid-column: span 6 !important; }
.span-4 { grid-column: span 4 !important; }
.span-3 { grid-column: span 3 !important; }
.span-8 { grid-column: span 8 !important; }
@media (max-width: 640px) { .span-6, .span-4, .span-3, .span-8 { grid-column: span 12 !important; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label, label.label { font-weight: 600; font-size: .9rem; color: var(--text); }
.field__label .optional { color: var(--text-subtle); font-weight: 500; }
.field__hint { font-size: .84rem; color: var(--text-muted); }
.field__error { font-size: .84rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 10px 13px; min-height: 44px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.has-error .input, .has-error .select, .has-error .textarea, .input.is-invalid { border-color: var(--danger); }
.input--sm, .select--sm { min-height: 36px; padding: 6px 10px; font-size: .9rem; border-radius: var(--r-sm); }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }

.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.qty-stepper button { width: 38px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty-stepper button:hover { background: var(--surface-3); }
.qty-stepper input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 650; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }
.qty-stepper:has(input:focus-visible) { outline: 3px solid var(--brand-ring); outline-offset: 1px; }
.qty-stepper--sm button { width: 32px; }
.qty-stepper--sm input { width: 42px; font-size: .9rem; }

/* --------------------------------------------------------------- cards, panels */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card__header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.card__header h2, .card__header h3 { margin: 0; font-size: 1.05rem; }
.card__body { padding: 20px; }
.card__footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card--pad { padding: clamp(18px, 3vw, 28px); }
.card--flat { box-shadow: none; }
.card--muted { background: var(--surface-2); }
.card--link { transition: box-shadow .2s, transform .2s, border-color .2s; color: inherit; display: block; }
.card--link:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); text-decoration: none; }

.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 14px; }

/* --------------------------------------------------------------- page header & breadcrumbs */

.page-header { padding-block: clamp(20px, 4vw, 36px) 8px; }
.page-header h1 { margin-bottom: 6px; }
.page-header__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 70ch; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-muted); margin-bottom: 12px; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-subtle); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- badges, alerts, price */

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-3); color: var(--text-muted);
}
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--brand { background: var(--brand-soft); color: var(--link); }
.badge--dark { background: var(--accent); color: #fff; }
.badge .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  border: 1px solid transparent; font-size: .95rem; background: var(--surface-2);
}
.alert > .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, white); color: #0c4e3b; }
.alert--error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, white); color: #7d1a20; }
.alert--warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 25%, white); color: #6b3b02; }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, white); color: #173f86; }
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.price { font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.price--lg { font-size: 1.75rem; letter-spacing: -0.02em; }
.price--muted { color: var(--text-subtle); font-weight: 600; }
.sku { font-family: var(--font-mono); font-size: .88em; color: var(--text-muted); letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }

/* --------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, white); }
.table .num, .table .text-right { text-align: right; }
.table--compact th, .table--compact td { padding: 8px 12px; }
.table tr.is-highlight td { background: var(--brand-soft) !important; }

/* On small screens, .table--stack rows become cards; cells need data-label */
@media (max-width: 720px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table--stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right !important; }
  .table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-muted); text-align: left; font-size: .85rem; }
  .table--stack td[data-label=""]::before { content: none; }
  .table--stack td.stack-full { display: block; text-align: left !important; }
}

/* --------------------------------------------------------------- product cards & grids */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.product-card__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
.product-card__media img { max-height: 100%; object-fit: contain; }
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-weight: 650; font-size: .95rem; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title:hover { color: var(--link); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 520px) { .product-card__foot { flex-direction: column; align-items: stretch; } .product-card__body { padding: 10px; } }

.placeholder-img {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-subtle);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); border-radius: var(--r);
}
.placeholder-img .icon { width: 36%; height: 36%; opacity: .6; stroke-width: 1.4; }

/* --------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 60%),
              linear-gradient(135deg, var(--hero-from, var(--accent)), var(--hero-to, var(--accent-2)));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(rgb(255 255 255 / 60%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 60%) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(36px, 7vw, 84px); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); max-width: 18ch; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: rgb(255 255 255 / 82%); max-width: 56ch; }
.hero__eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--brand) 60%, white); margin-bottom: 10px; }

.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--link); flex-shrink: 0; }
.feature h3 { font-size: .98rem; margin: 2px 0 2px; }
.feature p { margin: 0; color: var(--text-muted); font-size: .9rem; }
@media (max-width: 900px) { .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-strip { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }

/* --------------------------------------------------------------- tabs, pills, steps */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button {
  padding: 10px 14px; font-weight: 600; color: var(--text-muted); border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font: inherit; font-weight: 600;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .is-active { color: var(--text); border-bottom-color: var(--brand); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.pill:hover { border-color: var(--text-subtle); text-decoration: none; }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--text-subtle); counter-increment: step; }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 2px solid var(--border-strong); font-size: .8rem; background: var(--surface);
}
.steps li.is-done { color: var(--text-muted); }
.steps li.is-done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.steps li.is-current { color: var(--text); }
.steps li.is-current::before { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
@media (max-width: 640px) { .steps li span { display: none; } .steps li.is-current span { display: inline; } }

/* --------------------------------------------------------------- definition lists, summary */

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.dl dt { color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.dl dd { margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-row--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 750; }
.address { font-style: normal; line-height: 1.5; }

/* --------------------------------------------------------------- empty states, pagination */

.empty-state { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; color: var(--text-muted); }
.empty-state > .icon { width: 56px; height: 56px; color: var(--text-subtle); stroke-width: 1.5; margin-bottom: 12px; }
.empty-state h2, .empty-state h3 { color: var(--text); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); font-weight: 600; color: var(--text); border: 1px solid var(--border); background: var(--surface);
}
.pagination a:hover { border-color: var(--border-strong); text-decoration: none; }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .is-gap { border: 0; background: none; min-width: 20px; }
.pagination__info { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 10px; }

/* --------------------------------------------------------------- dialog, toast */

dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(92vw, 520px); max-height: 90vh; color: var(--text); }
dialog.modal--wide { width: min(94vw, 880px); }
dialog.modal::backdrop { background: rgb(10 14 22 / 55%); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal__head h2 { margin: 0; font-size: 1.1rem; }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); }

.toast-region { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; width: min(92vw, 380px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease);
  font-size: .95rem;
}
.toast--error { background: #8e1d24; }
.toast--success .icon { color: #6fe0b5; }
.toast a { color: #fff; font-weight: 700; text-decoration: underline; }
.toast__close { margin-left: auto; background: none; border: 0; color: rgb(255 255 255 / 70%); cursor: pointer; padding: 0; }
.toast.is-leaving { animation: toast-out .2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
@media (max-width: 520px) { .toast-region { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* --------------------------------------------------------------- zoom viewer (diagrams) */

.zoom { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; touch-action: none; user-select: none; }
.zoom__stage { width: 100%; height: var(--zoom-h, min(72vh, 760px)); overflow: hidden; cursor: grab; position: relative; }
.zoom__stage.is-dragging { cursor: grabbing; }
.zoom__stage img, .zoom__layer { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; will-change: transform; image-rendering: auto; }
.zoom__layer img { will-change: auto; }
.zoom__stage .is-gliding { transition: transform .28s var(--ease); }
.zoom__controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.zoom__controls .btn { background: rgb(255 255 255 / 94%); box-shadow: var(--shadow-sm); }
.zoom__hint { position: absolute; left: 12px; bottom: 10px; font-size: .78rem; color: var(--text-subtle); background: rgb(255 255 255 / 85%); padding: 3px 8px; border-radius: var(--r-pill); }
.zoom:fullscreen { border-radius: 0; }
.zoom:fullscreen .zoom__stage { height: 100vh; }
@media (max-width: 640px) { .zoom__stage { height: var(--zoom-h-sm, 62vh); } }

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

.site-footer { background: var(--accent); color: #c4cad6; margin-top: clamp(40px, 6vw, 72px); font-size: .93rem; }
.site-footer a { color: #e7eaf0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px 36px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__brand img { max-height: 46px; width: auto; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.site-footer__contact span { display: inline-flex; gap: 8px; align-items: center; }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / 10%); padding-block: 18px; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #9aa3b4; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* --------------------------------------------------------------- misc */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 761px) { .show-sm { display: none !important; } }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.kbd { font-family: var(--font-mono); font-size: .8rem; padding: 2px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.status-list { list-style: none; padding: 0; margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.timeline li.is-done::before { background: var(--success); border-color: var(--success); }
.timeline li.is-current::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.timeline time { display: block; font-size: .82rem; color: var(--text-subtle); }

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

@media print {
  .topbar, .site-header, .site-footer, .no-print, .toast-region, .acting-banner { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
  a { color: inherit; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ==========================================================================
   Design refresh (2026): depth, photography, refined type, motion.
   Overrides the base rules above; brand colors still come from config.
   ========================================================================== */

:root {
  --font-display: "Segoe UI Variable Display", "SF Pro Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #f4f5f7;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%), 0 2px 6px rgb(16 24 40 / 5%);
  --shadow: 0 2px 4px rgb(16 24 40 / 5%), 0 10px 24px rgb(16 24 40 / 8%);
  --shadow-lg: 0 4px 10px rgb(16 24 40 / 6%), 0 24px 56px rgb(16 24 40 / 16%);
  --shadow-brand: 0 10px 28px color-mix(in srgb, var(--brand) 32%, transparent);
  --brand-deep: color-mix(in srgb, var(--brand) 55%, #000);
  --ink: color-mix(in srgb, var(--accent) 92%, #000);
  --header-h: 76px;
}

h1, h2, h3 { font-family: var(--font-display); }
h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-weight: 780; letter-spacing: -0.02em; }
body { background: var(--bg); }

/* --------------------------------------------------------------- header */

.topbar { background: var(--ink); font-size: .82rem; }
.topbar .container { min-height: 36px; }
.topbar__item .icon { color: var(--brand); }
.topbar a:hover { color: var(--brand); text-decoration: none; }

.site-header {
  background: color-mix(in srgb, var(--header-bg, #fff) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: none; transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(16 24 40 / 10%); }
.site-header__main { transition: min-height .25s var(--ease); }
.site-header.is-scrolled .site-header__main { min-height: 62px; }
.site-logo img { height: 44px; max-height: none; width: auto; transition: height .25s var(--ease); }
.site-header.is-scrolled .site-logo img { height: 38px; }
.site-search .input { background: var(--surface-2); border: 1px solid transparent; }
.site-search .input:hover { border-color: var(--border); }
.header-action { border-radius: 12px; }
.header-action:hover { background: var(--surface-2); }
.cart-badge { box-shadow: 0 0 0 2px var(--surface), 0 2px 6px color-mix(in srgb, var(--brand) 40%, transparent); }
.site-nav { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.site-nav ul { align-items: center; }
.site-nav a { position: relative; border-bottom: 0; padding: 12px 14px; }
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .nav-highlight { color: var(--text); }
.site-nav .nav-highlight .icon { color: var(--brand-deep); }
.site-nav__end { margin-left: auto; }
.drawer__logo { height: 36px; width: auto; }
.drawer__panel { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .site-logo img, .site-header.is-scrolled .site-logo img { height: 36px; }
  .site-header.is-scrolled .site-header__main { min-height: var(--header-h); }
}
@media (max-width: 400px) {
  .site-logo img, .site-header.is-scrolled .site-logo img { height: 32px; }
  .site-header__main { gap: 8px; }
  .header-action { padding: 9px 8px; }
}

/* --------------------------------------------------------------- buttons, cards, forms */

.btn { border-radius: 12px; font-weight: 700; }
.btn--sm { border-radius: 9px; }
.btn--lg { border-radius: 14px; }
.btn--primary { box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn--primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, var(--shadow-brand); }
.btn--dark { --btn-bg: var(--ink); --btn-border: var(--ink); }
.btn--dark:hover { background: color-mix(in srgb, var(--ink) 85%, #fff); }
.btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.search-box .btn { border-radius: var(--r-pill); }
.search-box .btn--primary { box-shadow: none; }

.card { border-color: color-mix(in srgb, var(--border) 85%, transparent); box-shadow: var(--shadow-sm); }
.card--link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.input, .select, .textarea { border-radius: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .76rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: color-mix(in srgb, var(--brand) 45%, var(--text));
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--brand); }
.eyebrow--brand { color: var(--brand); }

.page-header h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }

/* --------------------------------------------------------------- product cards */

.product-grid { gap: clamp(12px, 1.6vw, 20px); }
.product-card { border-color: color-mix(in srgb, var(--border) 85%, transparent); box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.product-card__media { border-bottom: 0; background: linear-gradient(180deg, #fff, var(--surface-2)); padding: 16px; position: relative; overflow: hidden; }
.product-card__media img { transition: transform .4s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card .placeholder-img { background: radial-gradient(circle at 50% 40%, #fff, var(--surface-2) 70%); border: 1px dashed var(--border); }
.product-card__body { gap: 8px; }
.product-card__title { font-weight: 700; }
.product-card__foot { flex-wrap: wrap; row-gap: 8px; }
.product-card__foot .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.product-card .placeholder-img .icon { width: 30%; height: 30%; }

/* --------------------------------------------------------------- photo hero */

.hero { isolation: isolate; }
.hero--photo { background: var(--ink); }
.hero--photo::after { display: none; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media .stock-photo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-zoom 18s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hero-from, var(--accent)) 94%, transparent) 0%, color-mix(in srgb, var(--hero-from, var(--accent)) 78%, transparent) 42%, color-mix(in srgb, var(--hero-from, var(--accent)) 35%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--hero-from, var(--accent)) 70%, transparent), transparent 45%);
}
@keyframes hero-zoom { to { transform: scale(1); } }
@media (max-width: 900px) {
  .hero__media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--hero-from, var(--accent)) 72%, transparent), color-mix(in srgb, var(--hero-from, var(--accent)) 94%, transparent) 60%); }
}
.hero h1 { text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 25%); }
.hero__lead { text-wrap: pretty; }

.stock-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

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

.empty-state > .icon {
  width: 72px; height: 72px; padding: 16px; border-radius: 22px; color: var(--brand-deep); stroke-width: 1.7;
  background: var(--brand-soft); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-soft) 50%, transparent);
}
.empty-state h1, .empty-state h2 { text-wrap: balance; }

/* --------------------------------------------------------------- pagination & breadcrumbs */

.pagination a, .pagination span { border-radius: 12px; }
.pagination a:hover { border-color: var(--brand); color: var(--text); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px 1px 2px; display: inline-block; border-right: 1.5px solid var(--text-subtle); border-top: 1.5px solid var(--text-subtle); transform: rotate(45deg); }
.breadcrumbs__home { display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------- alerts */

.alert { border-radius: 14px; box-shadow: var(--shadow-xs); animation: toast-in .3s var(--ease); }

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

.site-footer { background: var(--ink); color: #b9c0cc; margin-top: clamp(48px, 7vw, 96px); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent)); }
.site-footer__assure { border-bottom: 1px solid rgb(255 255 255 / 8%); }
.site-footer .assure-list { list-style: none; margin: 0; padding: 26px 0 22px; display: grid; flex-direction: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.assure-list li { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: #aeb6c3; }
.assure-list strong { color: #fff; display: block; }
.assure-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / 6%); color: var(--brand); flex-shrink: 0; }
@media (max-width: 960px) { .site-footer .assure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .assure-list { grid-template-columns: 1fr; } }
.site-footer__grid { padding-block: 52px 40px; }
.site-footer__brand img { background: none; padding: 0; border-radius: 0; height: 48px; max-height: none; width: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 42ch; }
.site-footer__call { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 10%); transition: background .2s, border-color .2s; }
.site-footer__call:hover { background: rgb(255 255 255 / 10%); border-color: color-mix(in srgb, var(--brand) 60%, transparent); text-decoration: none; }
.site-footer__call > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.site-footer__call small { color: #9aa3b4; font-size: .78rem; }
.site-footer__call strong { color: #fff; font-size: 1.15rem; letter-spacing: .01em; }
.site-footer__call-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.site-footer h3 { color: #fff; font-family: var(--font); letter-spacing: .12em; font-size: .76rem; }
.site-footer ul a { color: #cfd5df; transition: color .15s; }
.site-footer ul a:hover { color: var(--brand); text-decoration: none; }
.site-footer address { color: #aeb6c3; }
.site-footer__legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.site-footer__bottom { border-top-color: rgb(255 255 255 / 8%); color: #8b93a3; }

/* --------------------------------------------------------------- auth pages (sign in, register, reset) */

body.page-auth { background:
  radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
  radial-gradient(700px 380px at 100% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg); }
.page-auth .auth-card { max-width: 1000px; grid-template-columns: minmax(0, 1fr) 400px; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 0; }
.page-auth .auth-card__icon { border-radius: 16px; background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.page-auth .auth-card__aside { isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 36px 32px; }
.auth-card__photo { display: none; }
.auth-card__aside--photo { background: var(--ink); }
.auth-card__aside--photo .auth-card__photo { display: block; position: absolute; inset: 0; z-index: -1; }
.auth-card__aside--photo .auth-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, color-mix(in srgb, var(--ink) 88%, transparent) 45%, color-mix(in srgb, var(--ink) 96%, transparent) 100%);
}
.auth-card__logo { height: 40px; width: auto; margin-bottom: 28px; align-self: flex-start; }
.page-auth .auth-card__aside h2 { font-size: 1.35rem; }
.page-auth .auth-benefits .icon { width: 34px; height: 34px; padding: 7px; margin-top: -4px; border-radius: 10px; background: rgb(255 255 255 / 10%); color: var(--brand); }
.page-auth .auth-help { margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 12%); }
@media (max-width: 860px) {
  .page-auth .auth-card { grid-template-columns: 1fr; max-width: 520px; }
  .page-auth .auth-card__aside { display: none; }
}

/* --------------------------------------------------------------- empty / error states with a photo strip */

.cluster--center { justify-content: center; }
.empty-photo { position: relative; height: clamp(140px, 22vw, 220px); border-radius: var(--r-xl); overflow: hidden; margin: clamp(16px, 3vw, 32px) 0 0; box-shadow: var(--shadow); background: var(--ink); }
.empty-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--ink) 70%, transparent)); }
.empty-photo + .empty-state { margin-top: -64px; position: relative; padding-top: 0; }
.empty-photo + .empty-state > .icon:first-child { background: var(--surface); box-shadow: var(--shadow-lg); }
.error-state__search { max-width: 540px; margin: 20px auto; }

/* garage shortcut slots (home, /parts) */
.home-garage, .lookup-garage { margin-top: clamp(24px, 4vw, 40px); }
.home-garage:empty, .lookup-garage:empty { display: none; }

/* --------------------------------------------------------------- scroll reveal (store.js adds .reveal-on to <html>) */

.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  .hero__media .stock-photo { animation: none; transform: none; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } .site-footer::before { display: none; } }

/* Availability note (product cards, product page, lookup parts lists) */
.avail-note { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.avail-note .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.avail-note--in { color: var(--success); }
.avail-note--out { color: var(--warning); }
/* "Check stock": live stock for one part once a visitor is over their hourly limit (app.js) */
.stock-check { background: none; border: 0; padding: 2px 0; margin-left: 6px; font: inherit; font-size: .78rem; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.stock-check:hover { color: var(--brand-hover); }
.stock-check:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }
