/*
================================================================================
MITRAMOBILE WOO PRODUCT CAROUSEL - MODULAR CSS STRUCTURE
================================================================================
Version: 2.0
Last Updated: 2024
Organization: Modular sections for better maintainability and debugging

TABLE OF CONTENTS:
1. BASE STYLES & VARIABLES
2. CAROUSEL CONTAINER & LAYOUT
3. NAVIGATION CONTROLS
4. MODE: NORMAL (Default)
5. MODE: PROMO (Compact)
6. MODE: FLASH SALE (Special)
7. FLASH SALE ELEMENTS & SALE SLIDER
8. PROMO LAINNYA SECTION
9. ANIMATIONS & TRANSITIONS
10. RESPONSIVE DESIGN
11. UTILITIES & OVERRIDES
================================================================================
*/

/* ============================================================================
   1. BASE STYLES & VARIABLES
   ============================================================================ */
.mitramobile-woo-product-carousel {
    --swiper-slides-to-display: 6;
    --swiper-slides-gap: 20px; /* Restored proper spacing for multiple products */
    --primary-color: #007cba;
    --primary-hover: #005a87;
    --flash-color: #e74c3c;
    --sale-color: #ff6b35;
    --border-radius: 8px;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    position: relative;
    width: 100%;
    overflow: hidden;
    
    /* Ensure touch events work properly */
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

.mitramobile-woo-product-carousel .swiper-container,
.mitramobile-woo-product-carousel.swiper {
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

.mitramobile-woo-product-carousel .swiper-wrapper {
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

.mitramobile-woo-product-carousel .swiper-slide {
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
}

/* ============================================================================
   2. CAROUSEL CONTAINER & LAYOUT
   ============================================================================ */
.mitramobile-woo-product-carousel .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-duration: 0.6s; /* Smoother transition duration */
}

.mitramobile-woo-product-carousel .swiper-slide {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease,
                width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    will-change: transform; /* Optimize for animations */
}

/* Smooth slide transitions */
.mitramobile-woo-product-carousel.swiper-container-horizontal > .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced smooth scrolling for touch devices */
.mitramobile-woo-product-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Smooth slide transition states */
.mitramobile-woo-product-carousel.slide-transitioning .swiper-slide {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Prevent jerky movements during navigation */
.mitramobile-woo-product-carousel .swiper-slide-active,
.mitramobile-woo-product-carousel .swiper-slide-next,
.mitramobile-woo-product-carousel .swiper-slide-prev {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Desktop slide width calculation - Let Swiper handle width automatically */
@media (min-width: 1024px) {
    .mitramobile-woo-product-carousel .swiper-slide {
        width: auto !important; /* Let Swiper control the width */
        margin-right: 0; /* Remove any default margin */
    }
}

/* Mobile/tablet - let Swiper handle width */
@media (max-width: 1023px) {
    .mitramobile-woo-product-carousel .swiper-slide {
        width: auto;
        margin-right: 0; /* Remove any default margin */
    }
}

/* ============================================================================
   3. NAVIGATION CONTROLS
   ============================================================================ */
.mitramobile-woo-product-carousel .swiper-button-next,
.mitramobile-woo-product-carousel .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
    transition: all 0.3s var(--transition-smooth);
    font-size: 20px;
    font-weight: bold;
    pointer-events: auto;
    user-select: none;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.mitramobile-woo-product-carousel .swiper-button-next {
    right: 5px;
}

.mitramobile-woo-product-carousel .swiper-button-prev {
    left: 5px;
}

.mitramobile-woo-product-carousel .swiper-button-next:hover,
.mitramobile-woo-product-carousel .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
    border-color: var(--primary-hover);
    animation: none;
}

.mitramobile-woo-product-carousel .swiper-button-next:active,
.mitramobile-woo-product-carousel .swiper-button-prev:active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.mitramobile-woo-product-carousel .swiper-button-next:focus,
.mitramobile-woo-product-carousel .swiper-button-prev:focus {
    outline: 3px solid rgba(0, 124, 186, 0.5);
    outline-offset: 2px;
    animation: none;
}

.mitramobile-woo-product-carousel .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    animation: none;
    background: rgba(200, 200, 200, 0.8);
    border-color: #ccc;
    color: #999;
}

.mitramobile-woo-product-carousel .swiper-button-next::after,
.mitramobile-woo-product-carousel .swiper-button-prev::after {
    font-family: swiper-icons;
    font-size: 22px;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    font-weight: 900;
}

.mitramobile-woo-product-carousel .swiper-button-next::after {
    content: 'next';
}

.mitramobile-woo-product-carousel .swiper-button-prev::after {
    content: 'prev';
}

/* ============================================================================
   4. MODE: NORMAL (Default Product Display)
   ============================================================================ */
/* Override dark theme conflicts */
.mitramobile-woo-product-carousel,
.mitramobile-woo-product-carousel *,
.mitramobile-woo-product-carousel .swiper-slide,
.mitramobile-woo-product-carousel .mitramobile-product-item {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Ensure product items are visible against dark themes */
.mitramobile-woo-product-carousel .mitramobile-product-item {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 300px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s var(--transition-smooth);
}

.mitramobile-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mitramobile-product-image {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
}

.mitramobile-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Changed from cover to contain for better proportions */
    object-position: center !important; /* Center the image */
    display: block !important;
    background: #f8f9fa !important; /* Light background for better contrast */
    border-radius: 4px !important; /* Subtle rounded corners */
}

.mitramobile-product-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    gap: 0 !important;
}

.mitramobile-product-title {
    font-size: 13px;
    line-height: 1;
    margin-bottom: 0 !important;
    color: #333 !important;
    display: block !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 2 !important; /* keep above overlays/buttons */
}
.mitramobile-product-title,
.mitramobile-product-title a {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: #333 !important; /* ensure text visible against white bg */
}

/* Universal two-line clamp for product titles in carousel (all modes) */
.mitramobile-woo-product-carousel .mitramobile-product-title,
.mitramobile-woo-product-carousel .mitramobile-product-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Clamp titles coming from Elementor Loop Template and WooCommerce markup inside carousel */
.mitramobile-woo-product-carousel .woocommerce-loop-product__title,
.mitramobile-woo-product-carousel .woocommerce-loop-product__title a,
.mitramobile-woo-product-carousel .elementor-loop-item .elementor-heading-title,
.mitramobile-woo-product-carousel .elementor-loop-item .elementor-heading-title a,
.mitramobile-woo-product-carousel .mitramobile-product-content h1,
.mitramobile-woo-product-carousel .mitramobile-product-content h1 a,
.mitramobile-woo-product-carousel .mitramobile-product-content h2,
.mitramobile-woo-product-carousel .mitramobile-product-content h2 a,
.mitramobile-woo-product-carousel .mitramobile-product-content h3,
.mitramobile-woo-product-carousel .mitramobile-product-content h3 a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Also support legacy wrapper class just in case */
.mitramobile-product-carousel .mitramobile-product-title,
.mitramobile-product-carousel .mitramobile-product-title a,
.mitramobile-product-carousel .woocommerce-loop-product__title,
.mitramobile-product-carousel .woocommerce-loop-product__title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
}

/* Highest-specificity clamp to win over any theme/plugin styles */
html body .mitramobile-woo-product-carousel .mitramobile-product-content .mitramobile-product-title,
html body .mitramobile-woo-product-carousel .mitramobile-product-content .mitramobile-product-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
}

.mitramobile-product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin-top: 0;
    display: block !important;
    visibility: visible !important;
}

.mitramobile-installment {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.mitramobile-badges-row {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.badge {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 600;
}
.badge-free-shipping { background: #19c37d; color: #fff; }
.badge-discount { background: #e74c3c; color: #fff; }

/* Ensure price is never clipped in NORMAL mode */
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-price {
    padding-top: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    order: 2;
    text-align: left !important;
    margin-top: 0 !important;
    letter-spacing: 0 !important;
}
.mitramobile-woo-product-carousel.mode-normal .mitramobile-price-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title {
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
}
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: 2.4em !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.mitramobile-woo-product-carousel.mode-normal .mitramobile-price-wrapper .discount-badge-small {
    color: #e74c3c !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 2px !important;
}

.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-rating {
    margin: 0 !important;
    order: 3;
}

.mitramobile-woo-product-carousel.mode-normal .mitramobile-installment {
    margin-top: 6px !important;
}

/* ============================================================================
   5. MODE: PROMO (Compact Display) - PERFECTED VERSION
   ============================================================================ */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
    /* CLEAN CONTAINER STYLING - NO FRAMES OR SHADOWS */
    width: 170px !important;
    height: 220px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    
    /* PERFECT LAYOUT SYSTEM */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    
    /* CLEAN WHITE BACKGROUND - NO BORDERS OR SHADOWS */
    border-radius: 0 !important;
    padding: 8px !important;
    margin: 0 4px !important;
    box-shadow: none !important;
    background: white !important;
    overflow: hidden !important;
    position: relative !important;
    border: none !important;
    transition: none !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
    /* CLEAN IMAGE STYLING - NO SHADOWS OR BORDERS */
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    
    /* CLEAN NATURAL STYLING - NO FRAMES */
    border-radius: 0 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    
    /* LAYOUT CONTROL */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image img {
    /* NATURAL IMAGE STYLING LIKE REFERENCE 2 */
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border-radius: 6px !important;
    
    /* NO ARTIFICIAL STYLING */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: transform 0.3s ease !important; /* Smooth hover effect */
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image:hover img {
    transform: scale(1.05) !important; /* Subtle zoom on hover */
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
    /* OPTIMIZED CONTENT CONTAINER */
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    height: auto !important; /* Allow auto height to accommodate content */
    max-height: none !important; /* Remove height restriction */
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
    /* OPTIMIZED TITLE STYLING FOR LARGER IMAGE */
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    min-height: 2.6em !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    flex-shrink: 0 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
    /* ELEGANT PRICE STYLING */
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* REMOVE CUTOFF - Allow prices to be fully visible */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after {
    display: none !important;
}

/* PERFECT ELIMINATION - Remove all unwanted elements */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-rating,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-sold,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-add-to-cart,
.mitramobile-woo-product-carousel.mode-promo .product-meta,
.mitramobile-woo-product-carousel.mode-promo .product-excerpt,
.mitramobile-woo-product-carousel.mode-promo .product-categories,
.mitramobile-woo-product-carousel.mode-promo .product-tags,
.mitramobile-woo-product-carousel.mode-promo .woocommerce-product-rating,
.mitramobile-woo-product-carousel.mode-promo .star-rating,
.mitramobile-woo-product-carousel.mode-promo .price del,
.mitramobile-woo-product-carousel.mode-promo .price ins,
.mitramobile-woo-product-carousel.mode-promo .price .amount:not(:first-child),
.mitramobile-woo-product-carousel.mode-promo .wc-forward {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* SUBTLE NATURAL HOVER EFFECT LIKE REFERENCE 2 */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s var(--transition-smooth) !important;
}

/* ============================================================================
   6. MODE: FLASH SALE (Special Promotions) - 7 Products Layout
   ============================================================================ */

/* Flash Sale Mode - 7 Products Layout (Identical to Promo Layout) */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item {
    /* IDENTICAL CONTAINER STYLING TO PROMO MODE */
    width: 170px !important;
    height: 220px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    
    /* PERFECT LAYOUT SYSTEM */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    
    /* NATURAL CONTAINER STYLING */
    border-radius: 8px !important;
    padding: 8px !important;
    margin: 0 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    background: white !important;
    overflow: hidden !important;
    position: relative !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image {
    /* IDENTICAL IMAGE STYLING TO PROMO MODE */
    width: 100% !important;
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
    
    /* CLEAN NATURAL STYLING */
    border-radius: 6px !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    
    /* LAYOUT CONTROL */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image img,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-content,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-content {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title {
    /* IDENTICAL TITLE STYLING TO PROMO MODE */
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #333 !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    min-height: 2.6em !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    flex-shrink: 0 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price {
    /* IDENTICAL PRICE STYLING TO PROMO MODE */
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* REMOVE CUTOFF - Allow prices to be fully visible */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-content::after,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-content::after {
    display: none !important;
}

/* PERFECT ELIMINATION - Remove all unwanted elements */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-rating,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-sold,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-add-to-cart,
.mitramobile-woo-product-carousel.mode-flash-sale .product-meta,
.mitramobile-woo-product-carousel.mode-flash-sale .product-excerpt,
.mitramobile-woo-product-carousel.mode-flash-sale .product-categories,
.mitramobile-woo-product-carousel.mode-flash-sale .product-tags,
.mitramobile-woo-product-carousel.mode-flash-sale .woocommerce-product-rating,
.mitramobile-woo-product-carousel.mode-flash-sale .star-rating,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-rating,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-sold,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-add-to-cart,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .product-meta,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .product-excerpt,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .product-categories,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .product-tags,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .woocommerce-product-rating,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .star-rating {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Ensure all price elements are visible in flash-sale mode */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price *,
.mitramobile-woo-product-carousel.mode-flash-sale .price,
.mitramobile-woo-product-carousel.mode-flash-sale .amount,
.mitramobile-woo-product-carousel.mode-flash-sale .woocommerce-Price-amount,
.mitramobile-woo-product-carousel.mode-flash-sale .woocommerce-Price-currencySymbol,
.mitramobile-woo-product-carousel.mode-flash-sale ins,
.mitramobile-woo-product-carousel.mode-flash-sale del,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price *,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .price,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .amount,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .woocommerce-Price-amount,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .woocommerce-Price-currencySymbol,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] ins,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] del {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    font-weight: bold !important;
    color: #e74c3c !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .woocommerce-Price-amount,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .woocommerce-Price-amount {
    display: inline !important;
}

/* Specific styling for discount prices in flash-sale mode */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .price-horizontal-container,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .price-horizontal-container {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .price-row,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .price-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1 !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .price-original,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .price-original {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    color: #9e9e9e !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .price-sale,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .price-sale {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .price-regular,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .price-regular {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-price-wrapper .discount-badge-small,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-price-wrapper .discount-badge-small {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ff4444 !important;
    color: white !important;
    font-size: 7px !important;
    font-weight: 600 !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hover effect for flash-sale mode */
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item:hover,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s var(--transition-smooth) !important;
}

/* Responsive adjustments for flash-sale mode */
@media (max-width: 1199px) and (min-width: 992px) {
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item {
        width: 135px !important;
        height: 180px !important;
        min-width: 135px !important;
        max-width: 135px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item {
        width: 120px !important;
        height: 110px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        padding: 5px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title {
        font-size: 9px !important;
        height: 20px !important;
        max-height: 20px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price {
        font-size: 10px !important;
        height: 12px !important;
        max-height: 12px !important;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item {
        width: 110px !important;
        height: 105px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        min-height: 105px !important;
        max-height: 105px !important;
        padding: 4px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title {
        font-size: 8px !important;
        height: 18px !important;
        max-height: 18px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price {
        font-size: 9px !important;
        height: 11px !important;
        max-height: 11px !important;
    }
}

@media (max-width: 480px) {
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-item {
        width: 95px !important;
        height: 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        min-height: 95px !important;
        max-height: 95px !important;
        padding: 3px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-image {
        height: 45px !important;
        min-height: 45px !important;
        max-height: 45px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title {
        font-size: 7px !important;
        height: 16px !important;
        max-height: 16px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price,
    .mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-price {
        font-size: 8px !important;
        height: 10px !important;
        max-height: 10px !important;
    }
}
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item {
    min-width: 120px;
    max-width: 140px;
    height: 160px;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    position: relative;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title {
    font-size: 11px;
    line-height: 1.3;
    height: auto;
    overflow: hidden;
    margin-bottom: 0;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--flash-color);
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-image {
    height: 85px;
    margin-bottom: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item::before {
    content: "FLASH";
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--flash-color);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 2;
}

.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-item:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
}

/* ============================================================================
   7. ANIMATIONS & TRANSITIONS
   ============================================================================ */
@keyframes subtle-pulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 124, 186, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
        transform: scale(1.02);
    }
}

@keyframes categorySwitch {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

.mitramobile-woo-product-carousel .mitramobile-product-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.mitramobile-woo-product-carousel .mitramobile-product-price {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.mitramobile-woo-product-carousel .mitramobile-product-title + .mitramobile-product-price {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
@keyframes subtle-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}


.mitramobile-woo-product-carousel.category-transitioning {
    transition: all 0.4s var(--transition-smooth);
    animation: categorySwitch 0.4s var(--transition-smooth);
}

.mitramobile-woo-product-carousel.category-transitioning .swiper-slide {
    transition: all 0.4s var(--transition-smooth);
}

.mitramobile-woo-product-carousel.category-transitioning .mitramobile-product-item {
    transition: all 0.4s var(--transition-smooth);
}

/* ============================================================================
   8. RESPONSIVE DESIGN - OPTIMIZED FOR PERFECT DISPLAY
   ============================================================================ */

/* Desktop (1200px and above) - Default perfect dimensions already set */

/* Large tablets and small desktops (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        padding: 7px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
        margin-bottom: 4px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
        height: auto !important;
        max-height: none !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        font-size: 10px !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.4em !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
        font-size: 11px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after { display: none !important; }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        width: 140px !important;
        height: 120px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        padding: 6px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        margin: 0 0 4px 0 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        font-size: 10px !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.2em !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
        font-size: 11px !important;
        height: 14px !important;
        max-height: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after { display: none !important; }
}

/* Mobile landscape (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .mitramobile-woo-product-carousel .swiper-button-next,
    .mitramobile-woo-product-carousel .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
        font-size: 16px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        width: 130px !important;
        height: 120px !important;
        min-width: 130px !important;
        max-width: 130px !important;
        min-height: 120px !important;
        max-height: 120px !important;
        padding: 5px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        margin: 0 0 2px 0 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        font-size: 9px !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.2em !important;
        margin: 0 0 1px 0 !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
        font-size: 10px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after {
        display: none !important;
    }
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .mitramobile-woo-product-carousel .swiper-button-next,
    .mitramobile-woo-product-carousel .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        margin-top: -17.5px !important;
        font-size: 14px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        width: 120px !important;
        height: 110px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        padding: 4px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
        height: 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
        margin: 0 0 2px 0 !important;
        overflow: hidden !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        font-size: 8px !important;
        -webkit-line-clamp: 2 !important;
        min-height: 2.2em !important;
        margin: 0 0 1px 0 !important;
        line-height: 1.1 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
        font-size: 9px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: bold !important;
        color: #e74c3c !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after {
        display: none !important;
    }
}

/* Extra small mobile (below 320px) */
@media (max-width: 319px) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        width: 110px !important;
        height: 105px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        min-height: 105px !important;
        max-height: 105px !important;
        padding: 4px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        overflow: hidden !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content {
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        font-size: 7px !important;
        height: 14px !important;
        max-height: 14px !important;
        margin: 0 0 1px 0 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
        font-size: 8px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: bold !important;
        color: #e74c3c !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after {
        display: none !important;
    }
}

/* Fallback arrow icons if swiper-icons font is not available */
.mitramobile-woo-product-carousel .swiper-button-next::after {
    content: '→' !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
}

.mitramobile-woo-product-carousel .swiper-button-prev::after {
    content: '←' !important;
    font-family: Arial, sans-serif !important;
    font-weight: bold !important;
}

/* Perfect loading state */
.mitramobile-woo-product-carousel.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.mitramobile-woo-product-carousel.loading .mitramobile-product-item {
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Perfect accessibility */
.mitramobile-woo-product-carousel .swiper-button-next:focus,
.mitramobile-woo-product-carousel .swiper-button-prev:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* Perfect print styles */
@media print {
    .mitramobile-woo-product-carousel .swiper-button-next,
    .mitramobile-woo-product-carousel .swiper-button-prev {
        display: none !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

/* Perfect RTL support */
[dir="rtl"] .mitramobile-woo-product-carousel .swiper-button-next {
    left: 5px !important;
    right: auto !important;
}

[dir="rtl"] .mitramobile-woo-product-carousel .swiper-button-prev {
    right: 5px !important;
    left: auto !important;
}

/* Perfect high contrast mode - NO BORDERS */
@media (prefers-contrast: high) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        border: none !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .mitramobile-woo-product-carousel .swiper-button-next,
    .mitramobile-woo-product-carousel .swiper-button-prev {
        border: none !important;
        background: #fff !important;
        color: #000 !important;
    }
}

/* Perfect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mitramobile-woo-product-carousel *,
    .mitramobile-woo-product-carousel *::before,
    .mitramobile-woo-product-carousel *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Perfect dark mode support - FORCE WHITE BACKGROUND */
@media (prefers-color-scheme: dark) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item {
        background: #ffffff !important;
        color: #333 !important;
        border: none !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title {
        color: #333 !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content::after {
        background: #ffffff !important;
    }
}

/* Perfect final override - Ensure nothing breaks our perfect layout */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item * {
    box-sizing: border-box !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item *:not(.mitramobile-product-image):not(.mitramobile-product-image *):not(.mitramobile-product-title):not(.mitramobile-product-price):not(.mitramobile-product-price *):not(.mitramobile-product-content):not(img):not(a):not(.price):not(.amount):not(.woocommerce-Price-amount):not(.woocommerce-Price-currencySymbol) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Ensure all price elements are visible in promo mode */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price *,
.mitramobile-woo-product-carousel.mode-promo .price,
.mitramobile-woo-product-carousel.mode-promo .amount,
.mitramobile-woo-product-carousel.mode-promo .woocommerce-Price-amount,
.mitramobile-woo-product-carousel.mode-promo .woocommerce-Price-currencySymbol,
.mitramobile-woo-product-carousel.mode-promo ins,
.mitramobile-woo-product-carousel.mode-promo del {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    font-weight: bold !important;
    color: #e74c3c !important;
}

.mitramobile-woo-product-carousel.mode-promo .woocommerce-Price-amount {
    display: inline !important;
}

/* Specific styling for discount prices in promo mode */
.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-horizontal-container {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-original {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    color: #9e9e9e !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-sale {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-regular {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .discount-badge-small {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ff4444 !important;
    color: white !important;
    font-size: 7px !important;
    font-weight: 600 !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
}

/* Mobile portrait adjustments for promo mode discount prices */
@media (max-width: 767px) and (orientation: portrait) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-original {
        font-size: 8px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-sale,
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-regular {
        font-size: 10px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .discount-badge-small {
        font-size: 6px !important;
        padding: 1px 2px !important;
    }
}

/* Extra small mobile adjustments for promo mode discount prices */
@media (max-width: 319px) {
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-original {
        font-size: 7px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-sale,
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .price-regular {
        font-size: 9px !important;
    }
    
    .mitramobile-woo-product-carousel.mode-promo .mitramobile-price-wrapper .discount-badge-small {
        font-size: 5px !important;
        padding: 1px 2px !important;
    }
}

/* ============================================================================
   7. FLASH SALE ELEMENTS & SALE SLIDER
   ============================================================================ */

/* Flash Badge */
.mitramobile-woo-product-carousel .flash-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--flash-color), #c0392b);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    animation: flashPulse 2s infinite;
}

/* Sale Slider */
.mitramobile-woo-product-carousel .sale-slider {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--sale-color), #e55a2b);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.4);
    animation: saleRotate 3s ease-in-out infinite;
}

.mitramobile-woo-product-carousel .sale-slider .sale-percentage {
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1px;
}

.mitramobile-woo-product-carousel .sale-slider .sale-text {
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Flash Sale Mode Adjustments */
.mitramobile-woo-product-carousel.mode-flash-sale .flash-badge,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .flash-badge {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 3px 6px;
}

.mitramobile-woo-product-carousel.mode-flash-sale .sale-slider,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .sale-slider {
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
}

.mitramobile-woo-product-carousel.mode-flash-sale .sale-slider .sale-percentage,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .sale-slider .sale-percentage {
    font-size: 10px;
}

.mitramobile-woo-product-carousel.mode-flash-sale .sale-slider .sale-text,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .sale-slider .sale-text {
    font-size: 7px;
}

/* ============================================================================
   8. ANIMATIONS & TRANSITIONS
   ============================================================================ */

/* Flash Badge Animation */
@keyframes flashPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Sale Slider Animation */
@keyframes saleRotate {
    0%, 100% { 
        transform: rotate(0deg) scale(1);
    }
    25% { 
        transform: rotate(-3deg) scale(1.02);
    }
    75% { 
        transform: rotate(3deg) scale(1.02);
    }
}

/* ============================================================================
   10. ELEMENTOR TOGGLE/SWITCHER CONTROLS OVERRIDE
   ============================================================================ */

/* Fix black border issues on Elementor toggle controls */
.elementor-control-type-switcher .elementor-switch {
    background: #e0e0e0 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 20px !important;
    position: relative;
    transition: all 0.3s ease;
}

.elementor-control-type-switcher .elementor-switch:before {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch {
    background: var(--primary-color, #007cba) !important;
    border-color: var(--primary-color, #007cba) !important;
}

.elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch:before {
    background: #ffffff !important;
    transform: translateX(20px);
}

/* Elementor Panel Toggle Controls */
.elementor-panel .elementor-control-type-switcher .elementor-switch {
    background: #f1f3f4 !important;
    border: 2px solid #ddd !important;
    border-radius: 15px !important;
    width: 40px;
    height: 20px;
    position: relative;
}

.elementor-panel .elementor-control-type-switcher .elementor-switch:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.elementor-panel .elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch {
    background: #007cba !important;
    border-color: #007cba !important;
}

.elementor-panel .elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch:before {
    transform: translateX(18px);
}

/* Dark Theme Support for Toggle Controls */
.elementor-panel.elementor-panel-scheme-dark .elementor-control-type-switcher .elementor-switch {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

.elementor-panel.elementor-panel-scheme-dark .elementor-control-type-switcher .elementor-switch:before {
    background: #ffffff !important;
}

.elementor-panel.elementor-panel-scheme-dark .elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch {
    background: #007cba !important;
    border-color: #007cba !important;
}

/* Fix for any black border issues */
.elementor-control-type-switcher *,
.elementor-control-type-switcher *:before,
.elementor-control-type-switcher *:after {
    border-color: transparent !important;
}

.elementor-control-type-switcher .elementor-switch {
    border-color: #e0e0e0 !important;
}

.elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch {
    border-color: var(--primary-color, #007cba) !important;
}

/* Additional override for stubborn black borders */
.elementor-panel .elementor-control-switcher .elementor-switch,
.elementor-panel .elementor-control-switcher .elementor-switch:before,
.elementor-panel .elementor-control-switcher .elementor-switch:after {
    border: none !important;
    outline: none !important;
}

/* ===========================================================================
   11. ULTRA-SPECIFIC ELEMENTOR CONTROL OVERRIDES
   ============================================================================ */

/* Maximum specificity overrides for all possible Elementor control variations */
body .elementor-panel .elementor-control .elementor-control-content .elementor-control-field .elementor-control-input-wrapper .elementor-switch,
body .elementor-panel .elementor-control .elementor-control-content .elementor-control-field .elementor-control-input-wrapper .elementor-switch:before,
body .elementor-panel .elementor-control .elementor-control-content .elementor-control-field .elementor-control-input-wrapper .elementor-switch:after,
body .elementor-control-type-switcher .elementor-switch,
body .elementor-control-type-switcher .elementor-switch:before,
body .elementor-control-type-switcher .elementor-switch:after,
body .elementor-control-switcher .elementor-switch,
body .elementor-control-switcher .elementor-switch:before,
body .elementor-control-switcher .elementor-switch:after {
    border: 2px solid #e0e0e0 !important;
    background: #f1f3f4 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Force white background for switch handle */
body .elementor-panel .elementor-control .elementor-control-content .elementor-control-field .elementor-control-input-wrapper .elementor-switch:before,
body .elementor-control-type-switcher .elementor-switch:before,
body .elementor-control-switcher .elementor-switch:before {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Active state overrides */
body .elementor-panel .elementor-control .elementor-control-content .elementor-control-field .elementor-control-input-wrapper .elementor-switch-input:checked + .elementor-switch,
body .elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch,
body .elementor-control-switcher .elementor-switch-input:checked + .elementor-switch {
    background: #007cba !important;
    border-color: #007cba !important;
}

/* Nuclear option - remove ALL borders from ALL elements in switcher controls */
.elementor-control-type-switcher *,
.elementor-control-switcher *,
.elementor-panel .elementor-control-type-switcher *,
.elementor-panel .elementor-control-switcher * {
    border-color: transparent !important;
}

/* Then re-apply only the borders we want */
.elementor-control-type-switcher .elementor-switch,
.elementor-control-switcher .elementor-switch,
.elementor-panel .elementor-control-type-switcher .elementor-switch,
.elementor-panel .elementor-control-switcher .elementor-switch {
    border: 2px solid #e0e0e0 !important;
}

.elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch,
.elementor-control-switcher .elementor-switch-input:checked + .elementor-switch,
.elementor-panel .elementor-control-type-switcher .elementor-switch-input:checked + .elementor-switch,
.elementor-panel .elementor-control-switcher .elementor-switch-input:checked + .elementor-switch {
    border-color: #007cba !important;
}

.elementor-panel .elementor-control-switcher .elementor-switch {
    border: 2px solid #ddd !important;
    background: #f1f3f4 !important;
}

.elementor-panel .elementor-control-switcher .elementor-switch-input:checked + .elementor-switch {
    border: 2px solid #007cba !important;
    background: #007cba !important;
}

/* Ensure proper styling for carousel mode toggles */
.elementor-control-carousel_mode .elementor-control-input-wrapper,
.elementor-control-flash_sale_toggle .elementor-control-input-wrapper {
    background: transparent !important;
}

.elementor-control-carousel_mode .elementor-switch,
.elementor-control-flash_sale_toggle .elementor-switch {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-radius: 20px !important;
}

.elementor-control-carousel_mode .elementor-switch-input:checked + .elementor-switch,
.elementor-control-flash_sale_toggle .elementor-switch-input:checked + .elementor-switch {
    background: #007cba !important;
    border-color: #007cba !important;
}

/* Reset any inherited black borders */
.mitramobile-woo-product-carousel * {
    border-color: inherit;
}

.mitramobile-woo-product-carousel *:not(.swiper-button-next):not(.swiper-button-prev) {
    border-color: transparent;
}

/* ULTIMATE CLEAN PROMO MODE - NO FRAMES, SHADOWS, OR BORDERS */
/* Exclude navigation buttons from the universal reset */
.mitramobile-woo-product-carousel.mode-promo *:not(.swiper-button-next):not(.swiper-button-prev):not(.swiper-pagination):not(.swiper-pagination-bullet) {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

/* Ensure navigation buttons remain functional and visible */
.mitramobile-woo-product-carousel.mode-promo .swiper-button-next,
.mitramobile-woo-product-carousel.mode-promo .swiper-button-prev {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-item,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-image,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-content,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-price {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: white !important;
}

/* Force clean white background for all promo elements */
.mitramobile-woo-product-carousel.mode-promo {
    background: transparent !important;
}

.mitramobile-woo-product-carousel.mode-promo .swiper-wrapper,
.mitramobile-woo-product-carousel.mode-promo .swiper-slide {
    background: transparent !important;
}

/* Ensure touch/swipe functionality works */
.mitramobile-woo-product-carousel.mode-promo .swiper-container,
.mitramobile-woo-product-carousel.mode-promo .swiper-wrapper {
    touch-action: pan-y pinch-zoom !important;
    pointer-events: auto !important;
}

.mitramobile-woo-product-carousel.mode-promo .swiper-slide {
    pointer-events: auto !important;
}

/* ============================================================================
   8. PROMO LAINNYA SECTION
   ============================================================================ */
.mitramobile-promo-lainnya {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.mitramobile-promo-lainnya:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mitramobile-promo-lainnya::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mitramobile-promo-lainnya:hover::before {
    opacity: 1;
}

.promo-lainnya-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.promo-lainnya-text {
    margin-bottom: 12px;
}

/* ============================================================================
   11. FINAL OVERRIDES (ensures no extra spacing between title and price)
   ============================================================================ */

.mitramobile-woo-product-carousel .mitramobile-product-title,
.mitramobile-woo-product-carousel .mitramobile-product-title a {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    min-width: 0 !important;
    min-height: 2.4em !important;
}

.mitramobile-woo-product-carousel .mitramobile-product-title + .mitramobile-product-price,
.mitramobile-woo-product-carousel .mitramobile-product-price {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mode-specific final spacing overrides */
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title {
    margin-bottom: 6px !important;
}

.promo-lainnya-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.promo-lainnya-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mitramobile-promo-lainnya:hover .promo-lainnya-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.promo-lainnya-arrow svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Responsive adjustments for Promo lainnya */
@media (max-width: 768px) {
    .mitramobile-promo-lainnya {
        min-height: 200px;
    }
    
    .promo-lainnya-title {
        font-size: 16px;
    }
    
    .promo-lainnya-arrow {
        width: 36px;
        height: 36px;
    }
    
    .promo-lainnya-arrow svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .mitramobile-promo-lainnya {
        min-height: 180px;
    }
    
    .promo-lainnya-title {
        font-size: 14px;
    }
    
    .promo-lainnya-arrow {
        width: 32px;
        height: 32px;
    }
    
    .promo-lainnya-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================================================
   8.1. PROMO LAINNYA LINK STYLING
   ======================================================================== */

.mitramobile-promo-lainnya-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.mitramobile-promo-lainnya-link:hover {
    text-decoration: none;
    color: inherit;
}

.mitramobile-promo-lainnya-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Ensure the link doesn't interfere with existing hover effects */
.mitramobile-promo-lainnya-link .mitramobile-promo-lainnya:hover {
    transform: translateY(-2px);
}

/* Sale Price Display Styles */
.mitramobile-price-wrapper .price-horizontal-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}
.mitramobile-price-wrapper .price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: nowrap;
    margin-top: 0 !important;
    width: 100%;
    justify-content: flex-start;
}

.mitramobile-price-wrapper .price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 2px;
}

.mitramobile-price-wrapper .price-sale {
    font-size: 15px;
    color: #e74c3c;
    font-weight: 600;
}

.mitramobile-price-wrapper .discount-badge-small {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
    margin-left: 4px;
}

.mitramobile-price-wrapper .price-regular {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Responsive adjustments for price display */
@media (max-width: 768px) {
    .mitramobile-price-wrapper .price-original {
        font-size: 11px;
    }
    
    .mitramobile-price-wrapper .price-sale {
        font-size: 13px;
    }
    
    .mitramobile-price-wrapper .price-regular {
        font-size: 13px;
    }
    
    .mitramobile-price-wrapper .discount-badge-small {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/*
================================================================================
END OF MITRAMOBILE WOO PRODUCT CAROUSEL CSS
================================================================================
*/
.mitramobile-shipping-badge-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 6px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.shipping-badge-image {
    background: url('https://mitramobile.com/wp-content/uploads/2025/11/download.png') no-repeat center center !important;
    background-size: cover !important;
    width: 72px !important;
    height: 22px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    transform: translateY(1px) !important; /* nudge down to kiss edge */
}

.shipping-badge-image::before { display: none !important; }

.shipping-badge-image img {
    max-width: 80px !important;
    max-height: 40px !important;
    height: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
}
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title a {
    -webkit-line-clamp: 2 !important;
}

.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-promo .mitramobile-product-title a,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title,
.mitramobile-woo-product-carousel.mode-flash-sale .mitramobile-product-title a,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title,
.mitramobile-woo-product-carousel[data-flash-sale="yes"] .mitramobile-product-title a {
    -webkit-line-clamp: 2 !important;
}
@media (max-width: 767px) {
    .mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title,
    .mitramobile-woo-product-carousel.mode-normal .mitramobile-product-title a {
        -webkit-line-clamp: 2 !important;
    }
}
