/* ========================================
   UNIFIED PRODUCT CARD STYLES
   ======================================== */

/* Base Product Card Styles */
.product-slide-item {
    height: 100%;
}

/* Mobile specific fixes */
@media (max-width: 576px) {
    .product-slide-item {
        padding: 0 4px;
        width: 100% !important;
    }
    
    .product-cart-wrap {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .product-carousel .slick-track {
        display: flex !important;
        align-items: stretch;
    }
    
    .product-carousel .slick-slide {
        float: none !important;
        display: flex !important;
        height: auto;
        margin: 0 2px;
    }
    
    .product-carousel .slick-slide > div {
        height: 100%;
        width: 100%;
    }
}

.product-cart-wrap {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: visible;
    background: #fff;
    border: 1px solid #f1f1f1;
    position: relative;
}

.product-cart-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-img-action-wrap {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.product-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 200px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: #f8f9fa;
}

.product-img a {
    display: block;
    height: 100%;
}

/* Desktop: Hover Cart Button Styles */
.product-hover-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.9) 100%);
    padding: 25px 8px 8px;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    border-radius: 0 0 15px 15px;
}

.product-cart-wrap:hover .product-hover-cart {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.btn-add-cart {
    width: 100%;
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    position: relative;
    z-index: 25;
    cursor: pointer;
    line-height: 1.2;
}

.btn-add-cart:hover {
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.btn-add-cart i {
    font-size: 10px;
}

.btn-add-cart span {
    font-size: 9px;
    font-weight: 600;
}

/* Mobile: Add to Cart Button After Price */
.mobile-add-to-cart {
    width: 100%;
    margin-top: 12px;
}

.btn-add-cart-mobile {
    width: 100%;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    min-height: 44px;
}

.btn-add-cart-mobile:hover {
    transform: translateY(-2px);
}

.btn-add-cart-mobile:active {
    transform: translateY(0);
}

.btn-add-cart-mobile i {
    font-size: 14px;
}

.btn-add-cart-mobile span {
    font-size: 11px;
    font-weight: 700;
}

/* Product Content */
.product-content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    position: relative;
    z-index: 2;
}

.product-content-wrap h2 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-content-wrap h2 a {
    color: #253D4E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-price {
    margin-top: auto;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    margin-bottom: 0;
}

.product-price .current-price {
    white-space: nowrap;
    flex-shrink: 0;
}

.product-price .old-price {
    color: #adadad;
    text-decoration: line-through;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-category {
    font-size: 12px;
    margin-bottom: 8px;
}

.product-category a {
    color: #adadad;
    text-decoration: none;
}

.product-rating-wrap {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating {
    display: flex;
    gap: 1px;
}

.product-rating i {
    color: #FDC040;
    font-size: 12px;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
}

.product-badges span {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

.product-badges .hot {
    background: #ff6b35;
    color: white;
}

.product-badges .new {
    color: white;
}

.product-badges .best {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.product-badges .sale {
    background: #e74c3c;
    color: white;
}

.product-badges .trophy-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

/* Navigation Buttons */
.slider-btn {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.slider-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.slider-btn i {
    font-size: 14px;
}

.slider-btn.playing {
    color: #fff;
}

.see_btn {
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.see_btn:hover {
    text-decoration: none !important;
}

.shopping-cart-form {
    position: relative;
    z-index: 30;
}

/* Special Badges */
.promo-badge {
    background: linear-gradient(135deg, #ff3366, #ff6b35);
    color: white;
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.savings-amount {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
}

.sales-count {
    font-weight: 600;
    font-size: 12px;
}

/* Filter Components */
.filter-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-block;
    background: #3BB77E;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 5px;
}

.filter-tag .remove-filter {
    color: white;
    text-decoration: none;
    margin-left: 5px;
    font-weight: bold;
}

/* ========================================
   THEME VARIANTS
   ======================================== */

/* Green Theme (Default) */
.theme-green .product-cart-wrap:hover {
    border-color: #3BB77E;
}

.theme-green .product-content-wrap h2 a:hover {
    color: #3BB77E;
}

.theme-green .product-price .current-price {
    color: #3BB77E;
}

.theme-green .btn-add-cart {
    background: #3BB77E;
    box-shadow: 0 2px 8px rgba(59, 183, 126, 0.3);
}

.theme-green .btn-add-cart:hover {
    background: #2a9960;
    box-shadow: 0 4px 15px rgba(59, 183, 126, 0.4);
}

.theme-green .btn-add-cart-mobile {
    background: #3BB77E;
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.3);
}

.theme-green .btn-add-cart-mobile:hover {
    background: #2a9960;
    box-shadow: 0 6px 16px rgba(59, 183, 126, 0.4);
}

.theme-green .slider-btn {
    background: #EAF7F2;
    color: #3BB77E;
}

.theme-green .slider-btn:hover,
.theme-green .slider-btn.playing {
    background: #3BB77E;
}

.theme-green .see_btn {
    color: #3BB77E;
}

.theme-green .see_btn:hover {
    color: #2a9960;
}

.theme-green .product-badges .new {
    background: #3BB77E;
}

.theme-green .filter-tag {
    background: #3BB77E;
}

/* Orange Theme - CORRECTED COLORS */
.theme-orange .product-cart-wrap:hover {
    border-color: #FF6D00;
}

.theme-orange .product-content-wrap h2 a:hover {
    color: #FF6D00;
}

.theme-orange .product-price .current-price {
    color: #FF6D00;
}

.theme-orange .btn-add-cart {
    background: #FF6D00;
    box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.theme-orange .btn-add-cart:hover {
    background: #000000;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

.theme-orange .btn-add-cart-mobile {
    background: #FF6D00;
    box-shadow: 0 4px 12px rgba(255, 109, 0, 0.3);
}

.theme-orange .btn-add-cart-mobile:hover {
    background: #000000;
    box-shadow: 0 6px 16px rgba(255, 109, 0, 0.4);
}

.theme-orange .slider-btn {
    background: #FFF3E0;
    color: #FF6D00;
}

.theme-orange .slider-btn:hover,
.theme-orange .slider-btn.playing {
    background: #FF6D00;
    color: #fff;
}

.theme-orange .see_btn {
    color: #FF6D00;
}

.theme-orange .see_btn:hover {
    color: #000000;
}

.theme-orange .product-badges .new {
    background: #FF6D00;
}

.theme-orange .filter-tag {
    background: #FF6D00;
}

.theme-orange .sales-count {
    color: #FF6D00;
}

.theme-orange .savings-amount {
    color: #FF6D00;
}

/* Blue Theme */
.theme-blue .product-cart-wrap:hover {
    border-color: #007bff;
}

.theme-blue .product-content-wrap h2 a:hover {
    color: #007bff;
}

.theme-blue .product-price .current-price {
    color: #007bff;
}

.theme-blue .btn-add-cart {
    background: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.theme-blue .btn-add-cart:hover {
    background: #0056b3;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.theme-blue .btn-add-cart-mobile {
    background: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.theme-blue .btn-add-cart-mobile:hover {
    background: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.theme-blue .slider-btn {
    background: #E7F1FF;
    color: #007bff;
}

.theme-blue .slider-btn:hover,
.theme-blue .slider-btn.playing {
    background: #007bff;
}

.theme-blue .see_btn {
    color: #007bff;
}

.theme-blue .see_btn:hover {
    color: #0056b3;
}

.theme-blue .product-badges .new {
    background: #007bff;
}

.theme-blue .filter-tag {
    background: #007bff;
}

/* Large Product Cards (for product pages) */
.product-grid .product-img {
    height: 250px !important;
}

.product-grid .product-content-wrap {
    padding: 15px 12px !important;
}

.product-grid .product-content-wrap h2 {
    min-height: 40px !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.align-items-center.gap-3 {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .product-img {
        height: 180px !important;
    }
    
    .product-grid .product-img {
        height: 200px !important;
    }
    
    .product-content-wrap {
        padding: 12px 12px !important;
    }
    
    .product-content-wrap h2 {
        font-size: 14px !important;
        min-height: 36px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    .product-price {
        font-size: 15px !important;
        margin-top: 8px !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
    }
    
    .product-price .current-price {
        font-size: 15px !important;
    }
    
    .product-price .old-price {
        font-size: 12px !important;
    }
    
    .mobile-add-to-cart {
        margin-top: 10px !important;
    }
    
    .btn-add-cart-mobile {
        padding: 10px 12px !important;
        font-size: 11px !important;
        gap: 6px !important;
        min-height: 40px !important;
    }
    
    .btn-add-cart-mobile i {
        font-size: 13px !important;
    }
    
    .btn-add-cart-mobile span {
        font-size: 10px !important;
    }
    
    .product-hover-cart {
        display: none !important;
    }
    
    .mobile-add-to-cart {
        display: block !important;
    }
}

@media (max-width: 576px) {
    .product-img {
        height: 160px !important;
    }
    
    .product-grid .product-img {
        height: 180px !important;
    }
    
    .product-content-wrap {
        padding: 10px 10px !important;
    }
    
    .product-content-wrap h2 {
        font-size: 13px !important;
        min-height: 34px !important;
        margin-bottom: 6px !important;
    }
    
    .product-price {
        font-size: 14px !important;
        gap: 5px !important;
    }
    
    .product-price .current-price {
        font-size: 14px !important;
    }
    
    .product-price .old-price {
        font-size: 11px !important;
    }
    
    .mobile-add-to-cart {
        margin-top: 8px !important;
    }
    
    .btn-add-cart-mobile {
        padding: 9px 10px !important;
        font-size: 10px !important;
        gap: 5px !important;
        min-height: 38px !important;
    }
    
    .btn-add-cart-mobile i {
        font-size: 12px !important;
    }
    
    .btn-add-cart-mobile span {
        font-size: 9px !important;
    }
}

@media (max-width: 400px) {
    .product-price {
        font-size: 13px !important;
    }
    
    .product-price .current-price {
        font-size: 13px !important;
    }
    
    .product-price .old-price {
        font-size: 10px !important;
    }
    
    .btn-add-cart-mobile {
        padding: 8px 8px !important;
        font-size: 9px !important;
        min-height: 36px !important;
    }
    
    .btn-add-cart-mobile i {
        font-size: 11px !important;
    }
    
    .btn-add-cart-mobile span {
        font-size: 8px !important;
    }
}

/* Desktop: Show hover cart, hide mobile cart */
@media (min-width: 769px) {
    .product-hover-cart {
        display: block !important;
    }
    
    .mobile-add-to-cart {
        display: none !important;
    }
}

/* Mobile Slider Specific Fixes */
@media (max-width: 480px) {
    .product-carousel {
        overflow: hidden;
    }
    
    .product-carousel .slick-list {
        overflow: visible;
        padding: 0 !important;
        margin: 0 -2px;
    }
    
    .product-carousel .slick-track {
        margin-left: 0 !important;
    }
    
    .product-slide-item {
        padding: 0 2px !important;
    }
    
    /* Ensure cards don't get cut off */
    .product-cart-wrap {
        min-width: 160px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-img img {
        width: 100%;
        height: auto;
        max-height: 120px;
        object-fit: cover;
    }
    
    .product-content-wrap {
        padding: 8px;
    }
    
    .product-content-wrap h2 {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
}

/* Additional Category Menu Fixes */
.main-categori-wrap .categories-dropdown-wrap {
    z-index: 1050 !important;
}

.category-mega-menu {
    z-index: 9999 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border: 1px solid #e5e5e5 !important;
}

/* Ensure proper stacking order */
.mega-menu-container-wrapper {
    z-index: 9998 !important;
}

/* Fix for dropdown timing */
.categories-dropdown-wrap {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Prevent text selection during hover */
.category-mega-item > a {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Smooth mega menu transitions */
.category-mega-menu {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Fix for mobile touch events */
@media (max-width: 768px) {
    .category-mega-item > a {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========================================
   CATEGORIES MENU STYLES
   ======================================== */

/* Categories Button */
.categories-button-active {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #3BB77E;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categories-button-active:hover {
    background: #2a9960;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.categories-button-active .fi-rs-apps {
    font-size: 16px;
}

.categories-button-active .fi-rs-angle-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.main-categori-wrap:hover .categories-button-active .fi-rs-angle-down,
.categories-button-active:hover .fi-rs-angle-down {
    transform: rotate(180deg);
}

/* Categories Dropdown */
.main-categori-wrap {
    position: relative;
    z-index: 1000;
}

/* Categories Dropdown */
.main-categori-wrap {
    position: relative;
    z-index: 1000;
}

.categories-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Show dropdown on hover - Override main.css styles with !important */
.main-categori-wrap:hover .categories-dropdown-wrap,
.categories-dropdown-wrap:hover,
.categories-dropdown-wrap.js-show,
.categories-dropdown-active-large.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Remove the auto-active class - dropdown should only show on hover */
/* .categories-dropdown-wrap.categories-dropdown-active-large removed to prevent auto-show */

/* Override main.css styles completely */
.main-categori-wrap .categories-dropdown-wrap.categories-dropdown-active-large {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    width: 280px !important;
    top: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

.main-categori-wrap:hover .categories-dropdown-wrap.categories-dropdown-active-large,
.main-categori-wrap .categories-dropdown-wrap.categories-dropdown-active-large.js-show,
.main-categori-wrap .categories-dropdown-wrap.categories-dropdown-active-large.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Force override main.css .open styles */
.categories-dropdown-active-large.open {
    opacity: 1 !important;
    visibility: visible !important;
}

.categori-dropdown-inner {
    padding: 15px 0;
}

.categori-dropdown-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Category Items */
.category-mega-item {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.category-mega-item:last-child {
    border-bottom: none;
}

.category-mega-item > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #253D4E;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-mega-item > a:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
    color: #3BB77E;
    text-decoration: none;
    padding-left: 25px;
}

.category-mega-item > a img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.category-mega-item > a i.fi-rs-angle-right {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-mega-item > a:hover i.fi-rs-angle-right {
    opacity: 1;
    transform: translateX(3px);
}

/* More Categories Button */
.more_categories {
    padding: 12px 20px;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.more_categories:hover {
    background: #f8f9fa;
    color: #3BB77E;
}

.more_categories .icon::before {
    content: "▼";
    font-size: 10px;
}

/* Mega Menu Container */
.mega-menu-container-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 99999 !important; /* Higher z-index to ensure visibility */
}

.category-mega-menu {
    position: fixed;
    display: none;
    width: 800px;
    max-width: 90vw;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 99999 !important; /* Higher z-index to ensure visibility */
}

.category-mega-menu.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Prevent mega menu from closing too quickly */
.main-categori-wrap:hover .category-mega-menu,
.category-mega-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Force show mega menu when active class is applied */
.category-mega-menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
}

.category-mega-content {
    padding: 30px;
}

/* Mega Menu Columns */
.category-mega-column h5 {
    color: #3BB77E;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    position: relative;
}

.category-mega-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3BB77E;
    border-radius: 2px;
}

.category-mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-mega-column ul li {
    margin-bottom: 8px;
}

.category-mega-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
    position: relative;
}

.category-mega-column ul li a:hover {
    color: #3BB77E;
    text-decoration: none;
    padding-left: 10px;
}

.category-mega-column ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #3BB77E;
    transition: width 0.3s ease;
}

.category-mega-column ul li a:hover::before {
    width: 6px;
}

/* Mega Menu Banner */
.category-mega-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #3BB77E, #2a9960);
}

.category-mega-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.mega-banner-content {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 2;
}

.mega-banner-content h4 {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.mega-banner-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.mega-banner-btn a {
    background: white;
    color: #3BB77E;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mega-banner-btn a:hover {
    background: #3BB77E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive Categories Menu */
@media (max-width: 1200px) {
    .category-mega-menu {
        width: 700px;
    }
    
    .category-mega-content {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .category-mega-menu {
        width: 600px;
    }
    
    .category-mega-content {
        padding: 20px;
    }
    
    .categories-dropdown-wrap {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .mega-menu-container-wrapper {
        display: none;
    }
    
    .categories-dropdown-wrap {
        width: 220px;
    }
    
    .category-mega-item > a i.fi-rs-angle-right {
        display: none;
    }
    
    .categories-button-active {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .category-mega-item > a {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .main-categori-wrap {
        width: 100%;
    }
    
    .categories-dropdown-wrap {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .categories-button-active {
        width: 100%;
        justify-content: center;
    }
}





/* ====================== MOBILE HEADER STYLES ====================== */
.mobile-header-top {
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: none; /* Remove any shadow */
    padding: 0; /* Mobile padding set to 0 */
}

.mobile-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    min-height: 60px;
}

.mobile-header-left,
.mobile-header-right {
    display: flex;
    align-items: center;
}

.mobile-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Menu toggle now uses the same style as other action buttons */

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-header-actions {
    display: flex;
    gap: 15px;
}

.mobile-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #253D4E;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-action-btn:hover {
    background: #ff6d29;
    color: #fff;
    transform: translateY(-2px);
}

.mobile-action-btn i {
    font-size: 20px;
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6d29;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ====================== MOBILE SEARCH POPUP STYLES ====================== */
.mobile-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-popup.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.mobile-search-popup-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-search-popup.active .mobile-search-popup-content {
    transform: translateY(0);
}

.mobile-search-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-search-popup-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #253D4E;
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f4f6fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: #ff6d29;
    color: #fff;
    transform: rotate(90deg);
}

.mobile-search-close i {
    font-size: 16px;
}

.mobile-search-popup-body {
    padding: 20px;
}

.mobile-popup-search-wrapper {
    position: relative;
    background: #f8f9fa;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-popup-search-wrapper:focus-within {
    border-color: #ff6d29;
    box-shadow: 0 0 0 4px rgba(255, 109, 41, 0.1);
    background: #fff;
}

.mobile-popup-search-input {
    width: 100%;
    padding: 18px 65px 18px 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #253D4E;
    outline: none;
}

.mobile-popup-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.mobile-popup-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: #ff6d29;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 109, 41, 0.3);
}

.mobile-popup-search-btn:hover {
    background: #e55a1f;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 109, 41, 0.4);
}

.mobile-popup-search-btn i {
    font-size: 18px;
}

/* ====================== MOBILE BOTTOM NAVIGATION ====================== */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    background: #fff;
    border-top: 1px solid #ececec;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 !important; /* Mobile padding set to 0 */
    margin: 0 !important;
    box-sizing: border-box !important;
}

.mobile-bottom-nav-inner {
    display: flex !important;
    padding: 8px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #7E7E7E;
    transition: all 0.3s ease;
    min-height: 55px;
    position: relative;
}

.mobile-nav-item.active {
    color: #ff6d29;
    background: rgba(255, 109, 41, 0.08);
    border-radius: 12px;
    margin: 0 2px;
}

.mobile-nav-item:hover {
    color: #ff6d29;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Cart Badge for Bottom Navigation */
.mobile-bottom-cart-count {
    position: absolute;
    top: 5px;
    right: 50%;
    transform: translateX(50%);
    background: #ff6d29;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ====================== MOBILE RESPONSIVE OVERRIDES ====================== */
@media (max-width: 991.98px) {
    .mobile-header-top {
        position: relative;
        box-shadow: none;
    }
    
    .mobile-bottom-nav {
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.05);
    }
}

/* ====================== MOBILE SMALL SCREEN ADJUSTMENTS ====================== */
@media (max-width: 480px) {
    .mobile-header-wrapper {
        padding: 8px 12px;
        min-height: 50px;
    }
    
    .mobile-logo img {
        max-height: 32px;
    }
    
    .mobile-action-btn {
        width: 38px;
        height: 38px;
    }
    
    .mobile-action-btn i {
        font-size: 18px;
    }
    
    .mobile-header-actions {
        gap: 10px;
    }
    
    .mobile-nav-item {
        min-height: 50px;
        padding: 6px 2px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
}

/* ====================== MOBILE SHADOW FIXES ====================== */
.mobile-bottom-nav {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-popup-search-btn {
    box-shadow: 0 4px 12px rgba(255, 109, 41, 0.25);
}

.mobile-popup-search-btn:hover {
    box-shadow: 0 6px 16px rgba(255, 109, 41, 0.35);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-header-wrapper {
        padding: 6px 12px;
        min-height: 42px;
    }
    
    .mobile-logo img {
        max-height: 26px;
    }
    
    .mobile-menu-toggle,
    .mobile-action-btn {
        width: 30px;
        height: 30px;
    }
    
    .mobile-search-wrapper {
        margin: 0 12px;
    }
    
    .mobile-search-input {
        padding: 9px 40px 9px 14px;
        font-size: 13px;
    }
    
    .mobile-search-btn {
        width: 30px;
        height: 30px;
    }
    
    .mobile-nav-item {
        min-height: 46px;
        padding: 5px 3px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
    }
    
    .mobile-nav-item span {
        font-size: 9px;
    }
}

/* Burger animation */
.burger-icon-white.active .burger-icon-top {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-icon-white.active .burger-icon-mid {
    opacity: 0;
}

.burger-icon-white.active .burger-icon-bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MOBILE MENU STYLES - MARJANEMALL EXACT DESIGN  
   ======================================== */

/* Mobile Header Styles - Professional Container */
.mobile-header-active {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-header-active.sidebar-visible {
    left: 0;
}

.mobile-header-wrapper-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* Menu Levels - Full Screen Navigation */
.mobile-menu-level {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-level.active {
    left: 0;
}

.mobile-menu-level.slide-left {
    left: -100%;
}

/* Mobile Header Top - Professional Design */
.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #ffffff;
    color: #253D4E;
    min-height: 65px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    border-bottom: 1px solid #ececec;
}

.mobile-header-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.mobile-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #253D4E;
    text-align: center;
    flex: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: none;
    font-family: 'Quicksand', sans-serif;
}

.mobile-menu-close,
.mobile-back-btn {
    background: none;
    border: none;
    border-radius: 0;
    padding: 5px;
    cursor: pointer;
    color: #253D4E;
    font-size: 14px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover,
.mobile-back-btn:hover {
    color: #FF6D29;
    transform: scale(1.1);
}

.mobile-header-content-area {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding-top: 8px;
}

.mobile-header-content-area::-webkit-scrollbar {
    width: 4px;
}

.mobile-header-content-area::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-header-content-area::-webkit-scrollbar-thumb {
    background: rgba(45, 106, 79, 0.3);
    border-radius: 2px;
}

.mobile-header-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 106, 79, 0.5);
}





/* Categories List - Clean Marjanemall Style */
.mobile-categories-list,
.mobile-subcategories-list,
.mobile-childcategories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.mobile-category-item,
.mobile-subcategory-item,
.mobile-childcategory-item {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-category-item:last-child,
.mobile-subcategory-item:last-child,
.mobile-childcategory-item:last-child {
    border-bottom: none;
}

/* Category Links - Professional Design */
.category-link,
.subcategory-link,
.childcategory-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.category-link:hover,
.subcategory-link:hover,
.childcategory-link:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
    color: #2d6a4f;
    padding-left: 25px;
    border-left: 3px solid #2d6a4f;
}

/* Category Icons - Clean Style */
.category-link i:first-child {
    color: #2d6a4f;
    font-size: 18px;
    margin-right: 15px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-link:hover i:first-child {
    color: #238a5e;
    transform: scale(1.05);
}

.category-link span,
.subcategory-link span,
.childcategory-link span {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.category-link:hover span,
.subcategory-link:hover span,
.childcategory-link:hover span {
    color: #2d6a4f;
    font-weight: 600;
}

/* Right Arrow - More Prominent */
.category-link .fi-rs-angle-right,
.subcategory-link .fi-rs-angle-right,
.childcategory-link .fi-rs-angle-right {
    color: #bbb;
    font-size: 12px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.category-link:hover .fi-rs-angle-right,
.subcategory-link:hover .fi-rs-angle-right,
.childcategory-link:hover .fi-rs-angle-right {
    color: #2d6a4f;
    transform: translateX(3px);
}

/* ========================================
   MOBILE PRODUCTS GRID STYLES
======================================== */

/* Mobile Products Grid */
.mobile-products-grid {
    background: #f8f9fa;
    padding: 30px 0;
}

.mobile-products-grid .mobile-header {
    margin-bottom: 20px !important;
}

.mobile-products-grid .category-slider-title {
    font-size: 22px !important;
    color: #253D4E !important;
    font-weight: 700 !important;
}

/* Mobile Product Grid Responsive */
@media (max-width: 991.98px) {
    .mobile-products-grid.section-padding {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .mobile-products-grid .mobile-header {
        margin-bottom: 15px !important;
    }
    
    .mobile-products-grid .category-slider-title {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .mobile-products-grid.section-padding {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }
    
    .mobile-products-grid .category-slider-title {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .mobile-products-grid.section-padding {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .mobile-products-grid .category-slider-title {
        font-size: 16px !important;
    }
}

/* Mobile Grid Product Cards - Consistent with Slider Design */
.mobile-products-grid .product-cart-wrap {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #ebebeb;
}

.mobile-products-grid .product-cart-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #ff6d29;
}

.mobile-products-grid .product-img {
    height: 180px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.mobile-products-grid .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.mobile-products-grid .product-cart-wrap:hover .product-img img {
    transform: scale(1.05);
}

.mobile-products-grid .product-content-wrap {
    padding: 15px;
}

.mobile-products-grid .product-content-wrap h2 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.mobile-products-grid .product-content-wrap h2 a {
    color: #253D4E !important;
    text-decoration: none !important;
}

.mobile-products-grid .product-content-wrap h2 a:hover {
    color: #ff6d29 !important;
}

.mobile-products-grid .product-price {
    margin-bottom: 12px !important;
}

.mobile-products-grid .current-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ff6d29 !important;
}

.mobile-products-grid .old-price {
    font-size: 13px !important;
    color: #adadad !important;
    text-decoration: line-through !important;
    margin-left: 8px !important;
}

/* Loading Indicators */
#loading-indicator, #end-of-products {
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

#loading-indicator {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#loading-indicator .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
    color: #ff6d29;
}

#loading-indicator p {
    color: #666;
    font-size: 14px;
    margin: 10px 0 0 0;
    font-weight: 500;
}

#end-of-products {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

#end-of-products p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Prevent rapid scrolling issues */
.mobile-products-grid.loading #mobile-products-container {
    pointer-events: none;
    opacity: 0.7;
}

/* Mobile products container states */
#mobile-products-container {
    transition: opacity 0.3s ease;
}

#mobile-products-container.loading {
    opacity: 0.7;
}

/* All Products Special Style */
.all-products .subcategory-link,
.all-products .childcategory-link {
    background: linear-gradient(90deg, #f0f8f5 0%, #ffffff 100%);
    border-bottom: 1px solid #e6f3ec;
    border-left: 3px solid #2d6a4f;
}

.all-products .subcategory-link span,
.all-products .childcategory-link span {
    color: #2d6a4f;
    font-weight: 600;
}

.all-products .subcategory-link:hover,
.all-products .childcategory-link:hover {
    background: linear-gradient(90deg, #e6f3ec 0%, #f8fffe 100%);
    color: #238a5e;
}

/* No Categories State */
.no-categories span {
    color: #999;
    padding: 40px 20px;
    display: block;
    text-align: center;
    font-style: italic;
    font-size: 16px;
}

/* Responsive Mobile Menu */
@media (max-width: 480px) {
    .mobile-header-top {
        padding: 14px 16px;
        min-height: 56px;
    }
    
    .mobile-header-title {
        font-size: 15px;
    }
    
    .mobile-menu-close,
    .mobile-back-btn {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    
    .category-link,
    .subcategory-link,
    .childcategory-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .category-link i:first-child {
        font-size: 12px;
        margin-right: 12px;
        width: auto;
    }
    
    .category-link span,
    .subcategory-link span,
    .childcategory-link span {
        font-size: 14px;
    }
}

/* Additional Mobile Header Styles */
@media only screen and (max-width: 768px) {
    .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area {
        padding: 0px;
    }
}

.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-top {
    background-color: #ffffff;
}

/* ========================================
   HERO SLIDER FULL WIDTH STYLES
   ======================================== */



/* ========================================
   HERO SLIDER LINK STYLES
   ======================================== */

.hero-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slide-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hero-slide-link:focus {
    outline: 3px solid #FF6D29;
    outline-offset: -3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.slider-arrow {
    z-index: 3;
}

.single-hero-slider {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.single-hero-slider:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .single-hero-slider:hover {
        transform: none;
    }
    
    .hero-slide-link:hover {
        background: none;
    }
}

/* ========================================
   BURGER ICON ANIMATION STYLES
   ======================================== */

.burger-icon-white.active .burger-icon-top {
    transform: rotate(45deg) translate(4px, 4px);
}

.burger-icon-white.active .burger-icon-mid {
    opacity: 0;
}

.burger-icon-white.active .burger-icon-bottom {
    transform: rotate(-45deg) translate(4px, -4px);
}





/* ========================================
   CART SIDEBAR STYLES
   ======================================== */

/* Cart Sidebar Overlay */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-sidebar.active {
    right: 0;
}

/* Cart Sidebar Header */
.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.cart-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #253D4E;
    margin: 0;
    display: flex;
    align-items: center;
}

.cart-sidebar-title i {
    color: #FF6D29;
    font-size: 24px;
}

.cart-sidebar-close {
    width: 35px;
    height: 35px;
    border: none;
    background: #f4f6fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-sidebar-close:hover {
    background: #FF6D29;
    color: #fff;
    transform: rotate(90deg);
}

.cart-sidebar-close i {
    font-size: 18px;
}

/* Cart Sidebar Body */
.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.cart-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.cart-sidebar-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: #FF6D29;
    border-radius: 3px;
}

.cart-sidebar-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cart Item */
.cart-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
    position: relative;
    transition: all 0.3s ease;
}

.cart-sidebar-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 8px;
}

.cart-item-remove {
    position: absolute;
    top: 15px;
    right: 0;
    width: 25px;
    height: 25px;
    border: none;
    background: #f4f6fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cart-item-remove:hover {
    background: #ff4444;
    color: #fff;
    transform: rotate(90deg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-sidebar-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    padding-right: 30px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.cart-item-name a {
    color: #253D4E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-name a:hover {
    color: #FF6D29;
}

.cart-item-quantity {
    font-size: 14px;
    color: #7E7E7E;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #FF6D29;
    font-weight: 700;
}

.cart-item-variants {
    font-size: 12px;
    color: #7E7E7E;
    display: block;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7E7E7E;
}

.cart-empty p {
    margin: 0;
    font-size: 16px;
}

/* Cart Sidebar Footer */
.cart-sidebar-footer {
    border-top: 1px solid #ececec;
    padding: 25px 30px;
    background: #fff;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

.cart-sidebar-total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #253D4E;
}

.cart-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #FF6D29;
}

.cart-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-sidebar-buttons .btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-sidebar-buttons .btn-outline {
    background: transparent;
    border: 2px solid #FF6D29;
    color: #FF6D29;
}

.cart-sidebar-buttons .btn-outline:hover {
    background: #FF6D29;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 109, 41, 0.3);
}

.cart-sidebar-buttons .btn-primary {
    background: #FF6D29;
    border: 2px solid #FF6D29;
    color: #fff;
}

.cart-sidebar-buttons .btn-primary:hover {
    background: #e55a1f;
    border-color: #e55a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 109, 41, 0.4);
}

/* Cart Sidebar Responsive */
@media (max-width: 576px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Cart Sidebar Animation */
@keyframes slideInRight {
    from {
        right: -450px;
    }
    to {
        right: 0;
    }
}

/* ========================================
   MOBILE PRODUCTS PAGE STYLING
   ======================================== */

/* Mobile Products Grid - 2 column layout like category slider */
@media (max-width: 991px) {
    .product-grid .col-6 {
        padding: 0 5px !important;
        margin-bottom: 15px !important;
    }
    
    .product-grid .product-cart-wrap {
        background: #fff;
        border: 1px solid #f1f1f1;
        border-radius: 15px;
        padding: 10px;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .product-grid .product-cart-wrap:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }
    
    .product-grid .product-img-action-wrap {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 10px;
    }
    
    .product-grid .product-img {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #f8f9fa;
    }
    
    .product-grid .product-img img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        border-radius: 12px;
        transition: transform 0.3s ease;
    }
    
    .product-grid .product-img:hover img {
        transform: scale(1.05);
    }
    
    .product-grid .product-badges {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .product-grid .product-badges span {
        font-size: 9px;
        padding: 2px 5px;
        border-radius: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .product-grid .product-badges .hot {
        background: linear-gradient(45deg, #ff6d29, #ff8a50);
        color: white;
    }
    
    .product-grid .product-badges .new {
        background: linear-gradient(45deg, #28a745, #34ce57);
        color: white;
    }
    
    .product-grid .product-content-wrap {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    
    .product-grid .product-content-wrap h2 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 0 0 8px 0 !important;
        font-weight: 600 !important;
        color: #333 !important;
        flex: 1;
    }
    
    .product-grid .product-content-wrap h2 a {
        color: #333 !important;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-grid .product-content-wrap h2 a:hover {
        color: #ff6d29 !important;
    }
    
    .product-grid .product-price {
        margin: 8px 0 !important;
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .product-grid .product-price .current-price {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #ff6d29 !important;
        margin: 0 !important;
    }
    
    .product-grid .product-price .old-price {
        font-size: 10px !important;
        color: #999 !important;
        text-decoration: line-through !important;
        margin: 0 !important;
    }
    
    /* Hide desktop hover cart on mobile */
    .product-grid .product-hover-cart {
        display: none !important;
    }
    
    /* Mobile Add to Cart Button */
    .product-grid .mobile-add-to-cart {
        margin-top: auto;
        padding-top: 8px;
        display: block !important;
    }
    
    .product-grid .mobile-add-to-cart.d-block.d-md-none {
        display: block !important;
    }
    
    .product-grid .btn-add-cart-mobile {
        width: 100%;
        background: linear-gradient(45deg, #ff6d29, #ff8a50);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 6px 8px;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        cursor: pointer;
        min-height: 30px;
    }
    
    .product-grid .btn-add-cart-mobile:hover:not(:disabled) {
        background: linear-gradient(45deg, #e55a1f, #ff6d29);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(255, 109, 41, 0.3);
    }
    
    .product-grid .btn-add-cart-mobile:disabled {
        background: #ccc;
        cursor: not-allowed;
    }
    
    .product-grid .btn-add-cart-mobile i {
        font-size: 10px;
    }
    
    .product-grid .btn-add-cart-mobile span {
        font-size: 8px;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .product-grid .col-6 {
        padding: 0 3px !important;
    }
    
    .product-grid .product-cart-wrap {
        padding: 8px;
    }
    
    .product-grid .product-img img {
        height: 110px;
    }
    
    .product-grid .product-content-wrap h2 {
        font-size: 11px !important;
    }
    
    .product-grid .product-price .current-price {
        font-size: 12px !important;
    }
    
    .product-grid .btn-add-cart-mobile {
        padding: 5px 6px;
        font-size: 8px;
        min-height: 28px;
    }
}

@media (max-width: 360px) {
    .product-grid .product-img img {
        height: 100px;
    }
    
    .product-grid .product-cart-wrap {
        padding: 6px;
    }
    
    .product-grid .btn-add-cart-mobile span {
        font-size: 7px;
    }
}

/* Mobile Page Layout Fixes */
@media (max-width: 991px) {
    /* Fix products page container spacing */
    .main .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Fix product grid row spacing */
    .product-grid.row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    /* Fix sidebar on mobile to stack better */
    .col-lg-1-5.primary-sidebar {
        margin-top: 20px;
        padding: 0 10px;
    }
    
    /* Fix pagination on mobile */
    .pagination-area {
        padding: 0 10px;
    }
    
    /* Make sure mobile bottom nav doesn't interfere */
    .mobile-bottom-nav {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        position: fixed !important;
        bottom: 0 !important;
        transform: translateX(0) !important;
    }
    
    .mobile-bottom-nav-inner {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px 5px !important;
        display: flex !important;
        justify-content: space-around !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .mobile-nav-item {
        flex: 1;
        max-width: none;
        margin: 0 2px;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    /* Products page header fixes */
    .archive-header {
        padding: 15px 0;
    }
    
    .archive-header .breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .archive-header h1 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }
    
    /* Shop product filter fixes */
    .shop-product-fillter {
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    .totall-product p {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    /* Sort dropdown mobile fixes */
    .sort-by-product-area {
        padding: 0 5px;
        margin-bottom: 15px;
    }
}

/* Desktop improvements - better search design */
@media (min-width: 992px) {
    .sidebar-widget-2.widget_search .search-form {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        background: white;
    }
    
    .sidebar-widget-2.widget_search .search-form input {
        border: none;
        padding: 15px 20px;
        font-size: 15px;
        background: white;
    }
    
    .sidebar-widget-2.widget_search .search-form button {
        background: linear-gradient(45deg, #ff6d29, #ff8a50);
        border: none;
        padding: 15px 25px;
        color: white;
        transition: all 0.3s ease;
    }
    
    .sidebar-widget-2.widget_search .search-form button:hover {
        background: linear-gradient(45deg, #e55a1f, #ff6d29);
        transform: translateY(-1px);
    }
    
    .sidebar-widget.price_range {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .sidebar-widget.price_range .list-group-item {
        border-radius: 10px !important;
        margin-bottom: 8px;
        padding: 12px 15px;
        background: #f8f9fa;
        transition: all 0.3s ease;
        border: 2px solid transparent !important;
    }
    
    .sidebar-widget.price_range .list-group-item:hover {
        background: white;
        border-color: #ff6d29 !important;
        color: #ff6d29;
        transform: translateX(5px);
    }
    
    .sidebar-widget.price_range .list-group-item.text-brand {
        background: linear-gradient(45deg, #ff6d29, #ff8a50);
        color: white !important;
        border-color: #ff6d29 !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */

/* Mobile Page Header */
@media (max-width: 767px) {
    .archive-header {
        padding: 10px 0;
    }
    
    .archive-header h4 {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }
    
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .breadcrumb a, .breadcrumb span {
        color: #666;
    }
    
    /* Adjust main content spacing on mobile */
    .container.mb-30 {
        margin-bottom: 15px !important;
    }
    
    .shop-product-fillter {
        margin-bottom: 15px;
    }
    
    .totall-product p {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* ====================== FINAL MOBILE BOTTOM NAV FIXES FOR ALL PAGES ====================== */
@media (max-width: 768px) {
    /* Override any conflicting styles that might cause width issues */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border-top: 1px solid #ececec !important;
        z-index: 999 !important;
        transform: translateX(0) !important;
    }
    
    .mobile-bottom-nav-inner {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        padding: 8px 5px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        justify-content: space-around !important;
    }
    
    .mobile-nav-item {
        flex: 1 !important;
        max-width: 20% !important;
        box-sizing: border-box !important;
        margin: 0 1px !important;
    }
    
    /* Ensure no page-specific elements interfere */
    .container, .row, .col-lg-4-5, .col-lg-1-5 {
        overflow-x: visible !important;
    }
    
    /* Force proper viewport constraints */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
}

