@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Montserrat:wght@700&display=swap');


*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
}

body{
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: 'Lato', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #889bb0 0%, #acbfd4 100%);
}

header{
    background: linear-gradient(135deg, #263042 0%, #15253f 100%);
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: fit-content;
}

.banner h1{
    margin: 0;
    font-family:'Montserrat', sans-serif;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px grey;
}

nav ul{
    display: flex;
    padding: 0;
    margin: 10px 0;
    justify-content: center;
    list-style: none;
}

nav li{
    margin: 0 20px;
}

nav a{
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

nav a:hover, 
nav a.active {
    font-weight: bold;
    color: #ffd166;
}

.search-bar{
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.search-bar input{
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 25px 0 0 25px;
    width: 250px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

.search-bar button{
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    background: linear-gradient(#889bb0 0%, #acbfd4 100%);
    color: #15253f;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.search-bar button:hover {
    opacity: 0.9;
}

.MenuOtherOptions{

    margin-top:30px;

    padding-top:20px;

    border-top:2px solid rgba(255,255,255,.25);

}

.MenuOptions{

    margin-top:15px;

    list-style:none;

}

.MenuOptions li{

    margin-bottom:10px;

}

.MenuOptions a{

    color:white;

    display:block;

    padding:12px;

    border-radius:10px;

    text-decoration:none;

    background:rgba(255,255,255,.10);

}

.MenuOptions a:hover{

    background:rgba(255,255,255,.20);

}

main {
    display: flex;
    gap: 15px;
    padding: 15px;
    flex: 1;
    background: #E0E0E0;
    min-height: 0;
    overflow: hidden;
}

.categories, .cart {
    flex: 1.2;
    background: #566c86 ;
    padding: 15px;
    border-radius: 15px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.categoryList, .MenuOptions {
    list-style: none;
    padding: 0;
}

.categoryList li{
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.categoryList li:hover{
    background: rgba(255, 255, 255, 0.25);
}

.categoryList li.active{
    background: rgba(255, 255, 255, 0.45);
    font-weight: bold;
    color: #fff;
}

.MenuOtherOptions{
    display: none;
}

.categories h2, .cart h2 {
    font-family:'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}

.categories ul {
    margin-top: 15px;
    font-family:'Lato', sans-serif;
    font-size: 14px;
}

.gallery {
    flex: 4;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-height: 0;
    overflow-y: auto;
}

.gallery h2 {
    font-family:'Montserrat', sans-serif;
    font-size: 20px;
    padding: 10px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.product {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.product img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.product h3 {
    font-family:'Lato', sans-serif;
    margin: 15px 0;
    font-size: 15px;
    font-weight: 900;
}

.product p {
    margin-bottom: 10px;
    font-family:'Lato', sans-serif;
    font-size: 14px;
}

.product:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product button {

    --color: #023047;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--color);
    transition: color 0.5s;
    z-index: 1;
    font-size: 11px;
    font-weight: bolder;
    border-radius: 20px;
    color: var(--color);
    margin-top: 10px;
}

.product button::before{
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--color);
    height: 150px;
    width: 200px;
    border-radius: 50%;
}

.product button:hover{
    color: #fff;
}

.product button:before{
    top: 100%;
    left: 100%;
    transition: all 0.7s;
}

.product button:hover::before{
    top: -30px;
    left: -30px;
}

.product button:active:before{
    background: var(--color);
    transition: background 0s;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-items li {
    
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px;
    margin-bottom:12px;
    border-radius:12px;
    background:rgba(255,255,255,.18);
    border:none;
}

.info-item{

    display:flex;
    flex-direction:column;

}

.info-item strong{

    color:white;
    font-size:15px;

}

.info-item small{

    color:#d9e4ef;
    margin-top:4px;
    font-size:13px;

}

.controles-item{

    display:flex;
    align-items:center;
    gap:8px;

}

.controles-item button{

    width:30px;
    height:30px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:0;

    border:none;
    border-radius:50%;

    background:#263042;
    color:white;

    font-size:20px;
    font-weight:bold;
    line-height:1;

    cursor:pointer;

}

.controles-item button:hover{
    transform:scale(1.08);

}

.controles-item span{

    width:24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color:white;
    font-weight:bold;

}

p{
    font-family:'Lato', sans-serif;
    font-size: 15px;
    text-align: right;
    margin-top: 12px;
}

#totalCarrito{

    margin-top:20px;
    font-size:18px;
    color:white;
    text-align:right;
    border-top:2px solid rgba(255,255,255,.3);
    padding-top:15px;

}


#botonComprar {
    margin-top: 15px;
    background: linear-gradient(#889bb0 0%, #acbfd4 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: #15253f;
    font-weight: bold;
    cursor: pointer;
    font-family:'Lato', sans-serif;
    font-size: 12px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.cart button:hover {
    transform: scale(1.05);
}

footer {
    background: linear-gradient(135deg, #263042 0%, #15253f 100%);
    color: white;
    padding: 15px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.bottom-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-menu li {
    margin: 0 15px;
}

.bottom-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.bottom-menu a:hover {
    color: #FFB703;
}

.tipo-cambio-container{
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
    
}

.tipo-cambio-container h2{
    margin-bottom: 15px;
}

#listaTipoCambio{
    list-style: none;
    padding: 0;
    margin: 0;
}

#listaTipoCambio li{
    font-family:'Lato', sans-serif;
    font-size: 14px;
}

.tipo-cambio-container + span{
    display:block;
}

/*MEDIA QUERY PARA PANTALLAS PEQUEÑAS*/

@media (max-width: 1024px) {

    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 100dvh;

    }

    .banner h1{
        text-align: center;
        font-size: 1.8rem;
    }

    .search-bar{
        display: none;
    }

    header nav ul {
        display: none;
    }

    .MenuOtherOptions {
        display: block;

    }

    main {
        flex-direction: column;
        position: relative;
    }


    .cart {
    
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    max-width: 90%;
    height: auto;
    background: #566c86;
    z-index: 1000;
    padding: 20px;
    overflow: hidden;
    transition: .35s ease;
    transform: translateX(20px);
    opacity: 0;
    border-radius: 0;
    bottom: 65px;

    }

    .categories {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 90%;
        height: 100vh;
        background: #566c86;
        transition: .35s ease;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        opacity: 0;
        transform: translateX(-25px);
    }

    .gallery {
        flex: 1;
    }

    footer {
        display: none;
    }

}

.bottom-toolbar {
    display: none;
}

@media (max-width: 1024px) {

    body {
        padding-bottom: 70px;
    }

    .bottom-toolbar {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: linear-gradient(135deg, #263042 0%, #15253f 100%);
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
        border-radius: 16px 16px 0 0;
        z-index: 1100;
        padding: 0 10px;
    }

    .toolbar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        flex: 1;
        padding: 8px 0;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .toolbar-item svg {
        width: 22px;
        height: 22px;
        stroke: rgba(255, 255, 255, 0.8);
        transition: stroke 0.2s ease;
    }

    .toolbar-item:hover,
    .toolbar-item.active {
        color: #ffd166;
        transform: translateY(-3px);
    }

    .toolbar-item:hover svg,
    .toolbar-item.active svg {
        stroke: #ffd166;
    }

}

.categories.abierto{
    left:0;
    opacity: 1;
    transform: translateX(0);


}

.cart.abierto{
    right:0;
    opacity: 1;
    transform: translateX(0);

}

.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;

}

.overlay.activo{
    opacity:1;
    visibility:visible;

}

.search-modal{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(2px);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1200;

}

.search-modal.abierto{

    opacity:1;

    visibility:visible;

}

.search-box{

    width:90%;

    max-width:350px;

    background:white;

    border-radius:18px;

    padding:25px;

    display:flex;

    flex-direction:column;

    gap:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.search-box h2{

    text-align:center;

    color:#15253f;

}

.search-box input{

    padding:12px;

    border:1px solid #ccc;

    border-radius:12px;

    outline:none;

    font-size:15px;

}

.search-box button{

    background:#263042;

    color:white;

    border:none;

    padding:12px;

    border-radius:12px;

    cursor:pointer;

    font-weight:bold;

}

.search-box button:hover{

    background:#15253f;

}