@import url('https://fonts.googleapis.com/css2?family=Frijole&family=Krona+One&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Nag+Mundari:wght@400..700&display=swap');

/* Estilos globales */
*::after,
*::before,
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-image: url('https://i.postimg.cc/qqJHPKxx/fondo.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: url(./IMAGENES/fondo.png); /* Corregido */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

body {
    background-image: url(./IMAGENES/fondo.png); /* Corregido */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Para que la imagen permanezca fija */
    color: #ffffff;
    display: flex;
    font-size: 16px;
    line-height: 1.6;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    font-family: 'Lato', sans-serif;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    background-color: #00031e;
    position: relative;
    
}

.Header_menu {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.Header_menu_link {
    border: 2px solid #00046f;
    border-radius: 16px;
    color: white; /* Color del texto de los enlaces */
    text-decoration: none;
    padding: 10px 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    font-size: 20px; /* Ajusta el tamaño de la fuente */
    justify-content: center;
    display: flex;
}

.logovinilo {
   
    top: 20px;
    left: 60px; /* Ajusta la posición para que se ajuste a tu diseño */
    width: 90px; /* Ajusta el tamaño */
    height: auto;

}

/* Centering the navigation links */
/* Centering the navigation links */
.Header_menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-grow: 1;
}

.Header_menu_link {
    margin: 0 4px; /* Ajusta el espacio entre los enlaces */
    display: flex;
}

.Header_menu_link:first-child {
    margin-left: 0;
}

.Header_menu_link:last-child {
    margin-right: 0;
}

.container-icon {
    position: relative;
}

.count-products {
    position: absolute;
    top: 55%;
    right: 0;
    background-color: #000;
    color: #ffffff;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

#contador-productos {
    font-size: 12px;
}

.header-search {
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.icon-cart {
    width: 40px;
    height: 40px;
    stroke: #000;
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.icon-cart:hover {
    cursor: pointer;
}

/* Carrito de Compras */
.container-cart-products {
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #000000;
    width: 400px;
    z-index: 1;
    box-shadow: 0 10px 20px rgb(255, 255, 255);
    border-radius: 16px;
}

.cart-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.20);
}   

.info-cart-product {
    display: flex;
    justify-content: space-between;
    flex: 0.8;
}

.titulo-producto-carrito {
    font-size: 20px;
}

.precio-producto-carrito {
    font-weight: 700;
    font-size: 20px;
    margin-left: 10px;
}

.cantidad-producto-carrito {
    font-weight: 400;
    font-size: 20px;
}

.icon-close {
    width: 25px;
    height: 25px;
}

.icon-close:hover {
    stroke: red;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.cart-total h3 {
    font-size: 20px;
    font-weight: 700;
}

.total-pagar {
    font-size: 20px;
    font-weight: 900;
}

.hidden-cart {
    display: none;
}

/* Estilos para los botones de aumentar y disminuir cantidad */
.product-quantity-buttons {
    display: flex;
    gap: 5px;
}

.btn-decrease, .btn-increase {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
}

.btn-decrease:hover, .btn-increase:hover {
    background-color: #e0e0e0;
}

/* Botón de envío por WhatsApp */
.btn-send-whatsapp {
    background-color: #00bb45;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-send-whatsapp:hover {
    background-color: #04481d;
}

/* Main */
.container-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.item {
    border-radius: 10px;
}

.item:hover {
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.558);
}

.item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all .5s;
}

.item figure {
    overflow: hidden;
}

.item:hover img {
    transform: scale(
1.2);
}

.info-product {
    padding: 15px 30px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price {
    font-size: 18px;
    font-weight: 900;
}

.info-product button {
    border: none;
    background: none;
    background-color: #030443;
    color: #fff;
    padding: 15px 10px;
    cursor: pointer;
}

.cart-empty {
    padding: 10%; /* Usa un padding en porcentaje para que se ajuste dinámicamente */
    text-align: center;
    font-size: 1.2rem; /* Asegura que el texto sea legible en diferentes tamaños de pantalla */
}

.hidden {
    display: none;
}

/* Botón de ver galería */
.btn-view-gallery {
    border: none;
    background: none;
    background-color: #030443;
    color: #fff;
    padding: 6px 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-gallery:hover {
    background-color: #333;
}



#search-form {
    display: flex;
    justify-content: center;
}

#search-input {
    padding: 8px;
    font-size: 16px;
    width: 80px; /* Ancho reducido */
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}


#search-button {
    padding: 10px 28px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    background-color: #f4f4f4;
    cursor: pointer;
    display: flex;
}

#search-button:hover {
    background-color: #ddd;
}

.color-options {
    list-style-type: none; 
    padding: 0; 
    margin: 0;
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px;
}

.color-option {
    width: 30px; 
    height: 30px; 
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.selected {
    border-color: black;
}

.color-option:hover {
    opacity: 0.8;
}

/* nuevo item */
.custom-design {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.custom-design h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif; /* Usando una de las fuentes importadas */
}

#upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#design-file {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
}

#upload-button {
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

#upload-button:hover {
    background-color: #1DA851;
}

/*carrousel estilos*/
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Asegúrate de que el contenedor ocupe todo el ancho */
}

.carousel-images img {
    width: 100%; /* Asegúrate de que las imágenes ocupen todo el ancho del contenedor */
    height: auto;
    flex-shrink: 0; /* Evita que las imágenes se reduzcan */
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}





/* Dispositivos pequeños (hasta 480px) */
@media only screen and (max-width: 480px) {
    .Header_menu {
        flex-direction: column;
        align-items: flex-start; /* Alinea los elementos al inicio */
        gap: 10px;
    }

    .Header_menu_link {
        align-self: flex-end; /* Mueve los botones hacia la derecha */
        margin: 5px 0;
        font-size: 16px;
    }

    .search-bar {
        order: 2;
        align-self: flex-end; /* Mueve la barra de búsqueda hacia la derecha */
        margin-bottom: 5px; /* Reduce el espacio entre la barra de búsqueda y el carrito */
        margin-top: 1px; /* Ajusta el espacio arriba de la barra de búsqueda si es necesario */
        width: 70%; /* Ajusta el ancho de la barra de búsqueda si es necesario */
    }

    .cart-icon {
        order: 2;
        width: 30px;
        height: 30px;
        align-self: flex-end; /* Asegura que el carrito también esté alineado a la derecha */
    }

    .container-items {
        grid-template-columns: 1fr;
    }

    .info-product {
        padding: 10px;
        gap: 5px;
    }

    .item img {
        height: 200px;
    }

    .carousel-images {
        transform: translateX(0); /* Asegura que las imágenes no se desplacen fuera de vista */
        flex: 0 0 100%; /* Asegura que solo una imagen se muestre a la vez */
    }

    .carousel-images img {
        min-width: 100%; /* Asegura que cada imagen ocupe todo el ancho del carrusel */
        flex: 0 0 100%; /* Evita que más de una imagen se muestre a la vez */
    }

    .carousel-prev, .carousel-next {
        top: 50%;
        padding: 5px;
        font-size: 18px;
    }

    .custom-design {
        padding: 15px;
    }

    #upload-form {
        width: 100%;
    }

    #design-file {
        max-width: 100%;
    }

    #upload-button {
        width: 100%;
    }
}

/* Dispositivos medianos (481px a 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .Header_menu {
        gap: 15px;
    }

    .container-items {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas para pantallas medianas */
    }

    .info-product {
        padding: 15px;
    }

    .item img {
        height: 250px;
    }

    #search-input {
        width: 200px;
    }

    .container-cart-products {
        width: 350px;
    }
}

/* Dispositivos grandes (769px a 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .Header_menu_link {
        font-size: 18px;
    }

    .container-items {
        grid-template-columns: repeat(3, 1fr); /* Tres columnas para pantallas grandes */
    }

    .info-product {
        padding: 20px;
    }

    .item img {
        height: 280px;
    }

    .container-cart-products {
        width: 370px;
    }

    .carousel-prev, .carousel-next {
        top: 50%;
    }
}

/* Dispositivos extra grandes (más de 1024px) */
@media only screen and (min-width: 1025px) {
    .Header_menu_link {
        font-size: 20px;
    }

    .container-items {
        grid-template-columns: repeat(4, 1fr); /* Cuatro columnas para pantallas extra grandes */
    }

    .info-product {
        padding: 25px;
    }

    .item img {
        height: 300px;
    }

    .container-cart-products {
        width: 400px;
    }
}