*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    /* Colores base */
    --color-white: #fff;
    --color-black: #000;
    --color-gray-dark: #333;
    --color-gray-medium: #666;
    --color-gray-light: #e1e1e1;
    --color-text: #222;

    /* Colores de marca / primarios */
    --color-primary: #33c3f0;
    --color-primary-hover: #2da0c3;
    --color-accent: #007bff;
    --color-danger: red;
    --color-disabled: #B0BEC5;
}

.page {
    background-color: var(--color-white);
}

.nav__cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav__cart-icon {
    width: 2.5rem;
    height: 2.5rem;
    /*fill: #333; /* o usa currentColor si quieres que herede */
    transition: fill 0.3s;
}

/*
.nav__cart-btn:hover .nav__cart-icon {
    fill: var(--color-accent);
}

*/

.cart-count{
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--color-danger);
    color: var(--color-white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

.page__title{
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: #222;
}

.product-grid {
    display: grid;
    max-width: 1170px;
    justify-content: center;
    /*margin: auto; */
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px,280px));
    padding-bottom: 40px;
}

.product {
    background-color: var(--color-white);
    border: solid thin var(--color-gray-light);
    height: 450px;
    padding-top: 20px;
}

.product__image-container{
    height: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product__image-container a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.product__image {
    max-height: 100%;
    max-width: 80%;
}

.product__info{
    padding: 0 15px;
}

.product__title{
    font-size: 1.6rem;
}

.info p {
    font-size: 1.8rem;
}

.info h3,
.info p {
    color:#222;
    margin-bottom: 15px;
}

.product__price--discount {
    text-decoration: line-through;
}

.product__price {
    display: flex;
    justify-content: center;
    font-weight: bolder;
    align-items: center;
}

.product__price__etiqueta{
    font-size: 1.8rem;
}

.product__button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 5px;

    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;

}

.product__button:hover {
    background-color: var(--color-primary-hover);
    transition: all .3s;
}

.product__button__out {
    width: 100%;
    padding: 1rem;
    margin-bottom: 5px;
    background-color: var(--color-disabled);
    color: var(--color-white);
    border: none;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;

}

.quantity-controls{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quantity-wrapper {
    display: inline-flex;
    border-radius: 3px;
    width: 100%;
    height: 30px;
    overflow: hidden;
}

.journal-stepper,
.input-cantidad {
    border: none;
    padding: 5px;
    height: 32px;
    outline: none;
}

.journal-stepper{
    width: 30%;
    color:rgb(255,255,255);
    background-color: rgb(0,0,0);
    display: inline-block;
    font-size: 20px;
}

.input-cantidad{
    width: 40%;
    text-align: center;
}

.contenedor {
    max-width: 1170px;
    margin: auto;
}
