/* ================= 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;
}

.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: 2px 9px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

/* Product image */
.product-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: #fff;
    border-bottom: 1px solid #0b6b32;
}

/* ================= PRODUCT INFO ================= */
.product-info {
    padding: 12px;
    text-align: center;
}

.p-name {
    margin: 0 0 4px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-size {
    font-size: 15px;
    color: #0b6b32;
    font-weight: 600;
}

.p-group {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.p-desc {
    font-size: 13px;
    color: #444;
    margin-top: 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= 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;
}
