/* ============================= */
/* VARIABLES */
/* ============================= */
:root {
    /* Colores */
    --color-principal: #36302A;
    --color-fondo-card: #B9A590;

    /* Fuentes */
    --fuente-general: 'Raleway', sans-serif;
    --fuente-titulos: 'Space Grotesk', sans-serif;

    /* Sombras */
    --sombra-normal: 0 5px 8px rgba(0, 0, 0, 0.2),
                     0 8px 14px rgba(0, 0, 0, 0.15),
                     0 12px 20px rgba(0, 0, 0, 0.1);

    --sombra-hover: 0 8px 12px rgba(0, 0, 0, 0.25),
                    0 12px 18px rgba(0, 0, 0, 0.2),
                    0 16px 24px rgba(0, 0, 0, 0.15);
}

/* ============================= */
/* FORMULARIOS DE BÚSQUEDA */
/* ============================= */
form {
    display: flex;
    gap: 20px;
    padding-bottom: 100px;
}

.text-search,
.form-control-custom {
    border: 2px solid var(--color-principal);
    background-color: transparent;
    border-radius: 25px;
    font-family: var(--fuente-general);
}

.text-search {
    width: 800px;
    height: 60px;
    padding: 20px;
}

.text-search:focus {
    outline: none;
}

.form-control-custom {
    width: 200px;
    height: 60px;
    padding: 10px;
}

.pantalla-peque {
    display: flex;
    gap: 10px;
}

/* ============================= */
/* CATÁLOGOS Y CARDS */
/* ============================= */
.catalogos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 5vw;
    row-gap: 50px;
}

.card-product {
    padding: 10px;
    box-shadow: var(--sombra-normal);
    transition: box-shadow 0.3s ease;
    font-family: var(--fuente-general);
    font-weight: 500;
    background-color: var(--color-fondo-card);
    border-radius: 15px;
    width: fit-content;
    cursor: pointer;
}

.card-product:hover {
    box-shadow: var(--sombra-hover);
}

.img-card-custom {
    width: 20vw;
    height: 20vw;
    border-radius: 10px;
    margin-bottom: 1em;
}

.card-title,
.text,
.text strong,
.text-medida,
.text-price {
    font-family: var(--fuente-titulos);
    color: var(--color-principal);
}

.card-title {
    font-size: 1.4vw;
    font-weight: 700;
    margin-bottom: 1vw;
}

.text {
    font-size: 1vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

.text strong {
    font-size: 1.1vw;
    font-weight: 700;
}

.text-medida {
    font-size: 1.11vw;
    font-weight: 500;
    margin-bottom: 1vw;
}

.text-price {
    font-size: 1.2vw;
    font-weight: 500;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */
@media (max-width: 1000px) {
    form {
        flex-direction: column;
    }

    .text-search {
        width: 100%;
        height: 50px;
    }

    .form-control-custom {
        width: 48%;
        height: 50px;
    }

    .pantalla-peque {
        justify-content: space-between;
    }
}

@media (max-width: 1600px) {
    .img-card-custom {
        width: 26.3vw;
        height: 26.3vw;
        margin-bottom: 2vw;
    }

    .card-title {
        font-size: 2vw;
        margin-bottom: 2vw;
    }

    .text {
        font-size: 1.5vw;
        margin-bottom: 1.2vw;
    }

    .text strong {
        font-size: 1.6vw;
    }

    .text-medida {
        font-size: 1.3vw;
        margin-bottom: 1vw;
    }

    .text-price {
        font-size: 1.8vw;
    }
}

@media (max-width: 1100px) {
    .img-card-custom {
        width: 41.5vw;
        height: 41.5vw;
        margin-bottom: 4vw;
    }

    .card-title {
        font-size: 4vw;
        margin-bottom: 4vw;
    }

    .text {
        font-size: 2vw;
    }

    .text strong {
        font-size: 2.2vw;
    }

    .text-medida {
        font-size: 2.22vw;
    }

    .text-price {
        font-size: 3vw;
    }
}

@media (max-width: 800px) {
    .img-card-custom {
        width: 41vw;
        height: 41vw;
    }

    .card-title {
        font-size: 3.5vw;
    }

    .text,
    .text strong,
    .text-medida {
        font-size: 2.7vw;
    }

    .text-price {
        font-size: 3.5vw;
    }
}

@media (max-width: 550px) {
    .img-card-custom {
        width: 38vw;
        height: 38vw;
    }

    .card-title {
        font-size: 3.8vw;
    }

    .text,
    .text strong,
    .text-medida {
        font-size: 2.9vw;
    }

    .text-price {
        font-size: 3.8vw;
    }
}
