/* =====================================================
   CATALOG PAGE CSS — LUCCI BENE (Negro / Blanco / Dorado)
   CSS dedicado exclusivamente para el catálogo de productos
   ===================================================== */

:root {
    --catalog-primary: #C9A86A;       /* Dorado */
    --catalog-secondary: #8C6F3A;     /* Dorado oscuro */
    --catalog-accent: #E8D7A8;        /* Dorado claro */
    --catalog-dark: #0a0a0a;          /* Negro */
    --catalog-dark-soft: #1a1a1a;
    --catalog-light: #ffffff;
    --catalog-cream: #faf8f3;
    --catalog-gray: #5c5c5c;
    --catalog-gold-border: rgba(201, 168, 106, 0.4);
}

/* ===================================
   CATALOG HERO
   =================================== */
.catalog-hero {
    background:
        radial-gradient(circle at 30% 30%, rgba(201, 168, 106, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(232, 215, 168, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: var(--catalog-light);
    padding: 120px 0 60px;
    margin-top: 80px;
    text-align: center;
    border-bottom: 1px solid var(--catalog-gold-border);
    position: relative;
    overflow: hidden;
}

.catalog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--catalog-primary), transparent);
}

.catalog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(120deg, #8C6F3A 0%, #E8D7A8 50%, #C9A86A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.catalog-hero p {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    color: #efe6d3;
}

/* ===================================
   FILTERS SECTION
   =================================== */
.catalog-filters {
    background: var(--catalog-light);
    padding: 2rem 0;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--catalog-gold-border);
}

.filters-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* ===================================
   SEARCH BAR
   =================================== */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    border: 1.5px solid var(--catalog-gold-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: var(--catalog-dark);
    transition: all 0.3s ease;
    background: var(--catalog-cream);
}

.search-input:focus {
    outline: none;
    border-color: var(--catalog-primary);
    background: white;
    box-shadow: 0 2px 16px rgba(201, 168, 106, 0.25);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--catalog-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus ~ .search-icon {
    color: var(--catalog-primary);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--catalog-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--catalog-primary);
    transition: all 0.2s ease;
}

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

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

.filter-label {
    font-weight: 600;
    color: var(--catalog-dark);
    margin-right: 0.5rem;
    letter-spacing: 0.5px;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--catalog-dark);
    background: transparent;
    color: var(--catalog-dark);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
}

.filter-btn:hover {
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.filter-btn.active {
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    border-color: var(--catalog-primary);
    box-shadow: 0 4px 14px rgba(201, 168, 106, 0.35);
}

/* ===================================
   DÍA DE LAS MADRES - BOTÓN ESPECIAL (REBRANDED)
   =================================== */
.filter-btn-madres {
    background: linear-gradient(135deg, #8C6F3A, #C9A86A, #E8D7A8) !important;
    color: var(--catalog-dark) !important;
    border: 2px solid var(--catalog-primary) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0.6rem 1.4rem !important;
    position: relative;
    overflow: visible;
    animation: madres-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(201, 168, 106, 0.45) !important;
    letter-spacing: 0.5px;
}

.filter-btn-madres:hover {
    background: linear-gradient(135deg, #C9A86A, #E8D7A8, #C9A86A) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(201, 168, 106, 0.6) !important;
}

.filter-btn-madres.active {
    background: var(--catalog-dark) !important;
    color: var(--catalog-primary) !important;
    box-shadow: 0 6px 20px rgba(201, 168, 106, 0.5) !important;
}

@keyframes madres-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(201, 168, 106, 0.45); }
    50% { box-shadow: 0 4px 25px rgba(201, 168, 106, 0.75); }
}

.filter-btn-madres::before,
.filter-btn-madres::after {
    position: absolute;
    font-size: 0.7rem;
    animation: float-heart 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    color: var(--catalog-dark);
}

.filter-btn-madres::before {
    content: "\2665";
    top: -5px;
    left: 10%;
    animation-delay: 0s;
}

.filter-btn-madres::after {
    content: "\2665";
    top: -5px;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float-heart {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; transform: translateY(-8px) scale(1); }
    60% { opacity: 0.8; transform: translateY(-20px) scale(1.1); }
    100% { opacity: 0; transform: translateY(-35px) scale(0.6); }
}

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.hearts-container .heart {
    position: absolute;
    bottom: -20px;
    font-size: 1.2rem;
    color: var(--catalog-primary);
    animation: hearts-rise 4s ease-in forwards;
    opacity: 0;
}

@keyframes hearts-rise {
    0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.5); }
    10% { opacity: 1; }
    50% { opacity: 0.8; transform: translateY(-50vh) rotate(15deg) scale(1); }
    100% { opacity: 0; transform: translateY(-100vh) rotate(-10deg) scale(0.3); }
}

/* ===================================
   PRODUCTS GRID
   =================================== */
.catalog-section {
    padding: 60px 0;
    background: var(--catalog-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ===================================
   PRODUCT CARD
   =================================== */
.product-card {
    background: var(--catalog-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(.2,.7,.3,1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(201, 168, 106, 0.18);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    border-color: var(--catalog-primary);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--catalog-dark);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: 1px solid var(--catalog-primary);
}

.product-code-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(10, 10, 10, 0.75);
    color: var(--catalog-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--catalog-gold-border);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.85);
    color: var(--catalog-primary);
    border: 1px solid var(--catalog-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image-container:hover .zoom-icon {
    opacity: 1;
}

.zoom-icon svg {
    width: 30px;
    height: 30px;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafaf6 100%);
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--catalog-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.product-description {
    color: var(--catalog-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-description ul {
    list-style: none;
    padding: 0;
}

.product-description li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.product-description li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--catalog-primary);
    font-weight: bold;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--catalog-gold-border);
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--catalog-dark);
    font-weight: 700;
}

.price-label {
    font-size: 0.7rem;
    color: var(--catalog-secondary);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-order {
    padding: 0.875rem 2rem;
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    border: 1.5px solid var(--catalog-primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.5px;
}

.btn-order:hover {
    background: var(--catalog-primary);
    color: var(--catalog-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 106, 0.45);
}

.btn-order svg {
    width: 20px;
    height: 20px;
}

/* ===================================
   LIGHTBOX / MODAL
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--catalog-gold-border);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    border: 1.5px solid var(--catalog-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--catalog-primary);
    color: var(--catalog-dark);
    transform: rotate(90deg);
}

.lightbox-info {
    background: var(--catalog-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    border: 1px solid var(--catalog-gold-border);
}

.lightbox-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--catalog-dark);
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    color: var(--catalog-gray);
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-state.active {
    display: block;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--catalog-dark);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--catalog-gray);
    font-size: 1.125rem;
}

/* ===================================
   RESULTS COUNTER
   =================================== */
.results-counter {
    text-align: center;
    padding: 1rem 0;
    color: var(--catalog-gray);
    font-size: 1rem;
}

.results-counter strong {
    color: var(--catalog-secondary);
    font-weight: 600;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        padding: 100px 0 40px;
        margin-top: 70px;
    }

    .catalog-hero h1 {
        font-size: 2.5rem;
    }

    .catalog-hero p {
        font-size: 1rem;
    }

    .catalog-filters {
        position: static;
        top: auto;
        padding: 1.5rem 0;
    }

    .filter-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }

    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-name {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .btn-order {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .catalog-hero h1 {
        font-size: 2rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-label {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
    }

    .product-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-order {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   LOADING ANIMATION
   =================================== */
.product-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--catalog-dark);
    color: var(--catalog-primary);
    border: 1.5px solid var(--catalog-primary);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    display: flex;
}

.scroll-top:hover {
    background: var(--catalog-primary);
    color: var(--catalog-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(201, 168, 106, 0.5);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}
