/* 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;
}

#heroCarousel {
    width: 100%;
    margin-bottom: 2rem;
}

#heroCarousel .carousel-item {
    height: 50vh;
    max-height: 450px;
    overflow: hidden;
    border-radius: 15px;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.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);
}

/* Estilos para ubicación en checkout */
#locationStatus {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1976d2;
    border-radius: 8px;
    display: none;
}

#locationStatus .spinner-border {
    color: #1976d2;
}

#locationError {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #d32f2f;
    border-radius: 8px;
    display: none;
}

#locationError .btn-primary {
    background: #1976d2;
    border-color: #1976d2;
}

#locationError .btn-primary:hover {
    background: #1565c0;
    border-color: #1565c0;
}

#map {
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#btnConfirmar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#btnConfirmar:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.leaflet-control-attribution {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 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) {
    main {
        padding-bottom: 80px;
    }

    #heroCarousel .carousel-item {
        height: 40vh;
        max-height: 300px;
    }

    #heroCarousel .carousel-item img {
        object-fit: cover;
        object-position: center;
    }

    .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: 50px !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) {
    #heroCarousel .carousel-item {
        height: 35vh;
        max-height: 250px;
    }

    #heroCarousel .carousel-item img {
        object-fit: cover;
        object-position: center;
    }

    .product-card .card-img-top {
        height: 150px;
        object-fit: contain;
        background-color: #f8f9fa;
        padding: 5px;
    }

    .product-card .card-title {
        font-size: 1rem;
    }
}

/* Nuevos Estilos para la Landing Page (Italiana) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.4) !important;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.feature-box .icon-circle {
    transition: all 0.3s ease;
}

.feature-box:hover .icon-circle {
    background-color: #dc3545 !important;
    color: white !important;
}

.feature-box:hover .icon-circle i {
    color: white !important;
}

.z-index-1 {
    z-index: 1;
}

/* Custom Scrollbar for Cart */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}