/* === HOJA DE ESTILOS HUERTOHOGAR - FINAL Y COMPLETA === */

/* Barra de información superior */
.top-info-bar {
    background: linear-gradient(135deg, #2e8b57, #4CAF50);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.top-info-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.info-left, .info-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.info-left span, .info-right span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.info-left i, .info-right i {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .top-info-bar {
        display: none;
    }
}

/* --- 1. Variables y Estilos Base --- */
:root {
    /* Paleta de colores oficial del PDF */
    --color-background: #F7F7F7;
    --color-primary: #2E8B57;      /* Verde Esmeralda */
    --color-accent: #FFD700;       /* Amarillo Mostaza */
    --color-title: #8B4513;        /* Marrón Claro */
    --color-text-main: #333333;    /* Gris Oscuro */
    --color-text-secondary: #666666; /* Gris Medio */
    
    /* Fuentes oficiales del PDF */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Utilidades de diseño */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}
body.cart-open { overflow: hidden; }

/* --- 2. Encabezado y Navegación --- */
.main-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(46, 139, 87, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text-main);
    transition: transform 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.logo-container:hover {
    transform: translateY(-1px);
}

.logo { 
    max-width: 55px; 
    height: auto; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.15);
    transition: box-shadow 0.3s ease;
}

.logo-container:hover .logo {
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.25);
}

.logo-container h2 { 
    font-family: 'Playfair Display', serif; 
    color: var(--color-primary); 
    margin: 0; 
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.logo-container:hover h2 {
    color: #4CAF50;
}
.main-nav { 
    display: flex; 
    gap: 2.5rem; 
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #4CAF50);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.main-nav a:hover {
    color: var(--color-primary);
    background: rgba(46, 139, 87, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.1);
}

.main-nav a:hover::after { 
    width: 80%; 
}
.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 1.25rem; 
    position: relative;
    z-index: 10;
}
.search-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(46, 139, 87, 0.15);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    width: 280px;
    position: relative;
}

.search-bar:hover {
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.12);
    border-color: rgba(46, 139, 87, 0.25);
    background: #ffffff;
}

.search-bar:focus-within {
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.15);
    border-color: var(--color-primary);
    background: #ffffff;
    transform: translateY(-1px);
}
.search-bar i { 
    color: #666; 
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.4rem 0.75rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    -webkit-autofill: none;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: var(--color-text-main);
}

.search-bar input::placeholder {
    color: #999;
    font-style: italic;
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-bar:focus-within input::placeholder {
    color: #bbb;
}

/* Dropdown de búsqueda simple */
.search-bar {
    position: relative;
    overflow: visible;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    overflow: visible;
    white-space: nowrap;
    margin-top: 2px;
    min-width: 100%;
    max-width: 400px;
}

.search-dropdown.show {
    display: block;
}

.suggestion-text {
    display: block;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    box-sizing: border-box;
}

.suggestion-text:hover {
    background: #f8f9fa;
}

.suggestion-text:last-child {
    border-bottom: none;
}
.login-link {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 139, 87, 0.15);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 6px rgba(46, 139, 87, 0.05);
    white-space: nowrap;
    font-size: 0.9rem;
}

.login-link:hover { 
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.25);
}

/* Estilos para el perfil de usuario */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    background: rgba(46, 139, 87, 0.1);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.user-name:hover {
    background: rgba(46, 139, 87, 0.15);
    transform: translateY(-1px);
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.user-profile:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.user-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.user-menu-item:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-primary);
}

.logout-btn {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.25rem;
    color: #dc3545 !important;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
}

/* Estilos para el sistema de búsqueda */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: rgba(46, 139, 87, 0.1);
    transform: translateX(4px);
}

.search-suggestion::after {
    content: '→';
    color: var(--color-primary);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-suggestion:hover::after {
    opacity: 1;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-secondary);
}

.no-results h3 {
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
}

/* Estilos mejorados para página de detalle de producto */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    align-items: start;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.product-image-column {
    position: sticky;
    top: 2rem;
}

.product-image-column img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-image-column img:hover {
    transform: scale(1.02);
}

.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem 0;
}

.product-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-family: var(--font-heading);
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
    padding-bottom: 1rem;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 0 3rem 0 !important;
    padding: 1rem;
    background: rgba(46, 139, 87, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.product-meta {
    background: rgba(46, 139, 87, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(46, 139, 87, 0.1);
    margin-bottom: 2rem !important;
}

.product-meta p {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.product-actions .btn {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.product-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
    background: #4CAF50;
}

/* Selector de cantidad centrado */
.quantity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quantity-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #495057;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Times New Roman', serif;
}

.quantity-btn:hover {
    background: #e9ecef;
    color: #2E8B57;
    border-color: #2E8B57;
}

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

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ced4da;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    background: #ffffff;
    outline: none;
    font-family: 'Times New Roman', serif;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-guarantees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(46, 139, 87, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.product-guarantees .guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid rgba(46, 139, 87, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.product-guarantees .guarantee-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.social-share a:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.reviews-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-surface);
    border-radius: 12px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.review {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.review-text {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Responsive mejorado para página de detalle */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .product-image-column {
        position: static;
    }
    
    .product-image-column img {
        height: 300px;
    }
    
    .product-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .product-description {
        text-align: center;
        padding: 1rem;
    }
    
    .product-meta {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .product-actions {
        /* padding eliminado para quitar el recuadro de fondo */
        display: flex;
    }
    
    .product-actions .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 240px;
    }
    
    .quantity-controls {
        padding: 0.4rem;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 1rem;
    }
    
    .product-guarantees {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .product-detail-layout {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .product-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .product-image-column img {
        height: 250px;
    }
    
    .product-description {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .product-meta {
        padding: 0.75rem;
    }
    
    .product-actions {
        /* padding eliminado para quitar el recuadro de fondo */
        display: flex;
    }
    
    .product-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .quantity-controls {
        padding: 0.3rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .quantity-input {
        width: 45px;
        height: 32px;
        font-size: 0.95rem;
    }
    
    .quantity-label {
        font-size: 0.9rem;
    }
    
    .product-guarantees {
        padding: 0.75rem;
    }
    
    .product-guarantees .guarantee-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Estilos para página de producto individual */
.top-bar {
    background: #000;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.top-bar-text {
    margin: 0;
    font-weight: 500;
}

.top-bar-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    background: none;
    border: 1px solid #333;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.nav-arrow:hover {
    background: #333;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb-separator {
    color: #666;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

.product-detail-section {
    padding: 3rem 0;
    background: white;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-image-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.image-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    background: none;
    padding: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

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

.product-info {
    padding: 1rem 0;
}

.product-header {
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

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

.product-pricing {
    margin-bottom: 2rem;
}

.price-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

.price-info {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}


.product-meta {
    background: rgba(46, 139, 87, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item i {
    color: var(--color-primary);
    width: 16px;
}

.product-actions {
    margin-bottom: 2rem;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: fit-content;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

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

#quantity {
    border: none;
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.add-to-cart-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--color-primary);
    width: 16px;
}

/* Product Tabs - Diseño Mejorado */
.product-tabs {
    background: white;
    padding: 3rem 0;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
    margin-top: 3rem;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tabs-nav {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    background: rgba(46, 139, 87, 0.03);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
    position: relative;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(46, 139, 87, 0.15);
    border-bottom: 3px solid var(--color-primary);
}

.tabs-content {
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 2rem;
    border: 1px solid rgba(46, 139, 87, 0.1);
    position: relative;
}


.tab-panel {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

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

.tab-panel h3 {
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

.tab-panel h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #4CAF50);
    border-radius: 2px;
}

.tab-panel ul {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.tab-panel li {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #f0f7f0);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    font-weight: 500;
}

.tab-panel li::before {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.tab-panel li {
    padding-left: 3rem;
}

.tab-panel li:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(76, 175, 80, 0.05));
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.1);
}

/* Tabla Nutricional Mejorada */
.nutrition-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 2rem 0;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    border: 2px solid #e8f5e8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nutrition-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nutrition-row:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05), rgba(76, 175, 80, 0.02));
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.15);
}

.nutrition-row:hover::before {
    opacity: 1;
}

.nutrition-label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Emoji de hoja eliminado - no se usa */

.nutrition-value {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(46, 139, 87, 0.1);
}

/* Responsive mejorado para pestañas y tabla nutricional */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .tabs-content {
        padding: 2rem 1.5rem;
    }
    
    .tab-panel h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .nutrition-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nutrition-row {
        padding: 1rem 1.25rem;
    }
    
    .nutrition-label {
        font-size: 0.9rem;
    }
    
    .nutrition-value {
        font-size: 1rem;
    }
    
    .tab-panel li {
        padding: 0.875rem 1.25rem;
        padding-left: 2.5rem;
    }
}

/* Reviews */
.reviews-summary {
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

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

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-info strong {
    color: var(--color-text-primary);
}

.review-rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.review-date {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

.review-text {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Recommended Products - Diseño Simplificado */
.recommended-products {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #4CAF50);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Carrusel Infinito de Productos Recomendados - Diseño Simplificado */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    animation: scroll 25s linear infinite;
    width: calc(200% + 4rem); /* Doble ancho para duplicar elementos */
    position: relative;
    z-index: 2;
}

.carousel-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(46, 139, 87, 0.1);
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    width: 280px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 0.8;
        transform: translateY(0) scale(0.95);
    }
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(46, 139, 87, 0.15);
    border-color: var(--color-primary);
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
    min-height: 180px;
    max-height: 180px;
    flex-shrink: 0;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item-content {
    padding: 1.2rem;
    background: white;
    border-radius: 0 0 16px 16px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    max-height: 200px;
    flex: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}

.carousel-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-family: var(--font-heading);
    text-align: center;
    min-height: 45px;
    max-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item .price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.8rem 0;
    text-align: center;
    min-height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Badge de categoría mejorado */
.carousel-item .category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 4;
}

/* Rating stars mejorado */
.carousel-item .rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.carousel-item .rating .stars {
    color: #FFD700;
    font-size: 0.8rem;
}

.carousel-item .rating .rating-text {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Badge de oferta para carrusel */
.carousel-offer-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: offerPulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Badge de oferta para carrusel sin emoji duplicado */
.carousel-offer-badge::before {
    content: '';
    margin-right: 0;
    font-size: 0;
    animation: none;
}

/* Precios del carrusel */
.carousel-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 70px;
    max-height: 70px;
    justify-content: center;
}

.carousel-pricing .price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    margin: 0;
    text-align: center;
}

.carousel-pricing .original-price {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    margin: 0;
    opacity: 0.7;
    font-weight: 400;
}

/* Badge de descuento en carrusel */
.carousel-pricing .discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    animation: discountPulse 2.5s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0.2rem;
}

.carousel-pricing .discount-badge::before {
    content: '💥';
    margin-right: 0.2rem;
    animation: explosion 1s infinite;
}

/* Badge de ahorro en carrusel */
.carousel-pricing .savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    animation: savingsBounce 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0.2rem;
}

.carousel-pricing .savings-badge::before {
    content: '💰';
    margin-right: 0.2rem;
    animation: moneyShine 1.5s infinite;
}

/* Precio con oferta en carrusel */
.carousel-pricing .price.has-offer {
    color: #e74c3c;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
    animation: priceGlow 3s infinite;
}


/* Controles del Carrusel Infinito */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

/* carousel-btn eliminado - no se usa */

/* Estilos de carousel-btn eliminados - no se usan */

.carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.carousel-dot.active {
    background: white;
    border-color: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.carousel-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.carousel-dot:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.carousel-dot:hover::before {
    background: white;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive mejorado del Carrusel Infinito */
@media (max-width: 768px) {
    .recommended-products {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        padding: 0 1rem;
    }
    
    .carousel-item {
        flex: 0 0 260px;
        height: 360px;
        min-height: 360px;
        max-height: 360px;
        width: 260px;
    }
    
    .carousel-item img {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        flex-shrink: 0;
    }
    
    .carousel-item-content {
        padding: 1.25rem;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .carousel-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        min-height: 40px;
        max-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-item .price {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        min-height: 45px;
        max-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .carousel-item .category-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .carousel-item .rating {
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .recommended-products {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .carousel-container {
        padding: 0 1rem;
    }
    
    .carousel-item {
        flex: 0 0 240px;
        height: 340px;
        min-height: 340px;
        max-height: 340px;
        width: 240px;
    }
    
    .carousel-item img {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
        flex-shrink: 0;
    }
    
    .carousel-item-content {
        padding: 1rem;
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .carousel-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        min-height: 35px;
        max-height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-item .price {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        min-height: 40px;
        max-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
    .carousel-item .category-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .carousel-item .rating {
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    .carousel-controls {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    /* carousel-btn eliminado - no se usa */
    
    .product-detail-layout {
        padding: 0.5rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .product-image-column img {
        height: 280px;
    }
    
    .tabs-content {
        padding: 1.5rem 1rem;
    }
    
    .tab-panel h3 {
        font-size: 1.3rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .price-main {
        font-size: 2rem;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tabs-content {
        padding: 1rem;
    }
    
    .top-bar-content {
        padding: 0 1rem;
    }
    
    .breadcrumb-content {
        padding: 0 1rem;
    }
}

.logout-btn::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}
.cart-button {
    background: #ffffff;
    border: 1px solid rgba(46, 139, 87, 0.15);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    color: var(--color-primary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 6px rgba(46, 139, 87, 0.05);
}

/* Carrito flotante mejorado */
.cart-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

.cart-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(46, 139, 87, 0.4);
}

.cart-floating.show {
    display: flex;
}

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

.cart-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 87, 0.25);
}
.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(46, 139, 87, 0.3);
    border: 2px solid white;
}

/* --- 3. Componentes Generales --- */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin: 0 0 3rem 0;
    color: var(--color-title);
}
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-primary { 
    background-color: var(--color-primary); 
    color: white; 
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-secondary { background-color: #EAEAEA; color: var(--color-text-main); }

/* --- 4. Estilos de Secciones --- */
.hero-section {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(46, 139, 87, 0.3));
    z-index: 1;
}

/* --- Sección de Ofertas Especiales --- */
.offers-section {
    background: linear-gradient(135deg, #f8fffe, #ffffff);
    color: var(--color-text-main);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    margin: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(46, 139, 87, 0.08);
}

/* Banner Promocional Elegante */
.offers-banner {
    background: linear-gradient(135deg, #2E8B57, #4CAF50, #66BB6A);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

.offers-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"><defs><pattern id="elegant-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="50" r="0.8" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23elegant-pattern)"/></svg>');
    opacity: 0.6;
}

.offers-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.banner-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
    display: block;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.2;
}

.banner-description {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Header de la sección elegante */
.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(46, 139, 87, 0.1);
}

.offers-title-section {
    flex: 1;
}

.offers-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-main);
    font-weight: 600;
}

.offers-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
}

.offers-view-all-btn {
    background: transparent;
    color: var(--color-primary);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.offers-view-all-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    justify-items: center;
}

.offer-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0) scale(1);
    opacity: 1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    min-height: 400px;
    height: 100%;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover::before {
    opacity: 1;
}

.offer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(46, 139, 87, 0.2);
    border-color: rgba(46, 139, 87, 0.4);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 900;
    font-size: 0.9rem;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    font-family: var(--font-body);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    animation: offerPulse 2s infinite, offerShake 3s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-badge::before {
    content: '🔥';
    margin-right: 0.4rem;
    font-size: 1.1rem;
    animation: fireFlicker 1.5s infinite;
}

/* Badge de oferta cuando reemplaza al badge Popular (más ancho para mostrar OFF) */
.product-card .offer-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: offerPulse 2s infinite, offerShake 3s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Quitar el emoji duplicado del ::before cuando está en posición de Popular */
.product-card .offer-badge::before {
    content: '';
    margin-right: 0;
    font-size: 0;
    animation: none;
}

/* Etiquetas de temporada */
.season-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #4CAF50, #2E8B57);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Etiqueta de producto nuevo */
.new-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Barra de progreso de stock */
.stock-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.stock-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2E8B57);
    transition: width 0.3s ease;
}

.stock-progress.low {
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.stock-progress.out {
    background: #9e9e9e;
}

.offer-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    padding: 1.5rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px 16px 0 0;
}

.offer-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para el contenido de ofertas usando la estructura de product-card */
.offer-card .product-info {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    min-height: 160px;
    justify-content: space-between;
    gap: 0.25rem;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.offer-card .product-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    font-family: var(--font-heading);
    text-align: center;
    letter-spacing: 0.3px;
}

.offer-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-pricing {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.offer-card .offer-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    padding: 0.25rem 0;
}

.offer-card .offer-pricing .price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(46, 139, 87, 0.15);
    font-variant-numeric: tabular-nums;
}

.offer-card .offer-original-price {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    margin: 0;
    opacity: 0.6;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.offer-card .offer-discount {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: var(--color-title);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

/* Los botones de ofertas usan los mismos estilos que product-card */
.offer-card .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.75rem;
    width: 100%;
}

/* Estilos para precios de oferta en todas las tarjetas de productos */
.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

/* Badge de ahorro para vista de grid */
.product-pricing .savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    animation: savingsBounce 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0.2rem;
}

.product-pricing .savings-badge::before {
    content: '💰';
    margin-right: 0.2rem;
    animation: moneyShine 1.5s infinite;
}

/* Precio con oferta en vista de grid - Marketing Web */
.product-pricing .price.has-offer {
    color: #e74c3c;
    font-weight: 900;
    font-size: 1.9rem;
    text-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    animation: priceGlow 3s infinite;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: 1.5px;
}

.product-pricing .price.has-offer::before {
    content: '🔥';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: fireFlicker 2s infinite;
}

.product-pricing .price.has-offer:hover {
    transform: scale(1.08);
    text-shadow: 0 6px 12px rgba(231, 76, 60, 0.6);
    filter: brightness(1.2);
}

/* Precio original en vista de grid */
.product-pricing .original-price {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-decoration: line-through;
    font-weight: 600;
    position: relative;
    opacity: 0.8;
}

/* Unidad de medida para todos los productos */
.product-pricing .product-unit {
    font-size: 0.7rem;
    color: #95a5a6;
    font-weight: 600;
    margin-left: 0.3rem;
    display: inline-block;
    background: rgba(149, 165, 166, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    border: 1px solid rgba(149, 165, 166, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Información de origen del producto */
.product-origin {
    font-size: 0.75rem;
    color: #2e8b57;
    font-weight: 600;
    margin: 0.3rem 0;
    text-align: center;
    background: rgba(46, 139, 87, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

/* Unidad de medida en carrusel */
.carousel-pricing .product-unit {
    font-size: 0.65rem;
    color: #95a5a6;
    font-weight: 600;
    margin-left: 0.3rem;
    display: inline-block;
    background: rgba(149, 165, 166, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    border: 1px solid rgba(149, 165, 166, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Badges de calidad y certificaciones */
.quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 1px solid transparent;
}

.cert-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Badge Orgánico */
.cert-badge.organic {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: #27ae60;
}

/* Badge Local */
.cert-badge.local {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border-color: #3498db;
}

/* Badge Selección */
.cert-badge.fresh {
    background: linear-gradient(135deg, #f39c12, #f7dc6f);
    color: #8b4513;
    border-color: #f39c12;
}

/* Badge Temporada */
.cert-badge.seasonal {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
    color: white;
    border-color: #9b59b6;
}

/* Sistema de calificaciones profesional */
.product-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
    padding: 0.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
}

.product-rating:hover {
    transform: translateY(-0.5px);
}

.stars {
    display: flex;
    gap: 0.1rem;
    font-size: 1rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stars .star {
    color: #f39c12;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.stars .star:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(243, 156, 18, 0.6));
    color: #e67e22;
}

.rating-text {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .product-rating {
        padding: 0.15rem;
        gap: 0.25rem;
        margin: 0.4rem 0;
    }
    
    .stars {
        font-size: 0.95rem;
        gap: 0.08rem;
    }
    
    .rating-text {
        font-size: 0.65rem;
    }
    
    .badge-spacer {
        width: 80px;
        height: 28px;
        top: 0.8rem;
        left: 0.8rem;
    }
    
    .invisible-badge {
        width: 80px;
        height: 28px;
        top: 0.8rem;
        left: 0.8rem;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .product-rating {
        padding: 0.1rem;
        gap: 0.2rem;
        margin: 0.3rem 0;
    }
    
    .stars {
        font-size: 0.9rem;
        gap: 0.06rem;
    }
    
    .rating-text {
        font-size: 0.6rem;
    }
    
    .badge-spacer {
        width: 70px;
        height: 26px;
        top: 0.6rem;
        left: 0.6rem;
    }
    
    .invisible-badge {
        width: 70px;
        height: 26px;
        top: 0.6rem;
        left: 0.6rem;
    }
}

/* Animación sutil para las estrellas */
@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 8px rgba(243, 156, 18, 0.3);
    }
}

.stars:hover .star {
    animation: starGlow 1.5s infinite;
}

/* Efectos visuales y animaciones mejoradas */
.product-card {
    animation: cardSlideIn 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.product-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada de tarjetas */
@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos mejorados para imágenes */
.product-card img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.product-card:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Efectos para badges */
.product-card .offer-badge,
.product-card .new-badge,
.product-card .season-badge {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    position: relative;
}

.product-card:hover .offer-badge,
.product-card:hover .new-badge,
.product-card:hover .season-badge {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Efectos para información de producto */
.product-info {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .product-info {
    transform: translateY(-2px);
}

/* Efectos para botones de acción */
.product-actions {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.product-card:hover .product-actions {
    transform: translateY(-3px);
}

.product-actions .view-details-btn,
.product-actions .add-to-cart-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-actions .view-details-btn:hover,
.product-actions .add-to-cart-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Efecto de ripple para botones */
.product-actions .view-details-btn::after,
.product-actions .add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-actions .view-details-btn:active::after,
.product-actions .add-to-cart-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Efectos para badges de calidad */
.quality-badges .cert-badge {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .quality-badges .cert-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Efectos para calificaciones */
.product-rating {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .product-rating {
    transform: translateY(-1px);
}

/* Efectos para información de origen */
.product-origin {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .product-origin {
    transform: translateY(-1px);
    background: rgba(46, 139, 87, 0.15);
}

/* Efectos para precios */
.product-pricing {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover .product-pricing {
    transform: translateY(-1px);
}

/* Animación de pulso para ofertas */
@keyframes offerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
        transform: scale(1.02);
    }
}

.product-card .offer-badge {
    animation: offerPulse 2s infinite;
}

/* Efecto de brillo para productos populares */
@keyframes popularGlow {
    0%, 100% {
        box-shadow: 0 0 3px rgba(241, 196, 15, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
        transform: scale(1.01);
    }
}

.product-card .new-badge {
    animation: popularGlow 3s infinite;
}

/* Espacio reservado para mantener alineación */
.badge-spacer {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 90px;
    height: 30px;
    z-index: 3;
    background: transparent;
    border: none;
    pointer-events: none;
    /* Invisible pero ocupa el espacio exacto */
}

/* Badge invisible para mantener alineación */
.invisible-badge {
    display: none;
}









/* Badge de descuento en vista de grid */
.product-pricing .discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    animation: discountPulse 2.5s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 0.2rem;
}

.product-pricing .discount-badge::before {
    content: '💥';
    margin-right: 0.2rem;
    animation: explosion 1s infinite;
}

.product-pricing .price {
    font-size: 1.9rem;
    font-weight: 900;
    color: #27ae60;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
    margin: 0;
    text-align: center;
    text-shadow: 0 3px 6px rgba(39, 174, 96, 0.3);
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-pricing .price:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
    filter: brightness(1.1);
}

.product-pricing .original-price {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    margin: 0;
    opacity: 0.7;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.product-pricing .discount-badge {
    background: var(--color-accent);
    color: var(--color-title);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

/* Estilos para el modal de detalles */
.original-price-modal {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
    opacity: 0.7;
    font-weight: 400;
    font-family: var(--font-body);
}

.discount-badge-modal {
    background: var(--color-accent);
    color: var(--color-title);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

/* Asegurar que ambos botones sean visibles y usar estilos de product-card */
.offer-card .view-details-btn,
.offer-card .add-to-cart-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.offer-card .view-details-btn {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.offer-card .view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.offer-card .view-details-btn:hover::before {
    left: 100%;
}

.offer-card .view-details-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FFB300);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.offer-card .view-details-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.offer-card .view-details-btn:hover i {
    transform: translateX(2px);
}

.offer-card .add-to-cart-btn {
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

.offer-card .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.offer-card .add-to-cart-btn:hover::before {
    left: 100%;
}

.offer-card .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #257549, #2E8B57);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

/* Responsive para ofertas */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .offers-section {
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 0;
        max-width: 400px;
    }
    
    .offers-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .banner-title {
        font-size: 2.8rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .offers-banner {
        padding: 3.5rem 0;
        border-radius: 0 0 20px 20px;
    }
    
    .offers-section-title {
        font-size: 1.8rem;
    }
    
    .offer-card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: 360px;
        max-width: 350px;
    }
    
    .offer-content {
        padding: 1.2rem;
    }
    
    .offer-title {
        font-size: 1.1rem;
    }
    
    .offer-price {
        font-size: 1.6rem;
    }
    
    .offer-original-price {
        font-size: 0.9rem;
    }
    
    .offer-actions {
        gap: 0.6rem;
    }
    
    .offer-add-btn {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .offers-section {
        padding: 3rem 0;
    }
    
    .offers-section .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin: 0 0 2rem 0;
    }
    
    .offer-card img {
        height: 150px;
        padding: 1.25rem 1rem;
    }
    
    .offer-content {
        padding: 1rem;
    }
    
    .offer-title {
        font-size: 1rem;
    }
    
    .offer-price {
        font-size: 1.3rem;
    }
    
    .offer-card .view-details-btn,
    .offer-card .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .offer-card .view-details-btn i,
    .offer-card .add-to-cart-btn i {
        font-size: 0.9rem;
    }
}

.hero-section h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    font-weight: 800;
    margin: 0; 
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7); 
    background: linear-gradient(135deg, #ffffff, #f0f8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease-out;
}

.hero-section p { 
    font-size: 1.2rem; 
    font-weight: 500;
    margin: 1rem 0 2rem 0; 
    max-width: 600px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.6;
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2.5rem; 
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilos para pantallas muy grandes */
@media (min-width: 1400px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .category-grid {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .category-card.detailed-card {
        min-height: 650px;
    }
}

/* Estilos para tarjetas de categorías detalladas */
.category-card.detailed-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(46, 139, 87, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
    border: 2px solid rgba(46, 139, 87, 0.05);
    position: relative;
}

.category-card.detailed-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(46, 139, 87, 0.15);
    border-color: rgba(46, 139, 87, 0.2);
}

.category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card.detailed-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.8), rgba(255, 215, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.detailed-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay i {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.category-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-title);
    margin: 0 0 1rem 0;
    text-align: center;
}

.category-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    flex-grow: 1;
    min-height: 120px;
}

.category-features {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    flex-grow: 0;
}

.feature-tag {
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-text-main);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

.category-link:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(4px);
}

/* Contador de productos por categoría - Versión mejorada */
.product-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f7f0 50%, #e8f5e8 100%);
    border-radius: 12px;
    border: 2px solid #e8f5e8;
    font-size: 0.95rem;
    color: #2d5a2d;
    font-weight: 600;
    flex-grow: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    z-index: 10;
    transform: translateZ(0);
}

.product-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    border-radius: 3px;
    z-index: 1;
}

.product-count:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.2);
    border-color: #4CAF50;
    z-index: 15;
    border-width: 3px;
}

.product-count i {
    color: var(--color-primary);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(46, 139, 87, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.product-count:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(46, 139, 87, 0.3));
}

.count-number {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(46, 139, 87, 0.1);
    margin: 0 0.25rem;
}

/* Responsive para la sección de productos disponibles */
@media (max-width: 768px) {
    .product-count {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .count-number {
        font-size: 1.2rem;
    }
    
    .product-count i {
        font-size: 1rem;
    }
}

/* Estilos para tarjetas de categorías simples (mantener compatibilidad) */
.category-card:not(.detailed-card) { 
    position: relative; 
    overflow: hidden; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-soft); 
}

.category-card:not(.detailed-card) img { 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

.category-card:not(.detailed-card):hover img { 
    transform: scale(1.05); 
}

.category-card:not(.detailed-card) h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-family: var(--font-heading);
}
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid de productos optimizado para distribución perfecta */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid especial para 6 productos (página principal) */
.product-grid:has(.product-card:nth-child(6):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    gap: 2.5rem;
}

/* Grid especial para categorías con pocos productos */
.product-grid.few-products {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
    gap: 2.5rem;
}

/* Grid para productos destacados en la página principal */
.product-grid:not(.few-products) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    gap: 3rem;
}

/* Distribución perfecta para 6 productos */
.product-grid:not(.few-products) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
}

.product-grid:not(.few-products) .product-card {
    max-width: 350px;
    min-height: 480px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* Asegurar que las tarjetas tengan la misma altura y distribución perfecta */
.product-grid {
    align-items: stretch;
    justify-content: center;
}

/* Ajustes específicos para pantallas grandes */
@media (min-width: 1200px) {
    .product-grid:not(.few-products) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 3.5rem;
    }
}


.product-card {
    background: linear-gradient(135deg, #ffffff, #fafbfc);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.08);
    overflow: hidden;
    display: flex;
    border: 2px solid rgba(46, 139, 87, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    min-height: 520px;
    height: 100%;
    position: relative;
}

/* Animaciones para productos destacados */
.product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Animaciones escalonadas para 6 productos */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Efecto de hover mejorado para las tarjetas */
.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(46, 139, 87, 0.2);
    border-color: rgba(46, 139, 87, 0.3);
    background: linear-gradient(135deg, #ffffff, #f8faf9);
}

/* Efecto de hover para las imágenes */
.product-card:hover img {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(46, 139, 87, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    padding: 1.5rem;
    margin-top: 3.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px 8px 0 0;
}

.product-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.1);
}

/* Estilos especiales para imágenes de productos orgánicos y lácteos */
.product-card img[alt*="Miel"],
.product-card img[alt*="Quinua"],
.product-card img[alt*="Leche"] {
    padding: 1.5rem;
}
.product-info { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #fafafa);
    min-height: 220px;
    justify-content: space-between;
    gap: 0;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
}

.product-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.05), transparent);
}

.product-info h4 { 
    margin: 0 0 0.75rem 0; 
    font-size: 1.3rem; 
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info .price { 
    color: #27ae60; 
    font-weight: 900; 
    font-size: 1.9rem; 
    margin: 0 0 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 6px rgba(39, 174, 96, 0.3);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.product-info .price:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
    filter: brightness(1.1);
}
.add-to-cart-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 44px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover { 
    background: linear-gradient(135deg, #257549, #2E8B57);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

/* Estilos para acciones de productos */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

/* Ajustes específicos para alinear botones en la parte inferior de las cards de productos */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
}

.product-card .product-actions {
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 0;
}

/* Asegurar que todas las cards tengan la misma altura y alineación */
.product-grid {
    align-items: stretch;
}

.product-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

/* Ajustes para el contenido de la card */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Espaciado específico para elementos dentro de product-info */
.product-card .product-pricing {
    margin-bottom: 1rem;
}

.product-card .quality-badges {
    margin-bottom: 1rem;
}

/* Asegurar que los botones queden en la parte inferior */
.product-card .product-actions {
    margin-top: auto !important;
    padding-top: 1rem;
    margin-bottom: 0;
}

/* Forzar la alineación específica para cards con estilos inline */
.product-card[data-category="Verduras Orgánicas"] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 500px !important;
}

.product-card[data-category="Verduras Orgánicas"] .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    padding: 1rem !important;
}

.product-card[data-category="Verduras Orgánicas"] .product-actions {
    margin-top: auto !important;
    padding-top: 1rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    bottom: 0 !important;
}

/* Estilos generales para forzar la alineación en todas las cards de productos */
.product-grid .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 500px !important;
}

.product-grid .product-card .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    padding: 1rem !important;
}

.product-grid .product-card .product-actions {
    margin-top: auto !important;
    padding-top: 1rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    bottom: 0 !important;
}

/* Estilos responsivos para mantener la alineación */
@media (max-width: 768px) {
    .product-grid .product-card {
        min-height: 450px !important;
    }
    
    .product-card .product-actions {
        padding-top: 0.75rem !important;
    }
    
    .product-grid .product-card .product-actions {
        padding-top: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .product-grid .product-card {
        min-height: 420px !important;
    }
    
    .product-card .product-actions {
        padding-top: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    .product-grid .product-card .product-actions {
        padding-top: 0.5rem !important;
        gap: 0.5rem !important;
    }
}

.view-details-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: var(--color-text-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-details-btn:hover::before {
    left: 100%;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FFB300);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.view-details-btn i {
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: inherit;
    position: relative;
    z-index: 2;
}

.view-details-btn:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-details-btn:active i {
    transform: scale(1.1) rotate(0deg);
    transition: all 0.1s ease;
}

/* Estilos para acciones de productos */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    min-height: 120px;
    justify-content: flex-end;
}

.view-details-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: var(--color-text-main);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    flex-shrink: 0;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FFB300);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.view-details-btn i {
    font-size: 1rem;
}
.about-section { 
    background-color: var(--color-surface); 
    text-align: center; 
    padding: 4rem 2rem;
}

.about-content { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-content h2 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 600px;
}

.about-content .btn {
    margin-top: 0.5rem;
}

/* --- 5. Carrito Deslizable --- */
#cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1010; opacity: 0;
    transition: opacity 0.3s ease; pointer-events: none;
}
#cart-overlay.visible { opacity: 1; pointer-events: auto; }
#cart-offcanvas {
    position: fixed; top: 0; right: 0; width: 100%; max-width: 450px;
    height: 100%; background-color: white; z-index: 1020; display: flex;
    flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transform: translateX(100%); transition: transform 0.3s ease;
}
#cart-offcanvas.visible { transform: translateX(0); }
.hidden { display: block !important; visibility: hidden; }
#cart-overlay.visible.hidden, #cart-offcanvas.visible.hidden { visibility: visible; }

.cart-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 2rem 1.5rem 1.5rem; 
    border-bottom: 2px solid #f0f0f0; 
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
}
.cart-header h3 { 
    font-family: var(--font-heading); 
    margin: 0; 
    font-size: 1.8rem; 
    color: white; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.close-btn { 
    background: rgba(255,255,255,0.2); 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    color: white; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.3s ease;
}
.close-btn:hover { background: rgba(255,255,255,0.3); }

.cart-body { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 0; 
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #666;
    height: 100%;
}

.empty-cart i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.empty-cart small {
    color: #999;
    font-size: 0.9rem;
}

.cart-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 1.5rem; 
    border-bottom: 1px solid #f0f0f0; 
    transition: background 0.3s ease;
}
.cart-item:hover { background: #f8f9fa; }

.cart-item-image {
    flex-shrink: 0;
}

.cart-item img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-details { 
    flex-grow: 1; 
    min-width: 0;
}

.cart-item-name { 
    margin: 0 0 0.5rem 0; 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--color-text-primary);
    line-height: 1.3;
}

.cart-item-price { 
    color: var(--color-primary); 
    font-weight: 600; 
    font-size: 1rem; 
    margin-bottom: 0.3rem;
}

.cart-item-total {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0.2rem;
    border: 1px solid #e0e0e0;
}

.quantity-btn {
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quantity-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

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

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    padding: 0 0.5rem;
}

.remove-btn { 
    background: #ff4757; 
    color: white; 
    border: none; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; 
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}
.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.remove-btn:active {
    transform: scale(0.95);
}
.cart-footer { 
    padding: 2rem 1.5rem; 
    border-top: 2px solid #f0f0f0; 
    background: #f8f9fa; 
}

.summary-line { 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    color: var(--color-text-primary);
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-btn { 
    width: 100%; 
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* --- 6. Pie de Página --- */
.main-footer {
    background-color: #333333;
    color: #FFFFFF;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 3px solid #2E8B57;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}
.footer-section h4 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 1rem; color: var(--color-accent); }
.footer-section p { color: #CCCCCC; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { 
    text-decoration: none; 
    color: #FFFFFF; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; 
    padding: 0.25rem 0;
    border-radius: 4px;
    display: inline-block;
}
.footer-section a:hover { 
    color: #2E8B57; 
    background-color: rgba(46, 139, 87, 0.1);
    padding: 0.25rem 0.5rem;
    transform: translateX(4px);
}
.social-icons { display: flex; gap: 1rem; }
.social-icons a { font-size: 1.5rem; color: #FFFFFF; }
.footer-bottom { text-align: center; border-top: 1px solid #555555; padding-top: 2rem; color: var(--color-text-secondary); }

/* --- 7. Estilos de Páginas Adicionales --- */

.add-to-cart-btn-large {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.add-to-cart-btn-large:hover {
    background: linear-gradient(135deg, #257549, #2E8B57);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
}

.add-to-cart-btn-large i {
    font-size: 1.2rem;
}
.page-container { max-width: 1200px; margin: 2rem auto; padding: 2rem; }
.page-title { font-family: var(--font-heading); font-size: 3rem; text-align: center; margin-bottom: 3rem; color: var(--color-title); }
.page-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}
/* --- Información de Categoría Filtrada --- */
.category-info {
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    animation: slideInDown 0.5s ease-out;
}

.category-info i {
    font-size: 1.2rem;
    color: var(--color-accent);
}

.category-info span {
    flex-grow: 1;
    font-weight: 600;
}

.clear-filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.filters-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { background-color: #FFFFFF; border: 1px solid #DDDDDD; padding: 0.75rem 1.5rem; border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; }
.filter-btn:hover { background-color: #f0f0f0; }
.filter-btn.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }
.about-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-bottom: 4rem; text-align: left; }
.about-text-section h3 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-primary); margin-bottom: 1rem; }
.map-section { text-align: center; }
.map-section .section-title { margin-bottom: 1rem; }
.map-container { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-medium); border: 1px solid #EAEAEA; height: 480px; margin-bottom: 3rem; }

/* Estilos para la información de tiendas */
.stores-info {
    margin-top: 3rem;
}

.stores-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-title);
    margin-bottom: 2rem;
    text-align: center;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.store-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.store-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(46, 139, 87, 0.3);
}

.store-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.store-item div {
    flex-grow: 1;
}

.store-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-title);
    margin: 0 0 0.5rem 0;
}

.store-item p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.form-container { max-width: 500px; margin: 2rem auto; padding: 3rem; background-color: #FFFFFF; border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }
.form-group { 
    margin-bottom: 1.5rem; 
    position: relative;
}

/* Asegurar que el form-group con indicador de fortaleza mantenga su espaciado */
.form-group:has(#password-strength) {
    margin-bottom: 1.5rem;
}
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input { 
    width: 100%; 
    padding: 0.75rem 1rem; 
    border: 1px solid #ced4da; 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.form-group input:hover {
    border-color: #a0aec0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group input:focus { 
    border-color: var(--color-primary); 
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2), 0 4px 12px rgba(46, 139, 87, 0.15); 
    outline: none;
    transform: translateY(-1px);
}

/* Estilos para filas de formulario */
.form-row {
    display: flex;
    gap: 1rem;
}

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

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
.form-btn { 
    width: 100%; 
    padding: 1rem; 
    font-size: 1.1rem; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.form-btn:hover::before {
    left: 100%;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
}

.form-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}
.form-switch { text-align: center; margin-top: 1.5rem; }
.form-switch a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
/* Checkboxes elegantes y accesibles */
/* PROPUESTA 1: Estilo Shopify/Stripe - Minimalista Premium */
.form-check {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem 0;
}
.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.form-check input[type="checkbox"]:hover {
    border-color: #2E8B57;
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.15);
    transform: translateY(-1px);
}
.form-check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2E8B57 0%, #4CAF50 100%);
    border-color: #2E8B57;
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.25);
    transform: translateY(-1px);
}
.form-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    animation: checkmarkAppear 0.3s ease-out;
}
@keyframes checkmarkAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) rotate(45deg) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -60%) rotate(45deg) scale(1);
    }
}
.form-check span { 
    color: var(--color-text-main); 
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
}
.form-check:has(input:checked) {
    background: #f0fff4;
    border-color: #2E8B57;
}
.form-check:has(input:checked) span {
    color: #2E8B57;
    font-weight: 600;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.blog-card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text-main);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.blog-info h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-title); margin: 0 0 0.5rem 0; }
.blog-info p { color: var(--color-text-secondary); margin: 0 0 1.5rem 0; flex-grow: 1; }
.read-more-link { font-weight: 700; color: var(--color-primary); text-decoration: none; align-self: flex-start; transition: color 0.2s ease; }
.read-more-link:hover { color: var(--color-text-main); }


/* --- 8. Animaciones Modernas --- */
.content-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- 8.1 Componentes de Autenticación (alertas, strength meter) --- */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
}
.alert-info { background: #f0f7ff; color: #0b4f79; border-color: #cfe8ff; }
.alert-success { background: #edf9f0; color: #1b5e20; border-color: #c8e6c9; }
.alert-warning { background: #fff8e1; color: #8a6d3b; border-color: #ffecb3; }
.alert-error { background: #ffebee; color: #b71c1c; border-color: #ffcdd2; }

#password-strength { 
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    z-index: 1;
    clear: both;
}
#password-strength .strength-bar {
    width: 100%; height: 8px; background: #eee; border-radius: 6px; overflow: hidden;
}
#password-strength .strength-bar span { display: block; height: 100%; width: 0; transition: width 0.3s ease; }
#password-strength .strength-text { display: inline-block; margin-top: 0.35rem; color: var(--color-text-secondary); }
#password-strength.strength-weak .strength-bar span { background: #e53935; }
#password-strength.strength-medium .strength-bar span { background: #ffb300; }
#password-strength.strength-strong .strength-bar span { background: #2E8B57; }
.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.grid-card {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: var(--delay, 0s);
}
.content-section.is-visible .grid-card {
    opacity: 1;
    transform: translateY(0);
}

/* --- 9. Responsividad --- */
/* Media queries para responsividad del header */
@media (max-width: 1200px) {
    .header-content {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .search-bar {
        width: 250px;
    }
    
    .main-nav {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .main-nav { 
        display: none; 
    }
    
    .search-bar { 
        width: 220px;
        padding: 0.45rem 0.9rem;
    }
    
    .search-bar input {
        font-size: 0.85rem;
        padding: 0.35rem 0.65rem;
    }
    
    .header-actions { 
        gap: 1rem;
    }
    
    .login-link {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .cart-button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    /* Ajustes para categorías detalladas en tablets */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
    }
    
    /* Asegurar que las tarjetas tengan la misma altura */
    .category-card.detailed-card {
        min-height: 580px;
    }
    
    /* Ajustes para productos en tablets */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
        min-height: 480px;
    }
    
    .product-card img {
        height: 200px;
        margin-top: 3rem;
    }
    
    /* Ajustes para información de tiendas en tablets */
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stores-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    /* Ajustes para tablets pequeñas */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .product-card {
        min-height: 450px;
    }
    
    .product-card img {
        height: 200px;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.75rem 1.5rem;
    }
    
    .header-content { 
        flex-wrap: wrap; 
        justify-content: space-between;
        gap: 1rem;
    }
    
    .logo-container { 
        order: 1; 
        gap: 0.75rem;
    }
    
    .logo-container h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        max-width: 45px;
    }
    
    .header-actions { 
        order: 2; 
        gap: 0.75rem;
    }
    
    .main-nav { 
        display: none; 
    }
    
    .search-bar {
        width: 180px;
        padding: 0.4rem 0.8rem;
    }
    
    .search-bar input {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .login-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .cart-button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
        margin: 1rem auto;
    }
    
    .hero-section h1 { font-size: 2.5rem; }
    .content-section, .page-container { padding: 2rem 1rem; }
    .page-title { font-size: 2.2rem; }
    
    /* Ajustes para categorías detalladas en móviles */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        margin: 0;
    }
    
    .category-card.detailed-card {
        margin: 0 0.5rem;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .category-content h3 {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .category-features {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .category-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Ajustes para información de categoría en móviles */
    .category-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    
    .clear-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Ajustes para productos en móviles */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-grid.few-products {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        max-width: 100%;
        height: auto;
        min-height: 420px;
    }
    
    .product-card img {
        height: 200px;
        padding: 1rem;
        margin-top: 2.5rem;
    }
    
    .product-info {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .product-info h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-info .price {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    /* Ajustes para acciones de productos en móviles */
    .product-actions {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .view-details-btn,
    .add-to-cart-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .view-details-btn i,
    .add-to-cart-btn i {
        font-size: 0.9rem;
    }
    
    /* Ajustes para información de tiendas en móviles */
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stores-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .store-item {
        padding: 1.25rem;
    }
    
    .store-item h4 {
        font-size: 1.1rem;
    }
    
    .store-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 1rem;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-container h2 {
        font-size: 1.25rem;
    }
    
    .logo {
        max-width: 35px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .search-bar {
        width: 140px;
        padding: 0.35rem 0.7rem;
    }
    
    .search-bar input {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .login-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .cart-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .hero-section {
        height: 40vh;
        min-height: 250px;
        max-height: 400px;
        margin: 1rem auto;
    }
    
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1.1rem; }
    
    /* Ajustes adicionales para móviles pequeños */
    .category-content {
        padding: 1.25rem;
    }
    
    .category-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .category-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .category-features {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .category-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    

    
    /* Ajustes para productos en móviles pequeños */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-grid.few-products {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-height: 400px;
        margin: 0 auto;
        max-width: 320px;
    }
    
    .product-card img {
        height: 200px;
        padding: 1rem;
    }
    
    .product-info {
        padding: 1rem;
        min-height: 160px;
    }
    
    .product-info h4 {
        font-size: 1rem;
    }
    
    .product-info .price {
        font-size: 1.4rem;
    }
    
    .product-pricing .price {
        font-size: 1.4rem;
    }
    
    .product-pricing .price.has-offer {
        font-size: 1.4rem;
    }
    
    .product-actions {
        gap: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .view-details-btn,
    .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    
    /* Ajustes para información de tiendas en móviles pequeños */
    .stores-info h3 {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .store-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .store-item i {
        font-size: 1.25rem;
        margin: 0 auto 0.5rem auto;
    }
    
    .store-item h4 {
        font-size: 1rem;
        text-align: center;
    }
    
    .store-item p {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Responsive optimizado para productos destacados */
@media (max-width: 1200px) {
    .product-grid:not(.few-products) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        gap: 2rem;
    }
    
    .product-grid:not(.few-products) .product-card {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .product-grid:not(.few-products) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 2rem;
    }
    
    .product-grid:not(.few-products) .product-card {
        max-width: 340px;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .product-grid:not(.few-products) {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .product-grid:not(.few-products) .product-card {
        max-width: 100%;
        min-height: 450px;
    }
    
    .product-card img {
        height: 200px;
        padding: 1rem;
        margin-top: 2.5rem;
    }
    
    .product-info {
        min-height: 200px;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .product-grid:not(.few-products) {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1.5rem;
    }
    
    .product-grid:not(.few-products) .product-card {
        min-height: 420px;
        max-width: 100%;
    }
}

/* Estilos específicos para grid de 6 productos (3x2) */
.product-grid:not(.few-products) .product-card:nth-child(3n+1) {
    animation-delay: 0.1s;
}

.product-grid:not(.few-products) .product-card:nth-child(3n+2) {
    animation-delay: 0.2s;
}

.product-grid:not(.few-products) .product-card:nth-child(3n+3) {
    animation-delay: 0.3s;
}

.product-grid:not(.few-products) .product-card:nth-child(n+4) {
    animation-delay: 0.4s;
}

.product-grid:not(.few-products) .product-card:nth-child(n+5) {
    animation-delay: 0.5s;
}

.product-grid:not(.few-products) .product-card:nth-child(n+6) {
    animation-delay: 0.6s;
}

/* Efectos especiales para grid de 6 productos */
.product-grid:not(.few-products) .product-card {
    position: relative;
    overflow: hidden;
}

.product-grid:not(.few-products) .product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-grid:not(.few-products) .product-card:hover::after {
    opacity: 1;
}

/* Efecto de elevación mejorado para grid de 6 productos */
.product-grid:not(.few-products) .product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
}

/* Grid para productos completos (página de productos) - Formato 3x3 */
.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
    max-width: 350px;
    min-height: 480px;
}

/* Grid especial para categorías con pocos productos (mantener 2 columnas) */
.product-grid.few-products {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 2.5rem;
}

.product-grid.few-products .product-card {
    max-width: 400px;
    min-height: 500px;
}

/* Grid especial para categorías con solo 1 producto - Centrado automático */
.product-grid.few-products:has(.product-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 0;
    justify-items: center;
}

.product-grid.few-products:has(.product-card:only-child) .product-card {
    max-width: 400px;
    min-height: 500px;
    margin: 0 auto;
}

/* Grid para categorías con 2 productos - Centrado equilibrado */
.product-grid.few-products:has(.product-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 3rem;
    justify-items: center;
}

.product-grid.few-products:has(.product-card:nth-child(2):last-child) .product-card {
    max-width: 400px;
    min-height: 500px;
}

/* Animaciones escalonadas para grid de productos completos (3x3) */
.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(3n+1) {
    animation-delay: 0.1s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(3n+2) {
    animation-delay: 0.2s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(3n+3) {
    animation-delay: 0.3s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+4) {
    animation-delay: 0.4s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+5) {
    animation-delay: 0.5s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+6) {
    animation-delay: 0.6s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+7) {
    animation-delay: 0.7s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+8) {
    animation-delay: 0.8s;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:nth-child(n+9) {
    animation-delay: 0.9s;
}

/* Efectos especiales para grid de productos completos (3x3) */
.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
    position: relative;
    overflow: hidden;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:hover::after {
    opacity: 1;
}

/* Efecto de elevación mejorado para grid de productos completos */
.product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
}

/* Responsividad específica para grid de productos completos (3x3) */
@media (max-width: 1200px) {
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        gap: 2rem;
    }
    
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 2rem;
    }
    
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
        max-width: 360px;
        min-height: 460px;
    }
}

@media (max-width: 768px) {
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
        max-width: 100%;
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1.5rem;
    }
    
    .product-grid:not(.few-products):not(:has(.product-card:nth-child(6):last-child)) .product-card {
        min-height: 420px;
        max-width: 100%;
    }
}

/* Animaciones específicas para categorías con pocos productos */
.product-grid.few-products:has(.product-card:only-child) .product-card {
    animation-delay: 0.2s;
}

.product-grid.few-products:has(.product-card:nth-child(2):last-child) .product-card:nth-child(1) {
    animation-delay: 0.2s;
}

.product-grid.few-products:has(.product-card:nth-child(2):last-child) .product-card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Efectos especiales para categorías con pocos productos */
.product-grid.few-products .product-card {
    position: relative;
    overflow: hidden;
}

.product-grid.few-products .product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-grid.few-products .product-card:hover::after {
    opacity: 1;
}

/* Efecto de elevación mejorado para categorías con pocos productos */
.product-grid.few-products .product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
}

/* Contenedor de contraseña con botón de mostrar/ocultar */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Prevenir tooltips nativos del navegador */
.password-input-container input[type="password"]::-webkit-validation-bubble,
.password-input-container input[type="text"]::-webkit-validation-bubble {
    display: none !important;
}

.password-input-container input[type="password"]::-webkit-validation-bubble-message,
.password-input-container input[type="text"]::-webkit-validation-bubble-message {
    display: none !important;
}

/* Desactivar completamente tooltips de validación */
.password-input-container input[type="password"]:invalid,
.password-input-container input[type="text"]:invalid {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border-color: #e2e8f0 !important;
}

.password-input-container input[type="password"]:invalid:focus,
.password-input-container input[type="text"]:invalid:focus {
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1) !important;
    border-color: #2E8B57 !important;
}

/* Eliminar completamente tooltips nativos */
.password-input-container input[type="password"]::-webkit-validation-bubble,
.password-input-container input[type="text"]::-webkit-validation-bubble {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.password-input-container input[type="password"]::-webkit-validation-bubble-arrow,
.password-input-container input[type="text"]::-webkit-validation-bubble-arrow {
    display: none !important;
}

.password-input-container input[type="password"]::-webkit-validation-bubble-message,
.password-input-container input[type="text"]::-webkit-validation-bubble-message {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.password-input-container input[type="password"]:hover,
.password-input-container input[type="text"]:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.password-input-container input[type="password"]:focus,
.password-input-container input[type="text"]:focus {
    border-color: #2E8B57;
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0.3rem;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    z-index: 10;
}

.password-toggle:hover {
    color: #2E8B57;
    background-color: rgba(46, 139, 87, 0.05);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.password-toggle.active i.fa-eye {
    display: none;
}

.password-toggle.active i.fa-eye-slash {
    display: inline;
}

.password-toggle i.fa-eye-slash {
    display: none;
}

/* Estilos para el enlace "¿Olvidaste tu contraseña?" */
.read-more-link {
    color: #2E8B57;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 6px;
    position: relative;
}


.read-more-link:hover {
    color: #1e5f3f;
    text-decoration: underline;
    background-color: rgba(46, 139, 87, 0.05);
    padding: 0.5rem 0.75rem;
}

.read-more-link:focus {
    outline: 2px solid #2E8B57;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Animaciones adicionales para mejor UX */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Aplicar animaciones a elementos específicos */
.category-card.detailed-card {
    animation: slideInLeft 0.8s ease-out;
}

.category-card.detailed-card:nth-child(even) {
    animation: slideInRight 0.8s ease-out;
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    animation: pulse 0.6s ease-in-out;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-section {
        height: 35vh;
        min-height: 200px;
        max-height: 350px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* === FILTROS AVANZADOS Y PÁGINA DE PRODUCTOS === */

/* Filtros avanzados */
.advanced-filters {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.filters-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.clear-filters-btn, .toggle-filters-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover, .toggle-filters-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* Filtros rápidos */
/* Filtros elegantes */
.filters-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
}

.elegant-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 0.7rem;
    background: white;
    border: 2px solid rgba(46, 139, 87, 0.1);
    border-radius: 15px;
    color: #2c3e50;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.05);
    flex: 1;
    height: 65px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    text-align: center;
    max-width: 220px;
    min-width: 0;
}

.elegant-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    transition: left 0.6s ease;
}

.elegant-filter-btn:hover::before {
    left: 100%;
}

.elegant-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.2);
}

.elegant-filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    transform: translateY(-2px);
}

.elegant-filter-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.elegant-filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
    margin-right: 0.08rem;
}

/* Asegurar que todos los iconos se muestren correctamente */
.elegant-filter-btn i.fa-th-large,
.elegant-filter-btn i.fa-apple-alt,
.elegant-filter-btn i.fa-carrot,
.elegant-filter-btn i.fa-leaf,
.elegant-filter-btn i.fa-cheese {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    margin-right: 0.08rem;
}

.elegant-filter-btn span {
    flex: 1;
    text-align: center;
    line-height: 1.3;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: 0.2px;
    padding: 0 0.2rem;
}

.elegant-filter-btn:hover i {
    transform: scale(1.1);
}

.elegant-filter-btn.active i {
    transform: scale(1.1);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

/* Controles de vista */
.products-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-text-main);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.view-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.products-total {
    color: #666;
    font-weight: 400;
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

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

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-text-main);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-number:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-number.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Controles de vista de productos */
.products-view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.results-info span {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.products-total {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Botones de vista de productos */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid rgba(46, 139, 87, 0.1);
    border-radius: 10px;
    color: #2c3e50;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    font-size: 1rem;
}

.view-btn:hover {
    background: rgba(46, 139, 87, 0.05);
    border-color: rgba(46, 139, 87, 0.2);
    transform: translateY(-2px);
}

.view-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.view-btn.active:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Vista de grid para productos */
.product-grid.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    position: relative !important;
}

/* Vista de lista para productos */
.product-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    position: relative !important;
}



.product-grid.list-view .product-card {
    display: flex !important;
    flex-direction: row !important;
    max-width: 100% !important;
    min-height: 220px !important;
    height: auto !important;
    background: linear-gradient(135deg, #ffffff, #fafbfc) !important;
    border: 2px solid rgba(46, 139, 87, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 40px rgba(46, 139, 87, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
}

.product-grid.list-view .product-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(135deg, var(--color-primary), #4CAF50) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 1 !important;
}

.product-grid.list-view .product-card:hover::before {
    opacity: 1 !important;
}

.product-grid.list-view .product-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 30px 60px rgba(46, 139, 87, 0.2) !important;
    border-color: rgba(46, 139, 87, 0.3) !important;
    background: linear-gradient(135deg, #ffffff, #f8faf9) !important;
}

.product-grid.list-view .product-card img {
    width: 220px !important;
    height: 180px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 20px !important;
    box-shadow: 0 12px 40px rgba(46, 139, 87, 0.15) !important;
    background: linear-gradient(135deg, #f8faf9, #ffffff) !important;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(46, 139, 87, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(39, 174, 96, 0.02) 0%, transparent 50%) !important;
    border: 2px solid rgba(46, 139, 87, 0.1) !important;
    overflow: hidden !important;
    cursor: pointer !important;
    padding: 1rem !important;
}

/* Efecto de zoom suave al pasar el mouse */
.product-grid.list-view .product-card img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(46, 139, 87, 0.18) !important;
    border-color: rgba(46, 139, 87, 0.15) !important;
}

/* Efecto de overlay sutil en hover */
.product-grid.list-view .product-card img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-grid.list-view .product-card:hover img::after {
    opacity: 1;
}

.product-grid.list-view .product-card:hover img {
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 16px 48px rgba(46, 139, 87, 0.25) !important;
    border-color: rgba(46, 139, 87, 0.2) !important;
    padding: 0.8rem !important;
}

.product-grid.list-view .product-info {
    flex: 1 !important;
    padding: 2rem 2.5rem !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto 1fr auto !important;
    gap: 0.8rem !important;
    position: relative !important;
    z-index: 2 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    align-items: start !important;
}

.product-grid.list-view .product-info h4 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.3 !important;
    letter-spacing: -0.025em !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    position: relative !important;
}

.product-grid.list-view .product-info h4::after {
    content: '' !important;
    position: absolute !important;
    bottom: -0.3rem !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    border-radius: 2px !important;
}

.product-grid.list-view .product-info .product-category {
    color: #27ae60 !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    background: rgba(39, 174, 96, 0.1) !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    display: inline-block !important;
    width: fit-content !important;
    border: 1px solid rgba(39, 174, 96, 0.2) !important;
}

.product-grid.list-view .product-info .product-pricing {
    margin-bottom: 1rem !important;
    position: relative !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 0.3rem !important;
}

.product-grid.list-view .product-info .price {
    font-size: 1.9rem !important;
    font-weight: 900 !important;
    color: #27ae60 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 !important;
    letter-spacing: 1.5px !important;
    text-shadow: 0 4px 8px rgba(39, 174, 96, 0.4) !important;
    position: relative !important;
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transition: all 0.3s ease !important;
}

.product-grid.list-view .product-info .price:hover {
    transform: scale(1.05) !important;
    text-shadow: 0 6px 12px rgba(39, 174, 96, 0.6) !important;
    filter: brightness(1.1) !important;
}

/* Efecto especial para precios con oferta - Marketing Web */
.product-grid.list-view .product-info .price.has-offer {
    color: #e74c3c !important;
    font-weight: 900 !important;
    font-size: 1.9rem !important;
    text-shadow: 0 6px 12px rgba(231, 76, 60, 0.6) !important;
    animation: priceGlow 3s infinite !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 1.5px !important;
    position: relative !important;
}

.product-grid.list-view .product-info .price.has-offer::before {
    content: '🔥' !important;
    position: absolute !important;
    left: -2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.4rem !important;
    animation: fireFlicker 2s infinite !important;
}

.product-grid.list-view .product-info .price.has-offer:hover {
    transform: scale(1.08) !important;
    text-shadow: 0 8px 16px rgba(231, 76, 60, 0.8) !important;
    filter: brightness(1.2) !important;
}

@keyframes priceGlow {
    0%, 100% { 
        text-shadow: 0 1px 2px rgba(231, 76, 60, 0.1);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
        transform: scale(1.01);
    }
}

.product-grid.list-view .product-info .original-price {
    font-size: 1.1rem !important;
    color: #7f8c8d !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
    position: relative !important;
    opacity: 0.8 !important;
}


.product-grid.list-view .product-info .discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
    animation: discountPulse 2.5s infinite !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-grid.list-view .product-info .discount-badge::before {
    content: '💥' !important;
    margin-right: 0.3rem !important;
    animation: explosion 1s infinite !important;
}

@keyframes discountPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
    }
    50% { 
        transform: scale(1.03);
        box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
    }
}

@keyframes explosion {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Badge de ahorro para productos con oferta */
.product-grid.list-view .product-info .savings-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 12px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3) !important;
    animation: savingsBounce 2s infinite !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.product-grid.list-view .product-info .savings-badge::before {
    content: '💰' !important;
    margin-right: 0.2rem !important;
    animation: moneyShine 1.5s infinite !important;
}

@keyframes savingsBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

@keyframes moneyShine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(2deg); }
}

.product-grid.list-view .product-actions {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-top: 1.5rem !important;
    padding-top: 0.75rem !important;
    border: none !important;
    background: transparent !important;
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    justify-content: flex-start !important;
}

.product-grid.list-view .view-details-btn,
.product-grid.list-view .add-to-cart-btn {
    flex: none !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid !important;
    cursor: pointer !important;
    min-width: 140px !important;
}

.product-grid.list-view .view-details-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
    border-color: #f39c12 !important;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3) !important;
}

.product-grid.list-view .view-details-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    border-color: #e67e22 !important;
    color: white !important;
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.2) !important;
}

.product-grid.list-view .add-to-cart-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border-color: #27ae60 !important;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3) !important;
}

.product-grid.list-view .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
    border-color: #229954 !important;
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.2) !important;
}

/* Badges mejorados para vista de lista */
.product-grid.list-view .product-badges {
    position: absolute !important;
    top: 0.8rem !important;
    left: 0.8rem !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
}

.product-grid.list-view .season-badge,
.product-grid.list-view .new-badge,
.product-grid.list-view .offer-badge {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 4 !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    max-width: 90px !important;
    text-align: center !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.product-grid.list-view .new-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #333 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

.product-grid.list-view .season-badge {
    background: linear-gradient(135deg, #4CAF50, #2E8B57) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4) !important;
}

/* Animaciones para badges */
.product-grid.list-view .new-badge,
.product-grid.list-view .season-badge {
    animation: badgeSlideIn 0.6s ease-out !important;
    transition: all 0.3s ease !important;
}

.product-grid.list-view .product-card:hover .new-badge,
.product-grid.list-view .product-card:hover .season-badge,
.product-grid.list-view .product-card:hover .offer-badge {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

@keyframes badgeSlideIn {
    0% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Stock indicator para vista de lista - igual que grid */

/* Efecto de ripple para botones */
.product-grid.list-view .view-details-btn::before,
.product-grid.list-view .add-to-cart-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
    pointer-events: none !important;
}

.product-grid.list-view .view-details-btn:active::before,
.product-grid.list-view .add-to-cart-btn:active::before {
    width: 300px !important;
    height: 300px !important;
}

/* Estados de carga y feedback visual mejorado */
.product-grid.list-view .product-card.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.product-grid.list-view .product-card.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    border: 4px solid rgba(46, 139, 87, 0.1) !important;
    border-top: 4px solid #27ae60 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Efecto de éxito al agregar al carrito */
.product-grid.list-view .add-to-cart-btn.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    animation: successPulse 0.6s ease-out !important;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Indicador de producto agregado */
.product-grid.list-view .product-card.added-to-cart {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2) !important;
}

.product-grid.list-view .product-card.added-to-cart::before {
    content: '✓ Agregado' !important;
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: #27ae60 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    z-index: 5 !important;
    animation: slideInRight 0.5s ease-out !important;
}

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

/* Animaciones para badges de oferta */
@keyframes offerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
    }
}

@keyframes offerShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes fireFlicker {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.1) rotate(2deg);
        filter: hue-rotate(10deg);
    }
    50% { 
        transform: scale(0.95) rotate(-1deg);
        filter: hue-rotate(-5deg);
    }
    75% { 
        transform: scale(1.05) rotate(1deg);
        filter: hue-rotate(5deg);
    }
}

/* Eliminar contornos de elementos específicos en vista de lista */
.product-grid.list-view .product-card .product-info,
.product-grid.list-view .product-card .product-pricing,
.product-grid.list-view .product-card .product-actions {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Mantener estilos de botones */
.product-grid.list-view .view-details-btn,
.product-grid.list-view .add-to-cart-btn {
    border: 2px solid !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3) !important;
}

.product-grid.list-view .add-to-cart-btn {
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3) !important;
}

/* Mejoras en imágenes de productos */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px 12px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8faf9, #ffffff);
    padding: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

/* Efecto de brillo sutil en las imágenes */
.product-card img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.product-card:hover img::before {
    opacity: 1;
}

.product-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.15);
}

/* Carga lazy de imágenes con animación mejorada */
.product-card img[loading="lazy"] {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card img[loading="lazy"].loaded {
    opacity: 1;
    transform: scale(1);
}

/* Placeholder mejorado mientras carga la imagen */
.product-card img:not([src]) {
    background: linear-gradient(135deg, #f8faf9, #e8f5e8);
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(46, 139, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(39, 174, 96, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card img:not([src])::before {
    content: '🛒';
    font-size: 2.5rem;
    color: #2e8b57;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

/* Animación de pulso para el placeholder */
@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Efecto de shimmer para imágenes en carga */
.product-card img[loading="lazy"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Dimensiones optimizadas para pantallas grandes */
@media (min-width: 1400px) {
    .product-grid.list-view .product-card img {
        width: 240px !important;
        height: 200px !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 24px !important;
        border-radius: 24px !important;
        box-shadow: 0 16px 48px rgba(46, 139, 87, 0.18) !important;
        padding: 1.2rem !important;
    }
    
    .product-grid.list-view .product-card {
        min-height: 250px !important;
    }
}

/* Dimensiones optimizadas para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-grid.list-view .product-card img {
        width: 200px !important;
        height: 160px !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 18px !important;
        border-radius: 18px !important;
        padding: 0.8rem !important;
    }
    
    .product-grid.list-view .product-card {
        min-height: 200px !important;
    }
    
    .product-grid.list-view .new-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
        max-width: 95px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .product-grid.list-view .season-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.9rem !important;
        font-size: 0.7rem !important;
        max-width: 110px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .product-grid.list-view .offer-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Badge de oferta que reemplaza Popular en tablets */
    .product-card .offer-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
        max-width: 95px !important;
        border-radius: 15px !important;
    }
    
    .product-grid.list-view .product-info .discount-badge {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filters-wrapper {
        margin: 1.5rem 0;
        gap: 0.6rem;
        padding: 0 0.5rem;
    }
    
    .elegant-filter-btn {
        height: 55px;
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
        max-width: 180px;
        gap: 0.4rem;
    }
    
    .elegant-filter-btn i {
        width: 16px;
        height: 16px;
        font-size: 0.9rem;
        margin-right: 0.03rem;
    }
    
    .elegant-filter-btn span {
        letter-spacing: 0px;
        padding: 0 0.05rem;
    }
}

@media (max-width: 480px) {
    .filters-wrapper {
        margin: 1rem 0;
        gap: 0.4rem;
        padding: 0 0.25rem;
    }
    
    .elegant-filter-btn {
        height: 50px;
        padding: 0.5rem 0.3rem;
        font-size: 0.65rem;
        max-width: 150px;
        gap: 0.3rem;
    }
    
    .elegant-filter-btn i {
        width: 14px;
        height: 14px;
        font-size: 0.8rem;
        margin-right: 0.02rem;
    }
    
    .product-grid.grid-view {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .elegant-filter-btn span {
        font-size: 0.65rem;
        letter-spacing: 0px;
        padding: 0 0.05rem;
    }
}

@media (max-width: 360px) {
    .filters-wrapper {
        margin: 0.75rem 0;
        gap: 0.3rem;
        padding: 0 0.1rem;
    }
    
    .elegant-filter-btn {
        height: 45px;
        padding: 0.4rem 0.15rem;
        font-size: 0.6rem;
        max-width: 120px;
        gap: 0.25rem;
    }
    
    .elegant-filter-btn i {
        width: 12px;
        height: 12px;
        font-size: 0.7rem;
        margin-right: 0.01rem;
    }
    
    .elegant-filter-btn span {
        font-size: 0.6rem;
        letter-spacing: 0px;
        padding: 0 0.02rem;
    }
    
    .products-view-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-grid.grid-view {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    .product-grid.list-view .product-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .product-grid.list-view .product-card {
        flex-direction: column !important;
        text-align: center !important;
        min-height: auto !important;
        padding: 1rem !important;
    }
    
    .product-grid.list-view .product-card img {
        width: 100% !important;
        height: 220px !important;
        object-fit: contain !important;
        object-position: center !important;
        margin: 0 0 1rem 0 !important;
        border-radius: 20px !important;
        box-shadow: 0 12px 32px rgba(46, 139, 87, 0.18) !important;
        padding: 1rem !important;
    }
    
    .product-grid.list-view .product-info {
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
    }
    
    .product-grid.list-view .product-info h4 {
        font-size: 1.3rem !important;
        text-align: center !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .product-grid.list-view .product-info .product-category {
        text-align: center !important;
        margin: 0 auto !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .product-grid.list-view .product-info .product-pricing {
        text-align: center !important;
        grid-column: 1 !important;
        grid-row: 3 !important;
        align-items: center !important;
    }
    
    .product-grid.list-view .product-actions {
        grid-column: 1 !important;
        grid-row: 4 !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .product-grid.list-view .view-details-btn,
    .product-grid.list-view .add-to-cart-btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .product-grid.list-view .new-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.7rem !important;
        font-size: 0.65rem !important;
        max-width: 85px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .product-grid.list-view .season-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.65rem !important;
        max-width: 95px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .product-grid.list-view .offer-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.7rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Badge de oferta que reemplaza Popular en móviles */
    .product-card .offer-badge {
        top: 0.8rem !important;
        left: 0.8rem !important;
        padding: 0.4rem 0.7rem !important;
        font-size: 0.65rem !important;
        max-width: 85px !important;
        border-radius: 12px !important;
    }
    
    .product-grid.list-view .product-info .discount-badge {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    .product-grid.list-view .product-info .savings-badge {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
    }
    
    .product-grid.list-view .product-info {
        padding: 1.5rem;
    }
    
    .product-grid.list-view .product-info h4 {
        font-size: 1.2rem;
    }
    
    .product-grid.list-view .product-info .price {
        font-size: 1.6rem;
    }
    
    .product-grid.list-view .product-info .price.has-offer {
        font-size: 1.6rem;
    }
    
    .product-grid.list-view .product-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .product-grid.list-view .view-details-btn,
    .product-grid.list-view .add-to-cart-btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }
    
    .products-view-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
}

/* === ESTADOS VACÍOS Y MENSAJES === */

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
    margin: 2rem 0;
}

.no-products i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.no-products p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.no-products .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Loading state */
.loading-products {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
    margin: 2rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Filtros colapsables */
.advanced-filters.collapsed {
    display: none;
}

.advanced-filters.collapsed .filters-row {
    display: none;
}

/* Mejoras en botones de filtros */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Animaciones para productos */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Mejoras en paginación */
.pagination-number {
    position: relative;
    overflow: hidden;
}

.pagination-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
    transition: left 0.3s;
}

.pagination-number:hover::before {
    left: 100%;
}

/* === NOTIFICACIONES Y FEEDBACK === */

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #2E8B57);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    max-width: 300px;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification i {
    font-size: 1.2rem;
    color: #ffffff;
}

.cart-notification span {
    font-size: 0.9rem;
}

/* Animación de pulso para el carrito flotante */
.cart-floating.pulse {
    animation: cartPulse 0.6s ease-in-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mejoras en botones de agregar al carrito */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Estilos para botones de ver detalles (enlaces) */
.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #2c3e50;
    border: 2px solid #FFD700;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transform: translateZ(0);
    will-change: transform, box-shadow, background;
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.view-details-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-color: #FFA500;
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 165, 0, 0.5);
    text-decoration: none;
}

.view-details-btn:hover::before {
    left: 100%;
}

.view-details-btn:hover::after {
    width: 300px;
    height: 300px;
}

.view-details-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
    transition: all 0.1s ease;
}

.view-details-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Animación de pulso para el botón */
@keyframes viewDetailsPulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2), 0 0 0 4px rgba(255, 215, 0, 0.05);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    }
}


/* Estilos específicos para el botón del hero */
.hero-section .btn-primary {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    background-color: #27ae60 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.hero-section .btn-primary:hover {
    background-color: #229954 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white !important;
    text-decoration: none;
    z-index: 15;
}

.hero-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.3);
    background-color: #1e8449 !important;
}

/* Responsive para el botón del hero */
@media (max-width: 768px) {
    .hero-section .btn-primary {
        font-size: 0.95rem;
        padding: 0.7rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

.view-details-btn {
    animation: viewDetailsPulse 3s ease-in-out infinite;
}

.view-details-btn:hover {
    animation: none;
}

/* Estados de carga para filtros */
.filter-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

/* Mejoras en responsive */
@media (max-width: 480px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
    
    .advanced-filters {
        padding: 1rem;
    }
    
    .filters-row {
        gap: 1rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}