    /* Fix per header fisso che copre il contenuto */
    .site-main {
        margin-top: 30px !important;
    }

    @media (max-width: 767px) {
        .site-main {
            margin-top: 20px !important;
        }
    }

    /* ========================================
       UI/UX IMPROVEMENTS - Product Detail Page
       ======================================== */

    /* === PROFESSIONAL IMAGE GALLERY LAYOUT === */
    .pd-image-gallery {
        display: flex;
        gap: 15px;
        flex-direction: row;
    }

    /* Thumbnail column on the LEFT (desktop) */
    .pd-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 500px;
        overflow-y: auto;
        padding-right: 5px;
        order: 1;
        flex-shrink: 0;
    }

    /* Scrollbar personalizzata per thumbnails */
    .pd-thumbnails::-webkit-scrollbar {
        width: 6px;
    }

    .pd-thumbnails::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .pd-thumbnails::-webkit-scrollbar-thumb {
        background: var(--color-primary-500, #d30e0e);
        border-radius: 3px;
    }

    .pd-thumbnails::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary-700, #c82333);
    }

    .pd-thumbnail {
        width: 90px;
        height: 90px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        flex-shrink: 0;
    }

    .pd-thumbnail:hover {
        border-color: var(--color-primary-500, #d30e0e);
        box-shadow: 0 4px 12px rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.2);
    }

    .pd-thumbnail.active {
        border-color: var(--color-primary-500, #d30e0e);
        border-width: 3px;
        box-shadow: 0 4px 12px rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.4);
    }

    .pd-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .pd-thumbnail:hover img {
        transform: scale(1.05);
    }

    /* Main image takes remaining space */
    .pd-main-image {
        position: relative;
        border-radius: 12px;
        background: #f8f9fa;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        flex: 1;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pd-main-image-container {
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    #mainProductImage {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain !important;
        transition: transform 0.3s ease;
        cursor: zoom-in;
    }

    #mainProductImage:hover {
        transform: scale(1.02);
    }

    /* === RESPONSIVE === */
    @media (max-width: 991px) {
        /* Stack vertically on tablet/mobile */
        .pd-image-gallery {
            flex-direction: column;
        }

        /* Main image FIRST on mobile */
        .pd-main-image {
            order: 1;
            min-height: 350px;
            width: 100%;
            margin-bottom: 15px;
        }

        #mainProductImage {
            max-height: 350px;
        }

        /* Thumbnails BELOW in horizontal scroll */
        .pd-thumbnails {
            order: 2;
            flex-direction: row;
            max-height: none;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 0;
            margin: 0;
            gap: 8px;
            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        }

        .pd-thumbnails::-webkit-scrollbar {
            height: 4px;
        }

        .pd-thumbnail {
            width: 80px;
            height: 80px;
            flex-shrink: 0; /* Important: prevent thumbnails from shrinking */
        }
    }

    @media (max-width: 576px) {
        /* === MOBILE LAYOUT FIX === */

        /* Rimuovi curve (border-radius) su mobile */
        .cars-section-fourteen.layout-radius,
        #productdetail_mainWrap.layout-radius,
        .layout-radius {
            border-radius: 0 !important;
        }

        /* Margini laterali uniformi 15px - TUTTE le sezioni */
        #productdetail_mainWrap .boxcar-container,
        .product-detail-page .boxcar-container,
        .cars-section-fourteen .boxcar-container {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        /* Breadcrumb e titolo sezione */
        .boxcar-title-three {
            padding-left: 0 !important;
            padding-right: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        .boxcar-title-three .breadcrumb {
            padding-left: 0 !important;
            margin-left: 0 !important;
        }

        .boxcar-title-three h2 {
            padding-left: 0 !important;
            margin-left: 0 !important;
        }

        .product-detail-page,
        .product-detail-page .pd-product-section {
            padding-left: 15px !important;
            padding-right: 15px !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        /* Reset Bootstrap row/col per mobile */
        .product-detail-page .row {
            margin-left: -15px !important;
            margin-right: -15px !important;
        }

        .product-detail-page .row > [class*="col-"] {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        /* Immagine principale - RIMUOVI min-height forzato */
        .pd-main-image {
            min-height: auto !important;
            height: auto !important;
            margin-bottom: 5px !important;
            padding-bottom: 0 !important;
        }

        .pd-main-image-container {
            min-height: auto !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        #mainProductImage {
            max-height: 300px;
            height: auto !important;
            width: 100%;
            object-fit: contain;
        }

        .pd-thumbnail {
            width: 60px;
            height: 60px;
        }

        /* RIMUOVI SPAZIO tra gallery e info */
        .pd-thumbnails {
            margin: 0 !important;
            padding: 0 !important;
            margin-top: 5px !important;
            max-height: none !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: auto !important;
            overflow: visible !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            gap: 5px !important;
        }

        .pd-image-gallery {
            margin: 0 !important;
            padding: 0 !important;
            gap: 5px !important;
            display: flex !important;
            flex-direction: column !important;
            height: auto !important;
            min-height: auto !important;
        }

        /* Prima colonna (gallery) - minimo spazio */
        .pd-product-section .row > .col-lg-6:first-child {
            margin-bottom: 10px !important;
            padding-bottom: 0 !important;
        }

        /* Seconda colonna (info) - nessun margin/padding top */
        .pd-product-section .row > .col-lg-6:last-child {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

        .pd-product-info {
            padding-top: 0 !important;
            margin-top: 0 !important;
        }

        .pd-product-title {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }
    }

    /* Product Info Enhancements */
    .pd-product-title {
        font-size: 2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .pd-price-section {
        margin: 1.5rem 0;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pd-current-price {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--color-primary-500, #d30e0e);
        line-height: 1;
    }

    .pd-original-price {
        font-size: 1.5rem;
        color: #6c757d;
        text-decoration: line-through;
        font-weight: 400;
    }

    /* Discount Badge */
    .pd-discount-badge {
        display: inline-block;
        background: linear-gradient(135deg, var(--color-primary-500, #ff4757) 0%, var(--color-primary-500, #d30e0e) 100%);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.3);
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* Stock Status */
    .pd-stock-status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .pd-stock-status.in-stock {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .pd-stock-status.out-of-stock {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid var(--color-primary-300, #f5c6cb);
    }

    .pd-stock-status::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        animation: blink 1.5s infinite;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    /* Quantity Selector Enhancement */
    .pd-quantity-selector {
        display: inline-flex;
        align-items: center;
        gap: 0;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
        background: white;
    }

    .pd-quantity-selector button {
        background: #f8f9fa;
        border: none;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #495057;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .pd-quantity-selector button:hover {
        background: var(--color-primary-500, #d30e0e);
        color: white;
    }

    .pd-quantity-selector input {
        border: none;
        width: 60px;
        height: 40px;
        text-align: center;
        font-size: 1rem;
        font-weight: 600;
        color: #1a1a1a;
    }

    /* Add to Cart Button Enhancement */
    .pd-add-to-cart-btn {
        background: linear-gradient(135deg, var(--color-primary-500, #d30e0e) 0%, var(--color-primary-700, #b02a37) 100%);
        color: white;
        border: none;
        padding: 14px 32px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.3);
        position: relative;
        overflow: hidden;
    }

    .pd-add-to-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s ease;
    }

    .pd-add-to-cart-btn:hover::before {
        left: 100%;
    }

    .pd-add-to-cart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.4);
    }

    .pd-add-to-cart-btn:active {
        transform: translateY(0);
    }

    .pd-add-to-cart-btn.in-cart {
        background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    }

    /* Specifications Enhancement */
    .pd-specs-table {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .pd-specs-table tr {
        border-bottom: 1px solid #e9ecef;
        transition: background 0.2s ease;
    }

    .pd-specs-table tr:hover {
        background: #f8f9fa;
    }

    .pd-specs-table tr:last-child {
        border-bottom: none;
    }

    .pd-specs-table td {
        padding: 12px 16px;
    }

    .pd-specs-table td:first-child {
        font-weight: 600;
        color: #495057;
        width: 40%;
    }

    .pd-specs-table td:last-child {
        color: #1a1a1a;
    }

    /* Related Products Enhancement */
    .pd-related-product {
        border-radius: 12px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .pd-related-image img {
        transition: transform 0.5s ease;
    }

    .pd-related-product:hover .pd-related-image img {
        transform: scale(1.1);
    }

    /* Mobile Responsive Improvements */
    @media (max-width: 768px) {
        .pd-product-title {
            font-size: 1.5rem;
        }

        .pd-current-price {
            font-size: 2rem;
        }

        .pd-original-price {
            font-size: 1.2rem;
        }

        .pd-thumbnails {
            gap: 8px;
        }

        .pd-thumbnail {
            width: 60px;
            height: 60px;
        }

        .pd-main-image-container {
            padding-top: 100%;
        }
    }

    /* Loading Animation */
    .pd-loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid var(--color-primary-500, #d30e0e);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: translate(-50%, -50%) rotate(0deg); }
        100% { transform: translate(-50%, -50%) rotate(360deg); }
    }

    /* === IMAGE LIGHTBOX STYLES === */
    .image-lightbox {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        overflow: auto;
        cursor: zoom-out;
        animation: fadeIn 0.3s ease;
    }

    .image-lightbox.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lightbox-content {
        margin: auto;
        display: block;
        max-width: 90%;
        max-height: 90vh;
        object-fit: contain;
        animation: zoomIn 0.3s ease;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 40px;
        color: #fff;
        font-size: 48px;
        font-weight: 300;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10001;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.8);
        border-radius: 50%;
        line-height: 1;
    }

    .lightbox-close:hover {
        background: var(--color-primary-500, #d30e0e);
        transform: rotate(90deg) scale(1.1);
    }

    .lightbox-caption {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: 18px;
        text-align: center;
        background: rgba(0, 0, 0, 0.7);
        padding: 12px 24px;
        border-radius: 8px;
        max-width: 80%;
    }

    .lightbox-counter {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: 14px;
        background: rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.9);
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: 600;
    }

    /* Navigation arrows */
    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(var(--color-primary-500-rgb, 220, 53, 69), 0.8);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10002;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: var(--color-primary-500, #d30e0e);
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes zoomIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .lightbox-close {
            top: 10px;
            right: 10px;
            font-size: 36px;
            width: 40px;
            height: 40px;
        }

        .lightbox-content {
            max-width: 95%;
            max-height: 85vh;
        }

        .lightbox-caption {
            font-size: 14px;
            bottom: 60px;
            padding: 8px 16px;
        }

        .lightbox-counter {
            font-size: 12px;
            bottom: 20px;
            padding: 6px 12px;
        }

        .lightbox-prev,
        .lightbox-next {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }

        .lightbox-prev {
            left: 10px;
        }

        .lightbox-next {
            right: 10px;
        }
    }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Star Rating System (Interactive) - Stili rinforzati contro sovrascritture */
        .review-form .star-rating {
            display: inline-flex !important;
            flex-direction: row !important;
            gap: 8px !important;
            align-items: center !important;
        }
        .review-form .star-rating input[type="radio"] {
            display: none !important;
            opacity: 0 !important;
            position: absolute !important;
            left: -9999px !important;
            width: 0 !important;
            height: 0 !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }
        .review-form .star-rating label {
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            font-size: 2.5rem !important;
            line-height: 1 !important;
            display: inline-block !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            background: transparent !important;
        }
        .review-form .star-rating label i.fas.fa-star {
            color: #ddd !important;
            font-size: 2.5rem !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        .review-form .star-rating label:hover i.fas.fa-star {
            transform: scale(1.15) !important;
            color: #ffc107 !important;
        }
        .review-form .star-rating label.active i.fas.fa-star {
            color: #ffc107 !important;
        }
        /* Nascondi completamente i pallini radio */
        .review-form .star-rating input[type="radio"]::before,
        .review-form .star-rating input[type="radio"]::after {
            display: none !important;
            content: none !important;
        }
        /* Review form styling */
        .review-form {
            margin-top: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .review-form h4 {
            color: var(--color-primary-500, #ef2627);
            font-weight: bold;
            border-bottom: 2px solid var(--color-primary-500, #ef2627);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .review-form .btn-primary {
            background: var(--color-primary-500, #ef2627);
            border-color: var(--color-primary-500, #ef2627);
        }
        .review-form .btn-primary:hover {
            background: var(--color-primary-700, #c00000);
            border-color: var(--color-primary-700, #c00000);
        }
