@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero Jabones - Verde Agua Cálido/Claro */
body.pagina-catalogo .hero-catalogo-jabones {
    width: 100%;
    padding-top: 90px;
    padding-bottom: 30px;
    background: linear-gradient(135deg, #4daaa0 0%, #76d3c3 100%);
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.hero-content {
    max-width: 700px;
    padding: 0 20px;
    color: #ffffff;
}

#hero-title.elegant-soap-phrase {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0.5px;
    font-style: italic;
    color: #ffffff;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#hero-title.elegant-soap-phrase::before {
    content: '“';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 5px;
    font-family: Georgia, serif;
}

#hero-title.elegant-soap-phrase::after {
    content: '”';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 0;
    vertical-align: -0.4em;
    margin-left: 5px;
    font-family: Georgia, serif;
}

body.pagina-catalogo .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    top: 0;
}

.filter-buttons {
    margin-bottom: 20px;
}

body.landing .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

body.landing .filter-buttons button {
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff !important;
    border: 2px solid #4bc0b1 !important;
    color: #4bc0b1 !important;
    border-radius: 20px;
    padding: 10px 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.landing .filter-buttons button:hover {
    background-color: #4bc0b1 !important;
    color: #ffffff !important;
}

body.landing .filter-buttons button.active {
    background-color: #4bc0b1 !important;
    color: #ffffff !important;
}

#cont_prods {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: left;
}

.producto {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin: 10px;
    padding: 20px;
    width: calc(25% - 20px);
    box-sizing: border-box;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 520px;
    color: #334155;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.producto::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #4bc0b1, #86efac);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto:hover::before {
    opacity: 1;
}

.producto-enlace {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.producto-nombre {
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
    line-height: 1.3;
}

.producto-imagen {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background-color: #f8fafc;
    transition: transform 0.3s ease;
}

.producto:hover .producto-imagen {
    transform: scale(1.03);
}

.producto-descripcion {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.producto-precio {
    font-size: 1.3rem;
    font-weight: 800;
    color: #10b981;
    margin-top: auto;
    margin-bottom: 8px;
    text-align: left;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

body.landing .dropbtn {
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff !important;
    border: 2px solid #4bc0b1 !important;
    color: #4bc0b1 !important;
    border-radius: 20px;
    padding: 10px 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

body.landing .dropbtn:hover {
    background-color: #4bc0b1 !important;
    color: #ffffff !important;
}

.carrito-add {
    background-color: #4bc0b1;
    color: white;
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(75, 192, 177, 0.25);
    letter-spacing: 0.5px;
}

.carrito-add:hover {
    background-color: #3eab9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 192, 177, 0.35);
}

.carrito-add:active {
    transform: translateY(0);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1f2a36;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #333d47;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #007bff;
    color: white;
}

body.pagina-catalogo button:not(.energia-nav__toggle):not(.notif-toggle):not(.searchBtn):not(.carrito-add):not(.close-btn):not(.dropbtn) {
    color: #334155;
    background-color: #e2e8f0;
    border: none;
    font-family: 'Poppins', sans-serif;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.pagina-catalogo button:not(.energia-nav__toggle):not(.notif-toggle):not(.searchBtn):not(.carrito-add):not(.close-btn):not(.dropbtn):hover {
    background-color: #cbd5e1;
    color: #0f172a;
}

.producto:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.producto-cantidad {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

body.landing .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

body.landing .filter-buttons button {
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff !important;
    border: 2px solid #4bc0b1 !important;
    color: #4bc0b1 !important;
    border-radius: 20px;
    padding: 10px 18px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    box-sizing: border-box;
    line-height: 1;
}

body.landing .filter-buttons button:hover,
body.landing .filter-buttons button.active {
    background-color: #4bc0b1 !important;
    color: #ffffff !important;
}

body.pagina-catalogo .filter-buttons button {
    margin-top: 0 !important;
}

body.landing .filter-buttons .catalog-search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #4bc0b1;
    border-radius: 20px;
    height: 42px;
    padding: 0 18px;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

body.landing .filter-buttons .catalog-search-input {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13.2px;
    color: #4bc0b1;
    background-color: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    height: 100%;
    width: 140px;
    line-height: 42px;
    text-align: center;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

body.landing .filter-buttons .catalog-search-input::placeholder {
    color: #4bc0b1;
    opacity: 0.7;
    font-weight: 400;
    text-transform: none;
}

body.landing .filter-buttons .catalog-search-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* === MEDIA QUERIES === */
@media (max-width: 600px) {
    /* Despegamos el título del menú para que no se pise */
    .hero-catalogo-jabones {
        padding-top: 120px !important; 
        padding-bottom: 40px !important;
        height: auto !important;
    }
    #hero-title.elegant-soap-phrase {
        font-size: 1.3rem !important;
        text-transform: none !important;
        line-height: 1.4 !important;
    }

    /* Filtros ordenados en columna para que entren perfecto */
    body.landing .filter-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    body.landing .filter-buttons button,
    .dropdown,
    .dropdown .dropbtn {
        width: 100% !important;
    }

    /* Arreglo del buscador que tenía un margen roto */
    .catalog-search-form {
        margin-top: 10px !important;
        width: 100% !important;
    }
    .catalog-search-input {
        width: 100% !important;
    }

    /* ARREGLO PRINCIPAL: 1 producto por fila, ancho completo */
    .producto {
        width: 100% !important;
        flex: 0 0 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    #cont_prods {
        padding: 10px 0 !important;
        justify-content: center !important;
        flex-direction: column !important;
        display: flex !important;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .container {
        margin-top: 0;
        margin-left: 0;
    }
    .catalogoTitulo {
        margin-top: 20px !important;
    }
    .catalog-search-form {
        margin-top: 0 !important;
        position: relative;
    }
    .producto {
        height: auto;
        padding: 10px;
        margin: 5px;
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
    }
    .producto-nombre {
        font-size: 1rem;
    }
    .producto-precio {
        font-size: 0.85rem;
        text-align: left;
    }
    #hero-title.elegant-soap-phrase {
        font-size: 1.6rem;
    }
    .carrito-add {
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (min-width: 1201px) and (max-width: 1900px) {
    #cont_prods {
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    .producto {
        height: auto;
        padding: 15px;
        margin: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .producto-nombre {
        font-size: 1rem;
        margin: 5px 0;
        line-height: 1.2;
    }
    .producto-descripcion {
        font-size: 0.85rem;
        margin: 5px 0;
        line-height: 1.2;
    }
    .producto-precio {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    .carrito-add {
        margin-top: 8px;
        padding: 8px 12px;
    }
    .producto-imagen {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 15px;
        background-color: transparent;
    }
}

/* ================== TOAST ENERGÍA CLUB ================== */
body.pagina-catalogo .ec-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    background-color: #4bc0b1;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.pagina-catalogo .ec-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    body.pagina-catalogo .ec-toast {
        left: 12px;
        right: 12px;
        top: 12px;
        justify-content: center;
        text-align: center;
    }
}
