/* ===== MOBILE VISUAL BALANCE FIXES - Feb 2026 ===== */

/* Address specific mobile balance issues */

@media (max-width: 768px) {
    
    /* ===== PREVENT HORIZONTAL SCROLL ===== */
    body {
        overflow-x: hidden !important;
    }
    
    .site {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* ===== HEADER BALANCE ===== */
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
    }
    
    /* Ensure header doesn't get too tall */
    .woocommerce-bar {
        padding: 14px 16px !important;
        min-height: auto !important;
    }
    
    /* ===== CONTENT BALANCE ===== */
    .site-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Better spacing for main content */
    main.site-main {
        padding: 20px 0 !important;
    }
    
    /* ===== PRODUCT GRID MOBILE BALANCE ===== */
    .woocommerce ul.products {
        display: block !important;
        padding: 16px !important;
        background: #f9fafb !important;
        margin: 0 !important;
    }
    
    .woocommerce ul.products li.product {
        width: 100% !important;
        display: block !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
        background: white !important;
        border-radius: 12px !important;
        padding: 16px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        border: 1px solid #e5e7eb !important;
    }
    
    /* Product images - better balance */
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
    }
    
    /* Product title balance */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: 2.8em !important;
    }
    
    /* Price balance */
    .woocommerce ul.products li.product .price {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #6366f1 !important;
        margin: 12px 0 16px 0 !important;
        text-align: left !important;
        background: linear-gradient(135deg, #f8faff, #ffffff) !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
        border-left: 3px solid #6366f1 !important;
    }
    
    /* Button balance */
    .woocommerce ul.products li.product .button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
        color: white !important;
        border: none !important;
        text-align: center !important;
        margin-top: auto !important;
        transition: all 0.2s ease !important;
    }
    
    .woocommerce ul.products li.product .button:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    }
}
