/* ============================================
   ক্যাটাগরি ডিটেইলস হিরো সেকশন (আপডেটেড ও প্রিমিয়াম)
============================================ */
.category-details-hero {
    background: linear-gradient(135deg, #024823 0%, #017e3d 50%, #00632f 100%);
    padding: 40px 30px;
    border-radius: 24px;
    margin-top: 24px;
    margin-bottom: 35px;
    color: white;
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 12px 30px rgba(1, 126, 61, 0.15);
}

/* ব্যাকগ্রাউন্ড গ্লো ইফেক্ট */
.category-details-hero .hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.category-details-hero .hero-glow-1 {
    width: 320px;
    height: 320px;
    background: #ffd700;
    top: -120px;
    right: -60px;
}

.category-details-hero .hero-glow-2 {
    width: 260px;
    height: 260px;
    background: #00ff87;
    bottom: -90px;
    left: -60px;
}

/* গ্রিড ওভারলে প্যাটার্ন */
.category-details-hero .hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

/* ========== আইকন র‍্যাপার ========== */
.category-details-hero .category-icon-wrapper {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.category-details-hero .category-icon-wrapper:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-details-hero .category-icon-wrapper img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    background: white;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-details-hero .category-icon-wrapper .no-icon {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* ========== তথ্য অংশ ========== */
.category-details-hero .category-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.category-details-hero .category-info .category-breadcrumb {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 500;
}

.category-details-hero .category-info .category-breadcrumb a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s;
}

.category-details-hero .category-info .category-breadcrumb a:hover {
    opacity: 1;
    color: #ffd700;
}

.category-details-hero .category-info .category-breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

.category-details-hero .category-info h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.category-details-hero .category-info .category-description {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
    max-width: 550px;
    line-height: 1.7;
}

/* ========== ব্যাজ ========== */
.category-details-hero .category-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(120deg, #ffe066 0%, #facc15 100%);
    color: #1e1e2e;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* ========== স্ট্যাটস ========== */
.category-details-hero .category-info .category-stats {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.category-details-hero .category-info .category-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.category-details-hero .category-info .category-stats span i {
    font-size: 15px;
    color: #ffd700;
}

/* ============================================
   সাবক্যাটাগরি সেকশন
============================================ */
.subcategories-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(229, 231, 235, 0.7);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.subcategories-section:hover {
    border-color: #00A65A;
    box-shadow: 0 6px 20px rgba(0, 166, 90, 0.05);
}

.subcategories-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategories-section .section-title i {
    color: #00A65A;
    font-size: 18px;
}

.subcategories-section .section-title .badge {
    background: #e8f5e9;
    color: #00A65A;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subcategories-list .subcategory-item {
    background: #f8fafc;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.subcategories-list .subcategory-item:hover {
    background: #00A65A;
    color: white;
    border-color: #00A65A;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 166, 90, 0.2);
}

.subcategories-list .subcategory-item .count {
    font-size: 11px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subcategories-list .subcategory-item:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================
   খালি স্টেট
============================================ */
.empty-state .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.empty-state .empty-state-btn-secondary {
    background: transparent;
    color: #00A65A;
    border: 2px solid #00A65A;
    padding: 10px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.empty-state .empty-state-btn-secondary:hover {
    background: #00A65A;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   রেসপন্সিভ - ট্যাবলেট (768px)
============================================ */
@media (max-width: 768px) {
    .category-details-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 20px;
        min-height: auto;
        border-radius: 20px;
    }

    .category-details-hero .category-info h1 {
        font-size: 28px;
    }

    .category-details-hero .category-info .category-description {
        font-size: 13px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .category-details-hero .category-info .category-stats {
        justify-content: center;
        gap: 12px;
    }

    .category-details-hero .category-info .category-stats span {
        font-size: 13px;
        padding: 4px 14px;
    }

    .category-details-hero .category-icon-wrapper img,
    .category-details-hero .category-icon-wrapper .no-icon {
        width: 80px;
        height: 80px;
    }

    .category-details-hero .category-icon-wrapper {
        padding: 10px;
        border-radius: 16px;
    }

    .category-details-hero .category-featured-badge {
        font-size: 11px;
        padding: 3px 14px;
    }

    .subcategories-section {
        padding: 18px;
        border-radius: 16px;
    }

    .subcategories-section .section-title {
        font-size: 15px;
    }

    .subcategories-list {
        justify-content: center;
    }

    .subcategories-list .subcategory-item {
        font-size: 12px;
        padding: 6px 16px;
    }

    .category-details-hero .category-info .category-breadcrumb {
        justify-content: center;
        font-size: 12px;
    }
}

/* ============================================
   রেসপন্সিভ - মোবাইল (480px)
============================================ */
@media (max-width: 480px) {
    .category-details-hero {
        padding: 30px 16px;
        gap: 16px;
        border-radius: 16px;
    }

    .category-details-hero .category-info h1 {
        font-size: 24px;
    }

    .category-details-hero .category-info .category-description {
        font-size: 12px;
        line-height: 1.6;
    }

    .category-details-hero .category-info .category-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .category-details-hero .category-info .category-stats span {
        justify-content: center;
        font-size: 12px;
    }

    .category-details-hero .category-icon-wrapper img,
    .category-details-hero .category-icon-wrapper .no-icon {
        width: 60px;
        height: 60px;
    }

    .category-details-hero .category-icon-wrapper {
        padding: 8px;
        border-radius: 12px;
    }

    .category-details-hero .category-featured-badge {
        font-size: 10px;
        padding: 2px 12px;
    }

    .category-details-hero::before {
        font-size: 120px;
        right: -20px;
        top: -20px;
    }

    .category-details-hero::after {
        font-size: 100px;
        left: -30px;
        bottom: -30px;
    }

    .subcategories-section {
        padding: 14px;
        border-radius: 12px;
    }

    .subcategories-section .section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .subcategories-list .subcategory-item {
        font-size: 11px;
        padding: 5px 12px;
    }
}
