/* Estilos para Tu Tienda Plugin */

/* Estilos para la información del restaurante */
.tu-tienda-restaurant-info {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.tu-tienda-restaurant-info .restaurant-logo {
    margin-bottom: 15px;
}

.tu-tienda-restaurant-info .restaurant-logo-img {
    max-height: 80px;
    width: auto;
    border-radius: 4px;
}

.tu-tienda-restaurant-info .restaurant-name {
    color: #333;
    margin: 10px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.tu-tienda-restaurant-info .restaurant-address {
    color: #666;
    font-size: 1em;
    margin-top: 10px;
}

.tu-tienda-restaurant-info .restaurant-address strong {
    color: #333;
}

/* Estilos para el buscador de productos */
.tu-tienda-search-container {
    margin-bottom: 30px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.tu-tienda-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.tu-tienda-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tu-tienda-search-input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.tu-tienda-search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #25d366;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tu-tienda-search-button:hover {
    background: #1da851;
}

.tu-tienda-search-button svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Lista de productos */
.tu-tienda-productos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Item individual de producto */
.tu-tienda-producto-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tu-tienda-producto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Imagen del producto */
.producto-imagen {
    text-align: center;
    margin-bottom: 15px;
}

.producto-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Título del producto */
.tu-tienda-producto-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.3;
    color: #333;
}

.tu-tienda-producto-item h3 a {
    text-decoration: none;
    color: #333;
}

.tu-tienda-producto-item h3 a:hover {
    color: #0073aa;
}

/* Precio del producto */
.producto-precio {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c5aa0;
    margin: 10px 0;
}

/* Botón añadir al carrito */
.add-to-cart-button,
.tu-tienda-add-to-cart-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.add-to-cart-button:hover,
.tu-tienda-add-to-cart-btn:hover {
    background: #1da851;
}

/* Mensaje de no resultados */
.tu-tienda-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Estilos para el carrito flotante */
.floating-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-cart-icon:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-cart-icon .cart-svg-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    min-width: 24px;
}

.cart-count:empty {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .floating-cart-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-cart-icon .cart-svg-icon {
        width: 20px;
        height: 20px;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -3px;
        right: -3px;
    }
    
    .tu-tienda-productos-lista {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .tu-tienda-restaurant-info .restaurant-name {
        font-size: 1.5em;
    }
    
    .tu-tienda-search-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tu-tienda-productos-lista {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tu-tienda-producto-item {
        padding: 12px;
    }
    
    .tu-tienda-restaurant-info {
        padding: 15px;
    }
    
    .tu-tienda-restaurant-info .restaurant-name {
        font-size: 1.3em;
    }
    
    .tu-tienda-search-input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }
}


/* Estilos adicionales para el buscador */
.tu-tienda-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.tu-tienda-search-input:hover {
    border-color: #bbb;
}

/* Efecto de highlight para productos encontrados */
.tu-tienda-producto-item.highlight {
    border-color: #25d366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}