/*======================================
   Mobile Home Page - RivoraMart Style
   Epic Key - Premium Gaming Store
   For screens < 992px only
   v3.0 - Clean Mobile Experience
========================================*/

/* ===== BASE VISIBILITY CONTROLS ===== */
.mobile-only,
.mobile-home-wrapper {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

/* ===== MOBILE BREAKPOINT (< 992px) ===== */
@media (max-width: 991.98px) {
    :root {
        --rm-primary: #0167F3;
        --rm-primary-dark: #0056D2;
        --rm-secondary: #081828;
        --rm-text: #545454;
        --rm-light-bg: #f8f9fa;
        --rm-border: #eee;
        --rm-success: #28a745;
        --rm-warning: #f39c12;
        --rm-danger: #e74c3c;
        --rm-gold: #ffcc00;
    }

    .mobile-only,
    .mobile-home-wrapper {
        display: block !important;
    }

    .desktop-only,
    .home-page > .desktop-only {
        display: none !important;
    }

    .mobile-list-panel {
        display: none;
    }
    .mobile-list-panel.active {
        display: block;
    }

    /* ===== HERO BANNER SLIDER (RivoraMart Clean Style) ===== */
    .mobile-hero-section {
        padding: 0;
        margin: 0;
    }

    .mobile-banner-slider {
        border-radius: 0;
        overflow: hidden;
        margin: 0;
    }

    .mobile-banner-item {
        position: relative;
        width: 100%;
        height: 280px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #ffffff;
        display: flex;
        align-items: flex-end;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    /* Gradient overlay for better text readability */
    .mobile-banner-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            rgba(0, 0, 0, 0.65) 100%
        );
        z-index: 1;
    }

    .mobile-banner-content {
        position: relative;
        width: 100%;
        max-width: 78%;
        padding: 10px 12px 14px;
        z-index: 2;
        background: transparent;
        border-radius: 0;
        margin: 0 12px 12px;
        box-shadow: none;
    }

    .mobile-banner-category {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: #c08a00;
        letter-spacing: 1.6px;
        margin-bottom: 6px;
    }

    .mobile-banner-title {
        font-size: 17px;
        font-weight: 800;
        color: #ffffff;
        margin: 0 0 3px 0;
        line-height: 1.08;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .mobile-banner-subtitle {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        margin: 0 0 4px 0;
        line-height: 1.14;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }

    .mobile-banner-price-wrap {
        margin-bottom: 14px;
    }

    .mobile-banner-price {
        font-size: 9px;
        font-weight: 800;
        color: #e53935;
        display: block;
        text-shadow: none;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .mobile-banner-old-price,
    .mobile-banner-discount {
        display: none;
    }

    .mobile-banner-actions {
        display: flex;
        gap: 10px;
    }

    .mobile-banner-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        background: var(--rm-primary);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        border-radius: 6px;
        text-decoration: none;
        text-transform: uppercase;
        transition: background 0.3s ease, transform 0.2s ease;
        box-shadow: 0 3px 10px rgba(1, 103, 243, 0.32);
    }

    .mobile-banner-btn:hover {
        background: var(--rm-primary-dark);
        color: #ffffff;
    }

    .mobile-banner-btn-secondary {
        display: none;
    }

    .mobile-hero-swipe-hint {
        display: none;
    }

    /* Banner Dots */
    .mobile-banner-slider .owl-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        display: flex;
        gap: 6px;
    }

    .mobile-banner-slider .owl-dot {
        width: 20px;
        height: 20px;
        background-color: transparent;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border 0.3s ease;
        padding: 0;
        margin: 0;
    }

    .mobile-banner-slider .owl-dot span {
        display: block;
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .mobile-banner-slider .owl-dot.active span {
        background-color: var(--rm-gold);
    }

    .mobile-banner-slider .owl-dot.active {
        border-color: var(--rm-gold);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .mobile-banner-item {
            height: 300px;
        }

        .mobile-banner-title {
            font-size: 20px;
        }
        
        .mobile-banner-subtitle {
            font-size: 13px;
        }
        
        .mobile-banner-price {
            font-size: 12px;
        }
    }

    @media (max-width: 480px) {
        .mobile-banner-item {
            height: 260px;
        }
        
        .mobile-banner-content {
            padding: 18px 12px;
            max-width: 82%;
        }
        
        .mobile-banner-title {
            font-size: 20px;
        }
        
        .mobile-banner-subtitle {
            font-size: 13px;
        }
        
        .mobile-banner-price {
            font-size: 12px;
        }
        
        .mobile-banner-btn {
            padding: 8px 16px;
            font-size: 11px;
        }
    }

    /* Swipe indicator */
    .mobile-hero-swipe-hint {
        position: absolute;
        bottom: 20px;
        left: 20px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: rgba(255, 255, 255, 0.6);
        font-size: 11px;
        font-weight: 500;
        z-index: 3;
        animation: swipeHint 2s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { opacity: 0.6; transform: translateX(0); }
        50% { opacity: 1; transform: translateX(5px); }
    }

    .mobile-hero-swipe-hint i {
        font-size: 14px;
    }

    /* ===== CATEGORY CAROUSEL (RivoraMart Style) ===== */
    .mobile-category-section {
        padding: 25px 0;
        background: #fff;
    }

    .mobile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .mobile-section-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--rm-secondary);
        margin: 0;
        position: relative;
    }

    .mobile-section-title::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--rm-primary);
        border-radius: 2px;
    }

    .mobile-view-all {
        color: var(--rm-primary);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: all 0.3s ease;
    }

    .mobile-view-all::after {
        content: '\2192';
        transition: transform 0.3s ease;
    }

    .mobile-view-all:hover {
        color: var(--rm-primary-dark);
    }

    .mobile-view-all:hover::after {
        transform: translateX(4px);
    }

    .mobile-category-slider {
        padding: 0;
    }

    .mobile-category-item {
        text-align: center;
        padding: 0 8px;
    }

    .mobile-category-item a {
        display: block;
        text-decoration: none;
    }

    .mobile-category-img-wrap {
        width: 100%;
        aspect-ratio: 1;
        margin: 0 auto 10px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .mobile-category-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .mobile-category-item:hover .mobile-category-img-wrap {
        transform: scale(1.04);
    }

    .mobile-category-item:hover .mobile-category-img-wrap img {
        transform: scale(1.05);
    }

    .mobile-category-name {
        font-size: 13px;
        font-weight: normal;
        color: #000;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.2;
    }

    .mobile-category-item:hover .mobile-category-name {
        color: var(--rm-primary);
    }

    /* Category Slider Navigation */
    .mobile-category-slider .owl-nav {
        display: none;
    }

    .mobile-category-slider .owl-dots {
        display: none !important;
    }

    /* ===== PRODUCT CARDS - UNIFORM SIZE ===== */
    .mobile-products-section {
        padding: 30px 0;
        background: var(--rm-light-bg);
    }

    .mobile-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }

    .mobile-product-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        /* FIXED TOTAL HEIGHT */
        height: 340px;
        transition: all 0.3s ease;
    }

    .mobile-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-product-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-badge-sale,
    .mobile-badge-new,
    .mobile-badge-sold {
        font-size: 10px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-badge-sale {
        background: linear-gradient(135deg, var(--rm-danger), #c0392b);
        color: #fff;
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }

    .mobile-badge-new {
        background: linear-gradient(135deg, var(--rm-warning), #e67e22);
        color: #fff;
    }

    .mobile-badge-sold {
        background: #6c757d;
        color: #fff;
    }

    /* FIXED HEIGHT IMAGE CONTAINER */
    .mobile-product-image {
        position: relative;
        width: 100%;
        height: 150px; /* FIXED */
        flex-shrink: 0;
        overflow: hidden;
        background: linear-gradient(145deg, #f8f9fa, #eef0f2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .mobile-product-card:hover .mobile-product-image img {
        transform: scale(1.08);
    }

    /* FIXED HEIGHT PRODUCT INFO */
    .mobile-product-info {
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex: 1;
        /* FIXED MIN HEIGHT */
        min-height: 175px;
        height: 175px;
    }

    .mobile-product-category {
        font-size: 10px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        /* Single line */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* FIXED HEIGHT TITLE - 2 LINES MAX */
    .mobile-product-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--rm-secondary);
        line-height: 1.35;
        margin-bottom: 6px;
        /* FIXED 2-LINE HEIGHT */
        height: 35px;
        min-height: 35px;
        max-height: 35px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-product-name a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-product-rating {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .mobile-product-rating i {
        color: var(--rm-warning);
        font-size: 10px;
    }

    .mobile-product-rating i.empty,
    .mobile-product-rating .lni-star:not(.lni-star-filled) {
        color: #ddd;
    }

    .mobile-product-stock {
        font-size: 10px;
        color: #888;
        margin-left: auto;
    }

    .mobile-product-price {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: auto;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .mobile-current-price {
        font-size: 15px;
        font-weight: 800;
        color: var(--rm-primary);
    }

    .mobile-old-price {
        font-size: 11px;
        color: #999;
        text-decoration: line-through;
    }

    .mobile-discount-tag {
        font-size: 9px;
        font-weight: 700;
        color: var(--rm-danger);
        background: #ffeaea;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .mobile-add-to-cart {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-dark) 100%);
        color: #fff;
        border: none;
        padding: 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
        margin-top: auto;
    }

    .mobile-add-to-cart:hover,
    .mobile-add-to-cart:active {
        background: linear-gradient(135deg, var(--rm-primary-dark) 0%, #004bb5 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(1, 103, 243, 0.35);
    }

    .mobile-add-to-cart.disabled {
        background: linear-gradient(135deg, #bbb, #999);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .mobile-add-to-cart i {
        font-size: 14px;
    }

    /* ===== PRODUCT SLIDER ===== */
    .mobile-product-slider-section {
        padding: 25px 0;
        background: #fff;
    }

    .mobile-product-slider {
        padding: 0 8px;
    }

    .mobile-product-slider .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .mobile-product-slider .owl-item {
        display: flex;
    }

    .mobile-product-slider .mobile-product-card {
        margin: 5px;
        width: calc(100% - 10px);
    }

    .mobile-product-slider .owl-dots {
        text-align: center;
        margin-top: 15px;
    }

    .mobile-product-slider .owl-dot {
        width: 8px;
        height: 8px;
        background: #ddd;
        border-radius: 50%;
        border: none;
        margin: 0 4px;
        padding: 0;
        transition: all 0.3s ease;
    }

    .mobile-product-slider .owl-dot.active {
        background: var(--rm-primary);
        width: 24px;
        border-radius: 4px;
    }

    /* ===== FLASH SALE / DEAL SECTION ===== */
    .mobile-deal-section {
        padding: 25px 0;
        background: linear-gradient(135deg, #0167F3 0%, #0056D2 100%);
        position: relative;
        overflow: hidden;
    }

    .mobile-deal-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .mobile-deal-section .mobile-section-header {
        padding: 0 15px;
    }

    .mobile-deal-section .mobile-section-title {
        color: #fff;
    }

    .mobile-deal-section .mobile-section-title::after {
        background: #ffcc00;
    }

    .mobile-deal-section .mobile-view-all {
        color: #ffcc00;
    }

    .mobile-deal-slider {
        padding: 0 12px;
    }

    .mobile-deal-card {
        background: #fff;
        border-radius: 16px;
        padding: 18px;
        margin: 0 5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .mobile-deal-badge {
        display: inline-block;
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 6px 14px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .mobile-deal-content {
        display: flex;
        gap: 15px;
    }

    .mobile-deal-image {
        width: 110px;
        height: 110px;
        flex-shrink: 0;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    .mobile-deal-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mobile-deal-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mobile-deal-name {
        font-size: 14px;
        font-weight: 700;
        color: var(--rm-secondary);
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-deal-name a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-deal-countdown {
        display: flex;
        gap: 6px;
        margin-top: auto;
    }

    .mobile-countdown-item {
        text-align: center;
        background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
        border-radius: 8px;
        padding: 8px 10px;
        min-width: 48px;
    }

    .mobile-countdown-num {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: var(--rm-secondary);
        line-height: 1;
    }

    .mobile-countdown-label {
        display: block;
        font-size: 9px;
        color: #888;
        text-transform: uppercase;
        margin-top: 4px;
        font-weight: 600;
    }

    .mobile-deal-slider .owl-dots {
        text-align: center;
        margin-top: 18px;
    }

    .mobile-deal-slider .owl-dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        border: none;
        margin: 0 4px;
        padding: 0;
    }

    .mobile-deal-slider .owl-dot.active {
        background: #fff;
        width: 24px;
        border-radius: 4px;
    }

    /* ===== PROMO BANNERS ===== */
    .mobile-promo-section {
        padding: 25px 0;
        background: #fff;
    }

    .mobile-promo-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }

    .mobile-promo-banner {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        height: 140px;
        background-size: cover;
        background-position: center;
    }

    .mobile-promo-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-promo-title {
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .mobile-promo-desc {
        color: rgba(255, 255, 255, 0.85);
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 12px;
        max-width: 70%;
    }

    .mobile-promo-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--rm-primary);
        color: #fff;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        width: fit-content;
        transition: all 0.3s ease;
    }

    .mobile-promo-btn:hover {
        background: #fff;
        color: var(--rm-primary);
    }

    /* ===== TABBED PRODUCT LISTS ===== */
    .mobile-lists-section {
        padding: 25px 0;
        background: var(--rm-light-bg);
    }

    .mobile-list-tabs {
        display: flex;
        gap: 10px;
        padding: 0 15px;
        margin-bottom: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .mobile-list-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-list-tab {
        flex-shrink: 0;
        padding: 10px 20px;
        background: #fff;
        border: 2px solid #eee;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
        scroll-snap-align: start;
    }

    .mobile-list-tab.active {
        background: var(--rm-primary);
        border-color: var(--rm-primary);
        color: #fff;
    }

    .mobile-list-content {
        padding: 0 15px;
    }

    .mobile-list-item {
        display: flex;
        gap: 14px;
        padding: 14px;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .mobile-list-image {
        width: 75px;
        height: 75px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        background: #f8f9fa;
    }

    .mobile-list-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-list-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .mobile-list-category {
        font-size: 10px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .mobile-list-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--rm-secondary);
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mobile-list-name a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-list-price {
        font-size: 16px;
        font-weight: 800;
        color: var(--rm-primary);
    }

    /* ===== BLOG SLIDER ===== */
    .mobile-blog-section {
        padding: 30px 0;
        background: #fff;
    }

    .mobile-blog-slider {
        padding: 0 10px;
    }

    .mobile-blog-card {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin: 5px;
    }

    .mobile-blog-image {
        height: 150px;
        overflow: hidden;
    }

    .mobile-blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .mobile-blog-card:hover .mobile-blog-image img {
        transform: scale(1.08);
    }

    .mobile-blog-content {
        padding: 16px;
    }

    .mobile-blog-category {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        color: var(--rm-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .mobile-blog-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--rm-secondary);
        line-height: 1.35;
        margin-bottom: 8px;
        height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-blog-title a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-blog-excerpt {
        font-size: 12px;
        color: #888;
        line-height: 1.5;
        height: 36px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 12px;
    }

    .mobile-blog-read-more {
        font-size: 13px;
        font-weight: 600;
        color: var(--rm-primary);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-blog-slider .owl-dots {
        text-align: center;
        margin-top: 18px;
    }

    .mobile-blog-slider .owl-dot {
        width: 8px;
        height: 8px;
        background: #ddd;
        border-radius: 50%;
        border: none;
        margin: 0 4px;
        padding: 0;
    }

    .mobile-blog-slider .owl-dot.active {
        background: var(--rm-primary);
    }

    /* ===== FEATURES / SHIPPING ===== */
    .mobile-features-section {
        padding: 30px 0;
        background: var(--rm-light-bg);
        border-top: 1px solid #eee;
    }

    .mobile-features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }

    .mobile-feature-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }

    .mobile-feature-icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-dark) 100%);
        color: #fff;
        border-radius: 50%;
        font-size: 20px;
        flex-shrink: 0;
    }

    .mobile-feature-info h5 {
        font-size: 12px;
        font-weight: 700;
        color: var(--rm-secondary);
        margin: 0 0 3px;
    }

    .mobile-feature-info span {
        font-size: 10px;
        color: #888;
        line-height: 1.3;
    }
}

/* ===== SMALL MOBILE (< 576px) ===== */
@media (max-width: 575.98px) {
    .mobile-banner-item {
        height: 250px;
    }

    .mobile-banner-title {
        font-size: 17px;
    }

    .mobile-banner-price {
        font-size: 9px;
    }

    .mobile-banner-btn {
        padding: 10px 18px;
    }

    .mobile-category-img-wrap {
        width: 66px;
        height: 66px;
    }

    .mobile-category-name {
        font-size: 11px;
    }

    .mobile-product-grid {
        gap: 10px;
    }

    /* Keep card uniform but adjust internals */
    .mobile-product-card {
        height: 320px;
    }

    .mobile-product-image {
        height: 135px;
    }

    .mobile-product-info {
        padding: 10px;
        min-height: 165px;
        height: 165px;
    }

    .mobile-deal-content {
        flex-direction: column;
    }

    .mobile-deal-image {
        width: 100%;
        height: 140px;
    }

    .mobile-countdown-item {
        min-width: 55px;
    }
}

/* ===== EXTRA SMALL (< 400px) ===== */
@media (max-width: 399.98px) {
    .mobile-banner-item {
        height: 230px;
    }

    .mobile-banner-content {
        padding: 14px 12px;
    }

    .mobile-banner-title {
        font-size: 16px;
    }

    .mobile-banner-price {
        font-size: 9px;
    }

    .mobile-banner-btn {
        padding: 9px 16px;
        font-size: 11px;
    }

    .mobile-banner-btn-secondary {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .mobile-section-title {
        font-size: 16px;
    }

    /* Smaller cards but still uniform */
    .mobile-product-card {
        height: 300px;
    }

    .mobile-product-image {
        height: 120px;
    }

    .mobile-product-info {
        padding: 10px;
        min-height: 160px;
        height: 160px;
    }

    .mobile-product-name {
        font-size: 12px;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
    }

    .mobile-current-price {
        font-size: 14px;
    }

    .mobile-add-to-cart {
        padding: 8px;
        font-size: 11px;
    }

    .mobile-features-grid {
        grid-template-columns: 1fr;
    }

    .mobile-hero-swipe-hint {
        display: none;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (max-width: 991.98px) {
    .mobile-product-card,
    .mobile-blog-card,
    .mobile-category-item,
    .mobile-list-item,
    .mobile-banner-btn,
    .mobile-promo-btn,
    .mobile-add-to-cart,
    .mobile-list-tab {
        -webkit-tap-highlight-color: rgba(1, 103, 243, 0.1);
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Smooth transitions */
    .mobile-product-card,
    .mobile-category-img-wrap,
    .mobile-list-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-product-card:active,
    .mobile-list-item:active {
        transform: scale(0.98);
    }
}

/* ===== OWL CAROUSEL FIXES ===== */
@media (max-width: 991.98px) {
    .owl-carousel .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .owl-carousel .owl-item {
        display: flex;
    }

    .owl-carousel .owl-item > div {
        width: 100%;
    }

    .owl-carousel .owl-nav button {
        display: none !important;
    }
}
