/* Variables globales */
:root {
    --primary-color: #085da9; /* Azul del header */
    --white: #ffffff;
    --text-color: #212121;
    --border-color: #e0e0e0;
    --background-color: #f5f5f5; /*#f5f5f5;*/
    --success-color: #4caf50;
    --error-color: #f44336 ; /*#f44336*/
	--btn-primary: #085da9;
	 /*#ebebeb*/
	--btn-hover:#0288d1;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Estilos para la barra superior */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
	height: 67px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.store-details {
    display: flex;
    flex-direction: column;
}

.store-details h1 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.store-location {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
}

.store-location .icon {
    width: 16px;
    height: 16px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 20px;
    padding: 4px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #757575;
    margin-right: 8px;
}

.search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}

.search-form input::placeholder {
    color: #b0b0b0;
}

.filter-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.filter-button img {
    width: 20px;
    height: 20px;
}

.icon-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
}



.favorites{
	color: var(--white);
}


.cart-button {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--error-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menú de categorías */
.category-menu {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
}

.category-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cuadrícula de productos */
.product-grid-container {
    padding: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-container {
	background: #FFFFFF !important;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 8px;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn.inactive {
    background-color: var(--btn-primary);
    color: var(--white);
	border-radius: 18px !important;
}

.add-to-cart-btn:hover:not(.disabled) {
    background-color: var(--btn-hover);
    color: var(--white);
}

.add-to-cart-btn.disabled {
    background-color: #e0e0e0;
    color: #b0b0b0;
    cursor: not-allowed;
}

.add-to-cart-btn.hidden {
    display: none;
}

.quantity-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
}

.quantity-btn {
    background-color: var(--btn-primary);
    border: none;
    padding: 8px;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
	border-radius: 4px;
}

.quantity-btn:hover {
    background-color: var(--btn-hover);
}

.quantity-display {
    background-color: #e0e0e0;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal para ajustar cantidad */
.quantity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.quantity-modal.open {
    display: flex;
}

.quantity-modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 16px;
}

.quantity-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-modal-header h2 {
    font-size: 18px;
    margin: 0;
}

.close-quantity-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.quantity-modal-body {
    padding: 16px;
}

.quantity-modal-product {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.quantity-modal-image {
    width: 60px;
    height: 60px;
    margin-right: 12px;
}

.quantity-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quantity-modal-details {
    flex: 1;
}

.quantity-modal-code {
    font-size: 12px;
    color: #757575;
    margin-bottom: 4px;
}

.quantity-modal-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.quantity-modal-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.quantity-modal-input {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.quantity-modal-input label {
    margin-right: 8px;
    font-size: 14px;
    font-weight: 500;
}

.quantity-modal-input input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.quantity-modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

.quantity-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.quantity-modal-cancel {
    background-color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 8px;
}

.quantity-modal-cancel:hover {
    background-color: #d0d0d0;
	
	
}



.quantity-modal-confirm {
    background-color: var(--btn-primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.quantity-modal-confirm:hover {
    background-color: var(--btn-hover);
}

/* Notificación */
.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 150;
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    color: var(--success-color);
}

.notification-details {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    display: block;
}

.notification-product {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-product-image {
    width: 40px;
    height: 40px;
}

.notification-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.notification-product-info {
    flex: 1;
}

.notification-product-quantity {
    font-size: 12px;
    color: #757575;
}

.notification-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.notification-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 16px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #757575;
}

.footer-content .brand {
    font-weight: 500;
    color: var(--primary-color);
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 12px;
    }

    .brand-logo img {
        width: 32px;
        height: 32px;
    }

    .store-details h1 {
        font-size: 14px;
    }

    .store-location {
        font-size: 10px;
    }

    .store-location .icon {
        width: 14px;
        height: 14px;
    }

    .search-container {
        max-width: 200px;
    }

    .search-form input {
        font-size: 12px;
    }

    .icon-button svg,
    .cart-button svg {
        width: 20px;
        height: 20px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .category-menu {
        padding: 8px 12px;
    }

    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .product-image-container {
        height: 100px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn,
    .quantity-btn,
    .quantity-display {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .quantity-modal-content {
        max-width: 90%;
        margin: 16px;
    }

    .quantity-modal-header h2 {
        font-size: 16px;
    }

    .quantity-modal-image {
        width: 50px;
        height: 50px;
    }

    .quantity-modal-name {
        font-size: 13px;
    }

    .quantity-modal-price {
        font-size: 14px;
    }

    .quantity-modal-input input {
        width: 60px;
    }

    .quantity-modal-footer {
        flex-direction: row;
        gap: 8px;
    }

    .quantity-modal-cancel,
    .quantity-modal-confirm {
        flex: 1;
        padding: 10px;
    }
}



/* Loader Styles */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    display: none;
}

.loader.active {
    display: block;
}

.loader img {
    width: 50px;
    height: 50px;
}

.icon-button.favorites {
    color: var(--white);
}

.icon-button.favorites.active {
    color: #ffeb3b; /* Color amarillo para indicar que está activo, puedes cambiarlo */
}

.icon-button.favorites.active svg {
    fill: currentColor; /* Rellenar la estrella cuando está activa */
}




/* Botones de compartir */
.share-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.share-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.whatsapp {
    background-color: #25d366;
}

/* Botón de comprar */
.buy-button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.buy-button:hover {
    background-color: #0288d1;
}





/* Asegurar que el botón sea visible en el modal del carrito */
.cart-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}



/* En styles.css */


/* Contenedor para el subtotal y el conteo de productos */
.cart-total-container {
   display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

/* Estilo para el conteo de productos */
.cart-items-count {
    
    font-weight: 500;
    color: var(--text-color);
}









/* Contenedor para los botones de acción */
.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Estilo para el botón de WhatsApp */
.whatsapp-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #21c063; /* Verde de WhatsApp */
    color: #ffffff;
    border: none;
    border-radius: 25px; /* Bordes más redondeados */
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px; /* Ancho máximo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Círculo con el número de productos */
.whatsapp-button .whatsapp-items-count {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #21c063;
    font-size: 14px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ícono de WhatsApp */
.whatsapp-button svg {
    width: 20px;
    height: 20px;
    margin-left: 40px; /* Espacio para el círculo de productos */
    margin-right: 10px;
    fill: #ffffff;
}

/* Texto del botón */
.whatsapp-button span#checkoutTotal {
    margin-left: 5px;
    font-weight: 700;
}

/* Efecto hover para el botón de WhatsApp */
.whatsapp-button:hover {
    background-color: #20b354; /* Verde más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Efecto active para el botón de WhatsApp */
.whatsapp-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilo para los botones de vaciar y llamar */

.call-btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Íconos dentro de los botones */
.clear-cart-btn svg,
.call-btn svg {
    width: 20px;
    height: 20px;
    fill: #757575; /* Gris por defecto */
}

/* Efecto hover para el botón de vaciar */
.clear-cart-btn:hover {
  /*  background-color: #f44336; 
    border-color: #f44336;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);*/
	
	
	
	
}

.cart-header{
cart-header
box-shadow: none;
    display: flex

    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    position: static;
    color: rgb(255, 255, 255);
    padding-left: 8px;
    padding-right: 8px;
    background-color: var(--primary-color) !important;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);

}


/* Efecto active para el botón de vaciar */
.clear-cart-btn:active {
   /* transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/
}

/* Efecto hover para el botón de llamar */
.call-btn:hover {
    background-color: #4caf50; /* Verde */
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.call-btn:hover svg {
    fill: #ffffff;
}

/* Efecto active para el botón de llamar */
.call-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .cart-total-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cart-actions {
        flex-wrap: wrap;
    }

    .whatsapp-button {
        font-size: 14px;
        padding: 10px 16px;
        max-width: 300px;
    }

    .whatsapp-button .whatsapp-items-count {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .whatsapp-button svg {
        width: 18px;
        height: 18px;
        margin-left: 34px;
    }

    .clear-cart-btn,
    .call-btn {
        width: 36px;
        height: 36px;
    }

    .clear-cart-btn svg,
    .call-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        max-width: 100%;
    }
}


.store-details {

  padding: 20px;
}

/* Ocultar en teléfonos */
@media (max-width: 767px) {
  .store-details {
    display: none;
  }
}


/*por producto no encontrado en meidio*/

#loaderima {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra los productos o el mensaje */
  
  align-items: center; /* Centra verticalmente */
}

.no-products {
height: 80vh; /* Ocupa toda la altura de la pantalla */
  width: 100%; /* Ocupa todo el ancho disponible */
  display: flex; /* Usamos Flexbox para centrar el contenido */
  flex-direction: column; /* Apila imagen y texto verticalmente */
  justify-content: center; /* Centra verticalmente */
  align-items: center; /* Centra horizontalmente */
  text-align: center; /* Centra el texto */
}

.no-products-image {
  max-width: 200px; /* Ajusta el tamaño de la imagen */
  height: auto;
  margin-bottom: 20px; /* Espacio entre imagen y texto */
}

.no-products p {
  font-size: 18px;
  margin: 0;
}



.del-butto {
border: none;
    background: transparent;
	
	}