body {
    font-family: NotoSans-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC, Microsoft YaHei, sans-serif !important;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}





header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #232f3e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding: 15px 20px;
    z-index: 999;
    margin-bottom: 20px;
}

.search-box form {
    display: flex;
}

#search-btn {
    margin-left: 5px;
}


.slide-up {
    position: fixed;
    bottom: 50px;
    right: 10px;
    font-size: 30px;
    color: yellowgreen;
}





.flash-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px;
}

.flash-scroll::-webkit-scrollbar {
    display: none;
    /* Optional: Hide scrollbar */
}



.scroll-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    background-image: radial-gradient(circle, #178DA5, #A9EEDC, green);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    display: none;
    /* শুরুতে লুকানো */
    z-index: 999;
}

.scroll-top:hover {
    background-image: radial-gradient(circle, #A9EEDC, #178DA5, green);

}

/* show class দিলে দেখা যাবে */
.scroll-top.show {
    display: block;
}








.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo a {
    text-decoration: none;
    color: #fff;
}



.search-box input {
    padding: 8px;
    width: 300px;
    border-radius: 4px;
    border: none;
    color: black;
}

.nav-links a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: orange;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: orange;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-info {
    color: white;
    font-weight: bold;
    margin-left: 20px;
    font-size: 16px;
}



#lang-toggle {
    background-color: orange;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}



.categories {
    background-color: #37475a;
    padding: 10px;
    color: white;
    display: flex;
    /* change from flex to block */
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 70px;
    /* Scrollbar smooth & hidden vertical */
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.categories a {
    text-decoration: none;
    color: aliceblue;
    font-size: 17px;
    font-weight: 500;
}

.categories span {
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 15px;
}

.categories span:hover {
    color: white;
    background-color: #232f3e;
}

.categories span::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: orange;
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

.categories span:hover::after {
    width: 100%;
}

/* WebKit Browsers (Chrome, Edge, Safari) */
.categories::-webkit-scrollbar {
    height: 8px;
}

.categories::-webkit-scrollbar-track {
    background: #2c3e50;
    border-radius: 10px;
}

.categories::-webkit-scrollbar-thumb {
    background: orange;
    border-radius: 10px;
}

.categories::-webkit-scrollbar-thumb:hover {
    background: #ff9900;
}

/* Firefox */
.categories {
    scrollbar-width: thin;
    scrollbar-color: orange #2c3e50;
}














.item {
    display: none;
    position: relative;
    transition: left 0.1s ease-in-out;
}



.caterogy-h2 {
    color: aqua;
    text-align: center;
    color: #424242;
    font-size: 22px;
    font-family: NotoSans-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC, Microsoft YaHei, sans-serif !important;
    padding-top: 15px;

}




.category {
    padding: 12px;
    background-color: #f9f9f9;
    width: 100%;
}

.category-h2 h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

/* Scrollable row style */
.category-scroll {
    margin: 0 auto;
    max-width: 95%;
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

/* Each item */

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.category-item {
    flex: 0 0 160px;
    /* fixed width instead of percentage */
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s;
}

.category-item a {
    text-decoration: none;
    color: #000000;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    margin-bottom: 5px;
    border-radius: 6px;
}

.category-item p {
    margin: 0;
    font-weight: bold;
}

/* Tablet view (4 per row) */
@media (max-width: 768px) {
    .category-item img {
        max-width: 100px;
        height: 80px;
    }

    .category-item {
        flex: 0 0 18%;
        /* fixed width instead of percentage */
        font-size: 16px;
    }
}

/* Mobile view (3 per row) */

@media (max-width: 480px) {
    .category-item img {
        max-width: 90px;
        height: 60px;
    }

    .category-item {
        flex: 0 0 28%;
        /* fixed width instead of percentage */
        font-size: 14px;
    }

}













.carousel-section {
    width: 100%;
    display: flex;
}

.carousel-section .carousel {
    width: 80%;
    position: relative;
    left: 0;
}

.carousel-section .carousel-right {
    width: 20%;
    background-color: aquamarine;
    justify-content: center;
    text-align: center;
}

.carousel-section .carousel-right img {
    width: 90%;
    margin-bottom: 15px;
}

.carousel-section .carousel-right a {
    text-decoration: none;
    font-size: 18px;
    font-family: NotoSans-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC, Microsoft YaHei, sans-serif !important;
    cursor: pointer;
    background-color: black;
    color: aliceblue;
    border-radius: 10px;
    padding: 7px;

}


/*Flash deal*/

.bg-light {
    background-color: #e6effa;
}

.bg-light h4 {
    margin: 10px 0 5px;
    text-align: start;
    padding: 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    height: 36px;
    line-height: 18px;
    font-family: NotoSans-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC, Microsoft YaHei, sans-serif !important;
    text-transform: capitalize;
}


.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.transition {
    transition: all 0.3s ease-in-out;
}

.row .g-4 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 10px;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    cursor: grab;
}

.row.g-4::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.row.g-4 > div {
    flex: 0 0 250px;
}

.row.g-4.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.flash-scroll img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}




/*products section*/



.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}


.product-card {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: hidden;


}

.product-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(35, 47, 62, 0.7);
}


.add-to-cart {
    margin-top: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #e52e71, #ff8a00);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}




.product-card {
    text-align: start;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card p {
    display: inline-block;
}

.product-card h4 {
    margin: 10px 0 5px;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
    color: #000000;
    font-size: 14px;
    height: 36px;
    line-height: 18px;
    font-family: NotoSans-Regular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, PingFang SC, Microsoft YaHei, sans-serif !important;
    text-transform: capitalize;
}

#products-tk-symbol {
    font-size: 22px;
    color: red;
}

.products-price {
    padding-left: -250px;
    color: red;
    font-size: 22px;
    font-weight: 400;
}

.product-card span {
    padding-left: 5px;
    font-size: 14px;
}














footer {
    background-color: #232f3e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}



/* Hamburger (hidden in desktop) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}


/* ডিফল্ট ভাবে ছোট স্ক্রিনের cart link লুকানো */
.mobile-cart {
    display: none;
}

.mobile-cartt {
    display: none;
}



/*responsive design*/



/* Responsive design for tablet screens */
@media (max-width: 1061px) {

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 72px;
        right: 0;
        width: 250px;
        box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        overflow: hidden;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover {
        background-color: #f7f7f7 !important;
        color: #d9534f;
        /* Bootstrap-style red accent */
        padding-left: 26px;
        font-weight: 500;
    }



    .product-card img {
        height: 120px;
    }


    .mobile-cart {
        display: block;
        /* মোবাইলের cart দেখান */
        position: absolute;
        top: 20px;
        right: 70px;
        font-size: 25px;
        color: white;
    }

    .search-box {
        margin-left: -150px;
    }

    .search-box input {
        width: 200px;
        ;
    }

    .categories {
        display: flex;
        flex-wrap: nowrap;
        /* এক লাইনেই রাখবে */
        overflow-x: auto;
        /* যদি জায়গা কম হয়, স্ক্রল হবে */
        -webkit-overflow-scrolling: touch;
        /* smooth scrolling mobile এ */
        gap: 0px;
        padding: 10px 0;
        scrollbar-width: none;
        /* Firefox scrollbar লুকাবে */
    }

    .categories::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari scrollbar লুকাবে */
    }

    .categories a {
        flex: 0 0 auto;
        /* fixed width নয়, যতটুকু প্রয়োজন */
        white-space: nowrap;
        /* ভেতরের text wrap হবেনা */
        text-decoration: none;
        padding: 8px 12px;
        color: white;
        border-radius: 20px;
        font-size: 14px;
    }

    .c_b {
        width: 500px;
        font-size: 10px;
        display: flex !important;
        justify-content: space-between !important;
    }



    .categories {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
    }

    .categories a {
        flex: 0 0 auto;

    }

    .categories span {
        padding: 5px 5px;
    }



    .category-item p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* সর্বোচ্চ ২ লাইন */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        /* প্রয়োজন মতো */
        line-height: 1.4;
        /* প্রয়োজন মতো */
        max-height: calc(1.4em * 2);
        /* ২ লাইনের উচ্চতা */
    }








}

/* Responsive design for tablet screens */


@media (max-width: 600px) {
    .logo {
        display: none;
    }

    .carousel-right {
        display: none;
    }

    #myCarousel {
        width: 100%;
    }

    .mobile-cart {
        position: absolute;
        bottom: 70px;
        right: 5px;
        color: red;
    }


    .product-card img {
        height: 120px;
    }


    .mobile-cart {
        display: block;
        /* মোবাইলের cart দেখান */
        position: absolute;
        top: 20px;
        right: 70px;
        font-size: 25px;
        color: white;
    }

    .search-box {
        margin-left: -150px;
        margin-left: 10px;
    }

    .search-box input {
        width: 200px;
        ;
    }

    .mobile-cart {
        margin-left: 20px;
    }

    .categories {
        display: flex;
        flex-wrap: nowrap;
        /* এক লাইনেই রাখবে */
        overflow-x: auto;
        /* যদি জায়গা কম হয়, স্ক্রল হবে */
        -webkit-overflow-scrolling: touch;
        /* smooth scrolling mobile এ */
        gap: 0px;
        padding: 10px 0;
        scrollbar-width: none;
        /* Firefox scrollbar লুকাবে */
    }

    .categories::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari scrollbar লুকাবে */
    }

    .categories a {
        flex: 0 0 auto;
        /* fixed width নয়, যতটুকু প্রয়োজন */
        white-space: nowrap;
        /* ভেতরের text wrap হবেনা */
        text-decoration: none;
        padding: 8px 12px;
        color: white;
        border-radius: 20px;
        font-size: 14px;
    }

    .f-d-h {
        font-size: 25px;
    }


}



@media (max-width: 460px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
      .f-d-h {
        font-size: 24px;
    }

}



@media (max-width: 412px) {
    
    .categories{
        padding: 3px 0;
    }

    .categories span {
        padding: 3px 2px;
    }

    .mobile-cart {
        display: none;
    }

    .mobile-cartt {
        display: block;
        font-size: 26px;
        color: red;
        position: fixed;
        bottom: 100px;
        right: 10px;
    }

    .mobile-cartt span {
        color: black;
    }

    .buy_now {
        font-size: 11px;
    }

    .add_to_cart {
        font-size: 13px;
        font-weight: 500;
        padding: 5px;
    }

    .category-item p {
        font-size: 13px;
    }

    #s_product p {
        font-size: 16px;
        font-weight: 600;
    }

    .scroll-top {
        padding: 5px 8px;
        font-size: 16px;
    }
}
