
    :root {
      --ink: #1d1c1a;
      --muted: #6e6a65;
      --soft: #a5a09a;
      --line: #dedbd6;
      --line-strong: #c8c3bc;
      --paper: #ffffff;
      --canvas: #f6f5f2;
      --panel: #efeeeb;
      --dark: #1d1c1a;
      --orange: #ef5b2a;
      --orange-soft: #fff0e9;
      --orange-line: #f6c4b2;
      --green: #19744b;
      --green-soft: #e8f5ee;
      --blue: #0c5a9f;
      --shadow: 0 18px 55px rgba(41, 35, 28, .08);
      --shadow-soft: 0 8px 24px rgba(41, 35, 28, .06);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--canvas);
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    button, input, select { font: inherit; }
    button { color: inherit; }
    .material-symbols-rounded {
      font-size: 20px;
      line-height: 1;
      vertical-align: middle;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      height: 72px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgba(222, 219, 214, .9);
      background: rgba(246, 245, 242, .94);
      backdrop-filter: blur(18px);
    }
    .topbar-inner {
      width: min(1480px, calc(100% - 48px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .brand-home {
      display: inline-flex;
      align-items: center;
      min-width: 0;
      text-decoration: none;
    }
    .fabulk-logo {
      width: auto;
      height: 30px;
      max-width: 160px;
      display: block;
      object-fit: contain;
    }
    .top-actions { display: flex; align-items: center; gap: 10px; }
    .icon-button {
      width: 40px;
      height: 40px;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--paper);
      cursor: pointer;
      display: grid;
      place-items: center;
      transition: .2s ease;
    }
    .icon-button:hover { border-color: var(--ink); transform: translateY(-1px); }
    .cart-button {
      color: var(--ink);
      text-decoration: none;
    }
    .cart-button:hover { color: var(--blue); border-color: var(--blue); }

    .shell {
      width: min(1480px, calc(100% - 48px));
      margin: 0 auto;
      padding: 34px 0 72px;
    }
    .eyebrow {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--orange);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .hero {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
      margin: 22px 0 28px;
    }
    h1 {
      margin: 8px 0 8px;
      font-size: clamp(34px, 4vw, 56px);
      line-height: 1.02;
      letter-spacing: -.055em;
    }
    .hero-copy { max-width: 750px; color: var(--muted); font-size: 15px; line-height: 1.7; }
    .trend-card {
      flex: 0 0 auto;
      min-width: 250px;
      padding: 18px 20px;
      border: 1px solid var(--orange-line);
      border-radius: 22px;
      background: var(--orange-soft);
    }
    .trend-card small { color: #8b4a33; font-size: 12px; font-weight: 600; }
    .trend-value { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 24px; font-weight: 800; }

    .ranking-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .ranking-tabs::-webkit-scrollbar { display: none; }
    .tab {
      flex: 0 0 auto;
      height: 42px;
      padding: 0 17px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 21px;
      background: var(--paper);
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
      cursor: pointer;
      transition: .2s ease;
    }
    .tab:hover { border-color: var(--line-strong); color: var(--ink); }
    .tab.active { color: #fff; border-color: var(--ink); background: var(--ink); }
    .tab.active .material-symbols-rounded { color: #ff9e78; }

    .ranking-context {
      margin-bottom: 16px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--paper);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      box-shadow: 0 4px 16px rgba(41, 35, 28, .03);
    }
    .current-ranking { min-width: 0; display: flex; align-items: center; gap: 12px; }
    .current-ranking-icon {
      width: 38px;
      height: 38px;
      flex: 0 0 auto;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: #fff;
      background: var(--ink);
    }
    .current-ranking-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
    .current-ranking-name { margin-top: 3px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .browse-rankings {
      height: 40px;
      padding: 0 15px;
      border: 1px solid var(--line-strong);
      border-radius: 20px;
      background: var(--paper);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 750;
      white-space: nowrap;
    }
    .browse-rankings:hover { color: #fff; border-color: var(--ink); background: var(--ink); }

    .ranking-explorer {
      position: fixed;
      inset: 0;
      z-index: 100;
      padding: 32px;
      background: rgba(29, 28, 26, .48);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
    }
    .ranking-explorer.open { display: flex; }
    .ranking-dialog {
      width: min(1120px, 100%);
      height: min(760px, calc(100vh - 64px));
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 26px;
      background: var(--canvas);
      box-shadow: 0 28px 80px rgba(0,0,0,.24);
      display: grid;
      grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    }
    .explorer-header {
      padding: 20px 22px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .explorer-title { font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
    .explorer-subtitle { margin-top: 4px; color: var(--muted); font-size: 11px; }
    .close-explorer {
      width: 38px;
      height: 38px;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--paper);
      cursor: pointer;
      display: grid;
      place-items: center;
    }
    .explorer-search {
      margin: 0 22px 18px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .explorer-search > .material-symbols-rounded {
      position: absolute;
      left: 16px;
      color: var(--soft);
      pointer-events: none;
    }
    .ranking-search-input {
      flex: 1;
      height: 46px;
      padding: 0 16px 0 45px;
      border: 1px solid var(--line);
      border-radius: 23px;
      outline: none;
      background: var(--paper);
    }
    .ranking-search-input:focus { border-color: var(--ink); }
    .ranking-node-count { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
    .ranking-filter-panel {
      margin: 0 22px 18px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--panel);
    }
    .ranking-filter-head {
      margin-bottom: 11px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .ranking-filter-title {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12px;
      font-weight: 800;
    }
    .ranking-filter-title .material-symbols-rounded { font-size: 18px; }
    .ranking-filter-hint { color: var(--muted); font-size: 9px; }
    .ranking-filter-reset {
      border: 0;
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font-size: 10px;
      font-weight: 750;
    }
    .ranking-filter-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .ranking-filter-field { position: relative; min-width: 0; }
    .ranking-filter-field label {
      display: block;
      margin: 0 0 6px 3px;
      color: var(--muted);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .05em;
      text-transform: uppercase;
    }
    .ranking-filter-button {
      width: 100%;
      height: 38px;
      padding: 0 12px;
      border: 1px solid var(--line-strong);
      border-radius: 12px;
      color: var(--ink);
      background: var(--paper);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 11px;
      font-weight: 700;
    }
    .ranking-filter-button.active {
      border-color: var(--orange);
      color: #fff;
      background: var(--orange);
    }
    .ranking-filter-button .material-symbols-rounded { font-size: 16px; }
    .ranking-filter-field .filter-popover { top: 62px; }
    .ranking-filter-field:nth-child(even) .filter-popover { right: 0; left: auto; }
    .explorer-body {
      min-height: 0;
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      border-top: 1px solid var(--line);
    }
    .ranking-types {
      min-height: 0;
      padding: 18px 14px;
      overflow-y: auto;
      border-right: 1px solid var(--line);
      background: var(--panel);
    }
    .rail-heading { margin: 0 8px 10px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .ranking-type {
      width: 100%;
      min-height: 44px;
      margin-bottom: 5px;
      padding: 9px 10px;
      border: 0;
      border-radius: 12px;
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 9px;
      text-align: left;
      font-size: 11px;
      font-weight: 700;
    }
    .ranking-type:hover { background: rgba(255,255,255,.65); }
    .ranking-type.active { color: #fff; background: var(--ink); }
    .ranking-type small { margin-left: auto; color: var(--soft); font-size: 9px; }
    .ranking-type.active small { color: #d5d1ca; }
    .ranking-browser { min-height: 0; padding: 18px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
    .browser-heading strong { font-size: 14px; }
    .browser-heading span { color: var(--muted); font-size: 10px; }
    .ranking-columns { min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; }
    .root-ranking-list, .subranking-list {
      min-height: 0;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--paper);
    }
    .root-ranking-button {
      width: 100%;
      padding: 11px 12px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 9px;
      text-align: left;
      font-size: 11px;
      font-weight: 700;
    }
    .root-ranking-button:last-child { border-bottom: 0; }
    .root-ranking-button:hover { background: var(--canvas); }
    .root-ranking-button.active { color: #fff; background: var(--ink); }
    .root-ranking-button span:last-child { margin-left: auto; color: var(--soft); font-size: 9px; }
    .ranking-result {
      width: 100%;
      padding: 12px 14px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      cursor: pointer;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      text-align: left;
    }
    .ranking-result:last-child { border-bottom: 0; }
    .ranking-result:hover { background: var(--canvas); }
    .ranking-result.is-selected {
      color: var(--ink);
      background: #fff3ec;
      box-shadow: inset 4px 0 0 var(--orange);
    }
    .root-ranking-button.is-selected { box-shadow: inset 4px 0 0 var(--orange); }
    .ranking-type.is-selected { box-shadow: inset 0 0 0 2px var(--orange); }
    .ranking-result-name { display: block; font-size: 11px; font-weight: 750; }
    .ranking-result-path { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ranking-result-insights { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 7px; color: var(--muted); font-size: 9px; }
    .ranking-result-insights strong { color: var(--ink); font-weight: 750; }
    .ranking-result-meta { align-self: center; color: var(--muted); font-size: 9px; white-space: nowrap; }
    .ranking-result-meta.match { color: var(--orange); font-weight: 800; }
    .ranking-empty { padding: 40px 20px; color: var(--muted); text-align: center; font-size: 11px; }
    .explorer-actions {
      min-height: 72px;
      padding: 12px 22px;
      border-top: 1px solid var(--line);
      background: var(--paper);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .selected-ranking-summary {
      min-width: 0;
      color: var(--muted);
      font-size: 10px;
      line-height: 1.45;
    }
    .selected-ranking-summary strong {
      display: block;
      overflow: hidden;
      color: var(--ink);
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .confirm-ranking-selection {
      min-width: 210px;
      height: 44px;
      padding: 0 18px;
      border: 0;
      border-radius: 13px;
      color: #fff;
      background: var(--orange);
      cursor: pointer;
      font-size: 11px;
      font-weight: 800;
    }
    .confirm-ranking-selection:hover:not(:disabled) { filter: brightness(.94); }
    .confirm-ranking-selection:disabled {
      color: var(--soft);
      background: var(--panel);
      cursor: not-allowed;
    }

    .filter-card {
      position: relative;
      overflow: visible;
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: 28px;
      background: var(--panel);
      box-shadow: var(--shadow-soft);
    }
    .filter-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
    }
    .filter-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; }
    .filter-meta { color: var(--muted); font-size: 12px; }
    .filter-toggle {
      border: 0;
      background: transparent;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .filter-main {
      display: grid;
      grid-template-columns: 1.4fr 1fr auto;
      gap: 16px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--line);
    }
    .field { min-width: 0; }
    .field label {
      display: block;
      margin: 0 0 8px 5px;
      color: #53504c;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
    }
    .control {
      width: 100%;
      height: 44px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 22px;
      outline: none;
      color: var(--ink);
      background: var(--paper);
      transition: .2s ease;
    }
    .control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 28, 26, .06); }
    .search-wrap { position: relative; }
    .search-wrap .material-symbols-rounded {
      position: absolute;
      left: 15px;
      top: 12px;
      color: var(--soft);
      pointer-events: none;
    }
    .search-wrap .control { padding-left: 44px; }
    select.control { appearance: none; cursor: pointer; padding-right: 42px; }
    .select-wrap { position: relative; }
    .select-wrap > .material-symbols-rounded {
      position: absolute;
      right: 14px;
      bottom: 12px;
      pointer-events: none;
    }
    .search-button {
      align-self: end;
      height: 44px;
      padding: 0 24px;
      border: 0;
      border-radius: 22px;
      background: var(--orange);
      color: #fff;
      font-weight: 750;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 9px 20px rgba(239, 91, 42, .2);
      transition: .2s ease;
    }
    .search-button:hover { background: #d94d20; transform: translateY(-1px); }
    .filter-more {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 12px;
      padding-top: 20px;
      max-height: 140px;
      opacity: 1;
      transition: .25s ease;
    }
    .filter-more .field { position: relative; }
    .filter-more.collapsed { max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; }
    .capsule {
      width: 100%;
      height: 40px;
      padding: 0 14px;
      border: 1px solid var(--dark);
      border-radius: 20px;
      color: #fff;
      background: var(--dark);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 13px;
    }
    .capsule:hover { background: #33312e; }
    .filter-popover {
      position: absolute;
      top: 68px;
      left: 0;
      z-index: 30;
      width: min(290px, calc(100vw - 32px));
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--paper);
      box-shadow: var(--shadow);
      display: none;
    }
    .filter-more .field:nth-child(even) .filter-popover { right: 0; left: auto; }
    .filter-popover.open { display: block; }
    .range-fields {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .range-field label {
      margin: 0 0 6px;
      color: var(--muted);
      font-size: 9px;
      font-weight: 750;
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .range-input {
      width: 100%;
      height: 38px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      outline: none;
      color: var(--ink);
      background: var(--paper);
      font-size: 12px;
    }
    .range-input:focus { border-color: var(--ink); }
    .filter-apply {
      width: 100%;
      height: 38px;
      margin-top: 12px;
      border: 0;
      border-radius: 10px;
      color: #fff;
      background: var(--ink);
      cursor: pointer;
      font-size: 12px;
      font-weight: 750;
    }
    .filter-footer {
      padding-top: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
    .active-chip {
      height: 30px;
      padding: 0 11px;
      border: 1px solid var(--line);
      border-radius: 15px;
      background: var(--paper);
      color: var(--muted);
      font-size: 11px;
      font-weight: 650;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .clear-button {
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .results-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      margin: 40px 0 18px;
    }
    .results-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
    .results-count { margin-top: 5px; color: var(--muted); font-size: 12px; }
    .sort-button {
      height: 40px;
      padding: 0 15px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--paper);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }
    .product-card {
      min-height: 0;
      display: grid;
      grid-template-columns: 46% 54%;
      align-items: stretch;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 26px;
      background: var(--paper);
      box-shadow: 0 4px 16px rgba(41, 35, 28, .03);
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .product-card:hover {
      transform: translateY(-3px);
      border-color: var(--line-strong);
      box-shadow: var(--shadow);
    }
    .product-media {
      position: relative;
      min-width: 0;
      width: 100%;
      aspect-ratio: 1 / 1;
      align-self: center;
      background: #fff;
      overflow: hidden;
    }
    .product-media img {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding: 16px;
      display: block;
      object-fit: contain;
      transition: transform .5s ease;
    }
    .product-card:hover .product-media img { transform: scale(1.035); }
    .rank {
      position: absolute;
      top: 16px;
      left: 16px;
      min-width: 58px;
      height: 30px;
      padding: 0 11px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 15px;
      color: #fff;
      background: var(--orange);
      box-shadow: 0 8px 18px rgba(239, 91, 42, .24);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .04em;
    }
    .product-body { min-width: 0; min-height: 0; padding: 12px; display: flex; flex-direction: column; }
    .product-topline {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      margin-bottom: 6px;
    }
    .supplier {
      min-width: 0;
      color: var(--green);
      background: var(--green-soft);
      border-radius: 12px;
      padding: 5px 9px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }
    .product-title {
      margin: 0;
      font-size: 15px;
      line-height: 1.28;
      letter-spacing: -.025em;
      font-weight: 800;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .price-compare { margin: 8px 0; }
    .amazon-row {
      display: flex;
      align-items: baseline;
      gap: 9px;
      margin-bottom: 5px;
      color: var(--muted);
    }
    .amazon-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .amazon-price {
      color: #8b8985;
      font-size: 14px;
      font-weight: 650;
      text-decoration: line-through;
    }
    .fabulk-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .fabulk-label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 8px;
      border-radius: 7px;
      color: var(--blue);
      background: #e7f0f7;
      font-size: 9px;
      font-weight: 850;
      text-transform: uppercase;
    }
    .price { color: var(--blue); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
    .price-unavailable { color: var(--muted); font-size: 14px; letter-spacing: 0; }
    .unit { color: var(--muted); font-size: 11px; }
    .market-price { color: var(--soft); font-size: 11px; text-decoration: line-through; }
    .metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: auto 0 8px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
    }
    .metric span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
    .metric strong { display: block; margin-top: 4px; font-size: 12px; }
    .rating { color: #b77b00; }
    .product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .primary-action, .secondary-action {
      height: 34px;
      border-radius: 12px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 750;
      transition: .2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }
    .primary-action { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
    .primary-action:hover { background: #34322f; border-color: #34322f; }
    .primary-action.is-disabled { border-color: #d7d4cf; background: #e8e6e2; color: #8b8985; cursor: default; }
    .product-card.is-hidden { display: none; }

    .pagination {
      margin: 34px auto 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .page-button {
      min-width: 42px;
      height: 42px;
      padding: 0 14px;
      border: 1px solid var(--line-strong);
      border-radius: 21px;
      background: var(--paper);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 750;
      transition: .2s ease;
    }
    .page-button:hover:not(:disabled), .page-button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
    .page-button:disabled { opacity: .38; cursor: not-allowed; }
    .toast {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 80;
      min-width: 270px;
      padding: 15px 17px;
      border-radius: 16px;
      color: #fff;
      background: var(--ink);
      box-shadow: var(--shadow);
      transform: translateY(120px);
      opacity: 0;
      transition: .3s ease;
      font-size: 13px;
      font-weight: 650;
    }
    .toast.show { transform: translateY(0); opacity: 1; }

    @media (max-width: 1320px) {
      .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 1120px) {
      .filter-more { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 230px; }
      .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 760px) {
      .topbar-inner, .shell { width: min(100% - 28px, 1480px); }
      .shell { padding-top: 24px; }
      .hero { align-items: stretch; flex-direction: column; }
      .trend-card { min-width: 0; }
      .filter-card { padding: 18px; border-radius: 22px; }
      .filter-main { grid-template-columns: 1fr; }
      .search-button { width: 100%; }
      .filter-more { grid-template-columns: 1fr 1fr; max-height: 390px; }
      .filter-footer { align-items: flex-start; flex-direction: column; }
      .results-head { align-items: flex-start; }
      .products { grid-template-columns: 1fr; }
      .product-card { grid-template-columns: 39% 61%; border-radius: 20px; }
      .product-body { padding: 12px; }
      .product-title { font-size: 15px; }
      .metrics { gap: 4px; }
      .metrics { grid-template-columns: 1fr 1fr; }
      .ranking-context { align-items: flex-start; }
      .current-ranking-name { white-space: normal; }
      .browse-rankings { padding: 0 12px; }
      .ranking-explorer { padding: 0; align-items: stretch; }
      .ranking-dialog { height: 100vh; max-height: none; border: 0; border-radius: 0; }
      .explorer-header { padding: 16px 16px 12px; }
      .explorer-search { margin: 0 16px 14px; flex-wrap: wrap; }
      .ranking-search-input { flex-basis: 100%; }
      .ranking-filter-panel { margin: 0 16px 12px; padding: 12px; }
      .ranking-filter-hint { display: none; }
      .explorer-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
      .ranking-types { padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; }
      .rail-heading { display: none; }
      .ranking-type { width: auto; min-width: max-content; margin: 0; }
      .ranking-browser { padding: 12px; }
      .ranking-columns { grid-template-columns: 42% minmax(0, 1fr); gap: 8px; }
      .explorer-actions { min-height: 76px; padding: 10px 16px; }
      .confirm-ranking-selection { min-width: 180px; }
    }
    @media (max-width: 480px) {
      .fabulk-logo { height: 26px; max-width: 132px; }
      h1 { font-size: 36px; }
      .hero-copy { font-size: 13px; }
      .filter-more { grid-template-columns: 1fr 1fr; max-height: 390px; gap: 10px; }
      .capsule { padding: 0 10px; font-size: 11px; }
      .field label { font-size: 9px; margin-left: 2px; }
      .ranking-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ranking-filter-field label { font-size: 8px; }
      .ranking-filter-button { padding: 0 9px; font-size: 10px; }
      .explorer-actions { align-items: stretch; flex-direction: column; gap: 8px; }
      .confirm-ranking-selection { width: 100%; min-width: 0; }
      .product-card { grid-template-columns: 50% 50%; }
      .product-body { padding: 10px; }
      .product-topline { margin-bottom: 5px; }
      .product-title { font-size: 14px; line-height: 1.2; }
      .price-compare { margin: 6px 0; }
      .metrics { margin-bottom: 6px; padding-top: 6px; }
      .primary-action { height: 32px; }
      .rank { top: 10px; left: 10px; min-width: 48px; padding: 0 8px; }
      .supplier { max-width: 115px; overflow: hidden; }
      .price { font-size: 21px; }
      .amazon-row { gap: 5px; }
      .amazon-price { font-size: 13px; }
      .fabulk-label { font-size: 8px; padding: 4px 6px; }
    }
    .catalog-hub { margin: 0 0 20px; }
    .catalog-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
    .subcategory-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      padding: 4px 0 20px;
      margin-bottom: 8px;
      border-bottom: 1px solid var(--line);
    }
    .subcategory-grid .catalog-card { padding: 14px 16px; }
    .subcategory-grid .catalog-card-head strong { font-size: 15px; }
    @media (max-width: 720px) { .subcategory-grid { grid-template-columns: 1fr; } }
    .catalog-card {
      display: block;
      min-height: 0;
      padding: 18px 20px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--paper);
      text-decoration: none;
      color: inherit;
      transition: .2s ease;
    }
    .catalog-card:hover { border-color: var(--orange); box-shadow: var(--shadow-soft); transform: translateY(-1px); }
    .catalog-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
    .catalog-card-head strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
    .catalog-dept {
      flex: 0 0 auto;
      padding: 4px 9px;
      border-radius: 999px;
      background: var(--orange-soft);
      color: #8b4a33;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }
    .catalog-card-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }
    .catalog-card-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); }
  