/* ==========================================================================
   Components — header, nav, buttons, cards, chips, forms, drawer, toast…
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 238, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(14, 31, 51, 0.2);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand__logo { height: 38px; width: auto; flex: none; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 1.05rem; line-height: 1.05; white-space: nowrap;
}
.brand__name small {
  display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-700); margin-top: 3px;
}

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: var(--radius-full);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--ink-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__link:hover { background: rgba(14, 31, 51, 0.06); color: var(--ink-900); }
.nav__link.is-active { color: var(--ink-900); background: rgba(14, 31, 51, 0.07); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.quote-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px 0 14px; border-radius: var(--radius-full);
  background: var(--ink-900); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
}
.quote-btn:hover { background: var(--ink-700); transform: translateY(-1px); color: #fff; }
.quote-btn svg { width: 18px; height: 18px; }
.qty-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--radius-full); background: var(--accent); color: var(--ink-900);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
}
.qty-badge.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-md);
  place-items: center; color: var(--ink-900); border: 1px solid var(--line-strong); background: var(--surface);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 959px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: rgba(247, 244, 238, 0.98);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 5vw, 48px) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; border-radius: var(--radius-md); font-size: var(--text-base); }
  .nav-toggle { display: grid; }
  .site-header__actions .btn--ghost { display: none; }
  .quote-btn { height: 40px; padding: 0 12px; }
  .quote-btn__label { display: none; }
  .brand__name { font-size: 0.98rem; }
  .brand__name small { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink-900); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-full);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.005em;
  white-space: nowrap; user-select: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn__icon, .btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--ink-900); box-shadow: 0 8px 20px -10px rgba(201, 127, 53, 0.7); }
.btn--primary:hover { --btn-bg: #D68C40; box-shadow: 0 12px 26px -10px rgba(201, 127, 53, 0.8); }
.btn--secondary { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn--secondary:hover { --btn-bg: var(--ink-700); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-900); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(14, 31, 51, 0.05); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); }
.btn--light:hover { --btn-bg: var(--paper); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.35); }
.btn--outline-light:hover { --btn-bg: rgba(255,255,255,0.08); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 0.8125rem; }
.btn--lg { height: 56px; padding: 0 30px; font-size: var(--text-base); }
.btn--icon { width: 44px; height: 44px; padding: 0; }
.btn--block { width: 100%; }
.btn.is-added { --btn-bg: var(--success); --btn-fg: #fff; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--ink-900);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }
.link-danger { color: var(--danger); font-size: var(--text-sm); font-weight: 500; }
.link-danger:hover { color: #9c2a1f; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Cards & surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card--dark { background: var(--ink-800); border-color: rgba(255,255,255,0.08); color: var(--ink-100); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--accent { background: var(--accent-soft); border-color: rgba(201, 127, 53, 0.25); }

/* Product card */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product-card__media { position: relative; display: block; }
.product-card__visual {
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14%;
  background: var(--tone-bg, var(--paper-2));
}
.product-card__visual svg { width: 100%; height: 100%; color: var(--ink-800); transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-card__visual svg { transform: scale(1.05); }
.product-card__media .chip--brand { position: absolute; top: 14px; left: 14px; }
.product-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.product-card__type { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.product-card__type .mono { text-transform: none; letter-spacing: 0; font-weight: 500; }
.product-card__title { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.product-card__title a:hover { color: var(--accent-700); }
.product-card__desc { font-size: var(--text-sm); color: var(--ink-600); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.product-card__specs li {
  font-size: 0.72rem; color: var(--ink-600); background: var(--ink-50); border-radius: var(--radius-sm); padding: 3px 8px;
}
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.product-card__pack { font-size: var(--text-xs); color: var(--ink-500); }
.product-card--compact .product-card__desc, .product-card--compact .product-card__specs { display: none; }

/* Tones for product visuals */
[data-tone="1"] { --tone-bg: linear-gradient(160deg, #F3E9DB, #E8D8C1); }
[data-tone="2"] { --tone-bg: linear-gradient(160deg, #E4ECF3, #D2DFEA); }
[data-tone="3"] { --tone-bg: linear-gradient(160deg, #E7EEE5, #D5E1D1); }
[data-tone="4"] { --tone-bg: linear-gradient(160deg, #F1E5E2, #E5D2CD); }
[data-tone="5"] { --tone-bg: linear-gradient(160deg, #ECEAF3, #DAD6E9); }
[data-tone="6"] { --tone-bg: linear-gradient(160deg, #EFECE6, #DEDAD1); }

/* Category card */
.category-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }
.category-card__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-md);
  background: var(--tone-bg, var(--paper-2)); color: var(--ink-800);
}
.category-card__icon svg { width: 38px; height: 38px; }
.category-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink-900); }
.category-card__desc { font-size: var(--text-sm); color: var(--ink-600); }
.category-card__count { margin-top: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-500); display: flex; align-items: center; justify-content: space-between; }
.category-card__count svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.category-card:hover .category-card__count svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Chips, badges, tags
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--ink-50); color: var(--ink-700); border: 1px solid transparent; white-space: nowrap;
}
.chip--brand { background: rgba(255,255,255,0.85); color: var(--ink-900); border-color: var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-transform: uppercase; font-family: var(--font-display); }
.chip--cert { background: var(--lake-soft); color: var(--lake-600); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.chip--accent { background: var(--accent-soft); color: var(--accent-700); }
.chip--muted { background: transparent; border-color: var(--line-strong); color: var(--ink-600); }
.chip--success { background: #E4F3EA; color: #1F6B41; }
.chip svg { width: 12px; height: 12px; }
.tag { font-size: var(--text-xs); color: var(--ink-500); }

/* --------------------------------------------------------------------------
   Stats, steps, features
   -------------------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--text-4xl); letter-spacing: -0.03em; line-height: 1; color: var(--ink-900); }
.stat__value sup { font-size: 0.45em; vertical-align: top; margin-left: 2px; color: var(--accent-700); }
.stat__label { font-size: var(--text-sm); color: var(--ink-500); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__value sup { color: var(--accent); }
.section--dark .stat__label { color: var(--ink-300); }

.steps { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-700); letter-spacing: 0.08em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 40px; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--ink-900); }
.step__body { font-size: var(--text-sm); color: var(--ink-600); }
.section--dark .step { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.section--dark .step__num { color: var(--accent); }
.section--dark .step__title { color: #fff; }
.section--dark .step__body { color: var(--ink-300); }
.section--dark .step__num::after { background: rgba(255,255,255,0.12); }

.feature { display: flex; flex-direction: column; gap: 12px; }
.feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-700); }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink-900); }
.feature__body { font-size: var(--text-sm); color: var(--ink-600); }
.section--dark .feature__icon { background: rgba(201, 127, 53, 0.16); color: var(--accent); }
.section--dark .feature__title { color: #fff; }
.section--dark .feature__body { color: var(--ink-300); }

/* --------------------------------------------------------------------------
   Marquee (text wordmarks)
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(32px, 5vw, 64px); width: max-content; animation: marquee 60s linear infinite; padding-block: 6px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: -0.01em; color: var(--ink-400); white-space: nowrap; text-transform: uppercase; }
.section--dark .marquee__item { color: var(--ink-300); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-900); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent-700); transition: transform var(--dur-base) var(--ease-out); flex: none; }
.faq[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 4px 22px; color: var(--ink-600); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form__section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding-top: var(--space-2); color: var(--ink-900); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-800); }
.req { color: var(--accent-700); }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-900);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field__input::placeholder { color: var(--ink-300); }
.field__input:hover { border-color: var(--ink-300); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 127, 53, 0.18); }
textarea.field__input { min-height: 120px; resize: vertical; }
select.field__input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233F5B77' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field__hint { font-size: var(--text-xs); color: var(--ink-500); }
.field__error { font-size: var(--text-xs); color: var(--danger); display: none; }
.field.has-error .field__input { border-color: var(--danger); }
.field.has-error .field__error { display: block; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-700); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-700); flex: none; }
.form__actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; padding-top: var(--space-2); }
.form__note { font-size: var(--text-xs); color: var(--ink-500); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }

/* Qty stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--surface); height: 40px; overflow: hidden; }
.stepper button { width: 38px; height: 100%; display: grid; place-items: center; color: var(--ink-700); }
.stepper button:hover { background: var(--ink-50); }
.stepper button svg { width: 14px; height: 14px; }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font-family: var(--font-mono); font-size: var(--text-sm); background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper--lg { height: 48px; }
.stepper--lg input { width: 60px; font-size: var(--text-base); }
.stepper--lg button { width: 46px; }

/* --------------------------------------------------------------------------
   Drawer (Quote List)
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(11, 22, 34, 0.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(440px, 100vw); background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.drawer__summary { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--ink-600); }
.drawer__summary strong { color: var(--ink-900); font-family: var(--font-mono); }
.drawer__empty { text-align: center; padding: 56px 12px; color: var(--ink-500); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.drawer__empty svg { width: 48px; height: 48px; color: var(--ink-200); }
.drawer__empty p { font-size: var(--text-sm); max-width: 28ch; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line__visual { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--tone-bg, var(--paper-2)); display: grid; place-items: center; padding: 12px; }
.line__visual svg { width: 100%; height: 100%; color: var(--ink-800); }
.line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line__brand { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }
.line__name { font-weight: 600; font-size: var(--text-sm); line-height: 1.35; color: var(--ink-900); }
.line__name a:hover { color: var(--accent-700); }
.line__meta { font-size: var(--text-xs); color: var(--ink-500); }
.line__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line__remove { font-size: var(--text-xs); color: var(--ink-500); text-decoration: underline; text-underline-offset: 2px; }
.line__remove:hover { color: var(--danger); }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: min(440px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--ink-900); color: #fff; box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 500;
  animation: toast-in var(--dur-base) var(--ease-out); pointer-events: auto;
}
.toast.is-leaving { animation: toast-out var(--dur-base) var(--ease-in-out) forwards; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast--success svg { color: #7BD89A; }
.toast--error { background: var(--danger); }
.toast a { text-decoration: underline; color: var(--accent); margin-left: auto; white-space: nowrap; font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink-900); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(201, 127, 53, 0.38), transparent 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(30, 79, 122, 0.8), transparent 65%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__inner { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; padding-block: clamp(72px, 9vw, 128px); }
.hero__title { color: #fff; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: var(--space-5); font-size: var(--text-xl); color: var(--ink-200); max-width: 56ch; line-height: 1.55; }
.hero__actions { margin-top: var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__meta { margin-top: var(--space-8); display: flex; gap: var(--space-6); flex-wrap: wrap; font-size: var(--text-sm); color: var(--ink-300); }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hero .eyebrow { color: var(--accent); }
.hero--compact .hero__inner { padding-block: clamp(56px, 7vw, 88px); grid-template-columns: 1fr; }
.hero--compact .hero__title { font-size: var(--text-5xl); }
.hero--compact .breadcrumb { margin-bottom: var(--space-5); }
.hero--compact .breadcrumb ol { color: var(--ink-300); }
.hero--compact .breadcrumb li + li::before { color: var(--ink-500); }
.hero--compact .breadcrumb [aria-current] { color: #fff; }
.hero--compact .breadcrumb a:hover { color: var(--accent); }

/* Hero visual: floating product tiles */
.hero__visual { position: relative; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-4deg) translateY(10px); max-width: 480px; margin-left: auto; }
.tile { aspect-ratio: 1; border-radius: var(--radius-lg); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); display: grid; place-items: center; padding: 22%; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); animation: float 7s ease-in-out infinite; }
.tile:nth-child(2n) { animation-delay: -2.2s; }
.tile:nth-child(3n) { animation-delay: -4.1s; }
.tile--accent { background: linear-gradient(160deg, rgba(201,127,53,0.9), rgba(179,106,36,0.9)); color: var(--ink-900); border-color: transparent; }
.tile--paper { background: var(--paper); color: var(--ink-900); border-color: transparent; }
.tile svg { width: 100%; height: 100%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 767px) { .tile-grid { transform: none; max-width: 100%; } }

/* --------------------------------------------------------------------------
   Catalog filters & toolbar
   -------------------------------------------------------------------------- */
.catalog-layout { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
@media (max-width: 959px) { .catalog-layout { grid-template-columns: minmax(0, 1fr); } .filters { display: none; } }
.filters { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
.filters__group { display: flex; flex-direction: column; gap: 2px; }
#filter-brands { max-height: 340px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
.filters__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.filter-check { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--ink-700); cursor: pointer; transition: background var(--dur-fast); }
.filter-check:hover { background: rgba(14, 31, 51, 0.05); }
.filter-check input { accent-color: var(--accent-700); width: 16px; height: 16px; flex: none; }
.filter-check .count { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-400); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.search input { padding-left: 42px; }
.toolbar select.field__input { flex: 0 0 auto; width: auto; min-width: 190px; }
.result-count { font-size: var(--text-sm); color: var(--ink-500); margin-left: auto; white-space: nowrap; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; height: 38px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; color: var(--ink-700); white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.cat-tab:hover { border-color: var(--ink-400); }
.cat-tab.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.empty-state { text-align: center; padding: 72px 20px; color: var(--ink-500); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--ink-300); }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-sm); color: var(--ink-500); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-300); }
.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb [aria-current] { color: var(--ink-800); font-weight: 500; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-700); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--lake); }
.notice--warn { background: #FBF3E3; border-color: rgba(201, 138, 27, 0.35); }
.notice--warn svg { color: var(--warn); }
.notice--accent { background: var(--accent-soft); border-color: rgba(201, 127, 53, 0.3); }
.notice--accent svg { color: var(--accent-700); }

.pill-nav { display: inline-flex; padding: 4px; border-radius: var(--radius-full); background: var(--ink-50); gap: 4px; }
.pill-nav a, .pill-nav button { height: 36px; padding: 0 14px; border-radius: var(--radius-full); font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; color: var(--ink-600); display: inline-flex; align-items: center; }
.pill-nav .is-active { background: var(--surface); color: var(--ink-900); box-shadow: var(--shadow-sm); }

.cred-block { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cred-block dt { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-top: 16px; }
.cred-block dd { font-size: var(--text-sm); color: var(--ink-900); font-weight: 500; margin-top: 4px; }
.section--dark .cred-block dt { color: var(--ink-300); }
.section--dark .cred-block dd { color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--ink-200); margin-top: auto; }
.site-footer__top { padding-block: clamp(56px, 7vw, 88px); display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 959px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; align-items: flex-start; }
.site-footer .brand__name { white-space: normal; }
.site-footer .brand__name small { white-space: normal; letter-spacing: 0.1em; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__name small { color: var(--accent); display: block; }
.site-footer__blurb { margin-top: 18px; font-size: var(--text-sm); color: var(--ink-300); max-width: 40ch; }
.site-footer__contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: var(--text-sm); }
.site-footer__contact a, .site-footer__contact span { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--ink-200); }
.site-footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); }
.site-footer__links a { color: var(--ink-200); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--text-xs); color: var(--ink-400); }
.site-footer__bottom a:hover { color: var(--accent); }
.site-footer__legal { max-width: 72ch; line-height: 1.6; }
.site-footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
