  * { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #f5f5f5;
    --card: #ffffff;
    --ink: #1a1a1a;
    --ink-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #ffcc00;
    --accent-dark: #d9ad00;
    --success: #16a34a;
    --danger: #dc2626;
    --new-badge: #111;
  }
  html, body { height: 100%; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* Header */
  header {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }
  .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    flex-wrap: nowrap;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .brand-dot {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .brand small {
    color: #999;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
  }
  /* Brand has two text variants: full on desktop, abbreviated on mobile.
     The mobile media-query below shows .brand-text-mobile and hides
     .brand-text. */
  .brand-text-mobile { display: none; }
  .user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .user-email {
    color: #ccc;
  }

  /* Director badge — shown in topbar when an internal account (Денис etc.)
     is shopping on behalf of a customer. Clicking it reopens the client
     picker so the director can switch which customer they're acting as. */
  .director-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2a1f0d;
    color: var(--accent);
    border: 1px solid #5a4218;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
  }
  .director-badge:hover { background: #3a2c14; border-color: #7a5a22; }
  .director-badge .db-icon { font-size: 14px; line-height: 1; }
  .director-badge .db-label { color: #aaa; font-weight: 500; }
  .director-badge .db-name { color: var(--accent); }
  .director-badge.empty { background: #4d2a2a; color: #fbbf24; border-color: #6b3a3a; }
  .director-badge.empty .db-name { color: #fbbf24; }

  /* Director picker modal — list of all clients with search.
     Opens automatically when a director logs in and no target is set. */
  .dp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1100;
  }
  .dp-overlay.hidden { display: none; }
  .dp-card {
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
  }
  .dp-head {
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border);
  }
  .dp-head h2 { font-size: 18px; margin: 0 0 4px; }
  .dp-head p { font-size: 13px; color: var(--ink-muted); margin: 0; }
  .dp-search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }
  .dp-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
  }
  .dp-search input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
  .dp-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 200px;
  }
  .dp-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .dp-item:hover { background: #fff8e8; }
  .dp-item-main { min-width: 0; flex: 1; }
  .dp-item-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dp-item-meta { font-size: 12px; color: var(--ink-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dp-item-count {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
  }
  .dp-item.is-self {
    background: #fff8e8;
  }
  .dp-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
  }
  .dp-foot {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fafafa;
  }
  .dp-foot .dp-self-btn {
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
  }
  .dp-foot .dp-self-btn:hover { color: var(--ink); border-color: #999; }
  .dp-foot .dp-close-btn {
    background: var(--accent);
    color: #111;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
  }
  .dp-foot .dp-close-btn:hover { background: var(--accent-dark); }
  @media (max-width: 640px) {
    .director-badge { max-width: 140px; padding: 5px 8px; font-size: 11px; }
    .director-badge .db-label { display: none; }
  }
  .btn-cart {
    background: var(--accent);
    color: #111;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
  }
  .btn-cart:hover { background: var(--accent-dark); }
  .cart-count {
    background: #111;
    color: var(--accent);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
  }
  .btn-ghost {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
  }
  .btn-ghost:hover { color: #fff; border-color: #666; }

  .nav-tabs {
    display: flex;
    gap: 2px;
    margin-right: auto;
    margin-left: 32px;
  }
  .nav-tab {
    color: #ccc;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
    border: 0;
    background: transparent;
  }
  .nav-tab:hover { color: #fff; background: #222; }
  .nav-tab.active { color: var(--accent); background: #222; }
  .nav-tab .badge {
    background: #333;
    color: #eee;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    min-width: 18px;
    text-align: center;
  }
  .nav-tab.active .badge { background: var(--accent); color: #111; }

  /* Login */
  .login-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }
  .login-card {
    background: var(--card);
    padding: 36px 32px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    width: 100%;
    max-width: 400px;
  }
  .login-card h1 { font-size: 22px; margin-bottom: 6px; }
  .login-card p { color: var(--ink-muted); font-size: 14px; margin-bottom: 24px; }
  .field { margin-bottom: 16px; }
  .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
  }
  .field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
  .btn-primary {
    width: 100%;
    background: #111;
    color: #fff;
    border: 0;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
  }
  .btn-primary:hover { background: #333; }
  .btn-invoice {
    background: #e85a1a;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
  }
  .btn-invoice:hover { background: #d14810; }
  .login-hint {
    margin-top: 16px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
  }

  /* Catalog */
  .catalog-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
  }
  .catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .catalog-meta h2 { font-size: 20px; }
  .catalog-meta .rate-info { color: var(--ink-muted); font-size: 13px; }
  .search-box {
    position: relative;
    flex: 0 1 360px;
    min-width: 220px;
  }
  .search-box input {
    width: 100%;
    padding: 9px 34px 9px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
  }
  .search-box input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17,17,17,.08);
  }
  .search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted);
    font-size: 14px;
    pointer-events: none;
  }
  .search-box .search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
  }
  .search-box .search-clear:hover { background: rgba(0,0,0,.06); color: #111; }
  .search-box.has-value .search-clear { display: block; }
  .category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 6px;
    margin: 0 -20px 16px; /* bleed to edges on desktop */
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: thin;
    /* Fade edges to hint at horizontal scroll */
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .category-tabs::-webkit-scrollbar { height: 4px; }
  .category-tabs::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 2px; }
  .tab {
    background: #fff;
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .1s, border-color .1s;
  }
  .tab:hover { border-color: #111; }
  .tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
    font-weight: 600;
  }
  .tab-icon { font-size: 14px; line-height: 1; }
  .tab-count {
    background: rgba(0,0,0,.06);
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
  }
  .tab.active .tab-count {
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
  }
  .tab.tab-empty {
    opacity: .45;
  }
  .tab.tab-empty:hover { opacity: .7; }

  /* Sticky category bar under header + vt-strip. Header is 56px and
     the vt-strip tiles total ~82px on desktop, ~72px on mobile, so the
     rail settles just below them. */
  .category-bar {
    position: sticky;
    top: 140px;
    background: var(--bg);
    z-index: 40;
    padding-top: 10px;
    margin-top: -4px;
  }
  @media (max-width: 640px) {
    /* Header is 52px + vt-strip ~58px on mobile after compaction. */
    .category-bar { top: 110px; padding-top: 6px; }
  }

  /* Two-column catalog layout: vertical category rail (left) + product
     grid (right). Collapses to single column on narrow screens. */
  .catalog-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  @media (min-width: 960px) {
    .catalog-body {
      grid-template-columns: 220px 1fr;
      align-items: start;
      gap: 24px;
    }
    .catalog-body .category-bar {
      position: sticky;
      top: 150px;                 /* header (56) + vt-strip (~82) + gap */
      background: transparent;
      padding: 0;
      margin: 0;
      max-height: calc(100vh - 170px);
      overflow-y: auto;
    }
    .catalog-body .category-tabs {
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      overflow: visible;
      padding: 0;
      margin: 0;
      /* Kill horizontal-scroll fade used in mobile strip */
      mask-image: none;
      -webkit-mask-image: none;
    }
    .catalog-body .tab {
      width: 100%;
      justify-content: flex-start;
      text-align: left;
      border-radius: 8px;
      padding: 9px 12px;
    }
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
  /* Pin the grid at exactly 3 columns when the sidebar is active. This
     beats the auto-fill default and keeps density predictable on wide
     screens where we'd otherwise get 4-5 cramped columns. */
  @media (min-width: 960px) {
    .catalog-body .grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  /* Between tablet and desktop-wide, two columns keep cards readable. */
  @media (min-width: 960px) and (max-width: 1200px) {
    .catalog-body .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
    position: relative;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  /* Fixed image region so all card footers align horizontally across
     the row. Image itself stays contained (object-fit:contain) — never
     stretched — so product shots keep their aspect ratio inside the
     box, with neutral padding filling any gap. */
  .card-image {
    background: #fafafa;
    height: 220px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  .card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  @media (max-width: 640px) {
    .card-image { height: 160px; }
  }
  .new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--new-badge);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: 3px;
  }
  /* Fixed-height body region — name clamped to 2 lines, pitch to 2,
     compat to 2, plus SKU line. Total ~168px. Prevents cards in the
     same row from having different overall heights when the text
     content varies (BRP compatibility strings go from 10 to 400+
     chars). Footer aligns because body is a fixed block. */
  .card-body {
    padding: 14px;
    flex: 1;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
  }
  .card-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-sku {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: var(--ink-muted);
    font-size: 12px;
  }
  .card-compat {
    font-size: 12px;
    color: var(--ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  @media (max-width: 640px) {
    .card-body { min-height: 0; }
  }
  .card-foot {
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .price { font-weight: 800; font-size: 18px; }
  .price small { font-weight: 500; color: var(--ink-muted); font-size: 11px; display: block; margin-top: 2px; }
  .btn-add {
    background: var(--accent);
    color: #111;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
  }
  .btn-add:hover { background: var(--accent-dark); }
  .btn-add.in-cart { background: var(--success); color: #fff; }

  /* Compact cart-add button used on product cards — gives more room to
     name/price in the footer without hiding the action entirely. */
  .btn-add-compact {
    width: 40px; height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #111;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
  }
  .btn-add-compact:hover { background: var(--accent-dark); }
  .btn-add-compact:active { transform: scale(.95); }
  .btn-add-compact.in-cart { background: var(--success); color: #fff; }
  .btn-add-compact .count-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
  }
  .btn-add-compact.disabled {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
  }
  .btn-add-compact.disabled:hover { background: #e8e8e8; }

  /* "Price on request" tag — shown when catalog row has no priceCadMsrp. */
  .price-tbd {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .02em;
  }

  /* Toolbar above the grid: result counter (left) + sort select (right).
     Lives inside .catalog-body right column, above products-grid. */
  .catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 4px 0;
    flex-wrap: wrap;
  }
  .catalog-count {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
  }
  .catalog-count b { color: var(--ink); }
  .catalog-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
  }
  .catalog-sort select {
    font-size: 13px;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M5 6L0 0h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
  }
  .catalog-sort select:hover { border-color: #111; }

  /* "Pick your platform" onboarding banner — shown above the grid when
     the partner hasn't chosen a platform. Visible only on the ATV tab
     where the 540-item unfiltered grid is overwhelming. */
  .platform-nudge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .platform-nudge-icon { font-size: 28px; flex-shrink: 0; }
  .platform-nudge-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: #7c2d12;
  }
  .platform-nudge-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
  .platform-nudge button {
    background: #ea580c;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .platform-nudge button:hover { background: #c2410c; }

  /* Placeholder image for SKUs without an image yet — SKU in a muted
     centred label so the card doesn't look broken. */
  .card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: .05em;
  }

  /* Cart drawer */
  .cart-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 100;
  }
  .cart-backdrop.open { opacity: 1; pointer-events: auto; }
  .cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 100%;
    max-width: 420px;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .25s;
    z-index: 101;
    display: flex;
    flex-direction: column;
  }
  .cart-drawer.open { transform: translateX(0); }
  .cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-header h3 { font-size: 18px; }
  .cart-close {
    background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--ink-muted);
  }
  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
  }
  .cart-empty {
    text-align: center;
    color: var(--ink-muted);
    padding: 60px 20px;
    font-size: 14px;
  }
  .cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .cart-item-img {
    width: 60px; height: 60px;
    background: #fafafa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .cart-item-meta { flex: 1; min-width: 0; }
  .cart-item-name { font-weight: 600; font-size: 14px; }
  .cart-item-sku { font-size: 11px; color: var(--ink-muted); font-family: ui-monospace, monospace; }
  .qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  .qty-btn {
    width: 24px; height: 24px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
  }
  .qty-val { min-width: 24px; text-align: center; font-weight: 600; }
  .item-price { font-weight: 700; text-align: right; }
  .remove-btn {
    color: var(--danger);
    background: transparent;
    border: 0;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 0;
  }
  .cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
  }
  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .total-row small {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
  }

  /* Mobile-only kebab (overflow ⋮) menu — hidden on desktop, shown on
     phones via the media query below. Defined BEFORE the media block
     so the @media rule wins on narrow viewports without needing !important. */
  .btn-kebab { display: none; }

  /* Responsive */
  @media (max-width: 640px) {
    /* Single-row header: tight padding, no wrap, brand collapses to dot+RCC */
    .header-inner { padding: 10px 12px; gap: 6px; }
    .brand { font-size: 15px; gap: 6px; }
    /* On phones drop both brand wordmarks — yellow dot alone is enough
       to anchor the header. Frees ~50px for nav tabs and lang toggle. */
    .brand-text, .brand-text-mobile { display: none; }
    .brand small { display: none; }
    .user-email { display: none; }
    .user-area { gap: 6px; }
    /* Hide My sled, Sled platforms, Sign out — moved into overflow menu.
       Sign in is NOT hidden here: applyAuthUi() toggles it via inline
       style based on auth state, and on anonymous-mobile we want it
       visible as the lone topbar action. */
    .btn-my-sled, #platforms-btn, #signout-btn { display: none !important; }
    /* Make signin button compact on mobile — sits where the kebab is on
       authenticated mobile. */
    #signin-btn { padding: 7px 10px; font-size: 12px; }
    /* Lang toggle stays visible on mobile, compact icon-button form */
    #lang-toggle-header { display: inline-flex !important; padding: 6px 8px; font-size: 11px; min-width: 36px; height: 32px; align-items: center; justify-content: center; }
    .btn-cart { padding: 7px 10px; font-size: 13px; gap: 5px; }
    .cart-count { font-size: 11px; padding: 1px 6px; }
    /* Mobile overflow (kebab) menu trigger — JS toggles inline display
       in applyAuthUi() so it stays hidden in anonymous mode. */
    .btn-kebab { display: inline-flex; }

    /* Nav-tabs: compress, no wrap */
    .nav-tabs { margin-left: 4px; margin-right: 0; gap: 2px; flex-shrink: 1; min-width: 0; }
    .nav-tab { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
    .nav-tab .badge { font-size: 10px; padding: 0 5px; min-width: 14px; }

    /* Catalog body */
    .catalog-wrap { padding: 12px 12px 16px; }
    .catalog-meta { margin-bottom: 10px; gap: 8px; }
    .catalog-meta h2 { font-size: 16px; line-height: 1.25; }
    .catalog-meta .rate-info { font-size: 11px; }
    .search-box { flex: 1 1 100%; min-width: 0; }
    .search-box input { font-size: 15px; padding: 10px 34px 10px 36px; }

    /* Product grid: 2 columns minimum on phones, prevent horizontal blowout */
    .catalog-body { min-width: 0; }
    .catalog-body > * { min-width: 0; }
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      min-width: 0;
    }
    .card-image { padding: 8px; }
    .card-body { padding: 10px 12px; gap: 4px; }
    .card-name { font-size: 13px; line-height: 1.25; }
    .card-compat { font-size: 11px; -webkit-line-clamp: 2; }
    .card-pitch { -webkit-line-clamp: 2; font-size: 11px; }
    .card-foot { padding: 10px 12px; gap: 6px; }
    .price { font-size: 15px; }
    .price small { font-size: 10px; }
    .btn-add { padding: 6px 10px; font-size: 12px; }
    .btn-add-compact { width: 36px; height: 36px; font-size: 16px; }
    .new-badge { top: 6px; left: 6px; font-size: 9px; padding: 2px 5px; }

    /* Category chips: keep horizontal scroll but improve scrollability */
    .category-tabs { margin: 0 -12px 12px; padding-left: 12px; padding-right: 12px; gap: 5px; scroll-snap-type: x proximity; }
    .tab { padding: 7px 12px; font-size: 12px; min-height: 32px; scroll-snap-align: start; }
    .tab-icon { font-size: 13px; }
    .tab-count { font-size: 10px; padding: 1px 5px; }

    /* My Equipment / Orders */
    .order-head { gap: 10px; padding: 12px; }
    .order-total { margin-left: 0; width: 100%; text-align: right; }

    /* Toolbar (sort + count) */
    .catalog-toolbar { padding: 0; margin-bottom: 8px; gap: 8px; }
    .catalog-count { font-size: 12px; }
    .catalog-sort { font-size: 12px; }
    .catalog-sort select { font-size: 12px; padding: 5px 24px 5px 8px; }

    /* Platform nudge banner — stack vertically on mobile, no clipping */
    .platform-nudge { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
    .platform-nudge-icon { font-size: 24px; }
    .platform-nudge-text { font-size: 12px; }
    .platform-nudge button { width: 100%; padding: 10px; }

    /* Sled-filter banner — compact */
    .sled-filter-banner { padding: 10px 12px; gap: 10px; }
    .sfb-icon { font-size: 18px; }
    .sfb-value { font-size: 13px; }
    .sfb-btn { padding: 6px 10px; font-size: 12px; }
  }
  .kebab-menu {
    position: absolute;
    top: 100%;
    right: 8px;
    margin-top: 4px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    min-width: 200px;
    z-index: 60;
    overflow: hidden;
    display: none;
  }
  .kebab-menu.open { display: block; }
  .kebab-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
  }
  .kebab-menu button:hover { background: #f5f5f5; }
  .kebab-menu .sep { height: 1px; background: var(--border); margin: 4px 0; }
  .kebab-menu .danger { color: var(--danger); }

  /* Product details modal */
  .pd-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
    z-index: 200;
  }
  .pd-backdrop.open { opacity: 1; pointer-events: auto; }
  .pd-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: min(920px, 94vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
    opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 201;
    display: flex; flex-direction: column;
  }
  .pd-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
  .pd-close {
    position: absolute; top: 12px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    font-size: 18px; cursor: pointer; z-index: 3;
    display: flex; align-items: center; justify-content: center;
  }
  .pd-close:hover { background: #fff; }
  .pd-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
  }
  .pd-image-col {
    background: #fafafa;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    border-right: 1px solid var(--border);
  }
  .pd-image-col img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
  }
  .pd-info-col {
    padding: 28px 30px;
    display: flex; flex-direction: column;
    gap: 14px;
    overflow-y: auto;
  }
  .pd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .pd-badge {
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
    padding: 3px 8px; border-radius: 4px;
    background: #f0f0f0; color: #555;
  }
  .pd-badge.new { background: #111; color: var(--accent); }
  .pd-badge.wsl { background: #fee2e2; color: #b91c1c; }
  .pd-title { font-size: 22px; font-weight: 800; line-height: 1.25; }
  .pd-sku { font-family: ui-monospace, monospace; font-size: 13px; color: var(--ink-muted); }
  .pd-price-row {
    display: flex; align-items: baseline; gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .pd-price-usd { font-size: 28px; font-weight: 800; }
  .pd-section-title {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    color: var(--ink-muted); text-transform: uppercase;
    margin-bottom: 4px;
  }
  .pd-compat {
    background: #fffbeb;
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
  }
  .pd-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
  }
  .pd-features li {
    font-size: 14px; line-height: 1.5;
    padding-left: 18px; position: relative;
  }
  .pd-features li::before {
    content: "•";
    position: absolute; left: 4px; top: 0;
    color: var(--accent-dark); font-weight: 700;
  }
  .pd-variants {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .pd-variant {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all .1s;
  }
  .pd-variant:hover { border-color: #999; }
  .pd-variant.active {
    border-color: #111;
    background: #111;
    color: #fff;
    font-weight: 600;
  }
  .pd-variant-sku { font-size: 10px; opacity: .7; margin-left: 6px; font-family: ui-monospace, monospace; }
  .pd-add-btn {
    background: var(--accent);
    color: #111;
    border: 0;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
  }
  .pd-add-btn:hover { background: var(--accent-dark); }
  .pd-add-btn.in-cart { background: var(--success); color: #fff; }

  .card { cursor: pointer; }
  .card-pitch {
    font-size: 12px;
    color: #374151;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  @media (max-width: 640px) {
    .pd-modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .pd-content { grid-template-columns: 1fr; }
    .pd-image-col { min-height: 220px; max-height: 40vh; padding: 16px; border-right: 0; border-bottom: 1px solid var(--border); }
    .pd-image-col img { max-height: 240px; }
    .pd-info-col { padding: 16px 18px 80px; }
    .pd-title { font-size: 18px; line-height: 1.25; }
    .pd-price-usd { font-size: 22px; }
    .pd-close { width: 44px; height: 44px; font-size: 20px; top: 8px; right: 8px; }
    .card-pitch { -webkit-line-clamp: 2; font-size: 11px; }
    /* Sticky add-to-cart on mobile so user doesn't have to scroll a long
       pd-info-col to find the action. */
    .pd-add-btn {
      position: sticky;
      bottom: 0;
      margin: 16px -18px -16px;
      padding: 16px 20px;
      border-radius: 0;
      box-shadow: 0 -2px 12px rgba(0,0,0,.06);
      font-size: 16px;
    }
  }

  /* Platforms reference modal */
  .pf-modal { width: min(780px, 94vw); }
  .pf-content {
    padding: 28px 30px;
    overflow-y: auto;
    max-height: 92vh;
  }
  .pf-header { margin-bottom: 20px; }
  .pf-header h2 { font-size: 22px; margin-bottom: 6px; }
  .pf-header p { font-size: 13px; color: var(--ink-muted); }
  .pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
  }
  .pf-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fafafa;
  }
  .pf-card h3 {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
  }
  .pf-years { font-size: 11px; color: var(--ink-muted); font-weight: 500; letter-spacing: .3px; }
  .pf-use { font-size: 12px; color: #6b7280; margin-bottom: 10px; font-style: italic; }
  .pf-models {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .pf-models li {
    font-size: 13px;
    line-height: 1.35;
    padding-left: 12px;
    position: relative;
  }
  .pf-models li::before {
    content: "–";
    position: absolute; left: 0; color: var(--accent-dark);
  }
  .pf-note {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fffbeb;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 13px;
    color: #555;
  }
  @media (max-width: 640px) {
    .pf-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .pf-content { padding: 20px; }
    .pf-grid { grid-template-columns: 1fr; }
  }

  /* My sled filter — header button when active */
  .btn-my-sled.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent-dark);
    font-weight: 700;
  }

  /* Vehicle-type strip — prominent row under the header with one tile
     per product line (Snowmobile, ATV, Maverick R, Maverick X3, Sea-Doo).
     Separate from "my sled / my atv" which is a platform filter within
     the chosen type. Tiles are equal-width on desktop, horizontally
     scrollable on narrow screens. */
  .vt-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;           /* just under the header */
    z-index: 35;
  }
  .vt-strip-inner {
    max-width: 1280px;           /* align with .catalog-wrap */
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .vt-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    background: #fafafa;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
    transition: background .15s, border-color .15s, transform .1s;
    position: relative;
  }
  .vt-tile:not(.disabled):hover {
    background: #fff;
    border-color: var(--accent-dark);
    transform: translateY(-1px);
  }
  .vt-tile.active {
    /* Warm brand yellow + dark text — consistent with the rest of the
     * catalog's accent (buttons, badges) instead of the harsh #111
     * pill that was there before. */
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent-dark);
    box-shadow: 0 2px 6px rgba(217, 173, 0, .25);
  }
  .vt-tile.disabled {
    cursor: not-allowed;
    opacity: .5;
    background: #f7f7f7;
  }
  .vt-tile-emoji { font-size: 26px; line-height: 1; }
  .vt-tile-label { font-size: 13px; font-weight: 700; }
  .vt-tile-soon {
    position: absolute;
    top: 6px; right: 6px;
    background: #666;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
  }
  @media (max-width: 820px) {
    .vt-strip { top: 52px; }
    .vt-strip-inner {
      padding: 10px 14px;
      grid-template-columns: repeat(5, minmax(110px, 1fr));
      overflow-x: auto;
      scrollbar-width: thin;
      scroll-snap-type: x proximity;
    }
    .vt-tile { padding: 10px 8px; scroll-snap-align: start; }
    .vt-tile-emoji { font-size: 22px; }
    .vt-tile-label { font-size: 12px; }
  }
  @media (max-width: 640px) {
    .vt-strip { top: 52px; }
    .vt-strip-inner {
      padding: 8px 10px;
      gap: 6px;
      /* Squish to 5 equal columns that always fit — no horizontal scroll
         needed. 5 × 60px + 4 × 6px = 324px, fits 360px viewports. */
      grid-template-columns: repeat(5, minmax(0, 1fr));
      overflow-x: visible;
    }
    .vt-tile { padding: 7px 4px; gap: 2px; min-width: 0; }
    .vt-tile-emoji { font-size: 20px; }
    .vt-tile-label { font-size: 10px; line-height: 1.1; text-align: center; }
    .vt-tile-soon { font-size: 8px; padding: 1px 4px; top: 3px; right: 3px; }
  }

  /* My sled filter — banner on catalog view */
  .sled-filter-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid var(--accent);
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .sled-filter-banner.hidden { display: none; }
  .sfb-icon { font-size: 22px; flex-shrink: 0; }
  .sfb-text { flex: 1; min-width: 0; }
  .sfb-label { font-size: 11px; color: var(--ink-muted); letter-spacing: .5px; text-transform: uppercase; }
  .sfb-value { font-size: 15px; font-weight: 700; color: var(--ink); }
  .sfb-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .sfb-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
  }
  .sfb-btn:hover { background: #f3f4f6; }
  .sfb-btn.sfb-clear { color: var(--danger); border-color: #fca5a5; }
  .sfb-btn.sfb-clear:hover { background: #fef2f2; }

  /* My sled picker modal */
  .ms-modal { width: min(640px, 94vw); }
  .ms-content {
    padding: 28px 30px;
    overflow-y: auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .ms-header h2 { font-size: 22px; margin-bottom: 6px; }
  .ms-header p { font-size: 13px; color: var(--ink-muted); }
  .ms-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .ms-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
  .ms-opt {
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    transition: all .1s;
  }
  .ms-opt:hover { border-color: #999; }
  .ms-opt.active {
    border-color: #111;
    background: #111;
    color: #fff;
    font-weight: 600;
  }
  .ms-opt-hint { display: block; font-size: 11px; opacity: .7; font-weight: 400; margin-top: 2px; }
  .ms-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .ms-btn-apply {
    background: var(--accent);
    color: #111;
    border: 0;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .ms-btn-apply:hover { background: var(--accent-dark); }
  .ms-btn-apply:disabled { opacity: .5; cursor: not-allowed; }
  .ms-btn-clear {
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
  }

  @media (max-width: 640px) {
    .ms-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .sled-filter-banner { flex-wrap: wrap; }
    .sfb-actions { width: 100%; }
  }

  /* Orders */
  .orders-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .order-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .order-head {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background .1s;
  }
  .order-head:hover { background: #fafafa; }
  .order-num { font-weight: 700; font-size: 14px; font-family: ui-monospace, monospace; }
  .order-date { color: var(--ink-muted); font-size: 13px; }
  .order-items-count { color: var(--ink-muted); font-size: 13px; }
  .order-total { margin-left: auto; font-weight: 800; font-size: 16px; }
  .status-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
  }
  .status-new { background: #fef3c7; color: #92400e; }
  .status-accepted { background: #dbeafe; color: #1e40af; }
  .status-processing { background: #e0e7ff; color: #3730a3; }
  .status-shipped { background: #cffafe; color: #155e75; }
  .status-delivered { background: #d1fae5; color: #065f46; }
  .status-cancelled { background: #fee2e2; color: #991b1b; }
  .order-details {
    padding: 0 18px 16px;
    display: none;
    border-top: 1px solid var(--border);
  }
  .order-card.expanded .order-details { display: block; }
  .order-details-row {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }
  .order-details-row:last-child { border-bottom: 0; }
  .order-details-row img {
    width: 44px; height: 44px; object-fit: contain;
    background: #fafafa; border-radius: 4px;
  }
  .order-details-row .meta { flex: 1; min-width: 0; }
  .order-details-row .name { font-weight: 600; font-size: 13px; }
  .order-details-row .sku { font-size: 11px; color: var(--ink-muted); font-family: ui-monospace, monospace; }
  .order-details-row .qty { color: var(--ink-muted); font-size: 13px; }
  .order-details-row .line-price { font-weight: 700; min-width: 70px; text-align: right; }
  .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-muted);
  }
  .empty-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
  .empty-state p { margin-bottom: 20px; font-size: 14px; }

  /* Vehicle cards (My Equipment view) */
  .vehicle-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
  }
  .vehicle-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    background: #111;
    color: #fff;
  }
  .vehicle-title { font-weight: 700; font-size: 16px; }
  .vehicle-vin { font-family: ui-monospace, monospace; font-size: 12px; color: #999; }
  .vehicle-meta { color: #ccc; font-size: 13px; margin-left: auto; }
  .vehicle-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 6px;
  }
  .vehicle-badge.purchased { background: #d9f5e3; color: #176a38; }
  .vehicle-badge.shipped   { background: #e5e7eb; color: #4b5563; }
  .vehicle-body { padding: 14px 20px; }
  .vehicle-orders-empty {
    color: var(--ink-muted);
    font-size: 13px;
    padding: 10px 0;
  }

  /* Vehicle picker list (modal on checkout) */
  .vp-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .1s, background .1s;
  }
  .vp-option:hover { border-color: #111; background: #fafafa; }
  .vp-option .vp-main { flex: 1; min-width: 0; }
  .vp-option .vp-name { font-weight: 700; font-size: 14px; }
  .vp-option .vp-meta { font-size: 12px; color: var(--ink-muted); font-family: ui-monospace, monospace; }
  .vp-option .vp-arrow { color: var(--ink-muted); font-size: 20px; }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    transition: transform .25s;
    z-index: 200;
  }
  .toast.show { transform: translateX(-50%) translateY(0); }

  .hidden { display: none !important; }

/* Карточка товара — ссылка на его адрес (25.09.2026). */
a.card{color:inherit;text-decoration:none}

/* Логотип сайта в тёмной шапке каталога. Знак чёрный на прозрачном фоне,
   на тёмной шапке его не видно — выворачиваем в белый (25.09.2026). */
a.brand{color:#fff;text-decoration:none}
.brand-logo{height:34px;width:auto;display:block;filter:invert(1)}
@media (max-width: 640px){.brand-logo{height:30px}}

/* Шаги входа и регистрации (25.09.2026) */
.login-err{display:none;margin-top:10px;padding:10px 12px;border-radius:8px;background:#fee2e2;color:#991b1b;font-size:13px}
.login-err.show{display:block}
.login-alt{width:100%;margin-top:8px;border-color:var(--border);color:var(--ink-muted)}
.login-card .field{margin-bottom:12px}
