/* Wishlist styles */
.faved .fave_btn i.fa-heart,
.product-model.faved .fave_btn i.fa-heart,
button.fave_btn i.fa-heart.faved,
i.fa-heart.faved {
    color: red !important;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

/* Default heart icon style - empty with black border */
.fave_btn i.fa-heart,
i.fa-heart {
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
    text-stroke: 1px rgba(0, 0, 0, 0.6);
    background: transparent;
}

/* Important override for heart color */
.fave_btn i.fa-heart[style*="red"],
i.fa-heart[style*="red"] {
    color: red !important;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

.fave_btn {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    background: transparent;
}

.fave_btn:hover i.fa-heart {
    transform: scale(1.2);
}

/* Fix spacing between wishlist and cart icons */
#nav_cart .nav-item:first-child {
    margin-right: 10px;
}

/* Add animation for heart icon when clicked */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-beat {
    animation: heartbeat 0.8s ease-in-out;
}

/* Optimized Wishlist System Styles - Enhanced for Cross-Page Consistency */

/* Wishlist Button Base Styles - Maximum Specificity */
.wishlist-btn,
button.wishlist-btn,
.product-card .wishlist-btn,
.product-model .wishlist-btn,
div.product-card button.wishlist-btn,
.item .wishlist-btn,
.owl-carousel .item .wishlist-btn,
.product-carousel .item .wishlist-btn,
.search-card-res .wishlist-btn {
    position: absolute !important;
    top: -2px !important;
    right: 8px !important;
    z-index: 999 !important;
    
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    background: none !important;
    border: none !important;
    
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wishlist-btn .fa-heart {
    font-size: 22px !important;
    color: transparent !important;
    -webkit-text-stroke: 1.2px #333 !important;
    text-stroke: 1.2px #333 !important;
    transition: all 0.3s ease !important;
}

/* Favorited state */
.faved .fa-heart,
.fa-heart.text-danger {
    color: red !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* Hover animation */
.wishlist-btn:hover .fa-heart {
    transform: scale(1.15) !important;
}

/* Override any other heart colors */
.fa-heart[style*="color"] {
    color: transparent !important;
    -webkit-text-stroke: 1.2px #333 !important;
    text-stroke: 1.2px #333 !important;
}

.faved .fa-heart[style*="color"],
.fa-heart.text-danger[style*="color"] {
    color: red !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* Heart Icon Styles - Maximum Specificity */
.wishlist-btn i.fa-heart,
button.wishlist-btn i.fa-heart,
.product-card .wishlist-btn i.fa-heart,
.product-model .wishlist-btn i.fa-heart,
div.product-card button.wishlist-btn i.fa-heart,
.item .wishlist-btn i.fa-heart {
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    margin-top: 2.6px;
    margin-left: 0.3px;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Faved State - Red Heart - All Contexts */
.wishlist-btn i.fa-heart.text-danger,
button.wishlist-btn i.fa-heart.text-danger,
.product-card .wishlist-btn i.fa-heart.text-danger,
.product-model .wishlist-btn i.fa-heart.text-danger,
.product-card.faved .wishlist-btn i.fa-heart,
.product-model.faved .wishlist-btn i.fa-heart {
    color: #dc3545 !important;
}

/* Unfaved State - Gray Heart - All Contexts */
.wishlist-btn i.fa-heart.text-muted,
button.wishlist-btn i.fa-heart.text-muted,
.product-card .wishlist-btn i.fa-heart.text-muted,
.product-model .wishlist-btn i.fa-heart.text-muted {
}

/* Product Card Faved State - All Contexts */
.product-card.faved .wishlist-btn,
.product-model.faved .wishlist-btn,
div.product-card.faved button.wishlist-btn,
.item .product-card.faved .wishlist-btn {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.product-card.faved .wishlist-btn:hover,
.product-model.faved .wishlist-btn:hover,
div.product-card.faved button.wishlist-btn:hover {
    background: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
}

/* Heart Beat Animation for Added Items - All Contexts */
.wishlist-btn i.fa-heart.text-danger,
button.wishlist-btn i.fa-heart.text-danger,
.product-card .wishlist-btn i.fa-heart.text-danger,
.product-model .wishlist-btn i.fa-heart.text-danger {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Loading State - All Contexts */
.wishlist-btn.loading,
button.wishlist-btn.loading,
.product-card .wishlist-btn.loading,
.product-model .wishlist-btn.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    cursor: wait !important;
}




/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wishlist-btn,
    button.wishlist-btn,
    .product-card .wishlist-btn,
    .product-model .wishlist-btn {
        width: 25px !important;
        height: 25px !important;
        top: -2px !important;
        right: 188px !important;
        padding: 5px !important;
        z-index: 999 !important;
    }

    #wishlisting {
     right: 7px !important;
    }
    

    
    .wishlist-btn i.fa-heart,
    button.wishlist-btn i.fa-heart,
    .product-card .wishlist-btn i.fa-heart,
    .product-model .wishlist-btn i.fa-heart {
        font-size: 14px !important;
    }
    
    /* Ensure heart is always on top-right of product image */
    .product-card .product-thumb,
    .product-model .product-thumb,
    .item .product-thumb {
        position: relative !important;
    }
    
    .product-card .wishlist-btn,
    .product-model .wishlist-btn,
    .item .wishlist-btn {
        position: absolute !important;
        top: 8px;
        right: 8px;
        z-index: 999 !important;
    }
    
    /* Mobile styles for product detail page */
    .gallery-options .wishlist-btn,
    ul.gallery-options li .wishlist-btn {
        width: 30px !important;
        height: 30px !important;
        padding: 4px !important;
        margin-bottom: 8px !important;
    }
    
    .gallery-options .wishlist-btn i.fa-heart,
    ul.gallery-options li .wishlist-btn i.fa-heart {
        font-size: 13px !important;
    }
    
    /* Force positioning on product image for mobile */
    .product-card .product-card-content,
    .product-model .product-card-content,
    .item .product-card-content {
        position: relative !important;
    }
    
    .product-card .product-thumb,
    .product-model .product-thumb,
    .item .product-thumb,
    .product-card .image-wrapper,
    .product-model .image-wrapper {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Ensure heart button is positioned absolutely over the image */
    .product-thumb .wishlist-btn,
    .image-wrapper .wishlist-btn,
    .product-card .product-thumb .wishlist-btn,
    .product-model .product-thumb .wishlist-btn,
    .item .product-thumb .wishlist-btn,
    .owl-carousel .item .product-thumb .wishlist-btn,
    .carousel-item .product-thumb .wishlist-btn {
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        z-index: 1000 !important;
        margin: 0 !important;
        width: 28px !important;
        height: 28px !important;
        padding: 4px !important;
    }
    
    .product-thumb .wishlist-btn i.fa-heart,
    .image-wrapper .wishlist-btn i.fa-heart {
        font-size: 12px !important;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .wishlist-btn,
    button.wishlist-btn,
    .product-card .wishlist-btn,
    .product-model .wishlist-btn {
        width: 36px !important;
        height: 36px !important;
        top: 8px !important;
        right: 8px !important;
        padding: 6px !important;
    }
    
    .wishlist-btn i.fa-heart,
    button.wishlist-btn i.fa-heart,
    .product-card .wishlist-btn i.fa-heart,
    .product-model .wishlist-btn i.fa-heart {
        font-size: 15px !important;
    }
    
    .gallery-options .wishlist-btn,
    ul.gallery-options li .wishlist-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 5px !important;
    }
    
    .gallery-options .wishlist-btn i.fa-heart,
    ul.gallery-options li .wishlist-btn i.fa-heart {
        font-size: 14px !important;
    }
}




/* Force heart button to be positioned on product IMAGE, not card */
.product-card .product-thumb,
.product-model .product-thumb,
.item .product-thumb,
.search-card-res .product-thumb,
.product-card .image-wrapper,
.product-model .image-wrapper,
.item .image-wrapper,
.search-card-res .image-wrapper,
.product-card .product-card-content,
.product-model .product-card-content,
.item .product-card-content,
.search-card-res .product-card-content {
    position: relative !important;
}

/* Position wishlist button relative to image container */
.product-thumb {
    position: relative !important;
    display: block !important;
}

.product-thumb .wishlist-btn,
.image-wrapper .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 999 !important;
}

/* Ensure image container has proper positioning for all contexts */
.product-card .product-thumb,
.product-model .product-thumb,
.item .product-thumb,
.owl-carousel .item .product-thumb,
.carousel-item .product-thumb,
.search-card-res .product-thumb,
span.product-thumb {
    position: relative !important;
    display: block !important;
}

/* Force absolute positioning for hearts over images - all contexts */
.product-thumb .wishlist-btn,
span.product-thumb .wishlist-btn,
.product-card .product-thumb .wishlist-btn,
.product-model .product-thumb .wishlist-btn,
.item .product-thumb .wishlist-btn,
.owl-carousel .item .product-thumb .wishlist-btn,
.carousel-item .product-thumb .wishlist-btn,
.search-card-res .product-thumb .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 1000 !important;
    margin: 0 !important;
}

/* Toast Notification Styles */
.wishlist-toast {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    min-width: 300px !important;
    max-width: 400px !important;
    
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.wishlist-toast.show {
    opacity: 1 !important;
}



/* Focus states for accessibility - All Contexts */
.wishlist-btn:focus,
button.wishlist-btn:focus,
.product-card .wishlist-btn:focus,
.product-model .wishlist-btn:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
}

/* Prevent button from being affected by product card hover effects */
.product-card:hover .wishlist-btn,
.product-model:hover .wishlist-btn,
.item:hover .wishlist-btn {
    transform: none !important;
}

.product-card:hover .wishlist-btn:hover,
.product-model:hover .wishlist-btn:hover,
.item:hover .wishlist-btn:hover {
    transform: scale(1.1) !important;
}

/* Category Page Specific Overrides */
body[class*="category"] .wishlist-btn,
body[class*="browse"] .wishlist-btn,
.browse .wishlist-btn,
.category .wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Search Results Page Overrides */
.search-results .wishlist-btn,
.search-card-res .wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* Additional overrides for theme conflicts */
.btn.wishlist-btn,
button[class*="btn"].wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    color: inherit !important;
    padding: 8px !important;
    font-size: inherit !important;
    font-weight: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
}

/* Ensure consistent styling regardless of parent element */
* .wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* Force consistency on all pages */
[class*="product"] .wishlist-btn,
[id*="product"] .wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Product Detail Page Gallery Options Specific Styles */
.gallery-options .wishlist-btn,
.dt-sn-box .wishlist-btn,
.ps-relative .wishlist-btn,
ul.gallery-options li .wishlist-btn {
    position: relative !important;
    top: 40px !important;
    right: -349px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Heart icon in gallery options */
.gallery-options .wishlist-btn i.fa-heart,
ul.gallery-options li .wishlist-btn i.fa-heart {
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

/* Force red color for favorited hearts in product detail page - Maximum Specificity */
.gallery-options .wishlist-btn i.fa-heart.text-danger,
ul.gallery-options li .wishlist-btn i.fa-heart.text-danger,
.dt-sn-box .wishlist-btn i.fa-heart.text-danger,
.ps-relative .wishlist-btn i.fa-heart.text-danger,
.product-model.faved .gallery-options .wishlist-btn i.fa-heart,
.product-model.faved ul.gallery-options li .wishlist-btn i.fa-heart,
.dt-sn-box.faved .wishlist-btn i.fa-heart,
button.wishlist-btn i.fa-heart.text-danger {
    color: #dc3545 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force gray color for unfavorited hearts in product detail page */
.gallery-options .wishlist-btn i.fa-heart.text-muted,
ul.gallery-options li .wishlist-btn i.fa-heart.text-muted,
.dt-sn-box .wishlist-btn i.fa-heart.text-muted,
.ps-relative .wishlist-btn i.fa-heart.text-muted {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure product detail page cards get proper faved styling */
.product-model.faved .gallery-options .wishlist-btn,
.product-model.faved .dt-sn-box .wishlist-btn,
.dt-sn-box.faved .wishlist-btn {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

/* Heart beat animation for product detail page */
.gallery-options .wishlist-btn i.fa-heart.text-danger,
ul.gallery-options li .wishlist-btn i.fa-heart.text-danger,
.dt-sn-box .wishlist-btn i.fa-heart.text-danger,
.ps-relative .wishlist-btn i.fa-heart.text-danger {
    animation: heartBeat 0.6s ease-in-out !important;
}

/* Override any theme conflicts for product detail page */
.dt-sn-box .wishlist-btn i,
.gallery-options .wishlist-btn i,
ul.gallery-options li .wishlist-btn i {
    color: inherit !important;
}

.dt-sn-box .wishlist-btn i.text-danger,
.gallery-options .wishlist-btn i.text-danger,
ul.gallery-options li .wishlist-btn i.text-danger {
    color: #dc3545 !important;
}

.dt-sn-box .wishlist-btn i.text-muted,
.gallery-options .wishlist-btn i.text-muted,
ul.gallery-options li .wishlist-btn i.text-muted {
}

/* ===================================================================
   MOBILE PRODUCT CARD LAYOUT FIX
   Override search-card-res horizontal layout to maintain desktop-like vertical layout
   ================================================================= */

@media (max-width: 768px) {
    /* Only apply these changes to carousel items, not category page grid items */
    .search-card-res .item .product-card,
    .search-card-res.owl-carousel .product-card {
        border-radius: 16px !important;
        margin: 1px !important;
        padding-bottom: 2rem !important;
        box-shadow: 0 2px 6px 0 rgba(51, 73, 94, 0.1) !important;
        background-color: #fff !important;
        height: 450px !important;
        min-height: 450px !important;
        width: 98% !important;
        max-width: 300px !important;
        margin-bottom: 1px !important;
        transition: 0.2s ease-in-out !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .search-card-res .item .product-card:hover,
    .search-card-res.owl-carousel .product-card:hover {
        box-shadow: 0 2px 6px 0 rgba(51, 73, 94, 0.15) !important;
    }
    
    /* Restore vertical layout for product thumb */
    .search-card-res .item .product-card .product-thumb,
    .search-card-res.owl-carousel .product-card .product-thumb {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        float: none !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Restore vertical layout for product body */
    .search-card-res .item .product-card .product-card-body,
    .search-card-res.owl-carousel .product-card .product-card-body {
        padding: 0 1.25rem !important;
        display: block !important;
        width: 100% !important;
        padding-right: 1.25rem !important;
        float: none !important;
    }
    
    /* Maintain proper product title styling */
    .search-card-res .item .product-card .product-title,
    .search-card-res.owl-carousel .product-card .product-title {
        margin: 0.75rem 0 1rem !important;
        font-size: 0.9rem !important;
        font-weight: bold !important;
        height: 4.5rem !important;
        overflow: hidden !important;
        position: relative !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Restore product image styling */
    .search-card-res .item .product-card .product-thumb > img,
    .search-card-res.owl-carousel .product-card .product-thumb > img {
        display: block !important;
        max-width: 80% !important;
        margin: 0 auto !important;
    }
    
    /* Maintain hover effects */
    .search-card-res .item .product-card .product-thumb::before,
    .search-card-res.owl-carousel .product-card .product-thumb::before {
        background-color: #fff !important;
        opacity: 0.5 !important;
        top: 0 !important;
        bottom: 0 !important;
        content: '' !important;
        left: -130% !important;
        position: absolute !important;
        width: 200px !important;
        box-shadow: 0 0 100px #fff !important;
        -webkit-transform: skew(-20deg) !important;
        transform: skew(-20deg) !important;
        -webkit-transition: all 0.6s ease !important;
        transition: all 0.6s ease !important;
    }
    
    .search-card-res .item .product-card:hover .product-thumb::before,
    .search-card-res.owl-carousel .product-card:hover .product-thumb::before {
        left: 200% !important;
    }
    
    /* Ensure proper spacing between cards in carousel */
    .search-card-res .item {
        margin-bottom: 0 !important;
        padding: 0 0px !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix card heights to match desktop proportions */
    .search-card-res .item .product-card .product-card-content,
    .search-card-res.owl-carousel .product-card .product-card-content {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    /* Ensure proper spacing in card body */
    .search-card-res .item .product-card .product-card-body,
    .search-card-res.owl-carousel .product-card .product-card-body {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Maintain product price styling */
    .search-card-res .item .product-card .product-price,
    .search-card-res.owl-carousel .product-card .product-price {
        text-align: center !important;
        display: block !important;
        color: #404040 !important;
        margin-top: 1.1rem !important;
        font-weight: bold !important;
        font-size: 1rem !important;
        padding-top: 0.25rem !important;
        margin-bottom: 0.5rem !important;
        position: relative !important;
        z-index: 10 !important;
        line-height: 1.4 !important;
    }
    
    /* Fix product footer positioning */
    .search-card-res .item .product-card .product-card-footer,
    .search-card-res.owl-carousel .product-card .product-card-footer {
        margin-top: auto !important;
        padding-top: 1rem !important;
    }
    
    /* Ensure sale badges don't overlap */
    .search-card-res .item .product-card .product-sale,
    .search-card-res.owl-carousel .product-card .product-sale {
        margin-top: -2.75rem !important;
        margin-bottom: 0.25rem !important;
        display: block !important;
        clear: both !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Fix discount badge positioning */
    .search-card-res .item .product-card .discount-badge,
    .search-card-res.owl-carousel .product-card .discount-badge {
        margin-bottom: 0.25rem !important;
        display: block !important;
        clear: both !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Mobile price layout to match desktop exactly */
    .search-card-res .item .product-card .product-price .discount-percentage,
    .search-card-res.owl-carousel .product-card .product-price .discount-percentage {
        display: inline-block !important;
        background-color: #ffc107 !important;
        color: #000 !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        font-weight: bold !important;
        margin-right: 5px !important;
        vertical-align: middle !important;
    }
    
    .search-card-res .item .product-card .product-price .original-price,
    .search-card-res.owl-carousel .product-card .product-price .original-price {
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 12px !important;
        margin-right: 5px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .search-card-res .item .product-card .product-price .current-price,
    .search-card-res.owl-carousel .product-card .product-price .current-price {
        color: #000 !important;
        font-weight: bold !important;
        font-size: 14px !important;
        display: block !important;
        margin-top: 2px !important;
    }
    
    /* Ensure all price related elements are visible */
    .search-card-res .item .product-card .product-price *,
    .search-card-res .item .product-card .product-sale *,
    .search-card-res .item .product-card .discount-badge *,
    .search-card-res .item .product-card .price,
    .search-card-res .item .product-card .sale-price,
    .search-card-res .item .product-card .regular-price,
    .search-card-res .item .product-card .flash-sale,
    .search-card-res.owl-carousel .product-card .product-price *,
    .search-card-res.owl-carousel .product-card .product-sale *,
    .search-card-res.owl-carousel .product-card .discount-badge *,
    .search-card-res.owl-carousel .product-card .price,
    .search-card-res.owl-carousel .product-card .sale-price,
    .search-card-res.owl-carousel .product-card .regular-price,
    .search-card-res.owl-carousel .product-card .flash-sale {
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Specific styling for price containers */
    .search-card-res .item .product-card .product-price-container,
    .search-card-res .item .product-card .price-container,
    .search-card-res.owl-carousel .product-card .product-price-container,
    .search-card-res.owl-carousel .product-card .price-container {
        display: block !important;
        text-align: center !important;
        margin: 0.5rem 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force proper display of price structure on mobile */
    .search-card-res .item .product-card .price-section,
    .search-card-res.owl-carousel .product-card .price-section {
        display: block !important;
        text-align: center !important;
        padding: 0.5rem !important;
    }
    
    .search-card-res .item .product-card .price-section .badge,
    .search-card-res.owl-carousel .product-card .price-section .badge {
        background-color: #ffc107 !important;
        color: #000 !important;
        font-size: 11px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        display: inline-block !important;
        margin-right: 5px !important;
    }
    
    .search-card-res .item .product-card .price-section .text-muted,
    .search-card-res.owl-carousel .product-card .price-section .text-muted {
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 12px !important;
        margin-right: 5px !important;
    }
    
    .search-card-res .item .product-card .price-section .fw-600,
    .search-card-res.owl-carousel .product-card .price-section .fw-600 {
        font-weight: bold !important;
        color: #000 !important;
        font-size: 14px !important;
        display: block !important;
        margin-top: 2px !important;
    }
    
    /* Ensure wishlist button positioning works correctly */
    .search-card-res .item .product-card .wishlist-btn,
    .search-card-res.owl-carousel .product-card .wishlist-btn {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 999 !important;
        width: 30px !important;
        height: 30px !important;
        padding: 5px !important;
    }
    
    .search-card-res .item .product-card .wishlist-btn i.fa-heart,
    .search-card-res.owl-carousel .product-card .wishlist-btn i.fa-heart {
        font-size: 14px !important;
    }
}

/* Additional fixes for smaller mobile screens */
@media (max-width: 480px) {
    .search-card-res .item .product-card,
    .search-card-res.owl-carousel .product-card {
        margin: 0px !important;
        min-height: 377px !important;
        height: 416px !important;
        width: 99% !important;
        max-width: 280px !important;
    }
    
    .search-card-res .item {
        padding: 0 0px !important;
        margin: 0 !important;
    }
    
    /* Override any owl-carousel spacing */
    .search-card-res.owl-carousel .owl-item {
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
    
    .search-card-res .owl-stage {
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
    }
    
    .search-card-res .item .product-card .product-price,
    .search-card-res.owl-carousel .product-card .product-price {
        font-size: 1rem !important;
    }
    
    .search-card-res .item .product-card .product-title,
    .search-card-res.owl-carousel .product-card .product-title {
        height: 4rem !important;
        margin-bottom: 1rem !important;
    }
}

/* ==================================================
   FLASH SALE TAGS & THUNDER ICON STYLES
   ================================================== */

/* Product Card Container - Enable overflow for extending elements */
.product-card,
.product-model {
    position: relative;
    overflow: visible !important;
}

/* Thunder Icon - Positioned outside card boundaries */
.thunder-icon-wrapper {
    position: absolute;
    transform: rotate(-347deg);
    top: -9px;
    left: -30px;
    z-index: 7;
    pointer-events: none;
    width: 50px;
    height: 60px;
    overflow: visible;
}

.thunder-icon-wrapper span {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 40px;
    color: var(--flash-color, #FFFF00) !important;
    z-index: 9999;
    line-height: 1;
    display: block !important;
    font-weight: bold;
    transform: rotate(-10deg);
}

/* Flash Sale Container */
.flash-sale-container {
    position: absolute;
    top: -12px;
    left: -10px;
    z-index: 1000;
    overflow: visible;
}

/* Flash Sale White Section - "FLASH SALE" text */
.flash-sale-white {
    position: relative;
    z-index: 999;
    background: #FFFFFF;
    border-radius: 8px 0px 8px 0px;
    width: 75px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 12px;
    margin-bottom: 2px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flash-sale-white span {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Flash Sale Red Section - Percentage display */
.flash-sale-red {
    position: relative;
    top: -5px;
    background: #EB2802;
    border-radius: 3.69px 0px 21.52px 0px;
    width: 72px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    margin-left: 10px;
}

.flash-sale-red div {
    display: flex;
    align-items: center;
    gap: 3px;
}

.flash-sale-red span:first-child {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.flash-sale-red span:last-child {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* Cart Icon Overlay */
.cart-icon-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 8;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cart-icon-overlay img {
    width: 16px;
    height: 16px;
}

/* Delivery Image - Fixed position above separator line */
.delivery-image {
    position: absolute;
    bottom: 0;
    left: -9px;
    right: 0;
    margin: 0;
    padding: 8px 24px;
    display: block;
    text-align: left;
    width: 300px;
    background: transparent;
    z-index: 5;
}

.delivery-image img {
    height: 18px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Category Tag */
.category-tag {
    margin-top: -25px;
    margin-bottom: 8px;
    padding: 2px 0;
    padding-left: 16px;
    text-align: left;
    display: block;
    width: 100%;
}

.category-tag span {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Product Card Content - Ensure proper layering and space for delivery image */
.product-card-content {
    position: relative;
    overflow: visible !important;
    z-index: 1;
    padding-bottom: 32px;
}

/* ==================================================
   MOBILE RESPONSIVENESS - FLASH SALE & THUNDER ICON
   ================================================== */

@media (max-width: 768px) {
    /* CATEGORY/BROWSE PAGES ONLY - Target specific container structure */
    /* This targets ONLY the product cards in category/browse pages */
    .search-amazing-tab .ah-tab-content-wrapper .product-card,
    .search-amazing-tab .ah-tab-content-wrapper .product-model {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        min-height: 520px !important;
        max-width: 85% !important;
        width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
    }
    
    /* Product card content - ensure proper flex layout with space for delivery image */
    .search-amazing-tab .ah-tab-content-wrapper .product-card-content {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        overflow: visible !important;
        position: relative !important;
        height: 100% !important;
        padding-bottom: 30px !important;
    }
    
    /* Ripple link - maintain flex structure */
    .search-amazing-tab .ah-tab-content-wrapper .ripple {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        text-decoration: none !important;
        color: inherit !important;
        height: 100% !important;
    }
    
    /* Image section - fixed height with relative positioning for overlays */
    .search-amazing-tab .ah-tab-content-wrapper .product-thumb {
        position: relative !important;
        height: 320px !important;
        width: 100% !important;
        overflow: visible !important;
        border-radius: 12px 12px 0 0 !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-thumb img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        background: #fff !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .image-wrapper {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px 12px 0 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Product body - title and category section */
    .search-amazing-tab .ah-tab-content-wrapper .product-card-body {
        padding: 12px 16px 8px 16px !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-height: 45px !important;
    }
    
    /* Product title - ensure visibility */
    .search-amazing-tab .ah-tab-content-wrapper .product-title {
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        display: block !important;
        width: 329px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-title span {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #333 !important;
        line-height: 1.3 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    /* Delivery image - fixed position above separator line */
    .search-amazing-tab .ah-tab-content-wrapper .delivery-image {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 8px 24px !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        background: transparent !important;
        z-index: 5 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .delivery-image img {
        height: 14px !important;
        width: auto !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    /* Category tag - positioned above price section */
    .search-amazing-tab .ah-tab-content-wrapper .category-tag {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        padding: 4px 0 !important;
        padding-left: 24px !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        order: 1 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag span {
        font-size: 10px !important;
        color: #666 !important;
        text-transform: uppercase !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag a {
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag a:hover span {
        color: #007bff !important;
    }
    
    /* Product footer - price section at bottom with proper spacing */
    .search-amazing-tab .ah-tab-content-wrapper .product-card-footer {
        margin-top: 4px !important;
        padding: 8px 16px 16px 16px !important;
        border-top: 1px solid #f0f0f0 !important;
        background: #fff !important;
        border-radius: 0 0 12px 12px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        order: 2 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-footer.row {
        margin: 0 !important;
        text-align: center !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-footer .col-12 {
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* Product price styling - centered */
    .search-amazing-tab .ah-tab-content-wrapper .product-price {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #000 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-sale {
        margin-bottom: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .discount-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-old-price {
        font-size: 12px !important;
        color: #999 !important;
    }
    
    /* Thunder Icon - positioned to extend outside card */
    .search-amazing-tab .ah-tab-content-wrapper .thunder-icon-wrapper {
        position: absolute !important;
        top: -15px !important;
        left: -12px !important;
        width: 40px !important;
        height: 50px !important;
        transform: rotate(-347deg) !important;
        z-index: 9999 !important;
        pointer-events: none !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .thunder-icon-wrapper span {
        font-size: 35px !important;
        color: var(--flash-color, #FFFF00) !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
        filter: drop-shadow(0 0 3px rgba(255,255,0,0.4)) !important;
    }
    
    /* Flash Sale Container - positioned INSIDE image area */
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-container {
        position: absolute !important;
        top: 4px !important;
        left: 4px !important;
        z-index: 14 !important;
    }
    
    /* Flash Sale White Section */
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-white {
        width: 50px !important;
        height: 10px !important;
        margin-left: 18px !important;
        border-radius: 4px 0px 4px 0px !important;
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 1px !important;
        position: relative !important;
        z-index: 16 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-white span {
        font-size: 6px !important;
        letter-spacing: 0.1px !important;
        color: #000000 !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 800 !important;
        font-style: italic !important;
    }
    
    /* Flash Sale Red Section */
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red {
        width: 48px !important;
        height: 18px !important;
        margin-left: 16px !important;
        top: -2px !important;
        background: #EB2802 !important;
        border-radius: 2px 0px 16px 0px !important;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 15 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red div {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red span:first-child {
        font-size: 9px !important;
        color: #FFFFFF !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 800 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red span:last-child {
        font-size: 7px !important;
        color: #FFFFFF !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 600 !important;
    }
    
    /* Cart Icon */
    .search-amazing-tab .ah-tab-content-wrapper .cart-icon-overlay {
        width: 24px !important;
        height: 24px !important;
        bottom: 6px !important;
        right: 6px !important;
        position: absolute !important;
        z-index: 8 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .cart-icon-overlay img {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Wishlist Button */
    .search-amazing-tab .ah-tab-content-wrapper .wishlist-btn {
        width: 28px !important;
        height: 28px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .wishlist-btn i.fa-heart {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments for category pages only */
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card,
    .search-amazing-tab .ah-tab-content-wrapper .product-model {
        margin-bottom: 16px !important;
        border-radius: 10px !important;
        min-height: 440px !important;
        max-width: 90% !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-content {
        padding-bottom: 26px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-thumb {
        height: 280px !important;
        border-radius: 10px 10px 0 0 !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px !important;
        overflow: visible !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-thumb img {
        border-radius: 8px !important;
        object-fit: contain !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        background: #fff !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-body {
        padding: 10px 12px 6px 12px !important;
        min-height: 40px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-footer {
        padding: 6px 12px 12px 12px !important;
        border-radius: 0 0 10px 10px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-title span {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .delivery-image {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 6px 18px !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        background: transparent !important;
        z-index: 5 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .delivery-image img {
        height: 12px !important;
        width: auto !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-price {
        font-size: 14px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        padding: 3px 0 !important;
        padding-left: 18px !important;
        display: block !important;
        text-align: left !important;
        width: 100% !important;
        order: 1 !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag span {
        font-size: 8px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag a {
        text-decoration: none !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .category-tag a:hover span {
        color: #007bff !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .product-card-footer {
        padding: 6px 12px 12px 12px !important;
        border-radius: 0 0 10px 10px !important;
        order: 2 !important;
    }
    
    /* Thunder Icon Mobile - positioned to extend outside card */
    .search-amazing-tab .ah-tab-content-wrapper .thunder-icon-wrapper {
        top: 3px !important;
        left: -20px !important;
        width: 35px !important;
        height: 45px !important;
        z-index: 9999 !important;
        pointer-events: none !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .thunder-icon-wrapper span {
        font-size: 28px !important;
        text-shadow: 2px 2px 3px rgba(0,0,0,0.4) !important;
        filter: drop-shadow(0 0 2px rgba(255,255,0,0.3)) !important;
    }
    
    /* Flash Sale Extra Small - positioned inside image */
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-container {
        top: -15px !important;
        left: -12px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-white {
        width: 59px !important;
        height: 15px !important;
        margin-left: 14px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-white span {
        font-size: 8px !important;
        letter-spacing: 0px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red {
        width: 60px !important;
        height: 27px !important;
        margin-left: 12px !important;
        top: -1px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red span:first-child {
        font-size: 12px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .flash-sale-red span:last-child {
        font-size: 10px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .cart-icon-overlay {
        width: 51px !important;
        height: 47px !important;
        bottom: 4px !important;
        right: 4px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .cart-icon-overlay img {
        left: 0px;
        width: 40px !important;
        height: 33px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .wishlist-btn {
        width: 24px !important;
        height: 24px !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    .search-amazing-tab .ah-tab-content-wrapper .wishlist-btn i.fa-heart {
        font-size: 12px !important;
    }
}

/* iPhone 15 Pro Max and 12 Pro Max specific fixes */
@media only screen and (max-width: 430px) and (min-width: 415px) {
    .product-carousel-2>.item {
        min-width: 77%;
    }
    
     .search-card-res .item {
        padding: 0px 21px !important;
        margin: 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    .product-carousel-2>.item {
        min-width: 77%;
    }
    
     .search-card-res .item {
        padding: 0px 21px !important;
        margin: 0 !important;
    }
}

/* Mobile-specific dirham symbol alignment fix - CATEGORY PAGES ONLY */
@media (max-width: 768px) {
    .search-amazing-tab .ah-tab-content-wrapper .product-price img[src*="dirham-symbol0.svg"] {
        vertical-align: -3px !important;
    }
}

@media (max-width: 480px) {
    .search-amazing-tab .ah-tab-content-wrapper .product-price img[src*="dirham-symbol0.svg"] {
        vertical-align: -4px !important;
    }
}

/* Fix app-bar position when header is in fixed-topbar state (scroll) */
header.main-header.fixed-topbar ~ main .app-bar,
header.fixed-topbar ~ main .app-bar {
    top: 55px !important; /* align directly under compressed header */
}

/* Ensure default position remains */
.app-bar {
    top: 88px !important; /* default header height on load */
}

/* Adjust app-bar when header becomes fixed-topbar */
header.main-header.fixed-topbar ~ .wrapper .app-bar,
header.fixed-topbar ~ .wrapper .app-bar {
    top: 25px !important; /* align directly under compressed header */
}

/* Product Card Wishlist styles */
.product-card .wishlist-btn i.fa-heart,
.product-model .wishlist-btn i.fa-heart {
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
    text-stroke: 1px rgba(0, 0, 0, 0.6);
    font-size: 18px !important;
}

/* Favorited state */
.product-card .wishlist-btn i.fa-heart.text-danger,
.product-model .wishlist-btn i.fa-heart.text-danger,
.product-card.faved .wishlist-btn i.fa-heart,
.product-model.faved .wishlist-btn i.fa-heart {
    color: red !important;
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

/* Hover effect */
.product-card .wishlist-btn:hover i.fa-heart,
.product-model .wishlist-btn:hover i.fa-heart {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Animation for heart icon when clicked */
@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-beat {
    animation: heartbeat 0.8s ease-in-out;
}

/* Wishlist heart icon styles - Global */
.fa-heart {
    color: transparent !important;
    -webkit-text-stroke: 1px #333 !important;
    text-stroke: 1px #333 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    font-size: 20px !important;
}

/* Favorited state */
.faved .fa-heart,
.fa-heart.text-danger,
.fa-heart.faved {
    color: red !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* Product card specific styles */
.product-card .wishlist-btn,
.product-model .wishlist-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 34px !important;
    height: 34px !important;
    padding: 8px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

/* Hover effect */
.wishlist-btn:hover .fa-heart {
    transform: scale(1.2) !important;
}

/* Override any other heart colors */
.fa-heart[style*="color"],
i.fa-heart[style*="color"] {
    color: transparent !important;
}

.faved .fa-heart[style*="color"],
.fa-heart.text-danger[style*="color"] {
    color: red !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

/* Checkout page header alignment */
.checkout-header {
    position: relative;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

.checkout-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

/* Ensure consistent padding for checkout sections */
.dt-sn-box .checkout-header {
    margin: 0 !important;
    padding: 0 0 15px 0 !important;
}

/* Fix cart summary section specifically */
.col-xl-4 .dt-sn-box,
.col-lg-5 .dt-sn-box {
    padding: 24px !important;
}

.col-xl-4 .dt-sn-box .checkout-header,
.col-lg-5 .dt-sn-box .checkout-header {
    margin: -8px 0 20px 0 !important;
    padding: 0 0 15px 0 !important;
}

/* Add spacing between header line and cart content */
.cart-summary {
    margin-top: 20px !important;
}

.cart-summary .selected-products {
    margin-top: 0 !important;
} 


.owl-carousel.owl-drag .owl-item {
     height: 460px !important;
}

.btn-cm {
    top: 14px;
}


