/* ===== HOMEPAGE MOBILE IMPROVEMENTS ===== */
/* Created: 2026-01-11 - Comprehensive mobile styling for homepage */

@media (max-width: 768px) {

    /* Hero Section Mobile */
    .hero {
        padding: 100px 0 40px !important;
    }

    .hero-inner {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        text-align: center !important;
    }

    .hero-badge {
        justify-content: center !important;
    }

    .hero-cta {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-cta .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .trust-badges {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .trust-badge {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }

    /* Steps Mobile */
    .steps {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .step {
        padding: 16px !important;
    }

    .step-number {
        width: 40px !important;
        height: 40px !important;
    }

    .step-content h4 {
        font-size: 14px !important;
    }

    .step-content p {
        font-size: 12px !important;
    }

    /* Form Card Mobile */
    .form-card {
        padding: 20px !important;
        margin: 0 -4px !important;
        border-radius: 16px !important;
    }

    .form-header {
        text-align: center !important;
    }

    .form-header h3 {
        font-size: 18px !important;
    }

    .form-header p {
        font-size: 13px !important;
    }

    .form-input {
        padding: 14px 16px !important;
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .form-input.code-input {
        font-size: 18px !important;
        letter-spacing: 0.12em !important;
    }

    .btn-submit {
        padding: 16px !important;
        font-size: 16px !important;
    }

    /* Products Section Mobile */
    .products-grid {
        gap: 16px !important;
    }

    .product-card {
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    }

    .product-card:hover {
        transform: none !important;
    }

    .product-image {
        min-height: 80px !important;
        padding: 16px 20px !important;
        margin-bottom: 12px !important;
    }

    .product-image .product-name-text {
        font-size: 16px !important;
    }

    .product-content {
        padding: 16px !important;
    }

    .product-content h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .product-content p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .product-price {
        margin-bottom: 12px !important;
    }

    .product-price .current {
        font-size: 20px !important;
    }

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

    .product-features {
        margin-bottom: 12px !important;
    }

    .product-features li {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .product-card .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    /* Features Section Mobile */
    .feature-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    .feature-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 16px !important;
    }

    .feature-card h3 {
        font-size: 15px !important;
    }

    .feature-card p {
        font-size: 13px !important;
    }

    /* Stats Section Mobile */
    .stats-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-item {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .stat-number {
        font-size: 24px !important;
    }

    .stat-label {
        font-size: 11px !important;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        gap: 16px !important;
    }

    .testimonial-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    /* Support Section Mobile */
    .support-card {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .support-card h2 {
        font-size: 20px !important;
    }

    .support-card p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    /* Category Tabs Mobile */
    .category-tabs-wrapper {
        margin: 0 -16px 24px -16px !important;
        padding: 0 16px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .category-tabs-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .category-tabs {
        padding: 4px !important;
        gap: 8px !important;
        width: max-content !important;
        min-width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .category-tab {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .tab-text {
        display: inline !important;
        /* Keep text visible on mobile */
    }

    .tab-count {
        display: inline-flex !important;
        /* Keep count visible on mobile */
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 32px !important;
    }

    .section-label {
        font-size: 11px !important;
        padding: 5px 12px !important;
    }

    .section-title {
        font-size: 22px !important;
    }

    .section-desc {
        font-size: 14px !important;
    }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (max-width: 768px) {

    /* Larger touch targets */
    .btn,
    button,
    a.btn {
        min-height: 44px !important;
    }

    /* Prevent text selection on interactive elements */
    .btn,
    .category-tab,
    .product-card {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Active states for touch feedback */
    .btn:active,
    .category-tab:active {
        transform: scale(0.98) !important;
    }

    /* Smooth scrolling */
    .category-tabs-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    /* Disable hover effects on touch */
    .product-card:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
}

/* ===== LIGHT MODE DEFAULTS ===== */
/* Ensure backgrounds are light by default */
body:not(.dark-mode) {
    background: #f8fafc;
}

body:not(.dark-mode) main {
    background: #f8fafc;
}

body:not(.dark-mode) .section-muted {
    background: #f1f5f9;
}