

@media(max-width:1300px){
    .home-hero{
        max-height: 400px;
    }
    .home-slider{
        max-height: 200px;
    }
    .home-slider .card a {
        padding: 10px 30px;
        font-weight: 700;
        margin-top: 70px;
    }
}

@media(max-width:1100px){
    .cart_details_page .cart-total,
    .cart_details_page .cart-items
    {
        max-width: 100%;
        width: 100%;
    }
    .cart_details_page .cart-total{
        margin-top: 20px;
    }
    .product-section .product-card {
        min-height: 350px;
    }
    .home-slider{
        max-width: 48%;
    }
    .home-slider {
        max-height: 190px;
    }
        .nav-links{
        gap: 1rem;
    }
    .brands-dropdown-menu{
    min-width: 370px;
}
}


/* 767px */
@media (max-width: 767px) {
    /* all max width 100%*/
    .product-detail-section .product-image,
    .product-detail-section .product-info,
    .checkout-page .checkout-summary,
    .checkout-page .cart-total .cart-total-content,
    .checkout-page .checkout-form,
    .contact-section .contact-info,
    .contact-section .contact-form
    {
        max-width: 100%  !important;
        width: 100% !important;
    }
    .checkout-page .checkout-summary,
    .checkout-page .checkout-form
    {
        min-width: 100%;
    }

    .checkout-page .checkout-container {
        flex-direction: column;
    }

    section{
        padding: 1rem 10px;
    }
    .nav-container{
        padding: 10px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.085);
        justify-content: space-between;
        background:white;
    }
    .home-slider {
        max-width: 46%;
    }

    .home-section .category-card img{
        max-height: 100px;
    }
    .product-detail-section .product-detail .product-content,
    .product-detail-section .product-actions{
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-detail-section .related-products-list{
        justify-content: center;
        gap: 10px;
    }
    .order-confirmation .delivery-img img{
        max-width:60%;
    }
    .checkout-page .checkout-form, .contact-section .contact-info{
        margin-top:20px;
    }
    
    .checkout-page .cart-total,
    .header .top-bar,
    .desk-view,
    .home-sliders-container,
    .filter-sidebar{
        display:none;
    }
    .checkout-page .cart-total.sm-view,
    section.sm-footer-section{
        display:block !important;
    }
    .mobile-view{
        display: flex;
    }
    .wishlist-page .wishlist-items{
        gap: 20px;
    }
    .wishlist-page .wishlist-item{
        max-width: 140px;
    }
    .wishlist-page .wishlist-actions{
        flex-wrap: wrap;
        gap: 10px;
    }
    .contact-section .contact-container {
        gap: 0;
        flex-direction: column-reverse;
    }
    span.quantity-unit {
        font-size: 12px;
    }
    .quantity-selector{
        justify-content: center;
    }
    .product-detail .quantity-selector {
    gap: 10px;
    width: 80%;
    }
    .search-container .search-button {
        padding: 10px 20px;
    }
    .search-container input[type="text"]{
        max-width: 80%;
    }
    .sticky-footer ul li a, .sticky-footer .icon-wrapper i {
        font-size: .75rem;
        color: #949398;
    }
    .sticky-footer ul li a{
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #949398;
    }
    .icon-wrapper .wishlist-count, .icon-wrapper .cart-count {
        background: none;
        color: #949398;
        font-size: 0.8rem;
        padding: 0;
        border-radius: 50%;
        padding: 2px;
    }
    .footer-container{
        margin-bottom: 20px;
    }
    a.whatsapp-link {
        right: 5px;
        font-size: 55px;
        bottom: 50px;
    }
    .heading-area {
        text-align: center;
        margin: 15px 0;
    }
    .home-hero .hot-deal-banner{
        max-width: 100%;
    }
    .sm-footer-section a.icon-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: .75rem;
        color: #949398;
    }
    .icon-wrapper .wishlist-count, .icon-wrapper .cart-count {
        position: static;
    }
    .footer-active {
        color: #C83B5E !important;
    }
    .product-section .product-actions button, .home-section .product-actions button{
        width:35px;
        height:18px;
    }
    .brands-dropdown-menu {
        left: 0;
        right: 0;
        width: 100vw;
        border-radius: 0;
        top: 50px;
        max-height: 40vh;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .brand-name {
        font-size: 12px;
    }
    .brands-dropdown .brands-dropdown-menu .brands-grid a{
        display:flex;
        color: black;
    }
}
.categories-dropdown:hover .categories-dropdown-menu{
    padding:10px;
}

/*.nav-links a.active{*/
/*    color:var(--primary-color);*/
/*}*/
.page-link{
    padding: 5px 20px;
}


@media (max-width: 575px) {
    .home-hero .hot-deal-banner{
        max-width: 100%;
    }
    .home-section .category-title {
        bottom: 30%;
        text-align: left;
        background-color: transparent;
        max-width: 60%;
        padding: 8px;
        }
    .cart_details_page .cart-item .item-details{
        gap: 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: .5rem;
    }
    .product-actions-buttons {
    flex-wrap: wrap;
    }
    .category-card img {
        max-width: 45%;
        position: absolute;
        bottom: 0;
        right: 0;
        height: 75px;
        border-radius: 0;
    }
    .category-card {
        justify-content: end;
        height: 100px;
        overflow: hidden;
    }


    /* nicher calculation ke dhore bg color apply korechi
    3n+1 = 1st, 4th, 7th, 10th
    3n+2 = 2nd, 5th, 8th, 11th,
    3n+3 = 3rd, 6th, 9th, 12th, ... */

    .category-card:nth-child(3n+1) {
        background: rgba(244, 220, 220);
      }
      
      .category-card:nth-child(3n+2) {
        background: rgba(213, 229, 218);
      }
      
      .category-card:nth-child(3n+3) {
        background: rgba(255, 232, 204);
      }
      
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: .7rem;
    }
    .product-title, .product-price, .item-details p{
        font-size: 12px;
    }
    .product-info {
        padding: .3rem;
        text-align: center;
    }
    .add-to-cart, .warning-btn {
        padding: .5rem;
        font-size: 12px;
        border-radius: 4px;
        font-weight: 400;
    }
    .product-detail .add-to-cart {
        padding: .75rem;
        font-size: inherit;
    }
    .related-products .add-to-cart{
        padding: .5rem;
        font-size: 12px;
        border-radius: 4px;
        font-weight: 400;
    }
    .product-badge {
        position: absolute;
        top: 4px;
        left: 4px;
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 400;
    }

    .home-section .product-actions, .product-section .product-actions {
        top: 4px;
        right: 4px;
    }
    button.quantity-btn{
        width: 25px;
        height: 27px;
    }
    .quantity-selector input {
        height: 26px;
    }
    .product-image img {
        width: 100%;
        height: auto;
    }
    .product-image{
        height: 100%;
    }
    .product-card {
        min-height: 275px;
    }
    .product-price span.quantity-unit {
        font-size: 9px;
    }
    .product-price{
        gap: .2rem;
    }
    .related-products .product-card{
        max-width: 150px;
    }
    .product-badge.out-of-stock {
        top: 30px;
      }
    .home-hero {
        max-height: 250px;
    }
}


@media (max-width: 450px) {
    .quantity-selector label {
        margin:0;
    }
    .product-actions-buttons {
        flex-wrap: wrap;
    }
    .product-rating {
        font-size: 10px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .product-card {
        min-height: 242px;
    }
    p.product-quantity, .product-price .original-price{
        font-size: 9px;
    }
    .product-section .product-card {
        min-height: 290px;
    }
    .brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: .5rem;
}
.brands-dropdown-menu{
    min-width: 350px;
}
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

@media (max-width: 380px) {
    .product-card {
        min-height: 230px;
    }
    .logo img{
    max-width: 170px;
    }
    .brands-dropdown-menu{
    min-width: 100%;
}
}

@media (max-width: 330px) {
     .product-section .product-card {
        min-height: 265px;
    }
.sticky-footer ul li a, .sticky-footer .icon-wrapper i{
    font-size: 10px;
}
}