:root {
      --p: #ff3d00;
      --g: #00a847;
    }

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

    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      font-family: Arial, sans-serif;
      background: #f5f5f5;
      color: #222222;
    }

    .topo {
      position: sticky;
      top: 0;
      z-index: 10;

      display: grid;
      grid-template-columns: auto 1fr 320px;
      align-items: center;
      gap: 20px;

      padding: 12px 24px;
      background: #000000;
    }

    .logo img {
      height: 46px;
    }

    .menu {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 22px;
    }

    .menu a {
      color: #ffffff;
      text-decoration: none;
      font-size: 18px;
      font-weight: bold;
    }

    .menu a:hover,
    .menu a.ativo {
      color: var(--p);
    }

    .busca {
      display: flex;
      overflow: hidden;
      border-radius: 8px;
      background: #ffffff;
    }

    .busca input {
      width: 100%;
      padding: 11px;
      border: 0;
      outline: none;
    }

    .busca button {
      padding: 0 16px;
      border: 0;
      background: #222222;
      color: #ffffff;
      cursor: pointer;
    }

    main {
      width: 100%;
      max-width: 1240px;
      flex: 1;

      margin: auto;
      padding: 40px 20px;
    }

    .cab {
      margin-bottom: 28px;
      text-align: center;
    }

    .cab h1 {
      font-size: 38px;
    }

    .cab p {
      margin-top: 10px;
      color: #666666;
    }

    .contador {
      display: block;
      margin-top: 10px;
      color: #666666;
    }

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

    .card {
      display: flex;
      min-width: 0;
      height: 100%;
      overflow: hidden;
      flex-direction: column;
      border: 1px solid #e5e5e5;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

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

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

    .img {
      position: relative;

      display: flex;
      height: 230px;
      align-items: center;
      justify-content: center;

      background: #fafafa;
    }

    .img img {
      width: 100%;
      height: 100%;
      padding: 12px;
      object-fit: contain;
    }

    .selo {
      position: absolute;
      top: 10px;
      left: 10px;

      padding: 7px 10px;
      border-radius: 20px;

      background: var(--p);
      color: #ffffff;

      font-size: 12px;
      font-weight: bold;
    }

    .conteudo {
      display: flex;
      min-width: 0;
      flex: 1;
      flex-direction: column;
      padding: 18px;
    }

    .conteudo h2 {
      display: -webkit-box;
      min-height: 48px;
      margin-bottom: 10px;
      overflow: hidden;
      color: #222222;
      font-size: 18px;
      line-height: 1.35;
      overflow-wrap: anywhere;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .desc {
      display: -webkit-box;
      min-height: 63px;
      margin-bottom: 18px;
      overflow: hidden;
      color: #666666;
      font-size: 14px;
      line-height: 1.5;
      overflow-wrap: anywhere;
      white-space: normal;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .preco {
      margin-top: auto;
      color: var(--g);
      font-size: 23px;
      font-weight: bold;
      line-height: 1.2;
    }

    .btn {
      margin-top: 16px;
      padding: 12px;
      border-radius: 8px;
      background: var(--p);
      color: #ffffff;
      text-align: center;
      font-weight: bold;
    }

    .msg {
      grid-column: 1 / -1;

      padding: 35px;
      border-radius: 12px;

      background: #ffffff;
      color: #666666;

      text-align: center;
    }

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

    @media (max-width: 1050px) {

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

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

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

    }

    @media (max-width: 760px) {

      .topo {
        display: flex;
        flex-direction: column;
      }

      .menu a {
        font-size: 16px;
      }

      .busca {
        width: 100%;
      }

      .grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .cab h1 {
        font-size: 30px;
      }

    }

    @media (max-width: 500px) {

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

    }
