/* Silent Product Variations - Frontend Styles */

.spv-product-configurator-frontend { 
    padding: 25px; 
    margin-bottom: 45px; 
    border-radius: 12px; 
    border: none; 
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.spv-product-configurator-frontend h3 { 
    margin: 0 0 25px 0; 
    font-size: 24px; 
    font-weight: 600; 
}

.spv-config-group { 
    margin-bottom: 25px; 
}

.spv-section-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px; 
}

.spv-section-header label { 
    font-weight: 500; 
    font-size: 16px; 
    margin: 0; 
}

.spv-section-header span { 
    font-size: 14px; 
    font-weight: normal; 
}

.spv-colour-selector { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 5px; 
    border-radius: 12px; 
}

.spv-colour-swatch { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.2s; 
    padding: 8px; 
    border-radius: 8px; 
    width: 70px; 
    height: 70px;
    background-color:#f2f5f7;
}

.spv-colour-swatch:hover { 
    background: var(--theme-palette-color-1, #f8f9fa); 
    color:#fff;
}

.spv-colour-swatch.spv-selected { 
    background: var(--theme-palette-color-1, #f8f9fa); 
    color:#fff;
}

.spv-swatch-circle { 
    width: 25px; 
    height: 25px; 
    border-radius: 50%; 
    margin-bottom: 8px; 
    transition: all 0.2s; 
}

.spv-swatch-name { 
    font-size: 13px; 
    text-align: center; 
    font-weight: 500; 
}

.spv-colour-swatch input { 
    display: none; 
}

#spv_selected_configuration { 
    width: 100%; 
    border-radius: 12px; 
}

#spv_selected_configuration option:disabled { 
    color: #999; 
    background-color: #f9f9f9; 
}

#spv_selected_configuration:focus { 
    outline: none; 
    border-color: var(--theme-palette-color-1, #007cba); 
}

#spv-config-details { 
    margin: 20px 0; 
    padding: 20px; 
    border-radius: 12px; 
    border: 2px solid var(--theme-palette-color-5, #007cba); 
}

.spv-detail { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.spv-detail:last-child { 
    margin-bottom: 0; 
}

.spv-detail-value { 
    font-weight: 500; 
    color: var(--theme-palette-color-2, #005a87); 
}

.spv-price-display { 
    padding: 20px; 
    background: var(--theme-palette-color-4, #007cba); 
    border-radius: 12px; 
    color: #fff; 
    text-align: center; 
}

.spv-price-label { 
    font-size: 16px; 
    margin-bottom: 8px; 
}

.spv-price-amount { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 10px; 
}

/* Color Swatches on Product Cards - Exactly from original code */
.spv-color-swatches-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.spv-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: inline-block;
}

/* Color wheel specific styles */
.spv-swatch-circle-color-wheel,
.spv-color-swatch-color-wheel {
    background-size: 140% !important;
    background-position: center !important;
}

/* Compatibility with Themes */
.woocommerce .spv-product-configurator-frontend {
    clear: both;
}

.woocommerce-page .spv-product-configurator-frontend {
    max-width: 100%;
}

/* Hide non-colour sections when not applicable */
.spv-non-colour-section {
    transition: opacity 0.3s;
}

/* rupture de stock */
.out-of-stock {
    color: #E30B5C;
    font-size: 18px;
}