/* ============================================
   JUMIA-STYLE HERO SECTION CSS
   ============================================ */

/* Hero Section Container */
.hero-section-jumia {
    padding: 15px 0 20px;
    background-color: #f5f5f5;
}

.hero-row {
    display: flex;
    gap: 10px;
    min-height: 380px;
}

/* LEFT: Categories Sidebar */
.hero-categories-sidebar {
    width: 200px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-category-list li:last-child {
    border-bottom: none;
}

.sidebar-category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s ease;
}

.sidebar-category-list li a:hover {
    background-color: #fff3e6;
    color: #f68b1e;
}

.sidebar-category-list .category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-category-list .category-icon-fallback {
    width: 20px;
    height: 20px;
    color: #999;
    font-size: 16px;
}

.sidebar-category-list li a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CENTER: Main Slider */
.hero-main-slider {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.hero-main-slider .hero-slider {
    height: 100%;
}

.hero-main-slider .hero-slider-main {
    height: 100%;
}

.hero-main-slider .hero-slider-main .item {
    height: 380px;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 4px;
}

/* RIGHT: Offer Banners */
.hero-offer-banners {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-offer-banners .offer-banner-item {
    flex: 1;
    display: block;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-offer-banners .offer-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-offer-banners .offer-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Styles for Jumia Hero */
@media (max-width: 1200px) {
    .hero-categories-sidebar {
        width: 180px;
    }
    .hero-offer-banners {
        width: 200px;
    }
}

@media (max-width: 991px) {
    .hero-row {
        flex-wrap: wrap;
    }
    
    .hero-categories-sidebar {
        display: none; /* Hide sidebar on tablet */
    }
    
    .hero-main-slider {
        flex: 1 1 calc(100% - 200px);
    }
    
    .hero-offer-banners {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-row {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-main-slider {
        width: 100%;
        order: 1;
    }
    
    .hero-main-slider .hero-slider-main .item {
        height: 250px;
    }
    
    .hero-offer-banners {
        width: 100%;
        flex-direction: row;
        order: 2;
    }
    
    .hero-offer-banners .offer-banner-item {
        flex: 1;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-section-jumia {
        padding: 10px 0 15px;
    }
    
    .hero-main-slider .hero-slider-main .item {
        height: 200px;
    }
    
    .hero-offer-banners .offer-banner-item {
        height: 120px;
    }
}

/* ============================================
   AMAZON-STYLE CATEGORY GRID CSS
   ============================================ */

/* Offer Banners Section - 2 banners below slider */
.offer-banners-section {
    margin-top: 20px;
    margin-bottom: 30px;
}

.offer-banners-section .offer-banner {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-banners-section .offer-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.offer-banners-section .offer-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Category Grid Section */
.category-grid-section {
    padding: 40px 0;
}

.category-grid-section .section-title {
    margin-bottom: 25px;
}

.category-grid-section .section-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f1111;
    margin: 0;
}

/* Category Grid Row - 4 per row */
.category-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .category-grid-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .category-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Category Grid Card - The white card container */
.category-grid-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    transition: box-shadow 0.3s ease;
}

.category-grid-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-grid-card .card-header-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 2x2 Grid inside each card */
.category-grid-card .subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex-grow: 1;
}

.category-grid-card .subcategory-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.category-grid-card .subcategory-item:hover .subcat-name {
    color: #c45500;
}

.category-grid-card .subcat-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #f7f7f7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.category-grid-card .subcat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-grid-card .subcategory-item:hover .subcat-image img {
    transform: scale(1.05);
}

.category-grid-card .subcat-name {
    font-size: 13px;
    color: #0f1111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.category-grid-card .card-footer-link {
    margin-top: auto;
    padding-top: 15px;
}

.category-grid-card .card-footer-link a {
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.category-grid-card .card-footer-link a:hover {
    color: #c45500;
    text-decoration: underline;
}

/* Single Image Card Variant */
.category-grid-card.single-image-card .single-card-image {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.category-grid-card.single-image-card .single-card-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-grid-card.single-image-card:hover .single-card-image img {
    transform: scale(1.02);
}

/* Best Sellers Horizontal Slider Section */
.best-sellers-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.best-sellers-section .section-title {
    margin-bottom: 20px;
}

.best-sellers-section .section-title h2 {
    font-size: 21px;
    font-weight: 700;
    color: #0f1111;
    margin: 0;
}

/* Promotional Banner at bottom */
.promo-banner-section {
    margin: 30px 0;
}

.promo-banner-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Category Simple Card - for displaying main categories */
.category-simple-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: block;
    text-decoration: none;
    height: 100%;
}

.category-simple-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.category-simple-card .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.category-simple-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-simple-card:hover .card-image img {
    transform: scale(1.08);
}

.category-simple-card .card-body {
    padding: 15px;
    text-align: center;
}

.category-simple-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f1111;
    margin: 0;
    transition: color 0.2s ease;
}

.category-simple-card:hover .card-title {
    color: #007185;
}