/* Estilos generales */
body {
    height: 100vh;
    height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    font-family: Arial, sans-serif;
    background-color: #E9E5D6;
    color: #000;
    transition: margin-left 0.4s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    /* Prevent overflow on mobile */
    overflow-x: hidden;
    position: relative;
}
/* Contenido principal */
.content {
    height: 100vh;
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
    margin-left: 0;
    transition: margin-left 0.5s;
    position: relative;
}

/* estilo para los botones*/
.ButtonsHome:hover{
    transform: scale(1.5);
}
#cartButton {
    font-size: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}


/* Estilo del contenido de la barra lateral */
/* Botón para abrir la barra lateral */
.sidebar-toggle {
    position: fixed;
    top: 5px;
    left: 10px;
    width: 65px;
    height: 65px;
    background-color: #ACB992;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 1000;
    font-size: 20px;
    border-radius: 35px;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7); /* <- sombra */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.9);
}

.LogoBooton {
    position: absolute;
    top: 0px;
    left: 2px;
    padding: 0px;
    width: 60px;     
    height: auto;
}

.flash-message {
    position: fixed;
    top: 5px;
    left: 80px;
    z-index: 1000;
    background-color: #ACB992;
    padding: 8px 15px;
    border-radius: 15px;
    color: #362706;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
}

.flash-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Barra lateral */

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ACB992;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 999;
    color: black;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}


.login {
    font-family: Arial, sans-serif;
    padding: 0;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.session-notification {
    background-color: #464E2E;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    width: 85%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #ACB992;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
    
}
.session-notification1{
    padding-top: 50PX;
}
.session-notification::before {
    content: '🔔';
    font-size: 18px;
}

.session-notification.success {
    background-color: #464E2E;
    border-left-color: #ACB992;
}

.session-notification.info {
    background-color: #586A47;
    border-left-color: #ACB992;
}

.session-notification.warning {
    background-color: #927B51;
    border-left-color: #E9E5D6;
}



.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#password, #username {
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.social-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Navigation Links */
.navLinks {
    width: 100%;
    margin-top: auto;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* sobre noosotros */
.SobreNosotros {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.SobreNosotros p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.SobreNosotros a {
    display: block;
    color: #362706;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    width: 80%;
    text-align: center;
}

.SobreNosotros a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}


.logout-btn{
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: #464E2E; 
    border: transparent;
    border-radius: 8px;
    color: #fff;
}

.logout-btn:hover{
    transform: scale(1.3);
}

.login form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login form button {
    font-size: 15px;
    height: 30px;
    padding: 0 20px;
    background-color: #464E2E; 
    border: transparent;
    border-radius: 8px;
    color: #fff;
    margin-top: 10px;
}
.google-btn, .facebook-btn {
    background-color: #4285F4; /* Google Blue */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
    width: 90%;
}

.login form button:hover {
    transform: scale(1.1);
}
.google-btn:hover {
    background-color: #357AE8;
}

.facebook-btn {
    background-color: #3B5998; /* Facebook Blue */
}

.facebook-btn:hover {
    background-color: #2E4A7E;
}

.register {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.register p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #362706;
}

.register-link {
    width: 100%;
    display: flex;
    justify-content: center;
}

.register-link a {
    display: block;
    color: #362706;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    width: 80%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.register-link a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}


/* Barra inferior de íconos */
.bottom-bar {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ACB992; 
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    font-size: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.bottom-bar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: space-around;

}

.bottom-bar ul li {
    display: inline-block;
}

.bottom-bar ul li img {
    width: 40px;
    height: 40px;

}
.bottom-bar a {
    color: black; /* Color del texto */
    text-decoration: none; /* Sin subrayado */
    display: block; /* Mostrar en bloque */
}
.content.sidebar-active {
    margin-left: 250px; /* Espacio dejado por la barra lateral */
}

/* Ajuste del contenido cuando la barra inferior está activa */
.content.bottom-bar-active {
    margin-bottom: 60px; /* Dejar espacio para la barra inferior */
}

/* Botón para cerrar la barra lateral */
.close-sidebar {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.flash-message-content{
    position: flex;
    margin-left: 24%;
    margin-right: 24%;

}
.flash-message {
    background-color: #ACB992; /* Color de fondo suave */
    border-radius: 30px; /* Bordes redondeados para simular una nube */
    padding: 10px; /* Espacio interno */
    margin: 10px auto; /* Margen automático para centrar */
    width: 230px;
    text-align: center; /* Centrar el texto */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
    font-family: 'Arial', sans-serif; /* Fuente cómoda */
    color: #362706;
}

.messages {
    display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
}

.dropdown {
    margin-top: 15px;
    text-align: center; /* Centrar el contenido */
    position: relative; /* Necesario para posicionar el menú desplegable */
}

.dropbtn {
    background-color: #ACB992; /* Color de fondo */
    color: #362706; /* Color del texto */
    padding: 10px 20px; /* Espaciado interno */
    border: none; /* Sin borde */
    border-radius: 15px; /* Bordes redondeados */
    font-size: 16px; /* Tamaño de fuente */
    cursor: pointer; /* Cambiar el cursor al pasar sobre el botón */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7); /* <- sombra */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dropbtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.9);
}




.dropdown-content {
    display: none; /* Ocultar el contenido por defecto */
    position: absolute; /* Posicionamiento absoluto */
    background-color: #ACB992; /*  Color de fondo del menú */
    min-width: 30%; /* Ancho mínimo igual al ancho del botón */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Sombra */
    z-index: 1; /* Asegurarse de que el menú esté por encima */
    margin-left:35%;
    border-radius: 15px;
}

.dropdown-content a {
    color: #362706; /* Color del texto */
    padding: 2px 6px; /* Espaciado interno */
    text-decoration: none; /* Sin subrayado */
    display: block; /* Mostrar en bloque */
    font-size: 13px;
    
}

.dropdown-content a:hover {
    background-color: #464E2E; /* Color de fondo al pasar el ratón */
    border-radius: 15px;
    color: white;
}



/* Botón del carrito con contador */
#cartContainer {
    position: relative;
    display: inline-block;
}

#cartButton {
    font-size: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 8px;
    display: none; /* Oculto por defecto */
}

.blink {
    animation: blink-animation 0.3s infinite alternate;
}

@keyframes blink-animation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Popup para el carrito */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding-bottom: 80px; /* Espacio para evitar que el popup toque la barra inferior */
}

.popup-content {
    position: relative;
    background-color: #E9E5D6;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: calc(100vh - 160px);
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin: 20px auto 100px;
    overflow: hidden;
}

.popup-footer {
    border-top: 2px solid #464E2E;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.coupon-section {
    margin-bottom: 15px;
    width: 100%;
}

.coupon-input {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    width: 100%;
}

.coupon-field {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ACB992;
    border-radius: 6px;
    font-size: 14px;
    color: #464E2E;
    background-color: white;
    width: 100%;
}

.coupon-field:focus {
    outline: none;
    border-color: #464E2E;
}

.coupon-message {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.coupon-message.success {
    color: #2E7D32;
}

.coupon-message.error {
    color: #C62828;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #464E2E;
    margin-bottom: 15px;
}


.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #464E2E;
}

.popup-header h2 {
    margin: 0;
    color: #464E2E;
    font-size: 1.5rem;
}

.popup-body {
    flex-grow: 1;
    overflow-y: auto;
    margin: -10px -10px;
    padding: 10px;
}

#cart-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#cart-items li {
    margin-bottom: 15px;
}

.cart-item-container {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
    padding-right: 40px;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #464E2E;
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.2em;
    color: #464E2E;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-display {
    font-size: 1.1em;
    font-weight: 600;
    color: #464E2E;
    min-width: 25px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.remove-item:hover {
    color: #464E2E;
}



.payment-button {
    background: none;
    border: 2px solid #464E2E;
    border-radius: 10px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    min-width: 120px;
    transition: all 0.3s ease;
    flex: 1;
}

.payment-button:hover {
    background-color: #464E2E;
}

.payment-button:hover svg {
    fill: #fff;
}

.payment-button:hover .payment-label {
    color: #fff;
}

.payment-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #464E2E;
    transition: color 0.3s ease;
}

.payment-button svg {
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #464E2E;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ButtonsCart1 {
    background-color: #ACB992;
    padding: 8px 16px;
    border-radius: 6px;
    color: #464E2E;
    border: none;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ButtonsCart2 {
    background-color: #464E2E;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.ButtonsCart1:hover,
.ButtonsCart2:hover {
    transform: translateY(-2px);
    background-color: #464E2E;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.popup-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #464E2E;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #464E2E;
}

#closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #464E2E;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

#closePopup:hover {
    transform: scale(1.2);
    color: #000;
}

#checkoutButton {
    padding: 10px 20px;
    background-color: #464E2E;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#checkoutButton:hover {
    background-color: #ACB992;
    color: #464E2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}


/* banner metodos de pago */
.banner {
    width: 100%;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    background: transparent;
    display: flex;
    justify-content: center;
}

.slider {
    display: flex;
    width: max-content;
    animation: mover 15s linear infinite;
    margin: 0;
    padding: 0;
}

.slider svg {
    width: 50px;
    height: 50px;
    margin: 0 10px;
    flex-shrink: 0;
}

@keyframes mover {
    0% {
    transform: translateX(0);
    }
    100% {
    transform: translateX(-50%);
    }
}

.slider-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
}

.ticker-item {
    flex-shrink: 0;
}



/* boton de whattsapp */
.WhattsappBotton {
    position: fixed;
    margin:0%;
    padding: 0%;
    bottom: 12%;
    right: 2%;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border-color: transparent;
    background-color: transparent;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.WhattsappBotton:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.9);

}




/* Navigation Links Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.navLinks {
    width: 100%;
    margin-top: auto;
    margin-bottom: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* shipping en el precio */
.delivery-form {
    justify-self: center;
    padding: 0px;
    flex-direction: column;
    flex-wrap: wrap ;
    text-align: center;
    color: #464E2E;
}

.box{
    display: flex;
    width: 45%;
    text-align: left;
    flex-direction: row;
    font: 10px Arial, sans-serif;
}

.delivery-form button:hover {
    background-color: #464E2E;
    color: #fff;
}

.box1{
    margin-right: 10px;
    margin-left: 5px;
}
.box1 input{
    height: 25px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
}

