/**
 * Facet Theme - Single Product V1
 * Classic 50/50 Layout con tabs
 *
 * @package Facet_Theme
 * @since 1.0.0
 */

/* ===== PAGE BACKGROUND ===== */
.single-product {
    background: #fff;
}

.single-product .site-content,
.single-product .site-main,
.single-product #primary,
.single-product #main {
    background: #fff;
}

/* ===== LAYOUT BASE ===== */

/* Mobile-first: single column di default */
.single-product div.product {
    display: block;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.single-product .woocommerce-product-gallery,
.single-product .summary {
    float: none !important;
    width: 100% !important;
    min-width: 0; /* Permette shrink in grid/flex */
}

.single-product .woocommerce-product-gallery {
    margin-bottom: 24px;
}

/* Desktop: grid 50/50 solo sopra 900px */
@media (min-width: 900px) {
    .single-product div.product {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 40px 24px;
        align-items: start !important;
    }

    .single-product .woocommerce-product-gallery {
        grid-column: 1;
        align-self: start !important;
        margin-top: 0 !important;
        margin-bottom: 0;
        position: relative !important;
    }

    .single-product .summary {
        grid-column: 2;
        align-self: start !important;
        margin-top: 0 !important;
    }

    /* Force remove any centering or sticky from WooCommerce defaults */
    .single-product .woocommerce-product-gallery,
    .single-product .summary,
    .single-product .woocommerce-product-gallery__wrapper {
        position: relative !important;
        top: auto !important;
    }

    .single-product .woocommerce-tabs,
    .single-product .related.products,
    .single-product .upsells.products {
        grid-column: 1 / -1;
    }
}

/* Large desktop: più spazio */
@media (min-width: 1200px) {
    .single-product div.product {
        gap: 50px;
        padding: 50px 40px;
    }
}

/* ===== GALLERY MIGLIORAMENTI ===== */
.woocommerce-product-gallery {
    position: relative !important;
    margin-bottom: 24px;
    margin-top: 0 !important;
}

/* Reset WooCommerce default flex centering */
.woocommerce-product-gallery__wrapper {
    display: block !important;
}

.woocommerce-product-gallery figure {
    margin: 0 !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 80px;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--color-primary, #D94625);
}

/* Sale Flash */
.single-product .onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary, #D94625);
    color: #fff;
    border-radius: 4px;
    min-width: auto;
    min-height: auto;
    line-height: 1.4;
}

/* ===== SUMMARY ===== */
.single-product .summary .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin: 0 0 16px;
}

@media (min-width: 1024px) {
    .single-product .summary .product_title {
        font-size: 2rem;
    }
}

/* Price */
.single-product .summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.single-product .summary .price del {
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
    margin-right: 10px;
}

.single-product .summary .price ins {
    text-decoration: none;
    color: var(--color-primary, #D94625);
}

.single-product .summary .price .price-suffix {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

/* Short Description */
.single-product .summary .woocommerce-product-details__short-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 24px;
}

/* Stock - Disponibilità con icone e colori */
.single-product .summary .stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 8px;
}

.single-product .summary .stock::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.single-product .summary .stock.in-stock {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.single-product .summary .stock.in-stock::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.single-product .summary .stock.out-of-stock {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.single-product .summary .stock.out-of-stock::before {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.single-product .summary .stock.available-on-backorder {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.single-product .summary .stock.available-on-backorder::before {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ===== ADD TO CART ===== */
.single-product .summary form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
}

.single-product .summary .quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.single-product .summary .quantity .qty {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.single-product .summary .quantity .qty::-webkit-outer-spin-button,
.single-product .summary .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .summary .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    height: 48px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--color-cta, #f97316);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.single-product .summary .single_add_to_cart_button:hover {
    background: var(--color-cta-hover, #ea580c);
    transform: translateY(-1px);
}

/* Bottone disabilitato - variazione non selezionata */
.single-product .summary .single_add_to_cart_button.disabled,
.single-product .summary .single_add_to_cart_button.wc-variation-selection-needed,
.single-product .summary .single_add_to_cart_button:disabled,
.single-product .summary button.button.disabled,
.single-product .summary button.button.wc-variation-selection-needed,
.woocommerce .single-product .single_add_to_cart_button.disabled,
.woocommerce .single-product .single_add_to_cart_button.wc-variation-selection-needed {
    background: #d1d5db !important;
    background-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 1 !important;
    border-color: #d1d5db !important;
}

.single-product .summary .single_add_to_cart_button.disabled:hover,
.single-product .summary .single_add_to_cart_button.wc-variation-selection-needed:hover,
.single-product .summary .single_add_to_cart_button:disabled:hover,
.single-product .summary button.button.disabled:hover,
.single-product .summary button.button.wc-variation-selection-needed:hover,
.woocommerce .single-product .single_add_to_cart_button.disabled:hover,
.woocommerce .single-product .single_add_to_cart_button.wc-variation-selection-needed:hover {
    background: #d1d5db !important;
    background-color: #d1d5db !important;
    color: #9ca3af !important;
    transform: none !important;
}

/* Variations - Compatto */
.single-product .summary .variations {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.single-product .summary .variations tr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.single-product .summary .variations tr:last-child {
    margin-bottom: 0;
}

/* Form variazioni - spazio minimale */
.single-product .summary .variations_form {
    margin-bottom: 0;
}

.single-product .summary .variations_form .variations {
    margin-bottom: 8px;
}

/* Info variazione selezionata - compatto */
.single-product .summary .woocommerce-variation {
    margin: 0;
    padding: 0;
}

.single-product .summary .woocommerce-variation-price {
    margin-bottom: 4px;
}

.single-product .summary .woocommerce-variation-availability {
    margin-bottom: 4px;
}

.single-product .summary .woocommerce-variation-description {
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Nascondi spazio vuoto quando nessuna variazione è selezionata */
.single-product .summary .woocommerce-variation:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* Wrapper bottone - spazio minimale */
.single-product .summary .single_variation_wrap {
    margin-top: 8px;
}

/* Reset link per prodotti variabili */
.single-product .summary .reset_variations {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-left: 8px;
    text-decoration: underline;
}

.single-product .summary .reset_variations:hover {
    color: var(--color-primary, #D94625);
}

.single-product .summary .variations .label,
.single-product .summary .variations .label label {
    text-align: left;
    text-transform: capitalize;
    font-weight: 600;
    color: #1f2937;
}

.single-product .summary .variations .value select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.single-product .summary .variations .value select:focus {
    outline: none;
    border-color: var(--color-primary, #D94625);
}

/* ===== TRUST BADGES ===== */
.product-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 24px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #374151;
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--color-primary, #D94625);
    stroke: currentColor;
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.trust-badge span {
    font-weight: 500;
}

.trust-badge-highlight {
    background: linear-gradient(135deg, rgba(0, 114, 193, 0.08) 0%, rgba(8, 35, 118, 0.08) 100%);
    padding: 10px 14px;
    border-radius: 8px;
    margin: -4px -6px;
}

.trust-badge-highlight svg {
    color: var(--facet-azzurro, #0072c1);
}

/* ===== SECURE PAYMENTS ===== */
.product-secure-payments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden; /* Previene overflow */
}

.secure-payments-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    flex-shrink: 0;
}

.secure-payments-label svg {
    color: #16a34a;
    stroke: currentColor;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.secure-payments-icons {
    height: 22px;
    width: auto;
    max-width: 100%; /* Non uscire mai dal container */
    min-width: 0; /* Permette shrink */
    object-fit: contain;
    flex-shrink: 1; /* Si restringe se necessario */
}

/* Responsive Trust Badges & Secure Payments */
@media (max-width: 768px) {
    .product-trust-badges {
        padding: 16px;
        gap: 10px;
    }

    .trust-badge {
        gap: 10px;
        font-size: 0.875rem;
    }

    .trust-badge-icon {
        width: 40px;
        height: 40px;
    }

    .product-secure-payments {
        padding: 12px 14px;
        gap: 10px;
    }

    .secure-payments-label {
        font-size: 0.75rem;
        gap: 6px;
    }

    .secure-payments-label svg {
        width: 14px;
        height: 14px;
    }

    .secure-payments-icons {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .product-trust-badges {
        padding: 14px;
        gap: 8px;
        margin: 16px 0;
    }

    .trust-badge {
        gap: 8px;
        font-size: 0.8125rem;
    }

    .trust-badge-icon {
        width: 36px;
        height: 36px;
    }

    /* Su mobile: stack verticale */
    .product-secure-payments {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }

    .secure-payments-label {
        justify-content: center;
    }

    .secure-payments-icons {
        max-width: 180px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .product-secure-payments {
        padding: 10px;
    }

    .secure-payments-label span {
        font-size: 0.6875rem;
    }

    .secure-payments-icons {
        max-width: 150px;
        height: 18px;
    }
}

/* ===== SKU & CODICE PRODUTTORE ===== */
.single-product .summary .product-sku,
.single-product .summary .product-manufacturer-code {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 4px;
}

.single-product .summary .product-sku .sku-label,
.single-product .summary .product-manufacturer-code .mpn-label {
    font-weight: 500;
    color: #9ca3af;
}

.single-product .summary .product-sku .sku-value,
.single-product .summary .product-manufacturer-code .mpn-value {
    font-weight: 600;
    color: #374151;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.single-product .summary .product-manufacturer-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

/* ===== META (SKU, Categories, Tags) ===== */
.single-product .summary .product_meta {
    font-size: 0.875rem;
    color: #6b7280;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
}


.single-product .summary .product_meta > span {
    display: block;
    margin-bottom: 8px;
}

.single-product .summary .product_meta a {
    color: var(--color-primary, #D94625);
    text-decoration: none;
}

.single-product .summary .product_meta a:hover {
    text-decoration: underline;
}

/* ===== TABS ===== */
.woocommerce-tabs {
    margin-top: 60px;
    clear: both;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.woocommerce-tabs ul.tabs li a:hover {
    color: #1f2937;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary, #D94625);
    border-bottom-color: var(--color-primary, #D94625);
}

.woocommerce-tabs .panel {
    padding: 8px 0;
}

.woocommerce-tabs .panel h2 {
    display: none;
}

.woocommerce-tabs #tab-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Additional Info Table */
.woocommerce-tabs .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-tabs .shop_attributes tr {
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-tabs .shop_attributes th,
.woocommerce-tabs .shop_attributes td {
    padding: 12px 0;
    text-align: left;
    border: none;
}

.woocommerce-tabs .shop_attributes th {
    font-weight: 600;
    color: #1f2937;
    width: 200px;
}

/* ===== RELATED / UPSELLS ===== */
.related.products,
.upsells.products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.related.products > h2,
.upsells.products > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 1200px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* ===== NOTICES ===== */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.woocommerce-message {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #166534;
}

.woocommerce-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.woocommerce-info {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
}

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

/* Tablet (900px - 1024px): grid attivo ma più compatto */
@media (min-width: 900px) and (max-width: 1024px) {
    .single-product div.product {
        gap: 30px;
        padding: 30px 20px;
    }

    .single-product .summary .product_title {
        font-size: 1.5rem;
    }
}

/* Single column (sotto 900px) - già default, qui solo tweaks */
@media (max-width: 899px) {
    .single-product .summary .product_title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .single-product .summary .price {
        font-size: 1.375rem;
    }

    /* Tabs */
    .woocommerce-tabs {
        margin-top: 40px;
    }

    .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 12px 16px;
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

/* Mobile (sotto 600px) */
@media (max-width: 600px) {
    .single-product div.product {
        padding: 14px;
    }

    .single-product .summary .product_title {
        font-size: 1.375rem;
        margin-bottom: 12px;
    }

    .single-product .summary .price {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .single-product .summary .price del {
        font-size: 0.875rem;
    }

    /* Stock badge compatto */
    .single-product .summary .stock {
        font-size: 0.8125rem;
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    /* Short description */
    .single-product .summary .woocommerce-product-details__short-description {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }

    /* Variazioni */
    .single-product .summary .variations .value select {
        height: 44px;
        font-size: 0.9375rem;
    }

    /* Add to cart impilato */
    .single-product .summary form.cart {
        flex-direction: column;
        gap: 10px;
    }

    .single-product .summary .quantity {
        width: 100%;
        justify-content: center;
    }

    .single-product .summary .quantity .qty {
        flex: 1;
        max-width: 120px;
    }

    .single-product .summary .single_add_to_cart_button {
        width: 100%;
        min-width: unset;
        height: 52px;
        font-size: 0.9375rem;
    }

    /* Trust badges */
    .product-trust-badges {
        margin: 20px 0;
    }

    /* Meta info */
    .single-product .summary .product_meta {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 0.8125rem;
    }

    /* Tabs */
    .woocommerce-tabs ul.tabs li a {
        padding: 10px 14px;
        font-size: 0.8125rem;
    }

    .woocommerce-tabs #tab-description {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    /* Related products */
    .related.products,
    .upsells.products {
        margin-top: 40px;
        padding-top: 24px;
    }

    .related.products > h2,
    .upsells.products > h2 {
        font-size: 1.125rem;
        margin-bottom: 16px;
    }
}

/* Small mobile (sotto 400px) */
@media (max-width: 400px) {
    .single-product div.product {
        padding: 12px;
    }

    .single-product .summary .product_title {
        font-size: 1.25rem;
    }

    .single-product .summary .price {
        font-size: 1.125rem;
    }

    .single-product .summary .single_add_to_cart_button {
        height: 48px;
        font-size: 0.875rem;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

/* ===== SECONDARY ACTIONS ===== */
.product-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.product-secondary-actions .sec-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
}

.product-secondary-actions .sec-action:hover {
    color: var(--color-primary, #0072c1);
}

.product-secondary-actions .sec-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Share Dropdown */
.action-share-wrapper {
    position: relative;
}

.share-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.action-share-wrapper:hover .share-dropdown,
.share-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.share-dropdown::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.share-link:hover {
    background: #f3f4f6;
}

.share-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-facebook:hover { color: #1877f2; }
.share-whatsapp:hover { color: #25d366; }
.share-email:hover { color: #ea4335; }
.share-copy:hover { color: var(--color-primary, #0072c1); }

/* ===== VARIATION SWATCHES ===== */
.variations .value .variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-swatch {
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.variation-swatch:hover {
    border-color: var(--color-primary, #0072c1);
}

.variation-swatch.selected {
    background: var(--color-primary, #0072c1);
    border-color: var(--color-primary, #0072c1);
    color: #fff;
}

.variation-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Color Swatches */
.color-swatch {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    padding: 0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}

.color-swatch:hover {
    box-shadow: 0 0 0 2px var(--color-primary, #0072c1);
}

.color-swatch.selected {
    box-shadow: 0 0 0 3px #1f2937;
    background: inherit;
}

/* ===== QUANTITY SELECTOR ENHANCED ===== */
.single-product .summary .quantity {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.single-product .summary .quantity .qty-btn {
    width: 44px;
    height: 50px;
    background: #f9fafb;
    border: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    color: #374151;
}

.single-product .summary .quantity .qty-btn:hover {
    background: #f3f4f6;
}

.single-product .summary .quantity .qty {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
}

/* ===== BREADCRUMB BAR ===== */
.single-product .woocommerce-breadcrumb {
    background: #f9fafb;
    padding: 16px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.single-product .woocommerce-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--color-primary, #0072c1);
}

/* ===== RESPONSIVE SECONDARY ACTIONS ===== */
@media (max-width: 600px) {
    .product-secondary-actions {
        gap: 12px;
    }

    .product-secondary-actions .sec-action span {
        display: none;
    }

    .product-secondary-actions .sec-action svg {
        width: 22px;
        height: 22px;
    }

    .share-dropdown {
        left: auto;
        right: 0;
        transform: translateY(-8px);
    }

    .share-dropdown::after {
        left: auto;
        right: 20px;
        transform: none;
    }

    .action-share-wrapper:hover .share-dropdown {
        transform: translateY(-12px);
    }
}

/* ===== RIVENDITORE AUTORIZZATO ===== */
.single-product .facet-authorized-dealer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.single-product .facet-authorized-dealer svg {
    flex-shrink: 0;
    color: var(--color-primary, #0072c1);
}
