/* ============================
   PRODUCT CATEGORY SECTION - FIXED
============================ */

.product-category-section {
    background: #f7f4f4;
    padding: 15px 0;
    position: relative;
    z-index: 1000; /* Higher z-index than banner */
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.category-slider-wrapper {
    width: 100%;
    position: relative;
}

/* Owl Carousel Fix */
.category-slider {
    position: relative;
}

/* CRITICAL: Force dropdown visibility */
.category-slider .owl-stage-outer {
    overflow: visible !important;
}

.category-slider .owl-stage {
    display: flex;
}

.category-slider .owl-item {
    display: flex;
    justify-content: center;
}

/* Category Slide */
.category-slide {
    position: relative;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100px;
    min-height: 140px;
    z-index: 1001; /* Higher z-index */
}

.category-link {
    text-align: center;
    text-decoration: none;
    color: #222;
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

.category-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: radial-gradient(circle at top, #ffb3de, #ffccf9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    padding: 0 3px;
    display: block;
    word-wrap: break-word;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Effects */
.category-slide:hover .category-icon {
    background: #ffccf9;
    border: 8px solid white;
    transform: translateY(-3px);
}

.category-slide:hover .category-icon img {
    transform: scale(0.85);
}

.category-slide:hover .category-title {
    color: #ff0000;
}

/* ============================
   SUBCATEGORY DROPDOWN - COMPLETELY FIXED
============================ */
.subcategory-dropdown {
    position: absolute !important;
    top: 120px !important; /* Position below category */
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: white !important;
    min-width: 220px !important;
    width: max-content !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important; /* VERY HIGH z-index */
    text-align: left !important;
    border: 1px solid #eaeaea !important;
    pointer-events: auto !important;
}

/* Show dropdown on hover */
.category-slide:hover .subcategory-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(5px) !important;
}

/* Dropdown content */
.subcategory-dropdown ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.subcategory-dropdown ul li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

.subcategory-dropdown ul li:last-child a {
    border-bottom: none !important;
}

.subcategory-dropdown ul li a:hover {
    background-color: #f8f9fa !important;
    color: #ff0000 !important;
    padding-left: 25px !important;
}

/* Arrow */
.subcategory-dropdown::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 8px solid white !important;
    z-index: 1 !important;
}

/* ============================
   OWL CAROUSEL NAVIGATION
============================ */
.category-slider .owl-nav {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1002;
}

.category-slider .owl-nav button {
    position: relative;
    pointer-events: all;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-slider .owl-nav button:hover {
    background: #ff0000;
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.category-slider .owl-nav .owl-prev {
    left: -15px;
}

.category-slider .owl-nav .owl-next {
    right: -15px;
}

.category-slider .owl-nav button i {
    font-size: 18px;
}

.category-slider .owl-dots {
    display: none;
}

/* ============================
   BANNER SECTION - LOW Z-INDEX
============================ */
.banner-section {
    margin: 40px 0;
    padding: 15px 0;
    position: relative;
    z-index: 1 !important; /* LOW z-index */
}

/* Reset all banner elements to low z-index */
.banner-slider,
.banner-slider .owl-stage-outer,
.banner-slider .owl-stage,
.banner-slider .owl-item,
.banner-slider .owl-item.active,
.banner-item,
.banner-item a,
.banner-item img {
    position: relative !important;
    z-index: 1 !important;
}

.banner-slider .banner-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 500px; /* Increased from 400px */
}

.banner-slider .banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.banner-slider .banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.banner-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 48px; /* Increased from 40px */
    height: 48px; /* Increased from 40px */
    border-radius: 50%;
    color: #333;
    font-size: 24px; /* Increased from 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.banner-slider .owl-nav .owl-prev {
    left: 20px; /* Increased from 15px */
}

.banner-slider .owl-nav .owl-next {
    right: 20px; /* Increased from 15px */
}

.banner-slider .owl-dots {
    position: absolute;
    bottom: 25px; /* Increased from 20px */
    width: 100%;
    text-align: center;
    z-index: 2;
}

.banner-slider .owl-dot span {
    background: rgba(255, 255, 255, 0.7);
    margin: 0 8px; /* Increased from 6px */
    width: 14px; /* Increased from 12px */
    height: 14px; /* Increased from 12px */
    border-radius: 50%;
    display: block;
    transition: all .3s ease;
}

.banner-slider .owl-dot.active span {
    background: #fff;
    transform: scale(1.2);
}

.small-banner-box {
    height: 155px; /* Increased from 120px (to maintain proportion with 500px main slider) */
    border-radius: 12px; /* Increased from 8px */
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.small-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* Increased from 8px */
    transition: transform 0.5s ease;
}

.small-banner-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.small-banner-box:hover img {
    transform: scale(1.05);
}

.no-banner {
    text-align: center;
    padding: 60px 30px; /* Increased padding */
    border-radius: 12px; /* Increased from 8px */
    border: 2px dashed #dee2e6;
    height: 500px; /* Increased from 400px to match main slider */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.no-banner i {
    font-size: 64px; /* Increased from 48px */
    color: #6c757d;
    margin-bottom: 20px; /* Increased from 15px */
}

.no-banner h5 {
    color: #495057;
    margin-bottom: 12px; /* Increased from 10px */
    font-size: 1.25rem; /* Added */
}

.no-banner p.text-muted {
    font-size: 1rem; /* Added */
}

.right-banner-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed #dee2e6;
    position: relative;
    z-index: 1;
    border-radius: 12px; /* Added to match */
}

.right-banner-placeholder i {
    font-size: 32px !important; /* Increased from 24px */
}

.right-banner-placeholder small {
    font-size: 13px !important; /* Increased from 11px */
}
/* ============================
   HOT DEALS SECTION
============================ */
.hot-deals-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.product-section-banner {
    max-width: 1200px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.product-section-banner img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.buy-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #000;
    background: #fff;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
}

.buy-now:hover {
    background: #000;
    color: #fff;
}

/* ============================
   NEWSLETTER & APP STRIP
============================ */
.newsletter-app-strip {
    background: radial-gradient(circle at top, #ffb3de, #ffccf9);
    padding: 22px 0;
    color: black;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.newsletter-app-strip .strip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.newsletter-left,
.newsletter-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-icon {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-text h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.newsletter-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
}

.download-btn {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #fff;
    color: #4aa3df;
}

/* ============================
   RESPONSIVE STYLES
============================ */

@media (max-width: 992px) {
    .category-icon {
        width: 75px;
        height: 75px;
    }
    
    .category-slide {
        width: 90px;
        min-height: 130px;
    }
    
    .category-title {
        font-size: 11px;
    }
    
    .banner-slider .banner-item {
        height: 350px;
    }
    
    .small-banner-box {
        height: 110px;
    }
}

@media (max-width: 768px) {
    .product-category-section {
        padding: 12px 0;
    }
    
    .category-icon {
        width: 65px;
        height: 65px;
    }
    
    .category-slide {
        width: 80px;
        min-height: 120px;
    }
    
    .category-title {
        font-size: 10px;
        font-weight: 600;
    }
    
    .subcategory-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(100%) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-radius: 8px 8px 0 0;
        max-height: 60vh;
        overflow-y: auto;
         display: none !important;
        z-index: 999999 !important;
        animation: slideUp 0.3s ease;
    }
    
    .subcategory-dropdown::before {
        display: none !important;
    }
    
    .category-slide.active .subcategory-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
    
    .banner-slider .banner-item {
        height: 250px;
    }
    
    .small-banner-box {
        height: 90px;
    }
    
    .newsletter-app-strip .strip-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-left,
    .newsletter-right {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .category-slide {
        width: 70px;
        min-height: 110px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
    }
    
    .category-title {
        font-size: 9px;
    }
    
    .banner-slider .banner-item {
        height: 200px;
    }
    
    .small-banner-box {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-slide {
        width: 65px;
        min-height: 100px;
    }
    
    .category-title {
        font-size: 8px;
    }
}

/* EMERGENCY OVERRIDE - Add this at the VERY END */
.category-slide .subcategory-dropdown {
    z-index: 999999 !important;
    position: absolute !important;
    top: 120px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}
/* ============================
   HOT DEALS SECTION
============================ */
.buy-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #000;
    background: #fff;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
}

.buy-now:hover {
    background: #000;
    color: #fff;
}

.hot-deals-slider .owl-nav button {
    position: absolute;
    top: 45%;
    background: #fff !important;
    border: 1px solid #ddd !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px !important;
}

.hot-deals-slider .owl-nav .owl-prev {
    left: -15px;
}

.hot-deals-slider .owl-nav .owl-next {
    right: -15px;
}

.hot-deals-slider .owl-nav button:hover {
    background: #ff0000 !important;
    color: #fff !important;
}

.hot-deal-image {
    overflow: hidden;
}

.hot-deal-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.hot-deal-card:hover .hot-deal-image img {
    transform: scale(1.08);
}

.othoba-hot-deals {
    padding: 40px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.hot-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.hot-deals-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ff0000;
}

.more-products {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.more-products:hover {
    color: #ff0000;
}

/* CARD */
.hot-deal-card {
    display: flex;
    border: 1.5px solid #f79545;
    border-radius: 6px;
    padding: 20px;
    height: 100%;
}

/* IMAGE */
.hot-deal-image {
    width: 45%;
    text-align: center;
}

.hot-deal-image img {
    max-width: 100%;
    height: auto;
}

/* CONTENT */
.hot-deal-content {
    width: 55%;
    padding-left: 20px;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-title a {
    color: #222;
    text-decoration: none;
}

.product-title a:hover {
    color: #ff0000;
}

/* RATING */
.rating {
    color: #f59e0b;
    font-size: 15px;
    margin-bottom: 10px;
}

.rating span {
    color: #777;
    font-size: 14px;
}

/* PRICE */
.price {
    margin-bottom: 18px;
}

.price .new {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-right: 10px;
}

.price .old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

/* ACTIONS */
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-now {
    border: 2px solid #000;
    background: #fff;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.buy-now i {
    margin-right: 6px;
}

.buy-now:hover {
    background: #000;
    color: #fff;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

.icon-btn:hover {
    color: #ff0000;
}

.product-section-banner {
    max-width: 1200px;
    margin: 0 auto;
}

.product-section-banner img {
    width: 1200px;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
}
/* ============================
   HOT DEALS - MOBILE GRID VIEW - MINIMAL HEIGHT
============================ */
@media (max-width: 767px) {
    .hot-deals-mobile-grid {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }

    .mobile-grid-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        min-width: 100%;
    }

    .mobile-grid-item {
        width: 100%;
    }

    /* Style the scrollbar */
    .hot-deals-mobile-grid::-webkit-scrollbar {
        height: 3px;
    }

    .hot-deals-mobile-grid::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .hot-deals-mobile-grid::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    /* Minimal product card styling */
    .hot-deals-mobile-grid .hot-deal-card {
        margin: 0;
        height: 100%;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .hot-deals-mobile-grid .hot-deal-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .hot-deals-mobile-grid .hot-deal-content {
        padding: 5px 6px 6px;
    }

    .hot-deals-mobile-grid .product-title {
        font-size: 11px;
        margin-bottom: 2px;
        line-height: 1.2;
        font-weight: 400;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 26px;
    }

    .hot-deals-mobile-grid .rating {
        font-size: 9px;
        margin-bottom: 2px;
        color: #ff9900;
        letter-spacing: 1px;
    }
    
    .hot-deals-mobile-grid .rating span {
        font-size: 9px;
        color: #999;
        margin-left: 2px;
    }

    .hot-deals-mobile-grid .price {
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 3px;
    }

    .hot-deals-mobile-grid .price .new {
        font-size: 12px;
        font-weight: 600;
        color: #e02b1d;
    }

    .hot-deals-mobile-grid .price .old {
        font-size: 9px;
        color: #999;
        text-decoration: line-through;
    }

    .hot-deals-mobile-grid .actions {
        display: flex;
        align-items: center;
        gap: 3px;
        margin-top: 4px;
    }

    .hot-deals-mobile-grid .buy-now {
        flex: 1;
        padding: 4px 6px;
        font-size: 9px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 3px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .hot-deals-mobile-grid .buy-now i {
        font-size: 10px;
    }

    .hot-deals-mobile-grid .icon-btn {
        width: 24px;
        height: 24px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 11px;
        color: #555;
    }
    
    .hot-deals-mobile-grid .icon-btn:hover {
        background: #eee;
    }
    
    /* Optional: Hide rating and actions for even more minimal look */
    /* .hot-deals-mobile-grid .rating,
    .hot-deals-mobile-grid .actions {
        display: none;
    } */
}

/* Desktop styles remain same */
@media (min-width: 768px) {
    .hot-deals-mobile-grid {
        display: none !important;
    }
    
    .hot-deals-desktop-carousel {
        display: block !important;
    }
}