/**
 * RRT Webshop - Estilos Responsive
 * Media Queries para diferentes tamaños de pantalla
 */

/* Tablets y Pantallas Medianas */
@media (max-width: 992px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.125rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-main-image {
        height: 400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }
    
    .banner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: var(--spacing-md);
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .slider-arrow.prev {
        left: var(--spacing-xs);
    }
    
    .slider-arrow.next {
        right: var(--spacing-xs);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-title {
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .product-card-price {
        font-size: 1.25rem;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-card {
        height: 150px;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
    }
    
    .cart-table {
        font-size: 0.875rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: var(--spacing-sm);
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .header-content {
        padding: var(--spacing-sm) 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-gray);
        cursor: pointer;
        padding: var(--spacing-xs);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .col-6,
    .col-4,
    .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
        max-height: 95vh;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
}

/* Móviles Pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.875rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image {
        height: 200px;
    }
    
    .product-main-image {
        height: 250px;
    }
    
    .product-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: block;
    }
    
    .cart-table tr {
        display: block;
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--light-gray);
        border-radius: var(--border-radius);
        padding: var(--spacing-sm);
    }
    
    .cart-table td {
        display: block;
        text-align: right;
        padding: var(--spacing-xs) 0;
        border-bottom: none;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark-gray);
    }
    
    .banner-card {
        height: 120px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* Pantallas Grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-slider {
        height: 600px;
    }
    
    .slide-content h1 {
        font-size: 3.5rem;
    }
    
    .slide-content p {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Orientación Landscape en Móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 400px;
    }
    
    .product-main-image {
        height: 400px;
    }
}

/* Impresión */
@media print {
    .webshop-header,
    .webshop-footer,
    .slider-controls,
    .slider-arrow,
    .product-actions,
    .cart-actions {
        display: none;
    }
    
    .hero-slider {
        height: auto;
    }
    
    .slide {
        position: relative;
        opacity: 1;
        page-break-inside: avoid;
    }
}

