/* =========================================================
   CATÁLOGO HILALÚ
   ========================================================= */

#hilalu-catalogo {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    font-family: Arial, sans-serif;
    color: #222;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(245,124,0,0.08) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 90% 35%,
            rgba(245,124,0,0.07) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 30% 80%,
            rgba(245,124,0,0.06) 0 2px,
            transparent 3px
        );

    background-size: 38px 38px;
}


/* =========================================================
   CABECERA
   ========================================================= */

.hilalu-catalogo-cabecera {
    text-align: center;
    margin-bottom: 30px;

    padding-top: 100px;

    background-image:
        url("https://comicshilalu.com/wp-content/uploads/2026/08/LOGO-HILALU-redondo.png");

    background-repeat: no-repeat;

    background-position: center top;

    background-size: 90px 90px;
}


.hilalu-catalogo-cabecera h1 {
    margin: 0 0 10px;

    font-size: 48px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1px;

    color: #F57C00;

    text-transform: uppercase;
}


.hilalu-catalogo-cabecera p {
    margin: 0;

    font-size: 17px;

    color: #555;

    font-weight: 600;
}


/* =========================================================
   FILTROS
   ========================================================= */

.hilalu-filtros {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-bottom: 22px;
}


.hilalu-filtro {
    border: 2px solid #F57C00;

    background: #fff;

    color: #F57C00;

    padding: 10px 20px;

    border-radius: 999px;

    cursor: pointer;

    font-weight: 900;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.hilalu-filtro:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(245,124,0,0.18);
}


.hilalu-filtro:hover,
.hilalu-filtro.activo {
    background: #F57C00;

    color: #fff;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.hilalu-buscador {
    margin: 0 auto 35px;

    max-width: 650px;
}


.hilalu-buscador input {
    width: 100%;

    box-sizing: border-box;

    padding: 15px 20px;

    border: 2px solid #e5e5e5;

    border-radius: 999px;

    background: #fff;

    font-size: 16px;

    outline: none;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.05);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.hilalu-buscador input:focus {
    border-color: #F57C00;

    box-shadow:
        0 5px 18px rgba(245,124,0,0.12);
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.hilalu-contenido {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.hilalu-productos {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.hilalu-producto {
    background: #fff;

    border: 2px solid #f1f1f1;

    border-radius: 20px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    min-width: 0;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}


.hilalu-producto:hover {
    transform: translateY(-6px);

    border-color: #F57C00;

    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   IMAGEN
   ========================================================= */

.hilalu-producto-imagen {
    width: 100%;

    height: 310px;

    object-fit: contain;

    display: block;

    background: #f7f4ec;

    padding: 12px;

    box-sizing: border-box;

    transition:
        transform 0.25s ease;
}


.hilalu-producto:hover
.hilalu-producto-imagen {
    transform: scale(1.025);
}


/* =========================================================
   SIN IMAGEN
   ========================================================= */

.hilalu-producto-sin-imagen {
    height: 300px;

    background: #f7f4ec;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-weight: 900;

    font-size: 14px;
}


/* =========================================================
   INFORMACIÓN PRODUCTO
   ========================================================= */

.hilalu-producto-info {
    padding: 18px;

    display: flex;

    flex-direction: column;

    flex: 1;

    background: #ffffff;
}


.hilalu-producto-titulo {
    font-size: 17px;

    font-weight: 900;

    line-height: 1.3;

    margin-bottom: 7px;

    color: #222222;
}


.hilalu-producto-editorial {
    color: #777;

    font-size: 13px;

    margin-bottom: 12px;
}


.hilalu-producto-precio {
    font-size: 23px;

    font-weight: 900;

    color: #F57C00;

    margin-top: 3px;

    margin-bottom: 5px;
}


.hilalu-producto-stock {
    font-size: 13px;

    margin-bottom: 15px;
}


.hilalu-disponible {
    color: #3d9b35;

    font-weight: 800;
}


/* =========================================================
   BOTÓN AGREGAR
   ========================================================= */

.hilalu-agregar {
    width: 100%;

    border: 0;

    background: #F57C00;

    color: #fff;

    padding: 13px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 900;

    font-size: 14px;

    margin-top: auto;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.hilalu-agregar:hover {
    background: #df6e00;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(245,124,0,0.25);
}


.hilalu-agregar:disabled {
    background: #bbb;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   MI PEDIDO
   ========================================================= */

.hilalu-pedido {
    background: #fff;

    border: 2px solid #F57C00;

    border-radius: 18px;

    padding: 21px;

    position: sticky;

    top: 20px;

    box-shadow:
        0 6px 20px rgba(245,124,0,0.10);
}


.hilalu-pedido h2 {
    margin-top: 0;

    margin-bottom: 15px;

    font-size: 23px;

    font-weight: 900;
}


.hilalu-pedido-vacio {
    color: #777;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   ITEMS DEL PEDIDO
   ========================================================= */

.hilalu-item-pedido {
    border-bottom: 1px solid #eeeeee;

    padding: 12px 0;
}


.hilalu-item-titulo {
    font-weight: 800;

    font-size: 14px;

    line-height: 1.35;
}


.hilalu-item-controles {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-top: 9px;
}


.hilalu-cantidad {
    display: flex;

    align-items: center;

    gap: 7px;
}


.hilalu-cantidad button {
    width: 29px;

    height: 29px;

    border: 1px solid #ddd;

    background: #fff;

    border-radius: 7px;

    cursor: pointer;

    font-weight: 900;

    font-size: 16px;
}


.hilalu-cantidad button:hover {
    border-color: #F57C00;

    color: #F57C00;
}


.hilalu-eliminar {
    border: 0;

    background: transparent;

    color: #c0392b;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   RESUMEN
   ========================================================= */

.hilalu-pedido-resumen {
    margin-top: 16px;

    padding-top: 16px;

    border-top: 2px solid #eeeeee;

    font-weight: 900;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.hilalu-whatsapp {
    width: 100%;

    margin-top: 16px;

    border: 0;

    background: #25D366;

    color: #fff;

    padding: 14px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 15px;

    font-weight: 900;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.hilalu-whatsapp:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 15px rgba(37,211,102,0.25);
}


.hilalu-whatsapp:disabled {
    background: #bbb;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.hilalu-cargando,
.hilalu-sin-resultados,
.hilalu-error {
    grid-column: 1 / -1;

    text-align: center;

    padding: 50px 20px;

    font-weight: 800;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hilalu-productos {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    #hilalu-catalogo {
        padding:
            30px 16px 50px;
    }


    .hilalu-contenido {
        grid-template-columns: 1fr;
    }


    .hilalu-pedido {
        position: static;
    }


    .hilalu-catalogo-cabecera h1 {
        font-size: 40px;
    }


    .hilalu-catalogo-cabecera {
        padding-top: 90px;

        background-size: 80px 80px;
    }
}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 520px) {

    .hilalu-productos {
        grid-template-columns: 1fr;
    }


    .hilalu-producto-imagen,
    .hilalu-producto-sin-imagen {
        height: 320px;
    }


    .hilalu-catalogo-cabecera h1 {
        font-size: 32px;
    }


    .hilalu-catalogo-cabecera p {
        font-size: 15px;
    }


    .hilalu-catalogo-cabecera {
        padding-top: 80px;

        background-size: 70px 70px;
    }


    .hilalu-filtro {
        padding:
            9px 15px;

        font-size: 13px;
    }
}