/* Variables de colores */
:root {
    --primary: #e74c3c;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --success: #27ae60;
    --warning: #e67e22;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --border: #bdc3c7;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.2);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--accent);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}

.search-bar input {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
}

.search-bar input:focus {
    box-shadow: 0 0 0 2px var(--accent);
}

.search-bar button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #e67e22;
}

.user-cart {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    position: relative;
    cursor: pointer;
}

.user-info span {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.user-info:hover .user-menu {
    display: block;
}

.user-menu a {
    display: block;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.login-btn,
.register-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.login-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.register-btn {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

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

.register-btn:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.cart-whatsapp button {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.cart-whatsapp button:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#cart-count {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    min-width: 20px;
    text-align: center;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.whatsapp-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Categorías */
.categories {
    padding: 3rem 0;
    background: white;
    margin: 0 1rem 2rem 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: 2rem;
    position: relative;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, var(--light) 0%, #dfe6e9 100%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.category-card:hover i {
    transform: scale(1.1);
}

.category-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--text-light);
    font-weight: 500;
}

/* Productos */
.products {
    padding: 3rem 0;
    background: white;
    margin: 0 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    font-size: 2rem;
    position: relative;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.product-card {
    background: var(--light);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.product-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-card .stock {
    color: var(--success);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.add-to-cart {
    background: var(--success);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.add-to-cart:hover {
    background: #219653;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Modal del Carrito */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.modal-content h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

#cart-items {
    margin: 2rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 2px solid var(--border);
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-info h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-item-info .price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 0.5rem;
    border-radius: 25px;
    border: 2px solid var(--border);
}

.quantity-btn {
    background: var(--light);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
}

.remove-item {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-item:hover {
    background: #c0392b;
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-cart i {
    margin-bottom: 1rem;
    color: var(--border);
}

.cart-total {
    text-align: center;
    padding-top: 2rem;
    border-top: 3px solid var(--border);
}

.cart-total p {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.whatsapp-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.whatsapp-btn:hover {
    background: #219653;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

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

/* Información de datos de usuario en el carrito */
.user-data-info {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.user-data-info p {
    margin: 0;
    color: var(--success);
    font-size: 0.9rem;
}

.login-required p:last-child {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Vista previa de datos del usuario en el carrito */
.user-info-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid var(--success);
}

.user-info-preview h4 {
    color: var(--success);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-data-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.user-data-preview p {
    margin: 0.5rem 0;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-data-preview p:last-child {
    border-bottom: none;
}

.user-data-preview strong {
    color: var(--secondary);
    min-width: 80px;
    display: inline-block;
}

/* Resultados de Búsqueda */
.search-results {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.search-results-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.close-search {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

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

.search-results-content h2 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.search-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section i {
    margin-right: 0.8rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Estilos para autenticación */
.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.8rem;
}

.auth-btn {
    width: 100%;
    background: var(--success);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: #219653;
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
}

.auth-links p {
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.demo-account {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f5e8;
    border-radius: 10px;
    border-left: 4px solid var(--success);
}

.demo-account h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.demo-account p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert.error {
    background: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert.success {
    background: #eff;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Perfil */
.profile-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.profile-header h2 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #219653;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--light);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.profile-info {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.profile-info h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.profile-info p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Vista previa de WhatsApp en perfil */
.whatsapp-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--success);
}

.whatsapp-preview h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.preview-content p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.preview-content ul {
    list-style: none;
    padding: 0;
}

.preview-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.preview-content li:last-child {
    border-bottom: none;
}

.preview-content strong {
    color: var(--secondary);
}

.preview-content em {
    color: var(--text-light);
    font-style: italic;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.notification.error {
    background: var(--primary);
}

.notification.warning {
    background: var(--warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .search-bar {
        max-width: 100%;
        order: 3;
    }
    
    .banner h2 {
        font-size: 2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .category-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .user-cart {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .login-btn,
    .register-btn {
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .profile-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .category-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .search-bar input {
        padding: 0.6rem 1rem;
    }
    
    .cart-whatsapp button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}