:root {
    --bg: #0f1a2d;
    --bg-alt: #16233a;
    --bg-alt-2: #1c2b45;
    --paper: #ffffff;
    --ink: #f4f6fa;
    --ink-dim: #b8c2d4;
    --ink-faint: #8592a8;
    --amber: #f0a52d;
    --amber-soft: rgba(240,165,45,0.14);
    --line: rgba(244,246,250,0.10);
    --line-strong: rgba(244,246,250,0.22);
    --radius: 12px;
    --shadow: 0 14px 34px rgba(0,0,0,0.45);
    --sans: "Manrope", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 140px; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(60% 45% at 78% 8%, rgba(240,165,45,0.10), transparent 70%),
      radial-gradient(55% 40% at 8% 0%, rgba(120,150,220,0.07), transparent 70%);
  }

  a { color: inherit; }
  button { font-family: inherit; }
  :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

  .headline-br { display: none; }
  .affiliate-strip {
    margin: 0;
    padding: 8px 2px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-faint);
  }
  .affiliate-strip strong { color: var(--ink-dim); font-weight: 700; }
  .price-disclaimer {
    margin: 6px 0 0;
    padding: 0 2px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--ink-faint);
  }

  .theme-back {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ink-faint);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .theme-back a {
    color: var(--ink-dim);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
  }
  .theme-back a:hover { color: var(--amber); border-color: var(--amber); }

  .theme-links {
    display: flex; flex-wrap: wrap; gap: 10px 16px;
    margin: 22px 0 0; padding: 0; list-style: none;
  }
  .theme-links a {
    font-size: 13px; font-weight: 600; color: var(--ink-dim);
    text-decoration: none; border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
  }
  .theme-links a:hover { color: var(--amber); border-color: var(--amber); }

  .theme-index {
    list-style: none; padding: 24px 0 60px; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
  }
  .theme-index a {
    display: block; padding: 16px 18px;
    background: var(--bg-alt); border: 1px solid var(--line);
    border-radius: var(--radius); text-decoration: none;
    font-weight: 600; font-size: 16px;
  }
  .theme-index a:hover { border-color: var(--amber); color: var(--amber); }

  .card-meta { display: flex; flex-direction: column; gap: 4px; }
  .card-price {
    font-size: 15px; font-weight: 700; color: var(--amber);
    letter-spacing: 0.01em;
  }
  .card-rating {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ink-dim);
  }
  .card-rating .stars { color: var(--amber); font-weight: 700; }
  .card-rating .reviews { color: var(--ink-faint); }


  /* categorias herdam um único acento - diferenciação por nome e ícone */
  .cat-mango, .cat-tomate, .cat-limao, .cat-azul { color: var(--amber); }
  .cat-mango .dot, .cat-tomate .dot, .cat-limao .dot, .cat-azul .dot { background: var(--amber); }

  header.hero { padding: 56px 0 26px; border-bottom: 1px solid var(--line); }

  .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 44px; text-decoration: none; color: inherit; }
  .brand-mark {
    width: 40px; height: 40px; border-radius: 50%;
    display: block; flex-shrink: 0;
    object-fit: cover;
  }
  .brand-name { font-weight: 700; letter-spacing: 0.01em; font-size: 17px; text-transform: none; }

  .eyebrow-tag {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--sans); font-weight: 600;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--amber); background: none; padding: 0; border-radius: 0;
    transform: none; margin-bottom: 18px;
  }
  .eyebrow-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); display: inline-block; }

  h1.headline {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(44px, 7vw, 78px); line-height: 1.04; letter-spacing: -0.015em;
    margin: 0 0 18px;
    white-space: nowrap;
  }
  h1.headline .accent { color: var(--amber); }

  .subhead { font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 48ch; margin: 0; text-wrap: pretty; }

  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }

  .btn-whats {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--amber); color: #16233a; font-weight: 700; font-size: 14.5px;
    padding: 13px 22px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn-whats:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn-whats svg { width: 18px; height: 18px; }

  .btn-cart-all {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent; color: var(--amber); font-weight: 700; font-size: 14.5px;
    padding: 12px 21px; border-radius: 999px; text-decoration: none;
    border: 1.5px solid var(--amber); cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
  .btn-cart-all:hover { transform: translateY(-2px); background: var(--amber); color: #16233a; }
  .btn-cart-all svg { width: 18px; height: 18px; }
  .btn-cart-all[hidden] { display: none; }

  .stat-strip { font-size: 13px; color: var(--ink-faint); }
  .stat-strip strong { color: var(--ink); }

  .disclosure-note {
    display: flex; gap: 10px; align-items: flex-start; max-width: 640px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(244,246,250,0.03); font-size: 13px; line-height: 1.55; color: var(--ink-faint);
  }
  .disclosure-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--amber); }

  .filter-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(15,26,45,0.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }
  .filter-inner { display: flex; flex-direction: column; gap: 14px; }
  .search-row { display: flex; gap: 12px; align-items: center; }

  .search-box { position: relative; flex: 1; max-width: 420px; }
  .search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
  .search-box input {
    width: 100%; background: var(--bg-alt); border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 11px 16px 11px 39px; color: var(--ink); font-family: var(--sans); font-size: 14px;
  }
  .search-box input::placeholder { color: var(--ink-faint); }
  .search-box input:focus { outline: none; border-color: var(--amber); }


  .navpills-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-btn {
    flex-shrink: 0;
    width: 36px; height: 36px; min-width: 36px; min-height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--bg-alt);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .nav-btn:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: #16233a;
  }
  .nav-btn svg { width: 15px; height: 15px; }

  .navpills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x proximity;
    flex: 1;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(240,165,45,0.55) rgba(244,246,250,0.08);
  }
  .navpills::-webkit-scrollbar { height: 5px; }
  .navpills::-webkit-scrollbar-track {
    background: rgba(244,246,250,0.08);
    border-radius: 999px;
  }
  .navpills::-webkit-scrollbar-thumb {
    background: rgba(240,165,45,0.55);
    border-radius: 999px;
  }
  .navpills::-webkit-scrollbar-thumb:hover {
    background: var(--amber);
  }
  .navpills::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

  .navpill {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-dim);
    padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
    text-decoration: none; white-space: nowrap; transition: all 0.15s ease; cursor: pointer;
  }
  .navpill-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
  .navpill em { font-style: normal; opacity: 0.5; font-size: 11.5px; margin-left: 3px; color: inherit; }
  .navpill:hover { border-color: var(--line-strong); color: var(--ink); }
  .navpill.active { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); font-weight: 700; }
  .navpill.active .navpill-icon { color: var(--amber); opacity: 1; }
  .navpill.active em { opacity: 0.7; }

  main { padding: 44px 0 30px; min-height: 300px; }

  .rail-section { margin-bottom: 46px; scroll-margin-top: 150px; }
  .rail-section[hidden] { display: none; }

  .rail-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .rail-title { display: flex; align-items: center; gap: 11px; }
  .rail-title svg { width: 20px; height: 20px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .rail-title h2 { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -0.01em; margin: 0; }
  .rail-count { font-size: 12px; color: var(--ink-faint); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
  .rail-controls { display: flex; gap: 8px; }
  .rail-actions { display: flex; align-items: center; gap: 12px; }

  .cart-all-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1.5px solid var(--amber); color: var(--amber);
    padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
  .cart-all-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
  .cart-all-btn:hover { background: var(--amber); color: #16233a; transform: translateY(-2px); }
  .cart-all-btn span { display: inline; }

  .rail-btn {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%;
    border: 1px solid var(--line-strong); background: var(--bg-alt); color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .rail-btn:hover { background: var(--amber); border-color: var(--amber); color: #16233a; }
  .rail-btn svg { width: 16px; height: 16px; }

  .rail-viewport { position: relative; }
  .rail-viewport::before, .rail-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 2; pointer-events: none; }
  .rail-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
  .rail-viewport::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

  .rail-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 12px; scrollbar-width: none; }
  .rail-track::-webkit-scrollbar { display: none; }

  .card {
    position: relative; flex: 0 0 190px; scroll-snap-align: start;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px; display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); z-index: 3; }

  .card-photo {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 9px; background: var(--paper);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
  .card-photo.placeholder { background: var(--bg-alt-2); border: 1px solid var(--line); }
  .card-photo-fallback { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
  .card-photo.placeholder .card-photo-fallback { display: flex; }
  .card-photo-fallback svg { width: 36%; height: 36%; opacity: 0.3; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

  .card-item { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding-left: 0; opacity: 0.95; }

  .card-name {
    font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1; padding-left: 0;
  }

  .card-cta {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px;
    padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink-dim);
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .card-cta:hover { background: var(--amber); border-color: var(--amber); color: #16233a; }
  .card-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

  .no-results, .load-state { text-align: center; padding: 70px 20px; color: var(--ink-faint); }
  .no-results .headline-mini, .load-state .headline-mini {
    font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--ink); margin-bottom: 8px;
  }
  .load-state code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; }

  footer { border-top: 1px solid var(--line); padding: 40px 0 50px; margin-top: 10px; }
  .footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
  .footer-brand { font-family: var(--display); font-size: 24px; font-weight: 700; }
  .footer-tagline { color: var(--ink-faint); font-size: 13px; margin-top: 6px; max-width: 34ch; line-height: 1.55; }
  .footer-disclosure { font-size: 12.5px; line-height: 1.65; color: var(--ink-faint); max-width: 520px; }
  .footer-bottom { font-size: 12px; color: var(--ink-faint); opacity: 0.75; padding-top: 20px; border-top: 1px solid var(--line); }

  @media (max-width: 640px) {
    h1.headline { white-space: normal; }
    .headline-br { display: block; }
    header.hero { padding: 40px 0 22px; }
    .search-row { flex-direction: column; align-items: stretch; }
    .search-box { max-width: none; }
    .rail-controls { display: none; }
    .nav-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; }
    .rail-header { flex-wrap: wrap; row-gap: 10px; }
    .cart-all-btn { padding: 9px 14px; font-size: 12px; }
    .card { flex-basis: 158px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .btn-whats, .cart-all-btn { transition: none !important; transform: none !important; }
  }
