/* --- ESTILOS GENERALES --- */
:root {
    --primary: #111827;
    --accent: #2563eb;
    --whatsapp: #25D366;
    --bg: #f9fafb;
    --white: #ffffff;
    --text: #4b5563;
    --new-badge: #dc2626;
    --footer-bg: #1f2937;
    --footer-text: #9ca3af;
    --cart-bg: #ffffff;
    --cart-border: #e5e7eb;
    --success: #10b981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--primary);
}

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.cart-btn:hover {
    background: #1d4ed8;
}

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

.cart-count:empty {
    display: none;
}

/* --- BANNER DE ENVÍO --- */
.shipping-banner {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.shipping-banner span {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- HERO --- */
.hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.hero p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
    margin: 1.5rem auto;
}

.hero-maps-btn:hover {
    background-color: #374151;
}

.hero-best-price {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: left;
}

.hero-best-price strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.hero-best-price p {
    margin: 0;
    font-size: 0.95rem;
}

/* --- BUSCADOR --- */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 1.2rem;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    display: none;
    transition: color 0.2s;
}

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

.search-clear.visible {
    display: block;
}

.search-results-info {
    text-align: center;
    color: var(--text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.search-results-info.visible {
    display: block;
}

/* --- FILTROS --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    align-items: center;
}

.category-select {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    font-weight: 500;
}

.category-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.category-select:hover {
    border-color: var(--accent);
}

.new-badge {
    background: var(--new-badge);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- SUBCATEGORÍAS --- */
.subfilters {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    animation: fadeIn 0.3s ease;
}

.subfilters.visible {
    display: flex;
}

.subfilter-btn {
    background: var(--white);
    border: 1px dashed #d1d5db;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.subfilter-btn:hover,
.subfilter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-style: solid;
    border-color: var(--accent);
}

.subfilter-btn[aria-pressed="true"] {
    background: var(--accent);
    color: var(--white);
    border-style: solid;
    border-color: var(--accent);
}

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

/* --- GRID DE PRODUCTOS --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.product-card.hidden {
    display: none;
}

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

.product-card.pop-in {
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-preview-image-container {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    background-color: #f3f4f6;
    transition: transform 0.3s ease;
}

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

.view-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-preview-image-container:hover .view-details-overlay {
    opacity: 1;
}

.view-details-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
}

.product-preview-info {
    padding: 1.25rem;
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.subcategory-chip {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 4px;
}

.product-preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.3;
}

.product-preview-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
}

.add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin-top: 0.75rem;
    border: none;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background-color: #1d4ed8;
}

.add-to-cart-btn.added {
    background-color: var(--success);
}

.add-to-cart-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.view-details-hint {
    font-size: 0.8rem;
    color: var(--accent);
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
}

.product-count {
    text-align: center;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== MODAL DE PRODUCTO ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--bg);
    overflow: hidden;
    cursor: zoom-in;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 2rem;
}

.carousel-zoom-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 5;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

.carousel-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 5;
}

/* ==================== LIGHTBOX CON NAVEGACIÓN ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    z-index: 10;
}

/* ==================== INFORMACIÓN DEL MODAL ==================== */
.modal-info {
    padding: 2rem;
}

.modal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.2;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.modal-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

.modal-specs {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.modal-specs-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    font-size: 0.9rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-label {
    font-weight: 500;
    color: var(--text);
}

.spec-value {
    color: var(--primary);
}

.modal-add-to-cart-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--accent);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
    margin-bottom: 1rem;
    border: none;
    cursor: pointer;
}

.modal-add-to-cart-btn:hover {
    background-color: #1d4ed8;
}

.modal-add-to-cart-btn.added {
    background-color: var(--success);
}

.modal-add-to-cart-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.modal-reference {
    text-align: center;
    color: var(--text);
    font-size: 0.85rem;
}

/* ==================== CARRITO MODAL ==================== */
.cart-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    animation: fadeIn 0.3s ease;
}

.cart-modal-overlay.active {
    display: flex;
    justify-content: flex-end;
}

.cart-modal {
    background: var(--cart-bg);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--cart-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-close:hover {
    background: #f3f4f6;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cart-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.cart-item-ref {
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--cart-border);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: var(--bg);
}

.quantity-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: var(--new-badge);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
    padding: 0.25rem 0.5rem;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

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

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--cart-border);
    background: var(--white);
    position: sticky;
    bottom: 0;
}

.cart-shipping {
    margin-bottom: 1rem;
}

.cart-shipping label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cart-shipping select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--cart-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
}

.cart-shipping-note {
    font-size: 0.8rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.cart-age-verification {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.cart-age-verification label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cart-age-verification input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.cart-age-verification strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.cart-totals {
    margin-bottom: 1rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.cart-total-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 2px solid var(--cart-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.cart-total-row.vat {
    font-size: 0.85rem;
    color: var(--text);
    font-style: italic;
}

.cart-checkout-btn {
    width: 100%;
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-checkout-btn:hover {
    background: #1ebc57;
}

.cart-checkout-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 5% 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

footer h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer p {
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==================== NOTIFICACIÓN TOAST ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.toast-icon {
    font-size: 1.2rem;
}

/* ==================== RESPONSIVE / MÓVIL ==================== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-preview-image {
        height: 180px;
        object-position: center top;
    }

    .product-preview-info {
        padding: 0.75rem;
    }

    .product-preview-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .product-preview-price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .add-to-cart-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .category-tag {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .new-badge {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    .view-details-hint {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }

    .category-select {
        min-width: 100%;
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }

    .modal-carousel {
        height: 350px;
    }

    .carousel-image {
        padding: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lightbox-nav.prev {
        left: 1rem;
    }

    .lightbox-nav.next {
        right: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-price {
        font-size: 1.6rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .cart-modal {
        max-width: 100%;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-best-price {
        padding: 1rem;
    }

    .filters {
        gap: 5px;
    }
}