/*
   * VISIBILIDADE
   * Garante que o atributo hidden tenha prioridade sobre
   * classes que definem display:flex / display:grid.
   */
  [hidden] {
    display: none !important;
  }


  :root {
    --laranja: #f39a2e;
    --laranja-hover: #dd821d;
    --laranja-claro: #fff0df;
    --laranja-suave: #fff8ef;
    --marrom: #7a3a0f;
    --marrom-medio: #a65516;
    --marrom-escuro: #3a2618;
    --texto: #303b46;
    --cinza: #6f7882;
    --linha: #ddd5cc;
    --linha-clara: #eee7df;
    --fundo: #f4f0ea;
    --branco: #ffffff;
    --vermelho: #b42318;
    --vermelho-claro: #fff1f0;
    --raio: 7px;
    --raio-menor: 5px;
    --sombra: 0 12px 32px rgba(104, 66, 32, .09);
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--fundo);
  }

  button,
  input,
  select {
    font: inherit;
  }

  /* TOPO */
  .topbar {
    position: relative;
    z-index: 2;
    background: linear-gradient(
      105deg,
      #f4a137 0%,
      #e18b28 32%,
      #b86418 66%,
      #79390e 100%
    );
    box-shadow: 0 4px 18px rgba(80, 42, 13, .16);
  }

  .topbar-inner {
    max-width: 1420px;
    min-height: 78px;
    margin: auto;
    padding: 10px 22px;

    display: grid;
    grid-template-columns:
      minmax(390px, 1fr)
      minmax(460px, 760px)
      40px
      40px;
    gap: 10px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--marrom-escuro);
  }

  .company-logo-wrap {
    width: 154px;
    height: 52px;
    flex: 0 0 154px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .company-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
    transform-origin: center center;
    will-change: transform;
  }

  .company-logo[hidden] {
    display: none;
  }

  .brand-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-left: 14px;
    border-left: 1px solid rgba(92, 49, 19, .28);
  }

  #companyName {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.05;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.015em;
  }

  #companyName[hidden] {
    display: none;
  }

  .brand-subtitle {
    color: rgba(58, 38, 24, .82);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  .brand-name-loading {
    width: 150px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(
      90deg,
      rgba(255,255,255,.16),
      rgba(255,255,255,.34),
      rgba(255,255,255,.16)
    );
    background-size: 200% 100%;
    animation: brandingPulse 1.1s linear infinite;
  }

  @keyframes brandingPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* BUSCA */
  .search-box {
    position: relative;
    min-width: 0;
    width: min(100%, 760px);
    justify-self: end;
    overflow: visible;
  }

  .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--cinza);
  }

  .search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .search {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px 10px 42px;
    border: 1px solid rgba(95,51,18,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    color: var(--texto);
    outline: none;
    box-shadow: 0 4px 10px rgba(83,44,14,.06);
  }

  .search::placeholder {
    color: #969089;
  }

  .search:focus {
    border-color: var(--marrom-medio);
    background: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,.2);
  }

  .whatsapp-top {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(58,38,24,.18);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0,0,0,.08);
    transition:
      transform .16s ease,
      box-shadow .16s ease,
      background .16s ease;
  }

  .whatsapp-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
    background: #fff;
  }

  .whatsapp-icon {
    width: 23px;
    height: 23px;
    display: block;
    object-fit: contain;
  }

  .whatsapp-top[hidden] {
    display: none !important;
  }


  /* VOLTAR AO TOPO */
  .back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    padding: 0;
    border: 1px solid rgba(122,58,15,.20);
    border-radius: 50%;

    background: rgba(255,255,255,.96);
    color: var(--marrom);

    font-size: 25px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;

    box-shadow:
      0 8px 24px rgba(80,42,13,.18);

    transition:
      opacity .18s ease,
      transform .18s ease,
      background .18s ease;
  }

  .back-to-top:hover {
    background: var(--laranja-claro);
    transform: translateY(-2px);
  }

  .back-to-top:focus-visible {
    outline: 3px solid rgba(122,58,15,.28);
    outline-offset: 3px;
  }

  .back-to-top[hidden] {
    display: none;
  }

  /* LAYOUT */
  .layout {
    max-width: 1380px;
    margin: auto;
    padding: 28px 24px 64px;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 24px;
  }

  .load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
  }

  .load-more-button {
    min-width: 220px;
    padding: 12px 20px;
    border: 1px solid rgba(122,58,15,.22);
    border-radius: 6px;
    background: #fff;
    color: var(--marrom);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(83,44,14,.06);
  }

  .load-more-button:hover {
    background: var(--laranja-claro);
  }

  /* FILTROS */
  .filters {
    position: sticky;
    top: 20px;
    align-self: start;
    padding: 20px;
    background: white;
    border: 1px solid var(--linha);
    border-radius: var(--raio);
    box-shadow: 0 6px 18px rgba(91,66,43,.04);
  }

  .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .filters-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--texto);
    font-size: 18px;
  }

  .filters-title-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--laranja-claro);
  }

  .clear {
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--marrom-medio);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
  }

  .clear:hover {
    background: var(--laranja-claro);
  }

  .field {
    margin-bottom: 17px;
  }

  .field:last-child {
    margin-bottom: 0;
  }

  .field label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #595b5d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--linha);
    border-radius: 11px;
    background: #fffdfa;
    color: var(--texto);
    cursor: pointer;
    outline: none;
  }

  .field select:focus {
    border-color: var(--laranja);
    box-shadow: 0 0 0 3px rgba(243,154,46,.12);
  }

  /* RESULTADOS */
  .catalog-header {
    min-height: 52px;
    margin-bottom: 17px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
  }

  .count {
    color: var(--texto);
    font-weight: 800;
    font-size: 17px;
  }

  .count small {
    display: block;
    margin-top: 4px;
    color: var(--cinza);
    font-size: 12px;
    font-weight: normal;
  }

  .sort {
    padding: 10px 13px;
    border: 1px solid var(--linha);
    border-radius: 11px;
    background: white;
    color: var(--texto);
    outline: none;
  }

  .sort:focus {
    border-color: var(--laranja);
  }

  /* GRID */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .product-card {
    min-height: 100%;
    overflow: hidden;
    background: white;
    border: 1px solid var(--linha);
    border-radius: var(--raio);

    display: flex;
    flex-direction: column;

    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .product-card:hover {
    transform: translateY(-4px);
    border-color: #efc99f;
    box-shadow: var(--sombra);
  }

  .image-area {
    height: 205px;
    position: relative;
    padding: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, #fffaf4 0%, #f8eee2 100%);
    border-bottom: 1px solid #f0e4d8;
  }

  .image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-pictogram {
    display: grid;
    place-items: center;
    user-select: none;
  }

  .product-pictogram-large {
    width: 94px;
    height: 94px;
    border-radius: 25px;
    background: white;
    border: 1px solid #efd6bc;
    box-shadow: 0 12px 28px rgba(135,82,31,.08);
    font-size: 49px;
  }

  .no-image {
    width: 94px;
    height: 94px;
    border-radius: 25px;
    display: grid;
    place-items: center;
    background: white;
    border: 1px solid #efd6bc;
    color: var(--marrom-medio);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
  }

  .featured {
    position: absolute;
    right: 13px;
    top: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--marrom);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(90,42,10,.16);
  }

  .product-content {
    padding: 18px;

    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .category {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--laranja-claro);
    color: var(--marrom-medio);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
  }

  .category-pictogram {
    font-size: 14px;
    line-height: 1;
  }

  .product-content h2 {
    margin: 12px 0 6px;
    color: var(--texto);
    font-size: 20px;
    line-height: 1.25;

    min-height: 50px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .brand-info {
    margin-bottom: 8px;
    color: var(--cinza);
    font-size: 13px;
    line-height: 1.35;

    min-height: 36px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /*
   * INFORMAÇÕES TÉCNICAS NO CARD
   *
   * Marca / registro, ingrediente ativo e classe / formulação
   * usam o mesmo tamanho de fonte para manter hierarquia consistente.
   */

  .product-active-info,
  .product-class-formulation {
    color: var(--cinza);
    font-size: 13px;
    line-height: 1.42;
  }

  .product-active-info {
    margin-bottom: 5px;
    min-height: 37px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-class-formulation {
    margin-bottom: 4px;
    color: #5e6871;

    min-height: 37px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .description {
    min-height: 64px;
    color: #646d75;
    font-size: 14px;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chips {
    min-height: 30px;
    margin: 13px 0 15px;

    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
  }

  .chip {
    padding: 5px 8px;
    border: 1px solid #f3dac0;
    border-radius: 999px;
    background: var(--laranja-suave);
    color: #765034;
    font-size: 11px;
    white-space: nowrap;
  }

  .chip-more {
    background: var(--laranja-claro);
    border-color: #efc99f;
    color: var(--marrom-medio);
    font-weight: 800;
    cursor: help;
  }

  /* BOTÕES */
  .actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;

    margin-top: auto;
    padding-top: 2px;
  }

  .button {
    min-height: 43px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
  }

  .button:hover {
    transform: translateY(-1px);
  }

  .button-primary {
    background: var(--laranja);
    color: white;
    border-color: var(--laranja);
  }

  .button-primary:hover {
    background: var(--laranja-hover);
    border-color: var(--laranja-hover);
  }

  .button-secondary {
    background: white;
    color: var(--marrom-medio);
    border-color: #e7b77f;
  }

  .button-secondary:hover {
    background: var(--laranja-claro);
  }

  .button-agrofit {
    background: var(--marrom);
    color: white;
    border-color: var(--marrom);
  }

  .button-agrofit:hover {
    background: #612b09;
    border-color: #612b09;
  }

  /* ESTADOS */
  .loading,
  .empty,
  .error {
    padding: 46px 24px;
    border: 1px dashed #d6c7b8;
    border-radius: var(--raio);
    background: white;
    text-align: center;
    color: var(--cinza);
    line-height: 1.6;
  }


  .error {
    color: var(--vermelho);
    border-color: #eebbb7;
    background: var(--vermelho-claro);
  }

  /* MODAL */
  dialog {
    width: min(880px, calc(100% - 28px));
    max-height: calc(100vh - 30px);
    padding: 0;
    border: 1px solid var(--linha);
    border-radius: 14px;
    overflow: auto;
    overscroll-behavior: contain;
    background: white;
    box-shadow: 0 28px 80px rgba(71,42,20,.24);
  }

  dialog::backdrop {
    background: rgba(53,37,26,.58);
    backdrop-filter: blur(4px);
  }

  .modal {
    position: relative;
    background: white;
  }

  .close {
    position: absolute;
    z-index: 5;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--linha);
    border-radius: 50%;
    background: white;
    color: var(--marrom);
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(70,44,24,.08);
  }

  .close:hover {
    background: var(--laranja-claro);
  }

  .modal-main {
    padding: 34px 42px 30px;
    display: block;
    border-bottom: 1px solid var(--linha-clara);
  }

  .modal-image {
    min-height: 280px;
    padding: 22px;
    border: 1px solid #f0dfce;
    border-radius: 18px;
    background: linear-gradient(150deg, #fffaf4, #f7ede1);
    display: grid;
    place-items: center;
  }

  .modal-image img {
    width: 100%;
    height: 260px;
    object-fit: contain;
  }

  .modal-info {
    max-width: 760px;
  }

  .modal-info h2 {
    margin: 13px 0 7px;
    color: var(--texto);
    font-size: 31px;
    line-height: 1.16;
  }

  .modal-info p {
    color: #626c74;
    line-height: 1.65;
  }

  .modal-actions {
    margin-top: 21px;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
  }

  .technical {
    padding: 22px 36px 32px;
  }

  .technical h3 {
    margin: 0 0 15px;
    color: var(--texto);
    font-size: 20px;
  }

  .technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--linha);
    border-radius: 14px;
    overflow: hidden;
  }

  .technical-item {
    padding: 14px 15px;
    border-bottom: 1px solid var(--linha-clara);
    background: #fffdfa;
  }

  .technical-item:nth-child(odd) {
    border-right: 1px solid var(--linha-clara);
  }

  .technical-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--marrom-medio);
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  /*
   * CULTURAS E ALVOS
   */

  .targets-section {
    padding: 0 36px 36px;
  }

  .section-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
  }

  .section-title-row h3 {
    margin: 0;
    color: var(--texto);
    font-size: 20px;
  }

  .section-title-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--laranja-claro);
    font-size: 17px;
  }

  .targets-loading {
    padding: 18px;
    border: 1px dashed var(--linha);
    border-radius: 14px;
    background: #fffdfa;
    color: var(--cinza);
    font-size: 13px;
  }

  .culture-target-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  .culture-target-card {
    overflow: hidden;
    align-self: start;
    height: auto;
    border: 1px solid var(--linha);
    border-radius: 14px;
    background: #fffdfa;
  }

  .culture-target-title {
    min-height: 48px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--laranja-claro);
    color: var(--marrom-medio);
    font-size: 13px;
    font-weight: 800;
    border-bottom: 1px solid #f2d6b9;
  }

  .target-count {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: white;
    color: var(--marrom-medio);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .target-toggle {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e7c29d;
    border-radius: 5px;
    background: #fff;
    color: var(--marrom-medio);
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
      background .15s ease,
      border-color .15s ease,
      transform .15s ease;
  }

  .target-toggle:hover {
    background: #fff7ef;
    border-color: var(--laranja);
  }

  .target-toggle:active {
    transform: scale(.96);
  }

  .target-toggle:focus-visible {
    outline: 2px solid var(--laranja);
    outline-offset: 2px;
  }

  .culture-target-content[hidden] {
    display: none;
  }

  .target-list {
    margin: 0;
    padding: 10px 13px 12px;
    list-style: none;
  }

  .target-item {
    padding: 7px 0;
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 5px;
    border-bottom: 1px solid var(--linha-clara);
  }

  .target-item:last-child {
    border-bottom: 0;
  }

  .target-bullet {
    color: var(--laranja);
    font-weight: 900;
  }

  .target-common {
    color: var(--texto);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }

  .target-scientific {
    margin-top: 2px;
    color: var(--cinza);
    font-size: 11px;
    font-style: italic;
    line-height: 1.35;
  }

  .target-empty {
    padding: 13px;
    color: var(--cinza);
    font-size: 12px;
    line-height: 1.45;
  }

  .target-empty-main {
    border: 1px dashed var(--linha);
    border-radius: 14px;
    background: #fffdfa;
  }


  /* RESPONSIVO */
  @media (max-width: 1050px) {
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar-inner {
      grid-template-columns:
        minmax(320px, 1fr)
        minmax(320px, 600px)
        40px
        40px;
      gap: 8px;
    }

    .company-logo-wrap {
      width: 132px;
      height: 48px;
      flex-basis: 132px;
    }

    .company-logo {
      width: 132px;
      height: 48px;
    }

    #companyName {
      font-size: 15px;
    }

    .brand-subtitle {
      font-size: 11px;
    }
  }

  @media (max-width: 760px) {
    .catalog-header {
      min-height: 44px;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .catalog-result-count {
      min-width: 0;
      font-size: 15px;
    }

    .catalog-result-count small {
      font-size: 10px;
      white-space: normal;
    }

    .back-to-top {
      right: 14px;
      bottom: 14px;
      width: 44px;
      height: 44px;
      font-size: 22px;
    }

    .topbar-inner {
      grid-template-columns: minmax(0, 1fr) 40px 40px;
      gap: 8px;
      min-height: 0;
      padding: 10px 14px 12px;
    }

    .brand {
      grid-column: 1 / -1;
    }

    .search-box {
      grid-column: 1;
    }

    .whatsapp-top {
      grid-column: 2;
      justify-self: end;
    }

    .theme-toggle {
      grid-column: 3;
      justify-self: end;
    }

    .brand {
      width: 100%;
      gap: 10px;
    }

    .company-logo-wrap {
      width: 126px;
      height: 46px;
      flex-basis: 126px;
    }

    .company-logo {
      width: 126px;
      height: 46px;
    }

    #companyName {
      font-size: 15px;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }

    .brand-subtitle {
      font-size: 11px;
      white-space: normal;
    }

    .search-box {
      width: 100%;
      justify-self: stretch;
    }

    .layout {
      display: block;
      padding: 16px 14px 46px;
    }

    .filters {
      position: static;
      margin-bottom: 18px;
    }

    .grid {
      grid-template-columns: 1fr;
    }

    .catalog-header {
      align-items: flex-start;
      flex-direction: column;
    }

    .sort {
      width: 100%;
    }

    .modal-main {
      padding: 25px 20px 22px;
    }

    .technical {
      padding: 18px 20px 22px;
    }

    .technical-grid {
      grid-template-columns: 1fr;
    }

    .agrofit-ingredient-grid {
      grid-template-columns: 1fr;
    }

    .agrofit-official-heading {
      align-items: flex-start;
      flex-direction: column;
    }

    .targets-section {
      padding: 0 20px 22px;
    }

    .culture-target-grid {
      grid-template-columns: 1fr;
    }

    .technical-item:nth-child(odd) {
      border-right: 0;
    }

    .modal-actions {
      display: grid;
      grid-template-columns: 1fr;
    }
  }


  /* DADOS OFICIAIS AGROFIT */
  .agrofit-technical-loading {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--linha-clara);
    color: var(--cinza);
    font-size: 13px;
  }

  .agrofit-official-heading {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .agrofit-official-heading > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .agrofit-official-heading strong {
    color: var(--marrom-escuro);
    font-size: 16px;
  }

  .agrofit-official-heading small {
    color: var(--cinza);
    font-size: 12px;
  }

  .agrofit-source-link {
    flex: 0 0 auto;
    color: var(--marrom-medio);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }

  .agrofit-source-link:hover {
    text-decoration: underline;
  }

  .agrofit-technical-grid {
    margin-top: 15px;
  }

  .agrofit-ingredients {
    margin-top: 20px;
  }

  .agrofit-ingredients h4 {
    margin: 0 0 12px;
    color: var(--marrom-escuro);
    font-size: 15px;
  }

  .agrofit-ingredient-grid {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .agrofit-ingredient-card {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 14px;
    border: 1px solid var(--linha-clara);
    border-radius: 6px;
    background: #fffdfa;
  }

  .agrofit-ingredient-card strong {
    color: var(--marrom);
    font-size: 14px;
  }

  .agrofit-ingredient-card span {
    color: var(--texto);
    font-size: 13px;
    line-height: 1.35;
  }




  /* RESUMO PRINCIPAL DO MODAL */
  .modal-summary {
    margin-top: 18px;
    display: grid;
    gap: 10px;
  }

  .modal-summary-row {
    display: grid;
    gap: 3px;
    color: var(--texto);
    font-size: 14px;
    line-height: 1.4;
  }

  .modal-summary-label {
    color: var(--cinza);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .modal-summary-row strong {
    color: var(--marrom-escuro);
    font-weight: 800;
  }

  .modal-summary-active {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .modal-active-list {
    display: grid;
    gap: 5px;
  }

  .modal-active-item {
    display: block;
    font-size: 14px;
    line-height: 1.4;
  }



  .whatsapp-top {
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  .product-class-formulation:empty {
    display: none;
  }




  /* BLOQUEIA A ROLAGEM DA PÁGINA ENQUANTO O MODAL ESTÁ ABERTO */
  html.modal-open,
  body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.modal-open {
    width: 100%;
  }




  /* CARD MAIS COMPACTO — ÁREA VISUAL SUPERIOR */
  .product-visual,
  .product-image,
  .product-image-wrap,
  .product-card-image {
    min-height: 118px !important;
    height: 118px !important;
  }

  .product-visual .product-icon,
  .product-image .product-icon,
  .product-image-wrap .product-icon,
  .product-card-image .product-icon,
  .product-visual .placeholder-icon,
  .product-image .placeholder-icon,
  .product-image-wrap .placeholder-icon,
  .product-card-image .placeholder-icon {
    width: 68px !important;
    height: 68px !important;
  }




  /* TESTE SEM IMAGEM NOS CARDS */
  .product-card {
    position: relative;
  }

  .product-card .product-content {
    padding-top: 18px;
  }

  .featured-no-image {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
  }




  /* CONTADOR DE RESULTADOS AO LADO DA ORDENAÇÃO */
  .catalog-result-count {
    min-width: 150px;
    text-align: left;
    color: var(--texto);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.1;
  }

  .catalog-result-count small {
    display: block;
    margin-top: 3px;
    color: var(--cinza);
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
    white-space: nowrap;
  }




  /* MODO NOTURNO */
  .theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(58,38,24,.18);
    border-radius: 6px;
    display: grid;
    place-items: center;
    justify-self: end;
    background: rgba(255,255,255,.92);
    color: #171717;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(0,0,0,.08);
    transition:
      transform .16s ease,
      background .16s ease,
      box-shadow .16s ease;
  }

  .theme-toggle:hover {
    transform: translateY(-1px);
    background: #fff;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
  }

  .theme-toggle svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
  }

  .category-pictogram,
  .product-pictogram,
  .section-title-icon {
    display: none !important;
  }

  html[data-theme="dark"] {
    color-scheme: dark;
    --texto: #e9edf1;
    --cinza: #adb5be;
    --linha: #414850;
    --linha-clara: #343b42;
    --fundo: #171b20;
    --branco: #20262c;
    --laranja-claro: #3a2a1c;
    --laranja-suave: #2a241e;
    --marrom: #efa04b;
    --marrom-medio: #efaa62;
    --marrom-escuro: #f2e6d9;
    --sombra: 0 12px 32px rgba(0,0,0,.28);
  }

  html[data-theme="dark"] body {
    background: var(--fundo);
    color: var(--texto);
  }

  html[data-theme="dark"] .topbar {
    background: linear-gradient(
      105deg,
      #b86d21 0%,
      #954f18 42%,
      #6d3713 72%,
      #4a260f 100%
    );
  }

  html[data-theme="dark"] .brand,
  html[data-theme="dark"] #companyName,
  html[data-theme="dark"] .brand-subtitle {
    color: #f6eadf;
  }

  html[data-theme="dark"] .brand-copy {
    border-left-color: rgba(255,255,255,.22);
  }

  html[data-theme="dark"] .filters,
  html[data-theme="dark"] .product-card,
  html[data-theme="dark"] .loading,
  html[data-theme="dark"] .empty,
  html[data-theme="dark"] .error,
  html[data-theme="dark"] dialog,
  html[data-theme="dark"] .modal,
  html[data-theme="dark"] .button-secondary,
  html[data-theme="dark"] .load-more-button {
    background: #20262c;
  }

  html[data-theme="dark"] .field select,
  html[data-theme="dark"] .sort,
  html[data-theme="dark"] .technical-item,
  html[data-theme="dark"] .targets-loading,
  html[data-theme="dark"] .culture-target-card,
  html[data-theme="dark"] .target-empty-main,
  html[data-theme="dark"] .agrofit-ingredient-card,
  html[data-theme="dark"] .modal-summary-active {
    background: #252c33;
    color: var(--texto);
  }

  html[data-theme="dark"] .search {
    background: #f7f7f7;
    color: #23272b;
    border-color: rgba(0,0,0,.18);
  }

  html[data-theme="dark"] .search::placeholder {
    color: #777;
  }

  html[data-theme="dark"] .search-icon {
    color: #62686e;
  }

  html[data-theme="dark"] .whatsapp-top,
  html[data-theme="dark"] .theme-toggle {
    background: #f7f7f7;
    border-color: rgba(255,255,255,.16);
  }

  html[data-theme="dark"] .theme-toggle {
    color: #151515;
  }

  html[data-theme="dark"] .culture-target-title {
    background: #32271f;
  }

  html[data-theme="dark"] .target-count {
    background: #20262c;
  }

  html[data-theme="dark"] .target-toggle {
    background: #20262c;
    color: #f0a14a;
    border-color: rgba(255,255,255,.14);
  }

  html[data-theme="dark"] .target-toggle:hover {
    background: #2b3239;
    border-color: #f0a14a;
  }

  html[data-theme="dark"] .button-secondary {
    color: #f0a14a;
  }

  html[data-theme="dark"] .close {
    background: #252c33;
    color: #f0a14a;
  }

  html[data-theme="dark"] dialog::backdrop {
    background: rgba(0,0,0,.72);
  }




  /* ALINHAMENTO FIXO DA TOPBAR */
  .brand {
    grid-column: 1;
  }

  .search-box {
    grid-column: 2;
  }

  .whatsapp-top {
    grid-column: 3;
    justify-self: end;
  }

  .theme-toggle {
    grid-column: 4;
    justify-self: end;
  }

/* EXPERIÊNCIA DE CARREGAMENTO */
.loading-catalog {
  padding: 24px;
  text-align: left;
}

.loading-title {
  color: var(--texto);
  font-size: 18px;
  font-weight: 800;
}

.loading-subtitle {
  margin-top: 4px;
  color: var(--cinza);
  font-size: 13px;
}

.loading-skeletons {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skeleton-card {
  padding: 18px;
  border: 1px solid var(--linha);
  border-radius: 10px;
  background: #fffdfa;
}

.skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eee5db 25%, #f7f0e8 37%, #eee5db 63%);
  background-size: 400% 100%;
  animation: catalogShimmer 1.35s ease-in-out infinite;
}

.skeleton-badge {
  width: 120px;
  height: 26px;
  margin-bottom: 18px;
}

.skeleton-title {
  width: 68%;
  height: 34px;
  margin-bottom: 16px;
}

.skeleton-line {
  width: 100%;
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 72%;
  margin-bottom: 18px;
}

.skeleton-chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.skeleton-chip {
  width: 74px;
  height: 28px;
  border-radius: 999px;
}

.skeleton-button {
  width: 100%;
  height: 44px;
}

@keyframes catalogShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}


/* ESTADO VAZIO MAIS COMERCIAL */
.empty-title {
  color: var(--texto);
  font-size: 20px;
  font-weight: 800;
}

.empty-subtitle {
  margin-top: 8px;
  color: var(--cinza);
  font-size: 14px;
  line-height: 1.55;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}


/* FILTROS MOBILE */
.mobile-catalog-tools {
  display: none;
}

.mobile-filters-toggle {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(70,44,24,.05);
}

.mobile-filters-toggle:hover {
  background: var(--laranja-claro);
}


/* MODAL COM AÇÕES NO TOPO */
.modal-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
}

.modal-heading-main {
  min-width: 0;
}

.modal-actions-top {
  margin-top: 0;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.modal-actions-top .button {
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}


@media (max-width: 760px) {
  .mobile-catalog-tools {
    display: flex;
    margin: 0 0 14px;
  }

  #filtersPanel[hidden] {
    display: none !important;
  }

  .loading-catalog {
    padding: 18px;
  }

  .loading-skeletons {
    grid-template-columns: 1fr;
  }

  .modal-heading-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-actions-top {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .modal-actions-top .button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .empty-actions {
    flex-direction: column;
  }
}


html[data-theme="dark"] .loading-catalog,
html[data-theme="dark"] .skeleton-card {
  background: #20262c;
}

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2a3138 25%, #313941 37%, #2a3138 63%);
  background-size: 400% 100%;
}

html[data-theme="dark"] .mobile-filters-toggle {
  background: #20262c;
  color: var(--texto);
}

  /* v2.74 — card inteiro abre o modal; sem ações internas. */
  .product-card[role="button"] { cursor: pointer; }
  .product-card[role="button"]:focus-visible {
    outline: 3px solid var(--laranja);
    outline-offset: 3px;
  }
  .product-card .chips { margin-top: auto; }


/* RODAPÉ */
.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .30);
  background: linear-gradient(
      rgba(40, 24, 10, .24),
      rgba(40, 24, 10, .24)
    ),
    linear-gradient(
      105deg,
      #f4a137 0%,
      #e18b28 32%,
      #b86418 66%,
      #79390e 100%
    );
}

.site-footer-inner {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: 26px 0 20px;
}


.site-footer-inner {
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}

.site-footer-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.site-footer-company {
  min-width: 0;
  padding-right: 22px;
}

.site-footer-company + .site-footer-company {
  border-left: 1px solid rgba(255, 255, 255, .42);
  padding-left: 22px;
  padding-right: 0;
}

.site-footer-company-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.site-footer-company-heading strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.site-footer-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 5px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.site-footer-company-data {
  display: grid;
  gap: 6px;
}

.site-footer-company-data div {
  color: rgba(255, 255, 255, .96);
  font-size: 11px;
  line-height: 1.45;
}

.site-footer-company-data span {
  display: inline-block;
  min-width: 108px;
  margin-right: 8px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.site-footer-address {
  margin-top: 12px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}

.site-footer-links a {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.site-footer-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .42);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-footer-note,
.site-footer-copy {
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  line-height: 1.45;
}

.site-footer-note {
  max-width: 780px;
}

.site-footer-copy {
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 24px;
  }

  .site-footer-inner {
    width: min(100% - 28px, 1440px);
    padding: 22px 0 18px;
  }

  .site-footer-company-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer-company,
  .site-footer-company + .site-footer-company {
    padding: 0;
    border-left: 0;
  }

  .site-footer-company + .site-footer-company {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .42);
  }

  .site-footer-company-data span {
    min-width: 102px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer-copy {
    text-align: left;
  }
}
