/**
 * Nana Landing Page - Main Stylesheet
 * Organized with mobile-first approach and proper CSS structure
 */

/* ===========================================
   CUSTOM FONTS
   =========================================== */

/* Estedad Font Family - Regular */
@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('assets/ttf/Estedad-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}



/* ===========================================
   RESET AND BASE STYLES
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f6f5ef;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-bottom: 100px; /* Space for floating button */
}

/* ===========================================
   ANIMATIONS AND KEYFRAMES
   =========================================== */

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(45, 164, 110, 0.2)); }
    50% { filter: drop-shadow(0 2px 8px rgba(45, 164, 110, 0.4)); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

@keyframes floatPulse {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 0 6px 20px rgba(45, 164, 110, 0.3);
    }
    50% { 
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(45, 164, 110, 0.4);
    }
}

/* ===========================================
   HEADER STYLES
   =========================================== */

.header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FFFC 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #E5F5ED;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(45, 164, 110, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(45, 164, 110, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(45, 164, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(45, 164, 110, 0.2));
}

.logo-glow {
    animation: logoGlow 3s ease-in-out infinite;
}

/* User Stats */
.user-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 164, 110, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(45, 164, 110, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(45, 164, 110, 0.15);
    transform: translateY(-1px);
}

.stat-icon {
    font-size: 16px;
    animation: bounce 2s ease-in-out infinite;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #2DA46E;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.lang-btn {
    background: rgba(45, 164, 110, 0.1);
    border: 1px solid rgba(45, 164, 110, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(45, 164, 110, 0.2);
    transform: translateY(-1px);
}

.lang-text {
    font-size: 14px;
    font-weight: 600;
    color: #2DA46E;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn {
    position: relative;
    background: #2DA46E;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 164, 110, 0.3);
}

.notification-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 164, 110, 0.4);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.menu-btn {
    background: rgba(45, 164, 110, 0.1);
    border: 1px solid rgba(45, 164, 110, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(45, 164, 110, 0.2);
    transform: rotate(90deg);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(45, 164, 110, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2DA46E, #22C55E);
    width: 65%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2DA46E;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.floating-particle:nth-child(3) { left: 70%; animation-delay: 4s; }
.floating-particle:nth-child(4) { left: 90%; animation-delay: 1s; }

/* ===========================================
   LAYOUT CONTAINERS
   =========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #f6f5ef;
}

/* ===========================================
   SECTION STYLES
   =========================================== */

.section-title {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding-left: 16px;
    display: flex;
    align-items: center;
}

.section-title .currency-icon {
    height: 20px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
}

.view-all-link {
    color: #2DA46E;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ===========================================
   OFFERS SECTION
   =========================================== */

.offers-section {
    padding: 24px 0;
    background: #ffffff;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

.banner-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0px);
}

.banner-item {
    flex-shrink: 0;
    width: 600px; /* MASSIVE width for desktop */
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Banner Navigation Dots */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(45, 164, 110, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #2DA46E;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: #2DA46E;
}



/* ===========================================
   COUPONS SECTION
   =========================================== */

.coupons-section {
    padding: 24px 0;
    background: #FFFFFF;
    width: 100%;
}

.coupons-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.coupons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.coupons-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.coupons-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.coupons-container::-webkit-scrollbar-thumb {
    background: #2DA46E;
    border-radius: 2px;
}

/* Coupon Card */
.coupon-card {
    width: calc(40% - 8px);
    min-width: calc(40% - 8px);
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px dashed #2DA46E;
    position: relative;
    flex-shrink: 0;
}

/* New Customer Label */
.new-customer-label {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(255, 71, 87, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Estedad', sans-serif;
    margin-top: 4px;
    margin-bottom: 2px;
}

/* All Customers Label */
.all-customers-label {
    display: inline-block;
    background: linear-gradient(135deg, #2DA46E, #22C55E);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(45, 164, 110, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Estedad', sans-serif;
    margin-top: 4px;
    margin-bottom: 2px;
}

.coupon-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.coupon-main-text {
    flex: 1;
}

.coupon-discount {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
    min-height: 38px; /* Fixed height for 2 lines (16px * 1.2 * 2 + some buffer) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.coupon-terms {
    color: #999;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 12px;
}



.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.coupon-code {
    color: #666;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.copy-btn {
    background: #2DA46E;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #239456;
}

.copy-btn.copied {
    background: #10B981;
    pointer-events: none;
}

.copy-btn.copied::before {
    content: "✓ ";
}

/* ===========================================
   PROMOTIONAL BANNERS SECTION
   =========================================== */

.promotional-banners-section {
    padding: 24px 0;
    background: #FFFFFF;
    width: 100%;
}

.promotional-banners-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.promotional-banners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.promotional-banners-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 20px 16px 20px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.promotional-banners-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.promotional-banner-card {
    flex-shrink: 0;
    width: 240px;
    height: 350px;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promotional-banner-card:hover {
    transform: translateY(-2px);
}

.promotional-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===========================================
   PRODUCTS SECTION
   =========================================== */

.save-big-section {
    padding: 24px 20px;
    background: #f6f5ef;
}

.save-big-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-container::-webkit-scrollbar {
    display: none;
}

/* Product Card */
.product-card {
    width: calc(40% - 8px);
    min-width: calc(40% - 8px);
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    width: 100%;
    height: 120px;
    background: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.add-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #2DA46E;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(45, 164, 110, 0.3);
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 164, 110, 0.4);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    color: #FF4757;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

.original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.save-badge {
    background: #FF4757;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.product-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-timer {
    color: #FF4757;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-timer.urgent {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ===========================================
   COUPON MODAL
   =========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #FFFFFF;
    margin: 50% auto;
    transform: translateY(-50%);
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 20px;
}

.modal-title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Estedad', sans-serif;
}

.close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 0 24px 24px 24px;
    text-align: center;
}

.modal-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Estedad', sans-serif;
    list-style-type: disc;
    padding-left: 24px;
    padding-right: 0;
    text-align: left;
}

.modal-text li {
    margin-bottom: 10px;
    color: #666;
    padding-left: 4px;
    font-weight: 500;
}

.modal-text li:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 0 24px 24px 24px;
    text-align: center;
}

.modal-download-btn {
    background: #2DA46E;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Estedad', sans-serif;
    box-shadow: 0 4px 16px rgba(45, 164, 110, 0.3);
}

.modal-download-btn:hover {
    background: #239456;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 164, 110, 0.4);
}

/* RTL Support for Modal */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-title {
    text-align: right;
}

[dir="rtl"] .modal-text {
    text-align: right;
    padding-left: 0;
    padding-right: 24px;
    list-style-position: inside;
}

[dir="rtl"] .modal-text li {
    text-align: right;
    padding-left: 0;
    padding-right: 4px;
    direction: rtl;
}

/* Mobile Modal Adjustments */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 40% auto;
        transform: translateY(-50%);
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
        margin-bottom: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .close {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .modal-text {
        font-size: 14px;
        padding-left: 20px;
        line-height: 1.5;
    }

    .modal-text li {
        margin-bottom: 8px;
        padding-left: 2px;
    }

    [dir="rtl"] .modal-text {
        padding-left: 0;
        padding-right: 20px;
    }

    [dir="rtl"] .modal-text li {
        padding-left: 0;
        padding-right: 2px;
    }
    
    .modal-footer {
        padding: 0 20px 20px 20px;
    }
    
    .modal-download-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ===========================================
   FLOATING DOWNLOAD BUTTON
   =========================================== */

.floating-btn-container {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 1000;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-btn-container .download-btn {
    background: #2DA46E;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(45, 164, 110, 0.3);
    min-height: 64px;
    width: 100%;
    max-width: 400px;
    animation: floatPulse 2s ease-in-out infinite;
}

.floating-btn-container .download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(45, 164, 110, 0.5);
    background: #239456;
    animation: none;
}

.floating-btn-container .download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45, 164, 110, 0.4);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.success {
    background: #239456;
}

/* Products Loading and Error States */
.products-loading,
.products-error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
    text-align: center;
}

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.error-text {
    font-size: 16px;
    color: #FF4757;
    font-weight: 500;
}

/* Skeleton Loading Animation */
.skeleton-loading {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.skeleton-loading::-webkit-scrollbar {
    display: none;
}

.skeleton-card {
    width: calc(40% - 8px);
    min-width: calc(40% - 8px);
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    height: 120px;
    background: #F0F0F0;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.skeleton-price-current {
    height: 18px;
    width: 60px;
    background: #F0F0F0;
    border-radius: 4px;
}

.skeleton-price-original {
    height: 14px;
    width: 45px;
    background: #F0F0F0;
    border-radius: 4px;
}

.skeleton-save-badge {
    height: 20px;
    width: 55px;
    background: #F0F0F0;
    border-radius: 10px;
    margin-left: auto;
}

.skeleton-title {
    height: 16px;
    width: 85%;
    background: #F0F0F0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-timer {
    height: 14px;
    width: 70%;
    background: #F0F0F0;
    border-radius: 4px;
}

.skeleton-add-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: #F0F0F0;
    border-radius: 50%;
}

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

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* RTL support for skeleton loading */
[dir="rtl"] .skeleton-loading {
    direction: rtl;
    padding: 0 20px;
}

[dir="rtl"] .skeleton-card {
    text-align: right;
}

[dir="rtl"] .skeleton-save-badge {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .skeleton-add-btn {
    right: auto;
    left: 24px;
}

@media (max-width: 768px) {
    .products-loading,
    .products-error {
        min-height: 150px;
    }
    
    .loading-text,
    .error-text {
        font-size: 14px;
    }
    
    .skeleton-loading {
        padding: 0 16px;
    }
    
    .skeleton-card {
        width: calc(45% - 8px);
        min-width: calc(45% - 8px);
        padding: 12px;
    }
    
    .skeleton-image {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .skeleton-add-btn {
        bottom: 20px;
        right: 20px;
    }
    
    [dir="rtl"] .skeleton-add-btn {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .products-loading,
    .products-error {
        min-height: 150px;
    }
    
    .loading-text,
    .error-text {
        font-size: 14px;
    }
}

/* ===========================================
   RESPONSIVE DESIGN - TABLET
   =========================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 12px 16px;
    }

    .logo {
        height: 44px;
        max-width: 130px;
    }

    .user-stats {
        gap: 8px;
    }

    .stat-item {
        padding: 6px 8px;
        gap: 4px;
    }

    .stat-value {
        font-size: 12px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-icon {
        font-size: 14px;
    }

    .header-actions {
        gap: 8px;
    }

    .notification-btn, .menu-btn {
        width: 38px;
        height: 38px;
    }

    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .coupons-section {
        padding: 20px 0;
    }

    .coupons-content {
        padding: 0 12px;
    }

    .coupons-header {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title .currency-icon {
        height: 18px;
        margin-right: 5px;
    }

    [dir="rtl"] .section-title .currency-icon {
        margin-right: 0;
        margin-left: 5px;
    }

    .view-all-link {
        font-size: 14px;
    }

    .coupons-container {
        padding-bottom: 12px;
    }

    .coupon-card {
        width: calc(40% - 8px);
        min-width: calc(40% - 8px);
        padding: 14px;
    }

    .coupon-discount {
        font-size: 15px;
        min-height: 36px; /* Adjusted for smaller font size */
    }

    .coupon-terms {
        font-size: 11px;
    }

    .coupon-code {
        font-size: 13px;
    }

    .copy-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .new-customer-label {
        font-size: 9px;
        padding: 2px 6px;
    }

    .all-customers-label {
        font-size: 9px;
        padding: 2px 6px;
    }

    .promotional-banners-section {
        padding: 20px 0;
    }

    .promotional-banners-content {
        padding: 0;
    }

    .promotional-banners-container {
        padding: 0 16px 12px 16px;
        gap: 12px;
    }

    .promotional-banner-card {
        width: 180px;
        height: 260px;
    }

    .banner-carousel {
        padding: 0 16px;
    }

    .banner-item {
        width: 500px; /* MASSIVE width for tablet */
    }

    .banner-item img {
        height: 195px;
        border-radius: 12px;
    }

    .banner-dots {
        margin-top: 12px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }



    .save-big-section {
        padding: 20px 12px;
    }

    .save-big-header {
        margin-bottom: 16px;
    }

    .products-container {
        padding-bottom: 12px;
    }

    .product-card {
        width: calc(40% - 8px);
        min-width: calc(40% - 8px);
        padding: 14px;
    }

    .product-image {
        height: 100px;
    }

    .add-btn {
        width: 28px;
        height: 28px;
    }

    .current-price {
        font-size: 16px;
    }

    .currency-icon {
        height: 14px;
    }

    .original-price {
        font-size: 13px;
    }

    .save-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-timer {
        font-size: 11px;
    }

    .floating-btn-container {
        padding: 16px;
    }

    .floating-btn-container .download-btn {
        padding: 18px 32px;
        font-size: 18px;
        min-height: 58px;
    }

    .referral-message {
        margin: 0 12px 20px 12px;
        padding: 16px;
        font-size: 15px;
    }

    .referral-code {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* ===========================================
   RESPONSIVE DESIGN - MOBILE
   =========================================== */

@media (max-width: 480px) {
    .container {
        padding: 0px 0px;
    }

    .header {
        padding: 10px 12px;
    }

    .logo {
        height: 50px;
        max-width: 110px;
    }

    .user-stats {
        gap: 6px;
    }

    .stat-item {
        padding: 4px 6px;
        gap: 3px;
    }

    .stat-value {
        font-size: 11px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-icon {
        font-size: 12px;
    }

    .header-actions {
        gap: 6px;
    }

    .notification-btn, .menu-btn {
        width: 36px;
        height: 36px;
    }

    .notification-btn span, .menu-btn span {
        font-size: 16px;
    }

    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .save-big-header {
        margin-bottom: 8px;
    }

    .coupons-section {
        padding: 16px 0px;
    }

    .coupons-content {
        padding: 0 0px;
    }

    .coupons-header {
        margin-bottom: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title .currency-icon {
        height: 16px;
        margin-right: 4px;
    }

    [dir="rtl"] .section-title .currency-icon {
        margin-right: 0;
        margin-left: 4px;
    }

    .view-all-link {
        font-size: 13px;
    }

    .coupons-container {
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 12px;
    }

    .coupon-card {
        width: calc(40% - 6px);
        min-width: calc(40% - 6px);
        padding: 12px;
    }

    .coupon-discount {
        font-size: 14px;
        min-height: 34px; /* Adjusted for smallest font size */
    }

    .coupon-terms {
        font-size: 10px;
    }

    .coupon-code {
        font-size: 12px;
    }

    .copy-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .new-customer-label {
        font-size: 8px;
        padding: 2px 6px;
    }

    .all-customers-label {
        font-size: 8px;
        padding: 2px 6px;
    }

    .promotional-banners-section {
        padding: 16px 0;
    }

    .promotional-banners-content {
        padding: 0;
    }

    .promotional-banners-container {
        padding: 0 12px 8px 16px;
        gap: 12px;
    }

    .promotional-banner-card {
        width: 160px;
        height: 220px;
    }

    .banner-carousel {
        padding: 0 12px;
    }

    .banner-item {
        width: 400px; /* MASSIVE width for mobile */
    }

    .banner-item img {
        height: 195px;
        border-radius: 10px;
    }

    .banner-dots {
        margin-top: 10px;
    }

    .banner-dot {
        width: 6px;
        height: 6px;
    }



    .save-big-section {
        padding: 16px 0px;
    }

    .save-big-header {
        margin-bottom: 14px;
    }

    .products-container {
        padding-bottom: 8px;
        padding-right: 12px;
        padding-left: 16px;
    }

    .product-card {
        width: calc(40% - 6px);
        min-width: calc(40% - 6px);
        padding: 12px;
    }

    .product-image {
        height: 80px;
    }

    .add-btn {
        width: 26px;
        height: 26px;
    }

    .add-btn span {
        font-size: 16px;
    }

    .current-price {
        font-size: 15px;
    }

    .currency-icon {
        height: 13px;
    }

    .original-price {
        font-size: 12px;
    }

    .save-badge {
        font-size: 9px;
        padding: 2px 5px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-timer {
        font-size: 10px;
    }

    .floating-btn-container {
        padding: 12px;
    }

    .floating-btn-container .download-btn {
        padding: 16px 28px;
        font-size: 17px;
        min-height: 54px;
    }

    .referral-message {
        margin: 0 8px 16px 8px;
        padding: 14px;
        font-size: 14px;
    }

    .referral-code {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* ===========================================
   TOUCH DEVICE OPTIMIZATIONS
   =========================================== */

@media (hover: none) and (pointer: coarse) {
    .floating-btn-container .download-btn {
        padding: 20px 32px;
        font-size: 19px;
        min-height: 60px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        margin-right: 18px;
        font-size: 16px;
    }

    .feature {
        padding: 4px 0;
        font-size: 17px;
    }
}

/* ===========================================
   RTL (RIGHT-TO-LEFT) SUPPORT FOR ARABIC
   =========================================== */

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] body {
    font-family: 'Estedad', 'Arial', 'Tahoma', sans-serif;
}

/* Typography Improvements */
.section-title {
    font-family: 'Estedad', sans-serif;
}

[dir="rtl"] .section-title {
    font-family: 'Estedad', sans-serif;
    font-weight: 600;
}

/* Price and Number Styling - Always use English numerals */
.current-price,
.original-price,
.save-badge,
.coupon-code,
.product-timer {
    font-family: 'Estedad', sans-serif;
    font-variant-numeric: lining-nums; /* Use lining numbers for better spacing */
}

[dir="rtl"] .current-price,
[dir="rtl"] .original-price,
[dir="rtl"] .save-badge,
[dir="rtl"] .coupon-code,
[dir="rtl"] .product-timer {
    font-family: 'Estedad', sans-serif;
    font-variant-numeric: lining-nums; /* Use lining numbers for better spacing */
}

/* Optimize spacing for numeric content */
.current-price,
.original-price,
.save-badge,
.coupon-code,
.product-timer {
    letter-spacing: normal;
    word-spacing: normal;
}

[dir="rtl"] .current-price,
[dir="rtl"] .original-price,
[dir="rtl"] .save-badge,
[dir="rtl"] .coupon-code,
[dir="rtl"] .product-timer {
    letter-spacing: normal;
    word-spacing: normal;
}

/* Additional numeric elements that should use English numerals */
.notification-badge,
.stat-value,
[dir="rtl"] .notification-badge,
[dir="rtl"] .stat-value {
    font-family: 'Estedad', sans-serif;
}

/* Button Typography */
.copy-btn,
.download-btn,
.lang-btn {
    font-family: 'Estedad', sans-serif;
    font-weight: 600;
}

[dir="rtl"] .copy-btn,
[dir="rtl"] .download-btn,
[dir="rtl"] .lang-btn {
    font-family: 'Estedad', sans-serif;
    font-weight: 600;
}

/* Product Titles and Text */
.product-title,
.coupon-discount,
.coupon-terms {
    font-family: 'Estedad', sans-serif;
}

[dir="rtl"] .product-title,
[dir="rtl"] .coupon-discount,
[dir="rtl"] .coupon-terms {
    font-family: 'Estedad', sans-serif;
}

[dir="rtl"] .coupon-discount {
    text-align: right;
}

/* Header RTL Support */
[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .logo-section {
    order: 1;
}

/* Banner Carousel RTL */
[dir="rtl"] .banner-carousel {
    direction: rtl;
}

[dir="rtl"] .banner-track {
    /* Keep items in original order, but slide right-to-left */
    flex-direction: row;
}



/* Coupons RTL */
[dir="rtl"] .coupons-container {
    direction: rtl;
}

[dir="rtl"] .coupon-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .coupons-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .coupons-header .section-title {
    text-align: right !important;
    direction: rtl;
}

[dir="rtl"] .coupons-section {
    text-align: right;
}



[dir="rtl"] .coupon-footer {
    flex-direction: row-reverse;
}

/* RTL support for new customer label */
[dir="rtl"] .new-customer-label {
    text-align: right;
}

/* RTL support for banner carousel */
[dir="rtl"] .banner-carousel {
    direction: ltr; /* Ensure carousel slides work properly in RTL */
}

[dir="rtl"] .banner-track {
    direction: ltr; /* Keep banner sliding consistent */
}

[dir="rtl"] .banner-dots {
    direction: ltr; /* Keep dots order consistent */
}

/* RTL support for all customers label */
[dir="rtl"] .all-customers-label {
    text-align: right;
}

/* Products RTL */
[dir="rtl"] .products-container {
    direction: rtl;
}

[dir="rtl"] .product-price {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Product Card RTL Alignment */
[dir="rtl"] .product-card {
    text-align: right;
}

[dir="rtl"] .product-title {
    text-align: right;
}

[dir="rtl"] .product-timer {
    text-align: right;
}

[dir="rtl"] .save-badge {
    align-self: flex-end;
}

/* Price container alignment */
[dir="rtl"] .current-price {
    text-align: right;
    justify-content: flex-end;
    display: flex;
    align-items: center;
}

[dir="rtl"] .original-price {
    text-align: right;
}

[dir="rtl"] .currency-icon {
    margin-right: 4px;
    margin-left: 0;
    order: -1; /* Put currency icon before the number in RTL */
}

[dir="rtl"] .add-btn {
    right: auto;
    left: 8px;
}

/* Product Image RTL */
[dir="rtl"] .product-image {
    text-align: right;
}

/* Complete Product Card RTL Layout */
[dir="rtl"] .product-card * {
    text-align: right;
}

[dir="rtl"] .product-card .current-price,
[dir="rtl"] .product-card .original-price,
[dir="rtl"] .product-card .save-badge,
[dir="rtl"] .product-card .product-title,
[dir="rtl"] .product-card .product-timer {
    text-align: right;
}

/* Promotional Banners RTL */
[dir="rtl"] .promotional-banners-container {
    direction: rtl;
}

/* Save Big Section RTL */
[dir="rtl"] .save-big-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .save-big-section {
    text-align: right;
}

[dir="rtl"] .save-big-header .section-title {
    text-align: right !important;
    direction: rtl;
}

/* All Section Titles RTL */
[dir="rtl"] .section-title {
    text-align: right !important;
    direction: rtl;
    padding-left: 0;
    padding-right: 16px;
    justify-content: flex-end;
}

[dir="rtl"] .section-title .currency-icon {
    margin-right: 0;
    margin-left: 6px;
    order: -1;
}

/* Language Switcher RTL */
[dir="rtl"] .lang-btn {
    flex-direction: row-reverse;
}

/* Stat Items RTL */
[dir="rtl"] .user-stats {
    flex-direction: row-reverse;
}

[dir="rtl"] .stat-item {
    flex-direction: row-reverse;
}

/* Responsive RTL Adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .header-content {
        justify-content: space-between;
    }
    
    [dir="rtl"] .language-switcher {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .coupons-section {
        padding: 3px 0px;
    }
    
    [dir="rtl"] .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    [dir="rtl"] .lang-text {
        font-size: 12px;
    }
} 