
    :root {
      --primary-color: #e47911;
      --secondary-color: #232f3e;
      --bg-color: #f3f3f3;
      --discount-red: #cc0c39;
      --button-amazon: #ffd814;
      --border-radius: 4px;
      --text-main: #111;
      --text-muted: #555;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: var(--bg-color);
      margin: 0;
      color: var(--text-main);
    }

    /* HEADER */
    header {
      background: var(--secondary-color);
      color: white;
      padding: 12px 10px;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-content {
      max-width: 600px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    header h1 {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin: 0;
    }

    header h1 img {
      height: 40px;
      margin-right: 12px;
    }

    .search-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .search-container {
      flex: 1;
    }

    .search-container input {
      padding: 10px 12px;
      border-radius: var(--border-radius);
      border: none;
      width: 100%;
      box-sizing: border-box;
      font-size: 1rem;
      outline: none;
    }

    .lang-switcher {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }

    .lang-btn {
      background: #37475a;
      color: #fff;
      border: 1px solid #777;
      padding: 6px 10px;
      font-size: 0.8rem;
      cursor: pointer;
      border-radius: 3px;
      font-weight: bold;
    }

    .lang-btn.active {
      background: var(--primary-color);
      border-color: var(--primary-color);
      color: #000;
    }

    .top-actions {
      display: flex;
      width: 100%;
      gap: 5px;
    }

    .action-box {
      flex: 1;
      background: #fff;
      color: #333;
      border: 1px solid #ccc;
      padding: 10px;
      text-align: center;
      font-size: 0.8rem;
      font-weight: bold;
      cursor: pointer;
      border-radius: var(--border-radius);
    }

    /* MENUS FLUTUANTES */
    .filter-menu {
      display: none;
      background: white;
      border: 1px solid #ccc;
      width: 95%;
      max-width: 600px;
      margin: 0 auto;
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      z-index: 101;
      max-height: 75vh;
      overflow: hidden;
      flex-direction: column;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      border-radius: var(--border-radius);
      top: 130px;
    }

    .filter-menu.active {
      display: flex;
    }

    .menu-body {
      overflow-y: auto;
      padding: 10px;
      flex: 1;
    }

    .menu-footer {
      padding: 10px;
      border-top: 1px solid #eee;
      background: #fff;
    }

    .btn-apply {
      width: 100%;
      background: var(--secondary-color);
      color: white;
      border: none;
      padding: 14px;
      border-radius: var(--border-radius);
      font-weight: bold;
      cursor: pointer;
      font-size: 1rem;
    }

    .filter-option {
      padding: 12px;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .filter-option input[type="checkbox"] {
      width: 18px;
      height: 18px;
      cursor: pointer;
    }

    .filter-option label {
      cursor: pointer;
      flex: 1;
    }

    .menu-header {
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      padding: 15px;
      border-bottom: 2px solid var(--secondary-color);
    }

    /* LISTA DE PRODUTOS */
    .product-list {
      max-width: 600px;
      margin: 0 auto;
      padding: 15px 10px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .card {
      background: white;
      border: 1px solid #ddd;
      border-radius: var(--border-radius);
      padding: 10px;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .card-row {
      display: flex;
      gap: 12px;
    }

    .image-wrapper {
      width: 90px;
      height: 90px;
      flex: 0 0 90px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

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

    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* LINHA BADGE + RATING */
    .rating-badge-row {
      display: flex;
      align-items: center;
      margin-bottom: 4px;
      gap: 6px;
    }

    .rating {
      margin-left: auto;
      font-weight: bold;
      color: #555;
      font-size: 0.75rem;
      white-space: nowrap;
    }

    /* BADGES */
    .badge-special {
        display: inline-block;
      padding: 2px 6px;
      border-radius: 3px;
      font-weight: bold;
      font-size: 0.7rem;
      white-space: nowrap;
    }

    .badge-amazon-choice {
      background: black;
      color: white;
    }

    .badge-best-seller {
      background: #ff8c00;
      color: white;
    }

    .product-title {
      font-size: 0.9rem;
      margin: 0 0 6px 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.3;
      font-weight: normal; /* sem negrito */
    }

    .product-title a {
      text-decoration: none;
      color: var(--text-main);
    }

    .price-action {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .price-info {
      font-size: 1rem;
      color: var(--discount-red);
      font-weight: bold;
    }

    .old-price {
      text-decoration: line-through;
      color: var(--text-muted);
      font-size: 0.8rem;
      margin-left: 5px;
    }

    .badge {
      position: absolute;
      top: -8px;
      left: -8px;
      background: var(--discount-red);
      color: white;
      font-size: 0.7rem;
      font-weight: bold;
      padding: 4px 8px;
      border-radius: 2px;
    }
.amazon-badge{
background:#ff9900;
color:#fff;
font-size:12px;
padding:4px 8px;
border-radius:6px;
display:inline-block;
margin-bottom:6px;
font-weight:600;
}
    .btn {
      background: var(--button-amazon);
      text-decoration: none;
      color: black;
      padding: 8px 12px;
      border-radius: var(--border-radius);
      font-size: 0.75rem;
      font-weight: bold;
      border: 1px solid #a88734;
      white-space: nowrap;
    }


  /* ===== ESTILOS DA PÁGINA DE PRODUTO ===== */
  .product-detail {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 10px;
  }
  .back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
  }
  .product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
  }
  .product-image {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  .product-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
  @media (max-width: 480px) {
    .product-image img {
      max-height: 220px;
    }
  }
  .discount-badge-absolute {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--discount-red);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    z-index: 10;
    border-radius: 2px;
  }
  .product-info h1 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
  }
  .product-info h1.expanded {
    -webkit-line-clamp: unset;
    display: block;
  }
  .read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
    font-weight: bold;
    display: none;
  }
  .rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 5px;
    font-size: 0.95rem;
    line-height: 1.4; /* Uniformiza a altura da linha */
  }
  .rating {
    color: #555;
    display: flex;
    align-items: center;
    line-height: 1.4;
  }
  .special-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 0.8rem;
  white-space: nowrap;
  line-height: 1.2;
  height: fit-content;

}
.badge-amazon-choice {
  background: black;
  color: white;
}
.badge-best-seller {
  background: #ff8c00;
  color: white;
}
  
  .badge-amazon-choice {
    background: black;
    color: white;
  }
  .badge-best-seller {
    background: #ff8c00;
    color: white;
  }
  
  .product-description {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.product-description h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
  /* LAYOUT: preços e botão lado a lado com alinhamento central perfeito */
  .price-action-row {
    display: flex;
    align-items: stretch;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin: 10px 0 5px;
    gap: 10px;
  }
  .price-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 2px;
  }
  .current-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--discount-red);
    margin: 0;
    line-height: 1.2;
  }
  .btn-amazon-side {
    background: var(--button-amazon);
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    border: 1px solid #a88734;
    white-space: nowrap;
    text-align: center;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
  }
  @media (max-width: 400px) {
    .price-action-row {
      gap: 5px;
      padding: 8px 10px;
    }
    .btn-amazon-side {
      padding: 10px 12px;
      font-size: 0.85rem;
    }
    .current-price {
      font-size: 1.8rem;
    }
  }
  .product-section {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
  }
  .product-section h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
  }

    /* FOOTER */
    footer {
      background: #fff;
      border-top: 1px solid #ddd;
      padding: 25px;
      text-align: center;
      margin-top: 30px;
    }

    /* Ajustes responsivos */
    @media (max-width: 480px) {
      .product-title {
        font-size: 0.95rem;
      }
      .btn {
        padding: 6px 8px;
        font-size: 0.7rem;
      }
    }
    /* Garantir que a linha badge+rating tenha o comportamento correto */
.rating-badge-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.rating {
    margin-left: auto;
    font-weight: bold;
    color: #555;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Badge especial - usar apenas .badge-special (remova .special-badge se existir) */
.badge-special {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.75rem;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-amazon-choice {
    background: black;
    color: white;
}

.badge-best-seller {
    background: #ff8c00;
    color: white;
}

/* Botão desabilitado */
.btn-disabled {
    background: #ccc;
    border-color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Descrição do produto */
.product-description {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.product-description h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Ajuste para o preço antigo ficar acima do atual (como na imagem) */
.price-box .old-price {
    margin-bottom: 2px;
}
.price-box .current-price {
    margin-top: 0;
}
