:root {
      --preto: #000000;
      --principal: #ff3d00;
      --principal-hover: #e53900;
      --verde: #00a847;
      --texto: #222222;
      --texto-secundario: #6b6b6b;
      --fundo: #f4f4f4;
      --branco: #ffffff;
      --borda: #e8e8e8;
      --amarelo: #ffb300;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    body {
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      font-family: "Segoe UI", Arial, sans-serif;
      color: var(--texto);
      background: var(--fundo);
    }

    button,
    input {
      font: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    /* HEADER */

    .topo {
      position: sticky;
      top: 0;
      z-index: 1000;
      display: grid;
      width: 100%;
      max-width: 100%;
      grid-template-columns: auto minmax(0, 1fr) minmax(200px, 320px);
      align-items: center;
      gap: 20px;
      overflow: hidden;
      padding: 12px 24px;
      background: var(--preto);
      color: #ffffff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    }

    .logo {
      display: inline-flex;
      align-items: center;
      text-decoration: none;
    }

    .logo img {
      display: block;
      width: auto;
      height: 46px;
      max-width: 190px;
      object-fit: contain;
    }

    .menu {
      display: flex;
      min-width: 0;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 24px;
    }

    .menu a {
      color: #ffffff;
      font-size: 18px;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }

    .menu a:hover,
    .menu a:focus-visible {
      color: var(--principal);
    }

    .menu-toggle { display:none;width:44px;height:44px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid #3c3c3c;border-radius:8px;background:#181818;cursor:pointer; }
    .menu-toggle span { width:23px;height:2px;border-radius:2px;background:#fff;transition:transform .2s,opacity .2s; }
    .menu-toggle.ativo span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
    .menu-toggle.ativo span:nth-child(2) { opacity:0; }
    .menu-toggle.ativo span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

    .busca-box {
      display: flex;
      width: 100%;
      max-width: 320px;
      min-width: 0;
      justify-self: end;
      overflow: hidden;
      border-radius: 8px;
      background: #ffffff;
    }

    .busca-box input {
      width: 100%;
      min-width: 0;
      padding: 11px 13px;
      border: 0;
      outline: 0;
      font-size: 15px;
    }

    .busca-box button {
      flex-shrink: 0;
      padding: 0 16px;
      border: 0;
      background: #242424;
      color: #ffffff;
      cursor: pointer;
      transition: background 0.2s;
    }

    .busca-box button:hover {
      background: var(--principal);
    }

    /* CONTEÚDO */

    #main-content {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      flex: 1;
      overflow: hidden;
    }

    .conteudo {
      width: 100%;
      max-width: 1240px;
      min-width: 0;
      margin: 0 auto;
      padding: 0 20px 40px;
    }

    /* SLIDER */

    .slider-container {
      position: relative;
      width: 100%;
      height: auto;
      aspect-ratio: 2444 / 432;
      overflow: hidden;
      background: #111111;
    }

    .slider-wrapper {
      display: flex;
      width: 100%;
      min-width: 0;
      height: 100%;
      transition: transform 0.6s ease;
      will-change: transform;
    }

    .slide {
      position: relative;
      width: 100%;
      min-width: 100%;
      max-width: 100%;
      height: 100%;
      overflow: hidden;
      flex: 0 0 100%;
    }

    .slide picture { display:block;width:100%;height:100%; }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      background: #111111;
    }

    .slider-controles {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14px;
      pointer-events: none;
    }

    .slider-controles button {
      width: 42px;
      height: 42px;
      border: 0;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.55);
      color: #ffffff;
      font-size: 24px;
      cursor: pointer;
      pointer-events: auto;
    }

    .slider-indicadores {
      position: absolute;
      left: 50%;
      bottom: 14px;
      display: flex;
      gap: 8px;
      transform: translateX(-50%);
    }

    .slider-indicadores button {
      width: 10px;
      height: 10px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.55);
      cursor: pointer;
    }

    .slider-indicadores button.ativo {
      background: #ffffff;
    }

    /* SEÇÕES */

    .secao {
      margin-top: 34px;
    }

    .secao-topo {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 15px;
      margin-bottom: 18px;
    }

    .secao-titulo {
      font-size: 29px;
      line-height: 1.2;
    }

    .secao-subtitulo {
      margin-top: 5px;
      color: var(--texto-secundario);
      font-size: 15px;
    }

    .contador {
      color: var(--texto-secundario);
      font-size: 14px;
      white-space: nowrap;
    }

    /* GRID */

    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: stretch;
      gap: 20px;
    }

    /* CARD */

    .card {
      position: relative;
      display: flex;
      min-width: 0;
      height: 100%;
      min-height: 430px;
      flex-direction: column;
      overflow: hidden;
      border: 1px solid var(--borda);
      border-radius: 13px;
      background: var(--branco);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
    }

    .card:focus-visible {
      outline: 3px solid rgba(255, 61, 0, 0.3);
      outline-offset: 2px;
    }

    .card-imagem {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 220px;
      padding: 14px;
      background: #ffffff;
    }

    .card-imagem img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .selo-card {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2;
      padding: 7px 10px;
      border-radius: 20px;
      background: var(--principal);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
    }

    .selo-card.mais-vendido {
      background: #111111;
    }

    .card-conteudo {
      display: flex;
      min-height: 0;
      flex: 1;
      flex-direction: column;
      padding: 16px;
    }

    .nome {
      display: -webkit-box;
      min-height: 44px;
      overflow: hidden;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .desc {
      display: -webkit-box;
      min-height: 57px;
      margin-top: 8px;
      overflow: hidden;
      color: var(--texto-secundario);
      font-size: 13px;
      line-height: 1.45;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .price {
      margin-top: auto;
      padding-top: 15px;
      color: var(--verde);
      font-size: 23px;
      font-weight: 800;
      line-height: 1.15;
    }

    .apartir {
      display: block;
      margin-bottom: 3px;
      color: #777777;
      font-size: 13px;
      font-weight: 400;
    }

    .btn {
      display: block;
      margin-top: 13px;
      padding: 11px;
      border-radius: 7px;
      background: var(--principal);
      color: #ffffff;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      transition: background 0.2s;
    }

    .card:hover .btn {
      background: var(--principal-hover);
    }

    /* MENSAGENS */

    .mensagem-lista {
      grid-column: 1 / -1;
      padding: 35px 20px;
      border-radius: 12px;
      background: #ffffff;
      color: #666666;
      text-align: center;
      box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    }

    .mensagem-lista.erro {
      color: #b3261e;
    }

    /* FOOTER */

    footer {
      margin-top: auto;
      padding: 24px;
      background: #000000;
      color: #ffffff;
      text-align: center;
    }

    /* RESPONSIVO */

    @media (max-width: 1100px) {
      .topo {
        grid-template-columns: auto minmax(0, 1fr);
      }

      .busca-box {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
        justify-self: stretch;
      }

      .menu {
        justify-content: flex-end;
        gap: 18px;
      }

      .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .topo {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "logo toggle"
          "search search"
          "nav nav";
        width: 100%;
        max-width: 100%;
        padding: 14px 18px;
        overflow: visible;
      }

      .logo { grid-area: logo;justify-self:start; }

      .menu {
        display: none;
        grid-area: nav;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 8px;
      }

      .menu.aberto { display:flex; }
      .menu-toggle { display:flex;grid-area:toggle;justify-self:end; }

      .menu a {
        font-size: 16px;
        padding: 13px 4px;
        border-top: 1px solid #282828;
      }

      .busca-box {
        grid-area: search;
        width: 100%;
      }

      .slider-container {
        height: auto;
        aspect-ratio: 1180 / 432;
      }

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

      .card {
        min-height: 400px;
      }

      .card-imagem {
        height: 190px;
      }

      .secao-topo {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 500px) {
      .conteudo {
        padding: 0 10px 30px;
      }

      .slider-container {
        height: auto;
        aspect-ratio: 1180 / 432;
      }

      .slider-controles button { width:30px;height:30px;font-size:19px; }
      .slider-indicadores { bottom:6px; }

      .slider-controles button {
        width: 36px;
        height: 36px;
      }

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

      .card {
        min-height: 0;
      }

      .card-imagem {
        height: 240px;
      }

      .secao-titulo {
        font-size: 25px;
      }
    }
