/* Reset y Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - alineado con index.html */
.catalog-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.catalog-navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.catalog-navbar .logo:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.catalog-navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.catalog-navbar .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.catalog-navbar .nav-links a:hover {
    color: var(--primary-color);
}

.catalog-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.catalog-actions .currency-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.catalog-actions .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.catalog-actions .user-info i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.catalog-actions .cart {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.catalog-actions .cart:hover {
    color: var(--primary-color);
}

.catalog-actions .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.catalog-actions .btn-config {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.catalog-actions .btn-config:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Auth Section */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.auth-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.auth-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.auth-info ul {
    list-style: none;
}

.auth-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.auth-info i {
    color: var(--success-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:not(.btn-primary):not(.btn-secondary) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn:not(.btn-primary):not(.btn-secondary):hover {
    background: var(--text-muted);
    color: white;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn.btn-disabled {
    background: #4b5563 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid #6b7280 !important;
}

.btn.btn-disabled:hover {
    background: #4b5563 !important;
    transform: none !important;
}

/* Products Section */
.products-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Filters Panel */
.filters-panel {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    margin-bottom: 0.5rem;
}

.filter-info i {
    color: #fbbf24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.filters-panel .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    min-width: 150px;
}

.filters select:focus,
.filters input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.results-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sort-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sort-info i {
    color: var(--primary-color);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-progress {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#progressText {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-usd {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-ars {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-level {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-high {
    background: #064e3b;
    color: #6ee7b7;
    border: 1px solid #065f46;
}

.stock-low {
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

.stock-none {
    background: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-add-cart:hover {
    background: #059669;
}

.btn-add-cart.btn-disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid #6b7280;
}

.btn-add-cart.btn-disabled:hover {
    background: #4b5563;
    transform: none;
}

.btn-details {
    background: var(--info-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-details:hover {
    background: #2563eb;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Footer */
footer {
    background: #333;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .filters-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select,
    .filters input {
        min-width: auto;
    }
    
    .results-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .filters-panel {
        padding: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
}

/* Estilos adicionales para tema oscuro */
.detail-item {
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.attribute {
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 3rem;
    border: 1px solid var(--border-color);
}

/* Mejorar contraste en inputs y selects */
input, select, textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Mejorar contraste en placeholders */
input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* Estilos para elementos de autenticación */
.auth-info {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
    border: 1px solid var(--border-color);
}

/* Mejorar contraste en mensajes de error */
.error-message {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fca5a5;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

/* Mejorar contraste en elementos sin productos */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ===== ESTILOS DEL CARRITO DE COMPRAS ===== */

/* Modal del carrito - más ancho */
.cart-modal-content {
    max-width: 800px;
    max-height: 90vh;
}

/* Pie del modal del carrito */
.cart-modal-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

.cart-total h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.total-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.total-usd {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-ars {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Carrito vacío */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--text-secondary);
}

/* Items del carrito */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.cart-item:hover {
    box-shadow: var(--shadow-lg);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 2rem;
    color: var(--text-muted);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-info h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.cart-item-brand {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.cart-item-sku {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

.cart-item-prices {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cart-price-usd {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-price-ars {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 180px;
}

/* Controles de cantidad */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.8rem;
}

.qty-btn:hover {
    background: var(--primary-dark);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem;
    border-radius: 4px;
}

.qty-input:focus {
    outline: 2px solid var(--primary-color);
}

/* Chrome, Safari, Edge, Opera - ocultar flechas del input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox - ocultar flechas del input number */
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Subtotales del item */
.cart-item-subtotal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.subtotal-usd {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subtotal-ars {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Botón eliminar item */
.btn-remove-item {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-remove-item:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-remove-item:active {
    transform: scale(0.95);
}

/* Responsive para el carrito */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }
    
    .cart-item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
        min-width: 0;
    }
    
    .cart-total {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .total-prices {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-item-controls {
        flex-wrap: wrap;
    }
    
    .quantity-controls {
        order: 1;
    }
    
    .cart-item-subtotal {
        order: 2;
        align-items: flex-start;
    }
    
    .btn-remove-item {
        order: 3;
        width: 100%;
    }
}

