/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Cart Page Mobile */
@media (max-width: 768px) {
    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-img {
        width: 100%;
        height: 200px;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* Product Detail Page Mobile */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .detail-gallery {
        position: static;
    }

    .detail-main-img-wrap {
        height: 300px;
    }

    .detail-title {
        font-size: 1.75rem;
    }

    .detail-price {
        font-size: 2rem;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .btn-add-to-cart {
        width: 100%;
    }
}

/* Orders Page Mobile */
@media (max-width: 768px) {
    .orders-header h1 {
        font-size: 1.75rem;
    }

    .order-card {
        padding: 1.25rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-actions {
        width: 100%;
        flex-direction: column;
    }

    .order-actions button {
        width: 100%;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets for touch devices */
    .btn,
    .filter-btn,
    .pagination button {
        min-height: 44px;
    }

    .product-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .btn-add:hover {
        transform: none;
    }
}