/* 🚀 6-Column Product Grid Optimization */
.product-grid-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.product-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.grid-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fcfcfc;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}
.grid-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-grid-card:hover .grid-img-wrapper img {
    transform: scale(1.08);
}
/* Quick Action Overlay */
.quick-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}
.product-grid-card:hover .quick-action-overlay {
    bottom: 0;
}
.btn-action-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-action-icon:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}
.product-title {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.price-text {
    font-size: 15px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2b2b2b;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color) 0%, rgba(0,0,0,0) 100%);
    border-radius: 3px;
}
/* ========================================== */
/* 🚀 Hero Section Custom Layout & Spacing */
/* ========================================== */
.hero-flex-container {
    display: grid;
    grid-template-columns: 280px 1fr; /* 280px সাইডবার, বাকিটা ব্যানার */
    gap: 8px;
    align-items: stretch; /* দুটোর উচ্চতা একদম সমান রাখবে */
}

.hero-sidebar {
    position: relative; 
    z-index: 100;
    background: #fff;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    min-height: 0; 
    display: flex;
    flex-direction: column;
}

.hero-slider-area {
    min-width: 0;
}

@media (max-width: 991px) {
    .hero-flex-container {
        grid-template-columns: 1fr; /* মোবাইলে নিচে নিচে */
    }
    .hero-sidebar { display: none; }
    .hero-slider-area { width: 100%; }
}

/* 🚀 Category Sidebar Beautification */
.hero-sidebar ul {
    position: static; 
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    margin: 0; 
    padding: 0;
    height: 100%;
}

/* 🚀 Custom Scrollbar */
.hero-sidebar ul::-webkit-scrollbar { width: 4px; }
.hero-sidebar ul::-webkit-scrollbar-track { background: #f8f9fa; }
.hero-sidebar ul::-webkit-scrollbar-thumb {
    background: #d1d5db; 
    border-radius: 10px;
}
.hero-sidebar ul::-webkit-scrollbar-thumb:hover { background: var(--theme-color); }

.hero-sidebar .list-group-item {
    position: static; /* 🌟 Required to prevent clipping from ul overflow */
    border: none;
    border-bottom: 1px solid #f4f5f9;
    font-size: 14px;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}
.hero-sidebar .list-group-item:hover {
    background-color: color-mix(in srgb, var(--theme-color) 8%, transparent);
    border-left: 3px solid var(--theme-color);
    padding-left: 20px; 
}
.hero-sidebar .list-group-item:hover > a {
    color: var(--theme-color) !important;
}

/* 🚀 আইকনের ব্যাকগ্রাউন্ড বক্স */
.cat-icon-wrapper {
    width: 28px;
    height: 28px;
    background: #f0f4f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #6c757d;
    transition: all 0.2s ease;
}

/* তোমার ইমেজের কালার যাতে হোভার করলে নষ্ট না হয় তাই এই অংশটুকু ফিক্স করা হলো */
.hero-sidebar .list-group-item:hover .cat-icon-wrapper {
    background: transparent; /* হোভারে ব্যাকগ্রাউন্ড ট্রান্সপারেন্ট থাকবে */
}
.category-img-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    mix-blend-mode: normal !important;
}

/* 🚀 সাব-ক্যাটাগরি মেগা মেনু প্যানেল (আগের মতই আছে) */
.sub-category-panel {
    position: absolute;
    top: 0;
    left: 280px; 
    width: 750px; 
    min-height: 100%;
    background-color: #ffffff;
    z-index: 999;
    border-radius: 12px;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.08);
}
.hero-sidebar .list-group-item:hover .sub-category-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    display: flex;
    align-content: flex-start;
}

.sub-cat-title {
    font-weight: 700;
    font-size: 15px;
    color: #2b2b2b;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e5e5e5;
    display: block;
    text-decoration: none;
    transition: 0.2s;
}
.sub-cat-title:hover { color: var(--theme-color); }

.sub-sub-cat-link {
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: all 0.2s ease;
}
.sub-sub-cat-link:hover {
    color: var(--theme-color);
    transform: translateX(4px); 
}

/* 🚀 স্লাইডারের ইমেজ সিএসএস (সাদা অংশ দূর করার ম্যাজিক) */
.slider-img-wrapper {
    width: 100%;
    background-color: #f8f9fa;
    position: relative;
    aspect-ratio: 1640 / 624; 
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.slider-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🌟 contain এর বদলে cover, সাদা গ্যাপ চিরতরে গায়েব! */
}