/**
 * Stili per il Configuratore Veicoli Dimsport
 * Design moderno con sfondo scuro
 */

/* Container principale */
.dimsport-configurator {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Hero section con sfondo scuro */
.dimsport-configurator-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.dimsport-configurator-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dimsport-configurator-subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Sezione selettori - Layout orizzontale moderno */
.dimsport-selectors {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.dimsport-selector-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.dimsport-selector-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dimsport-selector-group select {
    padding: 14px 18px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 15px;
    background: #2d2d2d;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23ffffff" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.dimsport-selector-group select:hover:not(:disabled) {
    border-color: #666666;
    background-color: #353535;
}

.dimsport-selector-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dimsport-selector-group select:disabled {
    background: #252525;
    cursor: not-allowed;
    opacity: 0.5;
    color: #666666;
}

.dimsport-selector-group select option {
    background: #2d2d2d;
    color: #ffffff;
    padding: 10px;
}

/* Pulsante Search */
.dimsport-search-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    margin-bottom: 2px;
}

.dimsport-search-btn:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.dimsport-search-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Pulsante pronto per essere cliccato - subtle pulse */
.dimsport-search-btn.ready {
    animation: button-ready-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

@keyframes button-ready-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Selezione completata - Badges orizzontali con toggle mobile */
.dimsport-selection-summary {
    display: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.dimsport-selection-summary.active {
    display: block;
}

@media (max-width: 768px) {
    .dimsport-selection-summary {
        padding: 0;
        border-radius: 8px;
    }
}

/* Header compatto (solo mobile) */
.dimsport-summary-compact {
    display: none; /* Nascosto su desktop */
    background: #4CAF50;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .dimsport-summary-compact {
        display: flex;
    }
}

.dimsport-summary-compact:active {
    background: #45a049;
}

.dimsport-summary-compact .compact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dimsport-summary-compact .compact-icon {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

.dimsport-summary-compact .compact-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.dimsport-summary-compact .toggle-arrow {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
}

.dimsport-selection-summary.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Contenuto espandibile */
.dimsport-summary-expandable {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

@media (max-width: 768px) {
    .dimsport-summary-expandable {
        max-height: 0;
        opacity: 0;
        padding: 0;
    }
    
    .dimsport-selection-summary.expanded .dimsport-summary-expandable {
        max-height: 800px;
        opacity: 1;
        padding: 20px;
    }
}

/* Desktop: sempre visibile + layout grid */
@media (min-width: 769px) {
    .dimsport-summary-expandable {
        max-height: none !important;
        opacity: 1 !important;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
        align-items: center;
    }
}

.dimsport-selection-badges {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Desktop: badges allineati a sinistra nella griglia */
@media (min-width: 769px) {
    .dimsport-selection-badges {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-content: flex-start;
        margin-bottom: 0;
    }
}

.dimsport-selection-badge {
    background: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 8px;
    padding: 12px 50px 12px 24px; /* Padding-right aumentato per checkmark */
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    min-width: 220px;
    position: relative;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dimsport-selection-badge:hover {
    border-color: #dc2626;
    background: #353535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.dimsport-selection-badge:hover::after {
    content: '✏️';
    background: #dc2626;
}

.dimsport-selection-badge::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0; /* Impedisce al checkmark di rimpicciolirsi */
}

.dimsport-selection-badge-label {
    font-size: 10px;
    color: #999999;
    text-transform: uppercase;
    font-weight: 500;
    align-self: flex-start;
    width: 100%;
}

.dimsport-selection-badge-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    align-self: flex-start;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.dimsport-selection-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Desktop: actions diventa trasparente per posizionare i figli nel grid */
@media (min-width: 769px) {
    .dimsport-selection-actions {
        display: contents;
    }
}

.dimsport-search-again-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dimsport-search-again-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Desktop: search button a destra nella griglia */
@media (min-width: 769px) {
    .dimsport-search-again-btn {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
    }
}

.dimsport-change-vehicle {
    background: transparent;
    color: #999999;
    border: none;
    padding: 10px 20px;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.dimsport-change-vehicle:hover {
    color: #ffffff;
}

/* Can't find your car? - Container sempre visibile sotto i selettori */
.dimsport-help-link-container {
    text-align: center;
    margin-top: 20px;
}

.dimsport-cant-find-car {
    background: transparent;
    color: #999999;
    border: none;
    padding: 10px 20px;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.dimsport-cant-find-car:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Can't find car inline - nascosto di default */
.dimsport-cant-find-car-inline {
    display: none;
}

/* Desktop: change vehicle e can't find car sulla stessa riga */
@media (min-width: 769px) {
    .dimsport-change-vehicle {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        justify-self: start;
        margin-top: 15px;
        padding-left: 0;
    }

    /* Can't find car inline - mostrato e a destra di change vehicle */
    .dimsport-selection-summary.active .dimsport-cant-find-car-inline {
        display: inline-block;
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        justify-self: end;
        margin-top: 15px;
        padding-right: 0;
    }
}

/* Mobile: can't find car inline sotto change vehicle */
@media (max-width: 768px) {
    .dimsport-selection-summary.active .dimsport-cant-find-car-inline {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Banner ripristino veicolo */
.dimsport-restore-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restore-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.restore-icon {
    font-size: 32px;
}

.restore-text {
    line-height: 1.5;
}

.restore-text strong {
    font-size: 16px;
}

.restore-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.restore-actions .button {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.restore-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.restore-actions .button-link {
    background: none;
    color: white;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 10px;
}

/* Notifica salvato */
.dimsport-notice {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    font-weight: 600;
}


/* Loading spinner */
.dimsport-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.dimsport-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: dimsport-spin 1s linear infinite;
}

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

.dimsport-loading-text {
    margin-top: 10px;
    color: #666;
}

/* Messaggi di errore */
.dimsport-error {
    display: none;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Container prodotti */
#dimsport-products {
    margin-top: 40px;
}

/* ============================================
   SEZIONE PRODOTTI - Design Moderno v2
   ============================================ */

/* Container prodotti con sfondo nero */
#dimsport-products {
    background: #000000;
    padding: 60px 20px;
    margin-top: 40px;
    border-radius: 12px;
}

/* Titolo sezione prodotti */
.dimsport-products-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Grid prodotti */
.dimsport-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card singolo prodotto */
.dimsport-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%; /* Assicura altezza uguale in grid */
}

.dimsport-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.dimsport-product-card.out-of-stock {
    opacity: 0.6;
}

/* Immagine prodotto */
.dimsport-product-card .product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 50px 30px;
    min-height: 250px;
    text-align: center;
}

.dimsport-product-card img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Info prodotto */
.dimsport-product-card .product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Titolo prodotto */
.dimsport-product-card .product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.dimsport-product-card .product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dimsport-product-card .product-title a:hover {
    color: #dc2626;
}

/* Descrizione prodotto */
.dimsport-product-card .product-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* Prezzo */
.dimsport-product-card .product-pricing {
    margin: 5px 0 15px 0;
}

.dimsport-product-card .price-label {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-bottom: 3px;
    text-transform: lowercase;
}

.dimsport-product-card .price {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    margin: 0;
    line-height: 1;
}

/* Stock status */
.dimsport-product-card .stock {
    display: inline-block;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
}

.dimsport-product-card .stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.dimsport-product-card .stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Pulsante View Product */
.dimsport-product-card .product-actions {
    padding-top: 5px;
}


.dimsport-product-card .button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.dimsport-product-card .button.view-product-btn {
    background: #dc2626;
    color: #ffffff;
}

.dimsport-product-card .button.view-product-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.dimsport-product-card .button.disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.dimsport-product-card .button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Nessun prodotto */
.dimsport-no-products {
    text-align: center;
    padding: 80px 20px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px dashed #333333;
}

.dimsport-no-products p {
    font-size: 20px;
    color: #999999;
    margin: 0;
}

/* Dettagli configurazione - Design Minimal */
.config-details {
    background: transparent;
    border: none;
    padding: 0;
    margin: 8px 0 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666666;
}

.config-badges {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.config-badge {
    display: inline-block;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.config-badge.new {
    background: #dc2626;
}

.config-badge.plugplay {
    background: #22c55e;
}

.config-badge.model {
    background: #666666;
}

.config-spec {
    margin: 4px 0;
    line-height: 1.5;
    color: #666666;
    font-size: 12px;
}

.config-spec strong {
    color: #333333;
    font-weight: 600;
}

.config-spec.highlight {
    color: #1a1a1a;
    font-weight: 500;
}

.config-spec.neutral {
    color: #999999;
    font-style: italic;
    font-size: 11px;
}

.config-performance {
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
    margin: 6px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.perf-item {
    margin: 3px 0;
    line-height: 1.4;
    font-size: 12px;
    color: #666666;
}

.perf-item .gain {
    color: #22c55e;
    font-weight: 700;
    font-size: 13px;
}

.config-notes {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fffbeb;
    border-left: 2px solid #f59e0b;
    color: #92400e;
    font-size: 11px;
    border-radius: 3px;
    line-height: 1.4;
}

.config-code {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
    font-size: 10px;
    color: #999999;
    font-family: 'Courier New', monospace;
    text-align: right;
}

.config-spec.tech {
    font-size: 11px;
    color: #999999;
}

.config-spec.install {
    background: #f0f9ff;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: #0369a1;
}

/* Meta veicolo nel carrello */
.dimsport-cart-vehicle-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
}

.dimsport-cart-vehicle-info dt {
    font-weight: 600;
    display: inline;
}

.dimsport-cart-vehicle-info dd {
    display: inline;
    margin: 0 0 0 5px;
}

.dimsport-cart-vehicle-info dt:after {
    content: ':';
}

/* Responsive */
@media (max-width: 768px) {
    .dimsport-configurator {
        padding: 20px 15px;
    }
    
    .dimsport-selectors {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dimsport-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dimsport-product-card .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dimsport-product-card .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .dimsport-product-card .button {
        width: 100%;
    }
}

/* Integrazioni WooCommerce */
.woocommerce .dimsport-configurator {
    margin: 0 0 40px 0;
}

/* Icone */
.dimsport-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

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

.dimsport-product-card {
    animation: fadeIn 0.3s ease-in-out;
}

.dimsport-products-grid > * {
    animation: fadeIn 0.4s ease-in-out;
}

.dimsport-products-grid > *:nth-child(1) { animation-delay: 0.05s; }
.dimsport-products-grid > *:nth-child(2) { animation-delay: 0.1s; }
.dimsport-products-grid > *:nth-child(3) { animation-delay: 0.15s; }
.dimsport-products-grid > *:nth-child(4) { animation-delay: 0.2s; }
.dimsport-products-grid > *:nth-child(5) { animation-delay: 0.25s; }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet */
@media (max-width: 992px) {
    .dimsport-configurator-hero {
        padding: 40px 30px;
    }
    
    .dimsport-configurator-title {
        font-size: 28px;
    }
    
    .dimsport-selectors {
        flex-wrap: wrap;
    }
    
    .dimsport-selector-group {
        min-width: calc(50% - 10px);
    }
    
    .dimsport-search-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .dimsport-selection-badges {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .dimsport-selection-badge {
        min-width: 100%;
        max-width: 100%;
        padding: 10px 45px 10px 20px;
    }
    
    .dimsport-selection-badge::after {
        width: 24px;
        height: 24px;
        right: 10px;
        font-size: 12px;
    }
    
    .dimsport-selection-badge-label {
        font-size: 9px;
    }
    
    .dimsport-selection-badge-value {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dimsport-configurator-hero {
        padding: 30px 20px;
    }
    
    .dimsport-configurator-title {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    
    .dimsport-configurator-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .dimsport-selectors {
        flex-direction: column;
        gap: 15px;
    }
    
    .dimsport-selector-group {
        min-width: 100%;
        max-width: 100%;
    }
    
    .dimsport-selector-group select {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }
    
    .dimsport-search-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .dimsport-selection-summary {
        padding: 20px;
    }
    
    .dimsport-selection-badge {
        padding: 10px 45px 10px 18px;
        min-width: 100%;
    }
    
    .dimsport-selection-badge-label {
        font-size: 9px;
    }
    
    .dimsport-selection-badge-value {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .dimsport-selection-badge::after {
        width: 22px;
        height: 22px;
        right: 10px;
        font-size: 11px;
    }
    
    .dimsport-change-vehicle {
        margin-left: 0;
        margin-top: 10px;
        display: block;
    }

    .dimsport-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .dimsport-configurator-title {
        font-size: 20px;
    }
    
    .dimsport-configurator-subtitle {
        font-size: 13px;
    }
    
    .dimsport-selector-group label {
        font-size: 10px;
    }
    
    .dimsport-selection-badge {
        padding: 8px 40px 8px 15px;
    }
    
    .dimsport-selection-badge-label {
        font-size: 8px;
    }
    
    .dimsport-selection-badge-value {
        font-size: 11px;
    }
    
    .dimsport-selection-badge::after {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    /* Prodotti responsive */
    #dimsport-products {
        padding: 40px 15px;
        margin-top: 30px;
    }
    
    .dimsport-products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .dimsport-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dimsport-product-card .product-image-link {
        padding: 30px 15px;
        min-height: 220px;
    }
    
    .dimsport-product-card img {
        max-width: 160px;
    }
    
    .dimsport-product-card .product-info {
        padding: 20px;
    }
    
    .dimsport-product-card .product-title {
        font-size: 18px;
    }
    
    .dimsport-product-card .price {
        font-size: 28px;
    }
}

/* ==========================================================================
   Skeleton Loaders - Loading States
   ========================================================================== */

/* Skeleton per i select durante il caricamento */
.dimsport-selector-group.skeleton-loading select {
    background: linear-gradient(90deg, #2d2d2d 25%, #404040 50%, #2d2d2d 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.5s infinite !important;
    color: transparent !important;
    pointer-events: none !important;
    cursor: wait !important;
    border-color: #404040 !important;
    opacity: 1 !important; /* Override disabled opacity */
    /* Rimuovi l'icona dropdown durante skeleton */
    background-image: none !important;
}

/* Nasconde le option durante skeleton */
.dimsport-selector-group.skeleton-loading select option {
    display: none;
}

/* Animazione shimmer */
@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton per label */
.dimsport-selector-group.skeleton-loading label {
    opacity: 0.6;
}

/* Skeleton per il pulsante search durante caricamento */
.dimsport-search-btn.skeleton-loading {
    background: linear-gradient(90deg, #353535 25%, #4a4a4a 50%, #353535 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    pointer-events: none;
    cursor: wait;
    color: transparent;
}

/* Overlay loader per tutto il configuratore (opzionale) */
.dimsport-configurator.initial-loading {
    position: relative;
}

.dimsport-configurator.initial-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

/* Loader spinner centrato */
.dimsport-configurator.initial-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
    z-index: 11;
}

@keyframes spinner-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Nasconde contenuto durante initial loading */
.dimsport-configurator.initial-loading .dimsport-selectors {
    opacity: 0.3;
    pointer-events: none;
}

/* Smooth transition quando il loading finisce */
.dimsport-configurator {
    transition: all 0.3s ease;
}

.dimsport-selectors {
    transition: opacity 0.3s ease;
}

/* Skeleton per products grid */
.dimsport-products-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.dimsport-product-skeleton {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dimsport-product-skeleton .skeleton-image {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.dimsport-product-skeleton .skeleton-content {
    padding: 20px;
}

.dimsport-product-skeleton .skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 80%;
}

.dimsport-product-skeleton .skeleton-price {
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 40%;
}

.dimsport-product-skeleton .skeleton-button {
    height: 45px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

/* Responsive skeleton */
@media (max-width: 768px) {
    .dimsport-products-skeleton {
        grid-template-columns: 1fr;
    }
}
