/* Estilos personalizados para Licorería Online */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Estilos mejorados para buscador */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-group .form-control:focus {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input-group .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    font-weight: 600;
    background: #007bff;
    border: none;
    transition: all 0.3s ease;
}

.search-input-group .btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Filtros mejorados */
.filter-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-container .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-container .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tarjetas de productos mejoradas */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card .price-container {
    margin-bottom: 1rem;
}

.product-card .price-normal {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.product-card .price-oferta {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-card .price-regular {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 600;
}

.product-card .badge-oferta {
    background: #dc3545;
    color: white;
}

.product-card .badge-nuevo {
    background: #28a745;
    color: white;
}

.product-card .btn-agregar {
    background: #007bff;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.product-card .btn-agregar:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.product-card .btn-agregar:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Carrusel mejorado */
.carousel-container {
    margin-bottom: 3rem;
}

.carousel-item img {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Carrito flotante mejorado */
#carritoFlotante {
    z-index: 1050;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .search-container {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .product-card .card-img-top {
        height: 180px;
        object-fit: contain;
        background-color: #f8f9fa;
        padding: 8px;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    #carritoFlotante {
        max-width: 280px;
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        width: auto !important;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group .form-control {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }

    .search-input-group .btn {
        border-radius: 25px;
    }
}

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 150px;
        object-fit: contain;
        background-color: #f8f9fa;
        padding: 5px;
    }

    .product-card .card-title {
        font-size: 1rem;
    }
}