
main {
    padding: 1rem;
    z-index: 9;
}

.product-section {
    margin-bottom: 2rem;
    min-height: 100px;
}

.product-section h2 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: var(--size-2xl);
    position: relative;
}

.product-section h2::before {
    content: "";
    display: block;
    width: 115px;
    height: 2px;
    position: absolute;
    background: var(--clr-red);
    left: 0px;
    top: 50%;
    max-width: 200px;
   }

.product-section h2::after {
    content: "";
    display: block;
    width: 115px;
    height: 2px;
    position: absolute;
    background: var(--clr-red);
    right: 0px;
    top: 50%;
    max-width: 2000px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.4rem;
}



.card {
   
    background: var(--clr-light);
    width: 23%;
    min-width: 170px;
    padding:  10px 12px;
    border: 1px solid var(--clr-red);
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
    margin: 1% 0;
    transition: 0.2s ease;
    position: relative;
}
    
.card:hover {
    transform: translateY(-5px);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}

.card img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}

.card h3 {
    padding-top: 4px;
    color: var(--clr-dark);
    font-size: var(--size-md);
    text-decoration: none;
}

.card .star {
    font-size: var(--size-base);
    color: var(--clr-yellow);
}


.card p {
    padding-top: 3px;
    font-size: var(--size-base);
    font-weight: 700;
    color: var(--clr-green);
}

.card button {
    
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50px;
    background-color: var(--clr-darkgrey);
    font-weight: 500px;
    color: var(--clr-green);
    border: 1px solid var(--clr-red);
    position: absolute;
    bottom: 13px;
    right: 10px;
}

.card button:hover {
    background-color: #c55555;
}

.heading{
  font-size: var(--size-xl);
  text-transform: uppercase;
}






  /* XS */

   @media (min-width: 475px) {
    .containerlayout{
      width: 100%;
    }
    .product-section h2::before {
        width: 660px;
        max-width: 150px;
       }
    
    .product-section h2::after {
        width: 660px;
        max-width: 150px;
    }
    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
      gap: 1rem;
  }
  .card {
    min-width: 170px;
  }
  }
  
  
  
  /* SM */
  
  @media (min-width: 640px) {
  .containerlayout{
    max-width: 640px;
  }
  .product-section h2::before {
    width: 660px;
    max-width: 230px;
   }

.product-section h2::after {
    width: 660px;
    max-width: 230px;
}
  }
  
  /* MD */
  
  @media (min-width: 768px) {
    .containerlayout{
      max-width: 768px;
    }
    .product-section h2::before {
        width: 660px;
      max-width: 300px;
       }
    
    .product-section h2::after {
        width: 660px;
        max-width: 300px;
    }
  }
  
  /* LG */
  
  @media (min-width: 1024px) {
    .containerlayout{
      max-width: 1024px;
    }
    .product-section h2::before {
        width: 660px;
      max-width: 420px;
       }
    
    .product-section h2::after {
        width: 660px;
      max-width: 420px;
    }
  
  }
  
  /* XL */
  
  @media (min-width: 1280px) {
    .containerlayout{
      max-width: 1280px;
    }
    .product-section h2::before {
        width: 660px;
      max-width: 550px;
       }
    
    .product-section h2::after {
        width: 660px;
        max-width: 550px;
    }
  }
  
  /* 2XL */
  
   
    @media (min-width: 1536px) {
    .containerlayout{
      max-width: 1536px;
    }
    .product-section h2::before {
        width: 680px;
        height: 2px;
        max-width: 700px;
       }
    
    .product-section h2::after {
        width: 680px;
      height: 2px;
      max-width: 700px;
    }
  } 