/* ================= HOME QUICK CATEGORY BUTTONS ================= */
.home-cat-buttons {
    display: flex;
    gap: 12px;
}

.home-cat-btn {
    flex: 1;
    background: #0b6b32;
    color: #fff;
    text-decoration: none;
    padding: 14px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: .25s;
}

.home-cat-btn i {
    font-size: 18px;
}

.home-cat-btn:hover {
    background: #095927;
    color: #fff;
}

/* MOBILE – still 4 in one row */
@media (max-width: 576px) {
    .home-cat-btn {
        font-size: 13px;
        padding: 12px 6px;
        gap: 6px;
    }
    .home-cat-btn i {
        font-size: 16px;
    }
}

/* ================= HORIZONTAL CATEGORY SCROLLER ================= */
.home-cat-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-cat-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 10);
    gap: 10px;
    padding-bottom: 5px;
}

.home-cat-scroll::-webkit-scrollbar {
    height: 6px;
}

.home-cat-scroll::-webkit-scrollbar-thumb {
    background: #cfd8cf;
    border-radius: 10px;
}

.home-cat-item {
    background: #0b6b32;
    color: #fff;
    text-decoration: none;
    padding: 12px 6px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    transition: .25s;
}

.home-cat-item i {
    font-size: 20px;
}

.home-cat-item:hover {
    background: #095927;
    color: #fff;
}

/* MOBILE: 5 items per view */
@media (max-width: 768px) {
    .home-cat-scroll {
        grid-auto-columns: calc(100% / 5);
    }

    .home-cat-item {
        font-size: 12px;
        padding: 10px 4px;
    }

    .home-cat-item i {
        font-size: 18px;
    }
}

/* ================= GLOBAL FONT ================= */
body,
.product-card,
.custom-modal-content {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

/* ================= SLIDER ================= */
.home-slider-img {
    height: 380px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

@media(max-width: 768px) {
    .home-slider-img { height: 200px; }
}

/* ================= CATEGORY HEADER ================= */
.cat-header {
    background-color: #0b6b32;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 4px;
}

.cat-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* ================= PRODUCT CARD ================= */
.product-card {
    border: 1px solid #0b6b32;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: .3s;
    height: 100%;
    cursor: pointer;

    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(11,107,50,0.2);
    transform: translateY(-4px);
}

/* ================= SIZE BADGE ================= */
.size-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0b6b32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* ================= PRODUCT IMAGE ================= */
.product-img {
    width: 100%;
    height: 160px;          /* mobile */
    object-fit: contain;    /* crop হবে না */
    background: #fff;
    border-bottom: 1px solid #0b6b32;
}

@media (min-width: 768px) {
    .product-img { height: 200px; }
}

@media (min-width: 992px) {
    .product-img { height: 220px; }
}

/* ================= PRODUCT INFO ================= */
.product-info {
    padding: 10px 8px;
    text-align: center;
    flex: 1;

    display: flex;
    flex-direction: column;
}

/* ================= PRODUCT NAME ================= */
.p-name {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;

    /* 🔥 FULL TEXT WRAP */
    white-space: normal;
    word-break: break-word;
}

/* ================= SIZE + GROUP ================= */
.product-info .d-flex {
    justify-content: center;
    gap: 6px;

    /* 🔥 allow wrap */
    flex-wrap: wrap;
}

.p-size {
    font-size: 13px;
    font-weight: 600;
    color: #0b6b32;

    white-space: normal;
}

.p-group {
    font-size: 13px;
    font-weight: 500;
    color: #555;

    white-space: normal;
}

/* ================= DESCRIPTION ================= */
.p-desc {
    font-size: 12.5px;
    color: #444;
    margin-top: 4px;
    line-height: 1.35;

    /* 🔥 FULL TEXT WRAP */
    white-space: normal;
    word-break: break-word;
}

/* ================= MOBILE FINE TUNE ================= */
@media (max-width: 576px) {

    .product-info {
        padding: 8px 6px;
    }

    .p-name {
        font-size: 14px;
    }

    .p-desc {
        font-size: 12px;
    }

    .size-badge {
        font-size: 10.5px;
        padding: 2px 8px;
    }
}


/* ================= LOAD MORE BUTTON ================= */
.btn-load-more {
    border: 2px solid #0b6b32;
    color: #0b6b32;
    font-weight: 600;
    border-radius: 30px;
    padding: 5px 18px;
    background: transparent;
    font-size: 13px;
    transition: 0.3s;
}

.btn-load-more:hover {
    background: #0b6b32;
    color: #fff;
}

/* ================= GRID ================= */
.row-custom {
    margin: 0 -8px;
    display: flex;
    flex-wrap: wrap;
}

.col-custom {
    padding: 8px;
    width: 50%;
}

@media (min-width: 768px) {
    .col-custom { width: 33.33%; }
}

@media (min-width: 992px) {
    .col-custom { width: 20%; }
}

/* ================= SUBCATEGORY HEADER ================= */
.subcat-title {
    background-color: #f2faf5;
    color: #2e8f3c;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
}


/* ================= CATEGORY PAGE GRID FIX ================= */
.category-page .col-custom {
    width: 50%;
}

@media (min-width: 768px) {
    .category-page .col-custom {
        width: 33.33%;
    }
}

@media (min-width: 992px) {
    .category-page .col-custom {
        width: 25%;
    }
}

/* ================= CATEGORY SIDEBAR (NEW ADD) ================= */
.category-sidebar {
    position: sticky;
    top: 0; /* 🔥 একদম top এ আটকে যাবে */
    align-self: flex-start;

    max-height: 100vh;
    overflow-y: auto;

    padding-top: 15px;
    padding-right: 6px;
}
.category-sidebar h6 {
    margin-top: 0;
}

.category-sidebar::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar::-webkit-scrollbar-thumb {
    background: #cfe6d8;
    border-radius: 10px;
}
/* ================= CATEGORY SIDEBAR – MATCHED WITH PRODUCT TILE ================= */

.category-sidebar-box {
    background: #ffffff;
    border-radius: 10px;                 /* 🔥 same as product section */
    padding: 14px 14px 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    position: sticky;
    top: 5px;
}

/* HEADER */
.sidebar-title {
    background: #0f6b2f;                 /* 🔥 same green as Homeo Products */
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
    margin: -14px -14px 12px;            /* 🔥 flush edge look */
}

/* MAIN CATEGORY LIST */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 6px;
}

/* MAIN CATEGORY LINK */
.category-link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    transition: all .2s ease;
}

.category-link:hover {
    background: #f0fdf4;
    color: #0a8f3c;
}

/* ACTIVE CATEGORY (MATCH PRODUCT GREEN) */
.category-link.active {
    background: linear-gradient(135deg, #16a34a, #0f7a36);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(22,163,74,.25);
}

/* SUBCATEGORY LIST */
.subcategory-list {
    list-style: none;
    padding-left: 16px;
    margin-top: 6px;
}

.subcategory-list li {
    margin-bottom: 5px;
}

/* SUBCATEGORY LINK */
.subcategory-list a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all .2s ease;
}

/* SUBCATEGORY HOVER */
.subcategory-list a:hover {
    background: #ecfdf3;
    color: #0a8f3c;
}

/* SUBCATEGORY ACTIVE (optional – future use) */
.subcategory-list a.active {
    color: #0a8f3c;
    font-weight: 600;
}


/* ================= HOME QUICK CATEGORY BUTTONS ================= */
.home-cat-buttons {
    display: flex;
    gap: 12px;
}

.home-cat-btn {
    flex: 1;
    background: #0b6b32;
    color: #fff;
    text-decoration: none;
    padding: 14px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: .25s;
}

.home-cat-btn i {
    font-size: 18px;
}

.home-cat-btn:hover {
    background: #095927;
    color: #fff;
}

/* MOBILE – still 4 in one row */
@media (max-width: 576px) {
    .home-cat-btn {
        font-size: 13px;
        padding: 12px 6px;
        gap: 6px;
    }
    .home-cat-btn i {
        font-size: 16px;
    }
}
/* ================= HORIZONTAL CATEGORY SCROLLER ================= */
.home-cat-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-cat-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 10); /* desktop: 10 items */
    gap: 10px;
    padding-bottom: 5px;
}

.home-cat-scroll::-webkit-scrollbar {
    height: 6px;
}
.home-cat-scroll::-webkit-scrollbar-thumb {
    background: #cfd8cf;
    border-radius: 10px;
}

.home-cat-item {
    background: #0b6b32;
    color: #fff;
    text-decoration: none;
    padding: 5px 4px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    white-space: normal;
    transition: .25s;
}

.home-cat-item i {
    font-size: 14px;
}

.home-cat-item:hover {
    background: #095927;
    color: #fff;
}

/* MOBILE: 5 items per view */
@media (max-width: 768px) {
    .home-cat-scroll {
        grid-auto-columns: calc(100% / 5);
    }

    .home-cat-item {
        font-size: 12px;
        padding: 5px 4px;
    }

    .home-cat-item i {
        font-size: 18px;
    }
}


/* ================= GLOBAL FONT ================= */
body,
.product-card,
.custom-modal-content {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

/* ================= SLIDER ================= */
.home-slider-img {
    width: 100%;
    height: 380px;

    object-fit: contain;   
    background-color: #fff; 
    border-radius: 8px;
}

@media(max-width: 768px) {
    .home-slider-img { height: 200px; }
}

/* ================= CATEGORY HEADER ================= */
.cat-header {
    background-color: #0b6b32;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 4px;
}
.cat-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* ================= CUSTOM MODAL ================= */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 1040;
}

.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    overflow-y: auto;
    padding: 10px;
}

.custom-modal-dialog {
    margin: 1.75rem auto;
    max-width: 1000px;
    width: 95%;
    pointer-events: none;
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
}
.custom-modal.show .custom-modal-dialog {
    pointer-events: auto;
}

.custom-modal-content {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.4);
}

/* Modal close */
.custom-modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    font-weight: bold;
    opacity: .5;
    cursor: pointer;
}
.custom-modal-close-btn:hover { opacity: 1; }

/* Loader */
.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0b6b32;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ================= SUBCATEGORY HEADER ================= */
.subcat-title {
    background-color: #f2faf5;
    color: #2e8f3c;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    border-radius: 4px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
/* ================= SLIDER NAV STYLE ================= */

/* arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100% 100%;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 14px;
}

/* dots */
.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: #0b6b32;
}
