@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
    /*palette*/
    --primary-solid: #ff3333;
    --primary-900: rgba(255, 51, 51, 0.9);
    --primary-500: rgba(255, 51, 51, 0.5);
    --primary-300: rgba(255, 51, 51, 0.3);

    --secondary-solid:#1D84B5;
    --secondary-900:rgba(29, 132, 181, 0.9);
    --secondary-500:rgba(29, 132, 181, 0.5);
    --secondary-300:rgba(29, 132, 181, 0.3);

    --dark-solid:#1f1f1f;
    --dark-900:rgba(31, 31, 31, 0.9);
    --dark-500:rgba(31, 31, 31, 0.5);
    --dark-300:rgba(31, 31, 31, 0.3);

    --dark-bg-solid:#30343f;
    --light-bg-solid:#fafaff;

    --light-font-solid:#fff;

    /* typography */

    --base-font:'Inter', sans-serif;
    --alternative-font:'Raleway', sans-serif;

    /* font sizes */
    --font-display: 4.6em;
    --font-jumbo: 3.8em;
    --font-xlarge: 3em;
    --font-large: 2.4em;
    --font-medium: 1.8em;
    --font-small: 1.6em;
    --font-xsmall: 1.4em;

    /* spacings */

    --spacing-128: 12.8rem;
    --spacing-68: 6.8rem;
    --spacing-36: 3.6rem;
    --spacing-28: 2.8rem;
    --spacing-24: 2.4rem;
    --spacing-20: 2rem;
    --spacing-16: 1.6rem;
    --spacing-12: 1.2rem;
    --spacing-8: 0.8rem;





}


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

html {
    font-family: var(--base-font);
    font-size: 62.5%;
    color:var(--dark-solid);
    
}

/*inicio filtros*/
.contenedor_cuadrados {
    display: inline-block;
}

.cuadrado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    max-width: 1200px;
    max-height: 2100px;
    /* border: 1px solid black; */
    float: right;
    /* position: relative; */
}

.cuadrado2 {
    display: flex;
    width: 300px;
    height: 500px;
    border: 1px solid black;
    float: right;
    margin-left: 250px;
}

.productos_img {
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: space-between;
}
.product__cover {
    width: 100%;
    height: auto; /* O un valor fijo si quieres controlar la altura */
    object-fit: contain; /* Mantiene la proporción de la imagen */
    padding-top: 0; /* Elimina cualquier padding superior */
}


.contenedor_img {
    position: relative;
}

.casilla_buscar {
    display: flex;
    flex-wrap: wrap;
    height: 30px;
}

.titulo_filtro {
    display: flex;
    flex-wrap: wrap;
    height: 30px;
    padding-right: 15px;
}

.contenedor_cuadrados {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.cuadrado {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.contenedor_img {
    position: relative;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
}

.productos_img {
    width: 100%;
    height: auto;
}

.card-item__content {
    text-align: center;
}

.card-item__add {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
}

.card-item__add:hover {
    background-color: #e03e00;
}

.cuadrado2 {
    width: 100%;
    max-width: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.titulo_filtro {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.casilla_buscar {
    width: 100%;
    padding: 10px;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.navbar__cart {
    position: relative;
}

.navbar__cart::after {
    content: attr(data-items);
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}


.item {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.item__img {
    max-width: 50%;
}

.item__img img {
    width: 100%;
    height: auto;
}

.item__info {
    flex: 1;
}

.item__licence {
    font-size: 1.2rem;
    color: #555;
}

.item__name {
    font-size: 2rem;
    margin: 10px 0;
}

.item__description {
    font-size: 1rem;
    color: #777;
    margin-bottom: 20px;
}

.item__price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.item__cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.item__quantity {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
}

.item__quantity:hover {
    background-color: #ccc;
}

.item__input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.item__submit {
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.item__submit:hover {
    background-color: #e03e00;
}

.item__promo a {
    color: #007bff;
    text-decoration: none;
}

.item__promo a:hover {
    text-decoration: underline;
}

.navbar__cart {
    position: relative;
}

.navbar__cart::after {
    content: attr(data-items);
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .item {
        flex-direction: column;
        text-align: center;
    }

    .item__img {
        max-width: 100%;
    }
}