:root {
    --primary-font: "Montserrat", sans-serif;
    --box: #ffffff;
    --background: #f7efef;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primary-font);
  }
  
  body {
    background: var(--background);
  }
  

  
  .top_sale {
    width: 65%;
    margin: 0 auto;
    background: var(--box);
    position: relative;
    margin-top:80px;
  }
  
  .top_sale button {
    float: right;
    margin: 10px;
    padding: 8px 15px;
    background: #fff;
    color: black;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .top_sale span {
    font-size: 18px;
    font-weight: 400;
    margin: 10px 0 10px 10px;
    display: inline-block;
  }
  
  hr {
    height: 1px;
    background-color: #7e7a7a;
    border: none;
    width: 90%;
    margin: 0 auto;
  }
  /* ===== Cards ===== */
.cards {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 5px;
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Desktop: 6 cards per row */
  }
  
  .card {
    background: var(--box);
    width: 100%;
    height: 290px;
    text-align: center;
    transition: transform 0.3s;
    padding-bottom: 20px;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }
  
  .card img {
    width: 188px;
    height: 188px;
    display: block;
    margin-bottom: 10px;
  }
  .card a{
    text-decoration: none;
    color:black;
  }
  
  .card p {
    font-size: 13px;
    line-height: 1.3em;
    margin: 5px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .card span {
    font-size: 12px;
    color: gray;
    padding: 0;
    margin-top: -6px;
  }
  
  .price span:nth-of-type(2) {
    color: #519E87;
    font-weight: 600;
    padding: 0;
  }
  
  .price span:nth-of-type(1) {
    color: #D12C62;
    font-weight: 600;
    font-size: 18px;
    padding: 0;
  }
  
  .price_2 span {
    color: #519E87;
    font-weight: 600;
    font-size: 18px;
    padding: 0;
  }
  
  .card-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: gray;
    margin-top: 5px;
  }
  
  .load {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .cards {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .top_sale {
      width: 100%;
    }
  
    .head {
      width: 100%;
      margin: 15px auto;
    }
    .top_sale {
        margin-top:40px;
      }
  }
  