.products{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.products .product {
    max-width: 300px;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 0 15px #a39e9e;
    position: relative;
    margin-bottom: 10px;
    margin: 5px;
    border-radius: 5px;
}


  .products .product .image{
    overflow: hidden;
    position: relative;
  }
  .products .product .image img{
    width: 100%;

  }
  .products .product .image .second{
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: 1.5s;
    transform: scale(1);
  }
  .products .product:hover .image .second{
    visibility: visible;
    opacity: 1;
    transform: scale(1.5);
  }
  .products .product .labels, #product .carousel-inner .labels{
    position: absolute;
    top: 10px;
    left: 0px;
    z-index: 9;
  }
  .labels > .label{
    /*height: 50px;*/
    /*width: 50px;*/
    border-radius: 0 15px 15px 0;
    display: grid;
    place-content: center;
    text-align: center;
    margin-bottom: 10px;
    /*line-height: 15px;*/
    padding: 5px 10px;
    font-size: 14px;
  }
  .products .product .content{
    text-align: center;
  }
  .products .product .content .title{
    font-size: 14px;
    height: 22px;
    overflow: hidden;
    color: #484848;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    white-space: nowrap;
  }
  .products .product .content .stars{
      font-size: 13px;
      text-align: center;
  }
  .products .product .content del{
    color: rgb(175, 175, 175);
  }
  .products .product .content .price{
    margin-bottom: 10px;
  }
  .products .product .content .submit_button{
    margin-bottom: 0px;
    height: 38px;
    overflow: hidden;
    width: 100% !important;
    padding: 0px !important;
    padding-top: 5px !important;
  }
  .products .product .content .submit_button > .cart_btn{
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
  }
  .products .product .content .submit_button:hover > .cart_btn{
    margin-top: -34px;   
  }


.product-box .product-item .product_content {
    padding: 5px 5px;
    background-color: #fff;
}
.product-box .product-item .product_content h4 {
    line-height: 20px;
    display: block;
    font-size: 17px;
    text-transform: capitalize;
    font-weight: 600;
    margin-bottom: 0;
    
}
.product-box .product-item .product_content h4 a{
    text-decoration: none;
    color: var(--black);
}
.product-box .product-item .product_content h4 a:hover {
    color: #fdb813;
}
.product-box .product-item .product_content .price_box {
    display: flex;
    padding-bottom: 15px;
}
.product-box .product-item .product_content .price_box span.current_price {
    color: #f30;
    font-weight: 600;
    font-size: 17px;
}
.product-box .product-item .product_content .price_box span.old_price {
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
    margin-left: 10px;
}
.bg_image {
    aspect-ratio: 3/1;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;  /* এটা শুধু add করুন */
}

.bg_image .shop-btn {
    position: absolute;
    bottom: 22%;
    left: 4%;
    background: #1565c0;
    color: #fff;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}
.product {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    height: 100%;
}
.product:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.12); }

.product .image {
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 180px;
}
.product .image img {
    max-height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product .content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product .content .title {
    font-size: 0.88rem;
    color: #222;
    line-height: 1.4;
    margin-bottom: 6px;
}
.product .content a:hover .title { color: #1565c0; }

.product .stars {
    color: #f5a623;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.product .price { margin-bottom: 8px; }
.product .price .current_price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}
.product .price .current_price.promo { color: #c0392b; }
.product .price .old-price {
    font-size: 0.82rem;
    color: #999;
    margin-left: 6px;
}

.product .free-ship-badge {
    background: #eaf4ff;
    color: #1565c0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.product .order-btn {
    display: block;
    width: 100%;
    background: linear-gradient(72.22grad, #637cbf -10%, #284ac3 50%, #646768 120%);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 8px 4px;
}

@media (max-width: 576px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product .image { min-height: 130px; padding: 10px; }
    .product .image img { max-height: 110px; }
    .product .content .title { font-size: 0.8rem; min-height: 40px; }
}
