/* CRITICAL MOBILE FIX - Load this AFTER all other CSS */
* {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

body {
    overflow-x: hidden !important;
}

h1, h2, h3, h4, h5, h6, .product-name, .category-card h3, .shop-header h1 {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

p, .product-price, .product-description, .category-card p {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .container {
        padding: 15px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .product-card {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .product-name {
        font-size: 15px !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }

    .product-info {
        padding: 12px !important;
        overflow: hidden !important;
    }

    .add-to-cart-btn {
        font-size: 12px !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .category-card {
        height: 220px !important;
    }

    .category-card h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .product-name {
        font-size: 14px !important;
    }

    .add-to-cart-btn {
        font-size: 11px !important;
        padding: 8px !important;
    }

    .category-card {
        height: 200px !important;
    }

    .category-card h3 {
        font-size: 16px !important;
    }
}
