/* Mobile specific styles for AV Pro Supply */

@media (max-width: 1024px) {
    .product-hero-layout {
        flex-direction: column;
        gap: 30px;
    }

    .product-title-custom {
        font-size: 24px;
    }

    .product-price-custom .price {
        font-size: 32px;
    }

    .product-actions-custom {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions-custom .single_add_to_cart_button {
        width: 100% !important;
    }

    /* Black Rectangle Effect */
    .product-dark-section {
        margin-top: -20px;
        padding: 40px 0;
        border-top-left-radius: 40px;
        border-top-right-radius: 40px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }

    .tabs-and-manual {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .product-tabs-custom .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .icon-features .features-wrapper {
        grid-template-columns: 1fr;
    }

    .icon-features .feature-item {
        border-right: none;
        border-bottom: 1px solid #F0F2F4;
    }

    .icon-features .feature-item:last-child {
        border-bottom: none;
    }

    .product-info-table .info-row {
        font-size: 14px;
    }

    .expert-block {
        flex-direction: column;
        text-align: center;
    }

    .expert-contacts {
        flex-direction: column;
        gap: 10px;
    }
}

/* Products Grid Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .products-grid .custom-product-card {
        padding: 15px !important;
        border-radius: 16px !important;
        height: auto !important; /* Overrides the fixed 425px height */
    }
    
    .products-grid .custom-product-card .product-img-wrap {
        height: 140px !important;
        margin-bottom: 15px !important;
    }
    
    .products-grid .custom-product-card h3 {
        font-size: 14px !important;
        height: 38px !important;
        margin-bottom: 10px !important;
        line-height: 1.35 !important;
    }
    
    .products-grid .custom-product-card .product-price {
        font-size: 16px !important;
    }
    
    .products-grid .custom-product-card .brand-name {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }
    
    .products-grid .custom-product-card .product-sku {
        font-size: 10px !important;
        margin-bottom: 3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .products-grid .custom-product-card .product-btns {
        gap: 6px !important;
    }
    
    .products-grid .custom-product-card .wishlist-btn,
    .products-grid .custom-product-card .add-to-cart-circle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .products-grid .custom-product-card .wishlist-btn img,
    .products-grid .custom-product-card .add-to-cart-circle img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .products-grid .custom-product-card .wishlist-btn .wishlist-icon {
        width: 32px !important;
        height: 32px !important;
    }
    
    .products-grid .custom-product-card .add-to-cart-circle .cart-icon {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Search page header adjustments */
    .search-results-page .shop-header {
        padding: 24px 0 16px !important;
    }
    .search-results-page .shop-title {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .products-grid .custom-product-card {
        padding: 10px !important;
        border-radius: 12px !important;
    }
    
    .products-grid .custom-product-card .product-img-wrap {
        height: 110px !important;
        margin-bottom: 10px !important;
    }
    
    .products-grid .custom-product-card h3 {
        font-size: 12px !important;
        height: 32px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    .products-grid .custom-product-card .product-price {
        font-size: 14px !important;
    }
    
    .products-grid .custom-product-card .brand-name {
        font-size: 9px !important;
    }
    
    .products-grid .custom-product-card .product-sku {
        font-size: 9px !important;
    }
}