:root {
    --color-acento: #ee6130;
    --color-acento-claro: #ee613033;
    --color-texto: black;
}


body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header nav a {
    text-decoration: none;
    color: var(--color-texto)
}

header nav a:hover:not(#cart:hover) {
    color: var(--color-acento)
}

header {
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.104);
    padding: 10px 0;
    margin-bottom: 10px;
}

header nav {
    display: flex;
    justify-content: space-between;
    margin: 0 60px;
}

@media screen and (max-width: 992px) {
    #productos-container {
        justify-content: center;
    }

    header nav {
        margin: 0 10px;
    }

    #logo {
        height: 10px;
    }

    #logolibror {
        height: 10px;
    }

    #producto-container .tarjeta-producto1 {
        display: block;
    }


    #producto-container .tarjeta-producto1 img {
        width: 300px;
        height: 300px;
        aspect-ratio: 1.5;
        
    }
}

#logo {
    height: 40px;
}

header nav div img {
    height: 25px;
}

header nav div {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

#cuenta-carrito {
    background-color: var(--color-acento);
    border-radius: 100%;
    display: inline-block;
    width: 20px;
    aspect-ratio: 1;
    text-align: center;
    position: absolute;
    margin-left: -10px;
    margin-top: -7px;
}

footer {
    margin-top: auto;
    box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.104);
    text-align: center;

}

h3,
p {
    margin: 6px 0;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.form-container input,
button {
    border-radius: 4px;
    padding: 15px 30px;
    outline-color: #ccc;
}

.error {
    color: rgb(255, 81, 81);
}

.escondido {
    display: none;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.menu {
    position: relative;
}

.menu ul {
    background-color: white;
    border: 1px solid black;
}

.menu:hover ul {
    display: block;
    top: 0.1em;
}

header li:hover ul {
    display: block;
}

.submenu {
    position: absolute;
    display: none;
}

#productos-container {
    display: flex;
    flex-wrap: wrap;

    gap: 40px;
    max-width: 980px;
    margin: auto;
}

.pagina-producto {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagina-producto a {
    padding: 5px 6px;
    margin: 0 5px;
    cursor: pointer;
    outline: 1px solid #ddd;
    border-radius: 1px;
    border: none;
    text-decoration: none;
    color: black;
}

.pagina-producto a.active {
    background-color: #4CAF50;
    color: white;
}

.pagina-producto a:hover:not(.active) {
    background-color: #ddd;
}

#productos-container a:hover {
    color: var(--color-acento)
}

.tarjeta-producto {
    max-width: 280px;
    text-align: center;
    background-color: var(--color-acento-claro);
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.228);
    transition: 200ms;
    position: relative;
}

.tarjeta-producto:hover {
    /*translate: 0 -10px;*/
    box-shadow: 0 10px 5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.tarjeta-producto .imagen {
    width: 280px;
    height: 280px;
    aspect-ratio: 1.5;
    z-index: 1;
}

.tarjeta-producto .agotado {
    width: 280px;
    height: 280px;
    aspect-ratio: 1.5;
    position: absolute;
    z-index: 2;
    top: 0px;
    left: 0px;
}


button {
    background-color: var(--color-acento);
    color: white;
    padding: 5px 10px;
    border: unset;
    border-radius: 5px;
    cursor: pointer;
}

#producto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 980px;
    margin: auto;
}

#producto-container .producto-text {
    justify-content: start;
    padding-left: 10px;
}

.tarjeta-producto1 {
    display: flex;
    max-width: 750px;
    position: relative;
    justify-content: start;
    background-color: var(--color-acento-claro);
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.228);
    transition: 200ms;
}

.tarjeta-producto1 .imagen {
    width: 500px;
    height: 500px;
    aspect-ratio: 1.5;
}

.tarjeta-producto1 .agotado {
    width: 500px;
    height: 500px;
    aspect-ratio: 1.5;
    position: absolute;
    top: 0px;
    left: 0px;
}

.search-container {
    max-width: 35vh;
    margin: 10px auto;
    box-shadow: 0 1px 5px 3px rgba(0, 0, 0, 0.12);
    position: relative;
}

.search-container input[type=text] {
    padding: 5px;
    margin-top: 8px;
    font-size: 17px;
    border: none;
    outline: none;

}

.search-container input[type=text]::placeholder {
    opacity: 0.5;
    color: gray;
}

.search-container button {
    top: 5px;
    right: 8px;
    background: #ddd;
    font-size: 17px;
    border: none;
    cursor: pointer;
    position: absolute;
}

.search-container button:hover {
    background: #ccc;
}


.search-input-box {
    width: 100vh - 10px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 1px 5px 3px rgba(0, 0, 0, 0.12);

}

.search-input-box input {
    width: auto;
    border: none;
    outline: none;
    border-radius: 5px;
    height: 55px;
    padding: 0 60px 0 20px;
    font-size: 18px;

}

.icon {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 22px;
    cursor: pointer;
}

.loader {
    width: 60px;
    margin: auto;
}

.loader-wheel {
    animation: spin 1s infinite linear;
    border: 2px solid rgb(255, 255, 255);
    border-left: 4px solid black;
    border-radius: 50%;
    height: 50px;
    margin-bottom: 10px;
    width: 50px;
}

.loader-text {
    color: black;
    font-family: arial, sans-serif;
}

.loader-text:after {
    content: 'Loading';
    animation: load 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes load {
    0% {
        content: 'Cargando';
    }

    33% {
        content: 'Cargando.';
    }

    67% {
        content: 'Cargando..';
    }

    100% {
        content: 'Cargando...';
    }
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden;
    /* Hidden by default. Visible on click */
    min-width: 250px;
    /* Set a default minimum width */
    margin-left: -125px;
    /* Divide value of min-width by 2 */
    background-color: #333;
    /* Black background color */
    color: #fff;
    /* White text color */
    text-align: center;
    /* Centered text */
    border-radius: 2px;
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 1;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the snackbar */
    bottom: 30px;
    /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible;
    /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}