/* Stili di base */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3dc;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Flying Ball Animation for Add to Cart */
.cart-ball {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

.cart-icon {
    position: relative;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.cart-icon.bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Sezioni */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: rgb(255, 255, 255);
    background-color: #4476ffd4;
    padding: 10px;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
}

/* Stili per le sezioni delle categorie */
.categories-section {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.category-card {
    position: relative;
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Stili per i caroselli di prodotti */
.category-products-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.category-products-carousel {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    align-items: center;
}

.category-products-carousel::-webkit-scrollbar {
    display: none;
}

.category-product-item {
    flex: 0 0 100px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-product-image img {
    transform: scale(1.05);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.category-card h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.category-discover {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-card:hover .category-discover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Colori per ogni categoria */
.category-vini {
    background: linear-gradient(135deg, #8B4513 0%, #D2B48C 100%);
    color: white;
}

.category-vini .category-icon {
    color: #FFD700;
}

.category-vini h3 {
    color: white;
}

.category-birre {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.category-birre .category-icon {
    color: #FFC107;
}

.category-birre h3 {
    color: white;
}

.category-confetture {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
}

.category-confetture .category-icon {
    color: #FFD700;
}

.category-confetture h3 {
    color: white;
}

.category-conserve {
    background: linear-gradient(135deg, #2E8B57 0%, #50C878 100%);
    color: white;
}

.category-conserve .category-icon {
    color: #FFD700;
}

.category-conserve h3 {
    color: white;
}

.category-oli {
    background: linear-gradient(135deg, #2F4F4F 0%, #5F9EA0 100%);
    color: white;
}

.category-oli .category-icon {
    color: #FFD700;
}

.category-oli h3 {
    color: white;
}

.category-pasta {
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
    color: white;
}

.category-pasta .category-icon {
    color: #FFD700;
}

.category-pasta h3 {
    color: white;
}

.category-regalo {
    background: linear-gradient(135deg, #9370DB 0%, #BA55D3 100%);
    color: white;
}

.category-regalo .category-icon {
    color: #FFD700;
}

.category-regalo h3 {
    color: white;
}

.category-default {
    background: linear-gradient(135deg, #4A6FA5 0%, #166088 100%);
    color: white;
}

.category-default .category-icon {
    color: #FFD700;
}

.category-default h3 {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .category-section {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-product-item {
        flex: 0 0 200px;
    }

    .category-product-image {
        height: 120px;
    }

    .category-product-title {
        font-size: 0.875rem;
        min-height: 35px;
    }

    .category-product-price {
        font-size: 1rem;
    }
}

/* Stili Bootstrap Thumbnail per prodotti */
.thumbnail {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.thumbnail:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
}

.caption {
    padding: 15px;
}

.caption h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    min-height: 40px;
}

.caption p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.caption .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #4a6fa5;
    margin: 10px 0;
}

.caption .btn {
    margin: 5px 5px 5px 0;
    font-size: 12px;
    padding: 6px 12px;
}

/* Product Description Styles */
.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 40px;
    overflow: visible;
    display: block;
    min-height: auto;
}

/* Product Card Styles */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 420px; /* Ensures all cards have consistent height with longer descriptions */
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-card .product-image {
    margin-bottom: 15px;
}

.product-card .product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 4px;
}

.product-card .product-info {
    text-align: center;
}

.product-card .product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: auto;
    display: block;
    overflow: visible;
}

.product-card .product-category {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #4a6fa5;
    margin-bottom: 15px;
}

.product-card .product-actions {
    position: relative;
    z-index: 2;
}

/* Thumbnail Description Styles */
.thumbnail .product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: visible;
    display: block;
    min-height: auto;
}

/* Ensure add to cart button is always readable */
.add-to-cart-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .add-to-cart-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Header categorie orizzontali */
.categories-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.categories-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.categories-header .nav-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.categories-header .nav-horizontal li {
    margin: 0;
}

.categories-header .nav-horizontal li a {
    display: inline-block;
    padding: 10px 18px;
    background: #f8f9fa;
    color: #4a6fa5;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.categories-header .nav-horizontal li a:hover {
    background: #4a6fa5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.categories-header .nav-horizontal li.active a {
    background: #4a6fa5;
    color: white;
    border-color: #4a6fa5;
}

/* Product detail page */
.product-image-container {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container .product-image {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-image {
    padding: 80px 20px;
    background: #f8f9fa;
    text-align: center;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

.product-title {
    font-size: 42px;
    font-weight: 800;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.1;
    text-align: left;
}

.product-category {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    display: inline-block;
    text-align: left;
}

.product-price {
    font-size: 48px;
    font-weight: 900;
    color: #4a6fa5;
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.15);
    border: 2px solid #e9ecef;
}

.product-info-right {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

/* Custom flexbox layout for product detail */
.product-detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.product-image-side {
    flex: 0 0 65%;
    max-width: 65%;
}

.product-info-side {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Single central box layout for product detail - default for mobile */
.product-detail-single {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-detail-single .product-image-container {
    text-align: center;
    margin-bottom: 0;
    padding: 20px;
}

.product-detail-single .product-info {
    width: 100%;
    text-align: center;
    padding: 25px;
}

.product-detail-single .product-description,
.product-detail-single .product-details {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin: 20px 0;
    padding: 25px;
}

/* Two-column layout for desktop */
@media (min-width: 769px) {
    .product-detail-single {
        display: flex;
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
        max-width: none;
        margin: 0 0 40px;
    }

    .product-detail-single .product-image-container {
        flex: 0 0 65%;
        max-width: 65%;
        text-align: left;
        margin-bottom: 30px;
    }

    .product-detail-single .product-info {
        flex: 0 0 30%;
        max-width: 30%;
        text-align: left;
    }
}

/* Related Products Grid - Unique Box Style */
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.no-image-related {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
}

.related-product-info {
    padding: 20px;
}

.related-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.related-product-category {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    display: inline-block;
}

.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #4a6fa5;
    margin: 12px 0;
}

.related-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.related-product-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-product-actions .btn-primary {
    background: #4a6fa5;
    color: white;
    border: none;
}

.related-product-actions .btn-primary:hover {
    background: #3a5a95;
}

.related-product-actions .btn-default {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.related-product-actions .btn-default:hover {
    background: #e9ecef;
}

/* Responsive for related products */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .related-product-info {
        padding: 15px;
    }
    
    .related-product-actions {
        flex-direction: column;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .product-detail-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-image-side,
    .product-info-side {
        flex: 1;
        max-width: 100%;
    }
}

/* New theme product info styling */
.product-detail .product-info {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.product-detail .product-info h1 {
    font-size: 42px;
    font-weight: 800;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.1;
    text-align: left;
}

.product-detail .category {
    font-size: 18px;
    color: #666;
    margin: 20px 0;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 25px;
    display: inline-block;
    text-align: left;
}

.product-detail .price {
    font-size: 48px;
    font-weight: 900;
    color: #4a6fa5;
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.15);
    border: 2px solid #e9ecef;
}

.product-detail .description {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-detail .actions {
    margin: 40px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-description,
.product-details {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-description h3,
.product-details h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
}

.product-description p,
.product-details p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

.product-actions {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quantity label {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.quantity input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: white;
    transition: border-color 0.3s ease;
}

.quantity input[type="number"]:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.product-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
}

.product-actions .btn {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.product-actions .btn-primary {
    background: #4a6fa5;
    color: white;
    border: none;
}

.product-actions .btn-primary:hover {
    background: #3a5a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.3);
}

.product-actions .btn-default {
    background: white;
    color: #4a6fa5;
    border: 2px solid #4a6fa5;
}

.product-actions .btn-default:hover {
    background: #4a6fa5;
    color: white;
}

.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.related-products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.breadcrumb {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb li {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
}

.breadcrumb li a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb li.active {
    color: #666;
    font-weight: 600;
}

/* Responsive product detail */
@media (max-width: 768px) {
    .product-price-quantity-mobile {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        margin: 20px 0;
    }

    .product-price-quantity-mobile .product-price {
        flex: 0 0 auto;
        margin: 0;
    }

    .product-price-quantity-mobile .product-actions-mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-price-quantity-mobile .quantity-add-cart {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .product-price-quantity-mobile .quantity-add-cart .quantity {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .product-price-quantity-mobile .quantity-add-cart .btn {
        width: 100%;
    }

    .product-price-quantity-mobile .quantity {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .product-price-quantity-mobile .quantity label {
        min-width: 70px;
        font-size: 14px;
    }

    .product-price-quantity-mobile .quantity input {
        width: 60px;
    }

    .product-price-quantity-mobile .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    .product-image-container .product-image {
        height: 300px;
    }

    .product-title {
        font-size: 32px;
    }

    .product-price {
        font-size: 36px;
        padding: 20px;
    }

    .product-image-container {
        padding: 0;
        margin-bottom: 20px;
    }

    .product-image-container .product-image {
        height: 250px;
        border-radius: 0;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Griglia prodotti */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background: #f8f9fa;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
}

.product-category {
    display: inline-block;
    color: var(--dark-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--dark-gray);
    text-decoration: line-through;
}


.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add-to-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background-color: var(--secondary-color);
}

.btn-wishlist {
    background: none;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 0 0.75rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
}

.btn-wishlist:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Griglia categorie */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 200px));
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Banner promozionale */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin: 3rem 0;
    border-radius: 8px;
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.875rem;
}

/* Pagina prodotto */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.product-gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thumbnail {
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-actions-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
}

.quantity-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--medium-gray);
    border-right: 1px solid var(--medium-gray);
}

/* Carrello */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-cart p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0.5rem 0;
}

.cart-item-remove {
    color: var(--danger-color);
    font-size: 0.875rem;
    cursor: pointer;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

/* Checkout */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--medium-gray);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: var(--success-color);
}

.step-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 500;
}

.checkout-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .form-control {
        padding: 1rem;
        font-size: 1.1rem;
        min-height: 48px;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-height: 48px;
    }

    .search-input {
        padding: 0.75rem 1rem 0.75rem 3.5rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1.2rem;
        font-size: 1.1rem;
    }
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .product-page {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .thumbnail-list {
        flex-direction: row;
        overflow-x: auto;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .thumbnail {
        margin-bottom: 15px;
    }

    .thumbnail img {
        height: 150px;
    }

    .caption h4 {
        font-size: 14px;
        min-height: 35px;
    }

    .caption .btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .empty-cart {
        padding: 3rem 1.5rem;
    }

    .empty-cart-icon {
        font-size: 3rem;
    }

    .empty-cart h3 {
        font-size: 1.25rem;
    }

    .header-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 0;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        flex: 1;
        justify-content: flex-start;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .cart-icon {
        font-size: 1.5rem;
        margin-left: auto;
    }

    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .thumbnail img {
        height: 120px;
    }
    
    .caption {
        padding: 10px;
    }
    
    .caption h4 {
        font-size: 13px;
        min-height: 30px;
    }
    
    .caption .product-price {
        font-size: 16px;
    }
    
    .caption .btn {
        font-size: 10px;
        padding: 4px 8px;
        margin: 3px 3px 3px 0;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 auto;
    }

    /* Cart table mobile styles - Card layout */
    @media (max-width: 768px) {
        .cart-table thead {
            display: none;
        }

        .cart-table tbody {
            display: block;
        }

        .cart-table tr {
            display: block;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 15px;
            padding: 15px;
            border: none;
        }

        .cart-table td {
            display: block;
            border: none;
            padding: 0;
            text-align: center;
        }

        .product-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .cart-product-image {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 8px;
        }

        .product-info h4 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .product-info small {
            color: var(--dark-gray);
            font-size: 14px;
        }

        /* Hide price column */
        .cart-table tr td:nth-child(2) {
            display: none;
        }

        /* Quantity controls */
        .cart-table tr td:nth-child(3) {
            margin: 15px 0;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .quantity-controls .btn {
            width: 45px;
            height: 45px;
            padding: 0;
            font-size: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 45px;
            border: 2px solid var(--primary-color);
            background: white;
            color: var(--primary-color);
        }

        .quantity-controls .btn:hover {
            background: var(--primary-color);
            color: white;
        }

        .quantity-input {
            width: 70px;
            text-align: center;
            border: 2px solid var(--medium-gray);
            border-radius: 8px;
            padding: 10px;
            font-size: 18px;
            font-weight: 600;
        }

        /* Subtotal */
        .cart-table tr td:nth-child(4) {
            margin-bottom: 15px;
        }

        .subtotal {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* Remove button */
        .cart-table tr td:nth-child(5) {
            text-align: center;
        }

        .remove-item {
            background: var(--danger-color);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            margin: 0 auto;
        }

        .cart-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

        .cart-actions .btn {
            width: 100%;
            justify-content: center;
            padding: 15px;
            font-size: 16px;
            border-radius: 8px;
        }
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .checkout-steps::before {
        display: none;
    }

    .step {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }

    .categories-header {
        padding: 15px;
        margin-bottom: 20px;
    }

    .categories-header h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .categories-header .nav-horizontal {
        gap: 8px;
    }

    .categories-header .nav-horizontal li a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .empty-cart {
        padding: 2rem 1rem;
    }

    .empty-cart-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .empty-cart h3 {
        font-size: 1.1rem;
    }

    .empty-cart p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
    }

    .thumbnail img {
        height: 120px;
    }

    .thumbnail {
        padding: 0;
        margin-bottom: 15px;
    }

    .caption {
        padding: 12px;
    }
    
    .caption h4 {
        font-size: 16px;
        min-height: 35px;
        margin-bottom: 8px;
    }

    .caption p {
        font-size: 13px;
        margin: 5px 0;
    }

    .caption .product-price {
        font-size: 16px;
        margin: 10px 0;
    }

    .caption .btn {
        font-size: 11px;
        padding: 6px 10px;
        margin: 4px 4px 4px 0;
        min-width: 60px;
    }

    .cart-item {
        padding: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .step-number {
        margin-bottom: 0;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Animazione palla carrello */
.cart-ball {
    position: fixed;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Notifiche */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.warning {
    background-color: var(--warning-color);
    color: #000;
}

/* Loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

/* Colori per ogni categoria */
.category-vini {
    background: linear-gradient(135deg, #8B4513 0%, #D2B48C 100%);
    color: white;
}

.category-vini .category-icon {
    color: #FFD700;
}

.category-vini h3 {
    color: white;
}

.category-birre {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.category-birre .category-icon {
    color: #FFC107;
}

.category-birre h3 {
    color: white;
}

.category-confetture {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
}

.category-confetture .category-icon {
    color: #FFD700;
}

.category-confetture h3 {
    color: white;
}

.category-conserve {
    background: linear-gradient(135deg, #2E8B57 0%, #50C878 100%);
    color: white;
}

.category-conserve .category-icon {
    color: #FFD700;
}

.category-conserve h3 {
    color: white;
}

.category-oli {
    background: linear-gradient(135deg, #2F4F4F 0%, #5F9EA0 100%);
    color: white;
}

.category-oli .category-icon {
    color: #FFD700;
}

.category-oli h3 {
    color: white;
}

.category-pasta {
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
    color: white;
}

.category-pasta .category-icon {
    color: #FFD700;
}

.category-pasta h3 {
    color: white;
}

.category-regalo {
    background: linear-gradient(135deg, #9370DB 0%, #BA55D3 100%);
    color: white;
}

.category-regalo .category-icon {
    color: #FFD700;
}

.category-regalo h3 {
    color: white;
}

.category-default {
    background: linear-gradient(135deg, #4A6FA5 0%, #166088 100%);
    color: white;
}

.category-default .category-icon {
    color: #FFD700;
}

.category-default h3 {
    color: white;
}

.page-item {
    display: inline-flex;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--light-gray);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Form di ricerca */
.search-form {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--medium-gray);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

/* Filtri */
.filters {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
}

.filter-option label {
    cursor: pointer;
}

/* Messaggi di stato */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}