* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: white;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: center;
}

.filters input,
.filters select,
.filters button {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: white;
    color: #1d1d1f;
}

#searchInput {
    flex: 1;
    min-width: 150px;
}

#productoFilter, #stockFilter {
    min-width: 120px;
}

@media (max-width: 768px) {
    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filters input,
    .filters select,
    .filters button {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    #searchInput {
        flex-basis: 100%;
    }
    
    #productoFilter, #stockFilter {
        flex: 1;
        min-width: 100px;
    }
    
    #minPriceFilter, #maxPriceFilter {
        width: 70px;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
    min-height: 100px; /* Reducido de 400px para mejor adaptación */
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden; /* Importante para contener el efecto */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine 0.8s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

/* Estilos para los botones de favoritos */
.favorite-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.favorite-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    color: #ff2d55;
    transition: all 0.2s ease;
}

.favorite-button:hover {
    background-color: rgba(255, 45, 85, 0.1);
}

.favorite-button.active svg {
    fill: #ff2d55;
}

/* Estilos para la vista de favoritos */
.favorites-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Mantener solo las reglas con contenido real */
.favorites-view .product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-view .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.favorites-view .product-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .favorites-view {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        gap: 15px;
    }
}

.product-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.product-name {
    font-size: 1.15em;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-model {
    font-size: 0.85em;
    color: #86868b;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.product-details {
    flex-grow: 1;
    margin-bottom: 12px;
}

.product-details p {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 4px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    color: #1d1d1f;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    background-color: #f8f8fa;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.product-price:hover {
    border-color: #d1d1d6;
    background-color: white;
    border: 1px solid #e5e5e7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.currency-symbol,
.product-price span {
    font-weight: 500;
    color: #1d1d1f;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    min-width: 60px;
    height: 24px;
}

.stock-indicator.in-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-indicator.out-of-stock {
    background-color: #fef2f2;
    color: #dc2626;
}

.stock-indicator.incoming {
    background-color: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
}

.reset-button {
    background-color: #ff3b30;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background-color: #dc2d22;
}

.active-filter {
    border: 2px solid #007aff;
}

.product-counter {
    padding: 10px 20px;
    margin: 10px 0;
    background-color: white;
    border: 1px solid #e5e5e7;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.product-counter span {
    font-weight: bold;
    color: #007aff;
}

.product-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: white;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-image img[src*="placeholder"] {
    opacity: 0.7;
    filter: grayscale(20%);
    max-width: 50%;
    max-height: 50%;
}

footer {
    background-color: white;
    border: 1px solid #e5e5e7;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #d2d2d7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

footer p {
    color: #1d1d1f;
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
}

.about {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about h2 {
    color: #1d1d1f;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
}

.about p {
    color: #515154;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

.page-btn {
    border: none;
    background: none;
    color: #86868b;
    font-size: 0.9em;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    color: #1d1d1f;
    background-color: white;
    border: 1px solid #e5e5e7;
}

.page-btn:disabled {
    color: #d2d2d7;
    cursor: not-allowed;
}

.page-info {
    color: #1d1d1f;
    font-size: 0.9em;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* Estilo para el precio cuando es "Consultar" */
.product-price.consultar {
    font-size: 0.85em;
    opacity: 0.8;
}

.clear-filters-btn {
    padding: 6px 10px;
    white-space: nowrap;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .clear-filters-btn {
        padding: 6px;
        width: 36px;
        height: 36px;
        overflow: hidden;
        position: relative;
    }
    
    .clear-filters-btn::before {
        content: "×";
        font-size: 24px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .clear-filters-btn span {
        display: none;
    }
}

.precio-consultar {
    font-size: 0.9em;
    color: #86868b;
    font-weight: 400;
}

/* Estilos para el footer de las tarjetas de productos */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    color: #1d1d1f;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    background-color: #f8f8fa;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    min-width: 80px;
    height: 32px;
    justify-content: center;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    min-width: 60px;
    height: 24px;
}

.favorite-button, 
.share-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e5e7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.favorite-button svg, 
.share-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .product-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 0;
    }
    
    .product-price {
        font-size: 16px;
        min-width: 90px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }
    
    .stock-indicator {
        font-size: 14px;
        min-width: 80px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
    }
    
    .favorite-button, 
    .share-button {
        width: 36px;
        height: 36px;
        margin-left: 8px;
    }
    
    .favorite-button svg, 
    .share-button svg {
        width: 20px;
        height: 20px;
    }
    
    .product-actions {
        display: flex;
        align-items: center;
    }
}

.chip-logo {
    height: 16px;
    vertical-align: middle;
    margin: 0 4px;
    opacity: 0.85;
}

/* Estilos para la navegación */
.nav-menu {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #e8e8ed;
    color: #0066cc;
}

.about-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.about-link:hover {
    background-color: white;
    border: 1px solid #e5e5e7;
    transform: translateX(5px);
}

.about-preview {
    text-align: center;
    margin: 30px 0;
}

.about-link {
    display: inline-block;
    padding: 10px 20px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.about-link:hover {
    background-color: white;
    border: 1px solid #e5e5e7;
    transform: translateX(5px);
}

/* Estilos para el logo */
.logo-container {
    text-align: center;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.about-logo {
    max-width: 300px;
    height: auto;
}

/* Estilos para los enlaces de contacto */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.contact-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    width: 200px;
    text-align: center;
    white-space: nowrap;
}

.whatsapp-link {
    background-color: #25D366;
    color: white;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}

.email-link {
    background-color: #0066cc;
    color: white;
}

.email-link:hover {
    background-color: #004999;
}

.main-header {
    background-color: white;
    padding: 8px 15px;
    min-height: 50px;
    border-bottom: 1px solid #f5f5f7;
}

.site-logo {
    max-height: 30px;
    width: auto;
}

/* Estilos para el botón de volver */
.back-home {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: white;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    border: 1px solid #e5e5e7;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #0066cc;
    background-color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid #0066cc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-button::before {
    content: "←";
    font-size: 1.2rem;
}

.back-home {
    text-align: center;
    margin: 30px 0;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .back-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .back-home {
        margin: 20px 0;
    }
}

/* Asegurarse que el logo tenga cursor pointer cuando es clickeable */
.logo-container a {
    display: inline-block;
    cursor: pointer;
}

.main-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    color: #000;
    text-align: center;
    letter-spacing: -0.5px;
    margin: 10px 0;
    max-width: 800px;
    line-height: 1.1;
    padding: 0 20px;
}

/* Opcional: agregar una versión más ligera para pantallas más pequeñas */
@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
        letter-spacing: -0.3px;
    }
}

/* Estilos para mensajes del sistema */
.loading-message,
.error-message {
    text-align: center;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 600px;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.loading-message p,
.error-message p {
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.loading-message p:first-child,
.error-message p:first-child {
    font-weight: 500;
}

/* Asegurarnos que el contenedor padre tenga posición relativa */
#productGrid {
    position: relative;
    min-height: 400px;
}

.disclaimer-header {
    background-color: white;
    border: 1px solid #e5e5e7;
    text-align: center;
    padding: 8px;
    font-size: 0.8em;
    color: #86868b;
}

.update-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.update-btn:hover {
    background-color: #004999;
}

.update-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    animation: fadeInOut 2s ease;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Estilos para el estado de carga */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-message p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Estilos para mensajes de error */
.error-message {
    text-align: center;
    padding: 2rem;
    background-color: #fff3f3;
    border-radius: 8px;
    margin: 1rem;
}

.error-details {
    color: #666;
    margin: 1rem 0;
}

.retry-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #2980b9;
}

/* Nuevo estilo para el tagline */
.store-tagline {
    font-family: 'Montserrat', sans-serif;
    text-transform: lowercase;
    letter-spacing: 4px;
    color: #86868b;
    font-size: 0.8em;
    width: 280px;
    text-align: center;
    margin-top: -10px;
    font-weight: 300;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .store-tagline {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Estilos para la sección de ubicación */
.location-section {
    display: none;
}

.location-container {
    display: none;
}

.address-info {
    display: none;
}

.map-container {
    display: none;
}

/* Menú hamburguesa */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-bottom: 30px;
}

.side-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Contenido del menú */
.menu-content {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-search {
    margin-bottom: 15px;
    padding-top: 5px;
}

.menu-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    border: 1px solid #e5e5e7;
}

.menu-search input:focus {
    outline: none;
    border-color: #0071e3;
    background-color: #fff;
}

.menu-categories {
    margin-bottom: 15px;
    overflow-y: auto;
}

/* Consolidación de estilos de categorías y menú */
.category-group {
    margin-bottom: 6px;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 6px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 3px;
}

.category-header:hover {
    background-color: #f2f2f2;
}

.chevron-icon {
    transition: transform 0.3s ease;
    color: #86868b;
    opacity: 0.6;
}

.category-header:hover .chevron-icon {
    opacity: 1;
    color: #0066cc;
}

.category-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.category-products {
    background: #f8f8f8;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.category-products.collapsed {
    max-height: 0;
}

.category-count-item {
    padding: 8px 20px;
    color: #86868b;
    font-size: 0.85em;
    background: #f5f5f7;
    border-bottom: 1px solid #ebebeb;
}

.category-item {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

.category-item:first-child {
    background-color: white;
    border: 1px solid #e5e5e7;
    font-weight: 500;
    border-left: 3px solid #0071e3;
    margin-bottom: 10px;
}

.category-item:hover {
    background-color: white;
    border: 1px solid #e5e5e7;
}

.category-name {
    font-weight: 400;
    font-size: 13px;
}

.menu-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-top: 1px solid #f2f2f2;
    padding-top: 10px;
}

.menu-links .menu-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #1d1d1f;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.menu-links .menu-link:hover {
    background-color: white;
    border: 1px solid #e5e5e7;
}

.menu-links .menu-link svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #1d1d1f;
}

.menu-links .menu-link.favorites-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #e5e5e7;
    margin-bottom: 5px;
    position: relative;
}

.menu-links .menu-link.favorites-link .link-content {
    display: flex;
    align-items: center;
}

.menu-links .menu-link.favorites-link svg {
    color: #ff2d55;
    margin-right: 12px;
}

.menu-links .menu-link.favorites-link .favorites-count {
    background-color: #ff2d55;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.menu-links .menu-link.favorites-link:hover {
    background-color: #eaeaea;
}

.menu-links .menu-link:last-child {
    border-bottom: none;
}

@keyframes highlight {
    0% { transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    50% { transform: scale(1.03); box-shadow: 0 8px 12px rgba(0,0,0,0.2); }
    100% { transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
}

.product-card.highlighted {
    animation: highlight 2s ease;
}

/* Añadimos el efecto shine/shimmer para las tarjetas */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover::before {
    opacity: 1;
    animation: shine 1.2s ease-in-out;
}

/* Aseguramos que el efecto shine también funcione en la vista de favoritos */
.favorites-view .product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.favorites-view .product-card:hover::before {
    opacity: 1;
    animation: shine 1.2s ease-in-out;
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    z-index: 1;
}

.modal-body {
    padding: 20px;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f7;
    border-radius: 8px;
    padding: 20px;
}

.modal-product-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-product-details {
    flex-grow: 1;
    margin: 20px 0;
}

.modal-product-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #1d1d1f;
}

.modal-product-info h3 {
    font-size: 18px;
    color: #86868b;
    margin-bottom: 20px;
}

.modal-product-details {
    margin: 20px 0;
}

.modal-product-details p {
    margin: 10px 0;
    color: #1d1d1f;
}

.modal-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    width: 100%;
}

.modal-contact-buttons .icon-button {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.modal-contact-buttons .icon-button svg {
    width: 32px !important;
    height: 32px !important;
}

.modal-contact-buttons .whatsapp-button {
    background-color: #25D366 !important;
    color: white !important;
}

.modal-contact-buttons .share-button {
    background-color: #007bff !important;
    color: white !important;
}

.modal-contact-buttons .icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.modal-contact-buttons .email-button {
    background-color: #0066cc !important;
    color: white !important;
}

.modal-contact-buttons .email-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .modal-product {
        grid-template-columns: 1fr;
    }
    
    .modal-contact-buttons {
        margin: 15px 0;
        gap: 15px;
    }
}

/* Estilos mejorados para el botón de compartir */
.share-button,
.favorites-view .share-button {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #f5f5f7;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    z-index: 5;
}

.share-button:hover,
.favorites-view .share-button:hover {
    background: #e5e5ea;
    transform: scale(1.05);
    color: #333;
}

.share-button svg,
.favorites-view .share-button svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

/* Ajustar el footer del modal */
.modal-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    background-color: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    padding: 10px 18px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.03);
    position: relative;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.modal-product-price:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
    border-color: #b2b2b7;
}

.modal-product-price .currency-symbol {
    font-size: 0.8em;
    color: #86868b;
    margin-right: 4px;
    font-weight: 500;
}

.modal-product-price .precio-consultar {
    color: #86868b;
    font-style: italic;
    font-weight: 500;
}

.modal-product-footer .stock-indicator {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Estilos para la sección de redes sociales */
.social-media {
    padding: 20px 0;
    border-top: 1px solid #e5e5e7;
    margin-top: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e5e5e7;
    color: #1d1d1f;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #e5e5e7;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-title {
    text-align: center;
    font-size: 0.9em;
    color: #86868b;
    margin-bottom: 15px;
}

/* Ajuste responsive */
@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Estilos para el contenedor de imágenes en el modal */
.modal-product-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 12px;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    padding: 4px;
    background-color: white;
    border: 1px solid #e5e5e7;
}

.thumbnail:hover {
    border-color: #007AFF;
    background-color: #f0f0f2;
}

.thumbnail.active {
    border-color: #007AFF;
    background-color: #f0f0f2;
}

/* Ajustar scrollbar para la galería */
.thumbnail-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-product .modal-contact-buttons .icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    background-color: white;
    border: 1px solid #e5e5e7;
}

.modal-product .modal-contact-buttons .icon-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.modal-product-images .main-image {
    background-color: transparent;
}

.thumbnail {
    background-color: transparent;
}

/* Estilos para favoritos */
.favorites-button {
    display: none;
}

@media (max-width: 768px) {
    .favorites-button {
        display: none;
    }
}

/* Añadir título al menú */
.menu-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0;
    color: #1d1d1f;
    padding-left: 5px;
}

/* Mejorar la apariencia del menú activo */
.side-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mejorar la apariencia de los elementos del menú */
.category-name {
    font-weight: 400;
    font-size: 13px;
}

.category-count-item {
    font-size: 11px;
    color: #6e6e73;
    font-weight: 400;
}

/* Estilos para el skeleton loading con shimmer */
.skeleton-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    padding-top: 75%;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.skeleton-title {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-model {
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 60%;
}

.skeleton-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.skeleton-line {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.skeleton-line:nth-child(1) {
    width: 100%;
}

.skeleton-line:nth-child(2) {
    width: 90%;
}

.skeleton-line:nth-child(3) {
    width: 80%;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.skeleton-price {
    height: 24px;
    width: 80px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.skeleton-stock {
    height: 20px;
    width: 60px;
    background-color: #f0f0f0;
    border-radius: 12px;
}

.skeleton-actions {
    display: flex;
    gap: 6px;
}

.skeleton-button {
    width: 32px;
    height: 32px;
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Efecto shimmer para skeleton loading */
.skeleton-card::after,
.skeleton-image::after,
.skeleton-title::after,
.skeleton-model::after,
.skeleton-line::after,
.skeleton-price::after,
.skeleton-stock::after,
.skeleton-button::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
    transform: translateX(-100%);
}

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

/* Clase para ocultar el skeleton loading cuando los productos están cargados */
.products-loaded .skeleton-card {
    display: none;
}

/* Mantener el efecto shine en hover para las tarjetas de productos */
.search-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filters-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-bottom: 0;
}

.filters-container.expanded {
    max-height: 300px;
    margin-bottom: 20px;
}

.footer-location {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #d2d2d7;
    border-bottom: 1px solid #d2d2d7;
}

.footer-location p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.directions-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.directions-link:hover {
    color: #004c99;
    text-decoration: underline;
}

.price-stock-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .price-stock-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .product-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 0;
        margin-top: 10px;
    }
    
    .product-price {
        font-size: 16px;
        min-width: 90px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border-radius: 8px;
    }
    
    .stock-indicator {
        font-size: 14px;
        min-width: 80px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border-radius: 18px;
    }
    
    .favorite-button, 
    .share-button {
        width: 40px;
        height: 40px;
        margin-left: 8px;
        background-color: white;
    border: 1px solid #e5e5e7;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .favorite-button svg, 
    .share-button svg {
        width: 22px;
        height: 22px;
    }
    
    .product-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .favorites-view .product-footer {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 0;
        margin-top: 10px;
    }
}

.favorites-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: white;
    border: 1px solid #e5e5e7;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.favorites-filter-btn svg {
    stroke: #e53935;
}

.favorites-filter-btn.active {
    background-color: #ffebee;
    border-color: #e53935;
    color: #e53935;
}

.favorites-filter-btn.active svg {
    fill: #e53935;
    stroke: #e53935;
}

.favorites-filter-btn:hover {
    background-color: #e5e5e7;
    border-color: #999;
}

.favorites-filter-btn .favorites-count {
    display: none;
    background-color: #e53935;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
    padding: 0 2px;
}

.favorites-filter-btn .favorites-count.visible {
    display: inline-block;
}

@media (max-width: 768px) {
    .favorites-filter-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Ajustar tamaños de los campos de precio */
#minPriceFilter, #maxPriceFilter {
    width: 80px;
}

/* Ajustar los estilos para el botón de favoritos en las tarjetas de producto */
.favorite-button.active svg {
    fill: #e53935;
    stroke: #e53935;
}