@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);
    
}

.item__licence {
    font-size: var(--font-small);
    font-weight: 500;
}

.item__name {
    font-weight: 500;
}

.item__description {
    font-family: var(--base-font);
    font-size: var(--font-medium);
    font-weight: 400;
}

.item__price {
    font-size: var(--font-display);
}

.item__promo {
    font-size: var(--font-xsmall);
    font-family: var(--base-font);
    font-weight: 700;
    color: var(--secondary-solid);
}

.item__promo a {
    text-decoration: underline;
}

.item__submit {
    width: 181px;
    height: 37.91px;
    background-color: var(--primary-solid);
    color: var(--light-font-solid);
    font-size: var(--font-medium);
    font-family: var(--base-font);
    font-weight: 400;
}

.item__input {
    width: 105.47px;
    height: 35.24px;
}

.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;
}

.item__img {
    width: 100%;
    max-width: 600px;
    /* margin-top: 10px; */
    margin: 0 auto;
}

.item__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Estilo para el carrusel con hover */
.card-item__cover {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Relación de aspecto 1:1 */
    overflow: hidden;
}

.card-item__img--front,
.card-item__img--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease; /* Transición suave */
}

.card-item__img--front {
    opacity: 1;
}

.card-item__img--back {
    opacity: 0;
}

.card-item__cover:hover .card-item__img--front {
    opacity: 0;
}

.card-item__cover:hover .card-item__img--back {
    opacity: 1;
}

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

.card-item__content {
    padding: 10px;
}

.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;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}


