/**
 * BestLab Unified Product Options - Premium Design System
 */

:root {
    /* Color Palette - Refined HSL */
    --blupo-primary: 221, 83%, 53%;
    /* Modern Blue */
    --blupo-primary-hover: 221, 83%, 45%;
    --blupo-accent: 262, 52%, 47%;
    /* Deep Purple */
    --blupo-bg: 0, 0%, 100%;
    --blupo-surface: 210, 40%, 98%;
    --blupo-border: 214, 32%, 91%;
    --blupo-border-focus: 221, 83%, 53%;
    --blupo-text-main: 215, 25%, 27%;
    --blupo-text-muted: 215, 16%, 47%;
    --blupo-header-bg: 210, 40%, 96%;

    /* Shadows - Soft & Layered */
    --blupo-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --blupo-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --blupo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Spacing */
    --blupo-radius: 12px;
    --blupo-radius-sm: 6px;
    --blupo-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Variation Title */
.variation-title {
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: hsl(var(--blupo-surface));
    border-radius: var(--blupo-radius-sm);
    border: 1px solid hsl(var(--blupo-border));
}

.variation-title-text {
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--blupo-text-main));
    display: block;
}

/* Base Overrides */
body.blupo-active .blupo-unified-container~form.cart,
body.blupo-active .blupo-unified-container~.variations_form {
    display: none !important;
}

/* Hide variation description in product form */
.blupo-product-form .woocommerce-variation-description,
.blupo-product-form .woocommerce-variation .description {
    display: none !important;
}

/* Hide the entire variation element when it only contains description */
.blupo-product-form .woocommerce-variation:empty {
    display: none !important;
}

/* Hide variation price in product form */
.blupo-product-form .woocommerce-variation-price {
    display: none !important;
}

/* Main Container */
.blupo-unified-container {
    background: hsl(var(--blupo-bg));
    border: 1px solid hsl(var(--blupo-border));
    border-radius: var(--blupo-radius);
    padding: 32px;
    box-shadow: var(--blupo-shadow-lg);
    margin: 32px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: hsl(var(--blupo-text-main));
    line-height: 1.5;
    position: relative;
}

/* Single Variation Wrap */
.blupo-single-variation-wrap {
    margin: 16px 0;
    padding: 24px;
    background: linear-gradient(135deg, hsl(var(--blupo-header-bg)) 0%, hsl(var(--blupo-bg)) 100%);
    border-radius: var(--blupo-radius);
    box-shadow: var(--blupo-shadow-md);
}

.blupo-single-variation-wrap .blupo-default-options {
    margin-bottom: 20px;
}

/* Price and Cart Row - Same Line */
.blupo-price-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: hsl(var(--blupo-bg));
    border-radius: var(--blupo-radius-sm);
    box-shadow: var(--blupo-shadow-sm);
}

.blupo-price-cart-row .blupo-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blupo-price-cart-row .blupo-price-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--blupo-text-muted));
}

.blupo-price-cart-row .blupo-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: hsl(var(--blupo-accent));
    line-height: 1.2;
}

.blupo-price-cart-row .blupo-price-amount .woocommerce-Price-currencySymbol {
    font-size: 18px;
    font-weight: 600;
}

.blupo-price-cart-row .blupo-add-to-cart-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--blupo-radius-sm);
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
    transition: var(--blupo-transition);
}

.blupo-price-cart-row .blupo-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--blupo-shadow-lg);
}

.blupo-price-cart-row .blupo-add-to-cart-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: hsl(var(--blupo-border));
}

/* Product Purchase Section */
.blupo-product-purchase {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: hsl(var(--blupo-surface));
    border-radius: var(--blupo-radius);
    margin: 16px 0;
}

/* ============================================
   Quantity Cart Row - Beautiful & Responsive
   ============================================ */

.blupo-quantity-cart-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, hsl(var(--blupo-bg)) 0%, hsl(var(--blupo-surface)) 100%);
    border-radius: var(--blupo-radius);
    transition: var(--blupo-transition);
    width: 100%;
}

.blupo-quantity-cart-row .blupo-quantity-selector:hover,
.blupo-quantity-cart-row .blupo-quantity-selector:focus-within {
    border-color: hsl(var(--blupo-primary));
    box-shadow: 0 0 0 4px hsla(var(--blupo-primary), 0.1);
}

/* Quantity Buttons */
.blupo-quantity-cart-row .blupo-qty-btn {
    width: 44px;
    height: 48px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: hsl(var(--blupo-text-main));
    cursor: pointer;
    transition: var(--blupo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blupo-quantity-cart-row .blupo-qty-btn:hover {
    background: hsla(var(--blupo-primary), 0.08);
    color: hsl(var(--blupo-primary));
}

.blupo-quantity-cart-row .blupo-qty-btn:active {
    background: hsla(var(--blupo-primary), 0.15);
    transform: scale(0.95);
}

.blupo-quantity-cart-row .blupo-qty-btn.blupo-qty-minus,
.blupo-quantity-cart-row .blupo-qty-btn.blupo-qty-plus {
    position: relative;
}

/* Quantity Input */
.blupo-quantity-cart-row .blupo-qty-input {
    width: 56px;
    height: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--blupo-text-main));
    -moz-appearance: textfield;
    transition: var(--blupo-transition);
}

.blupo-quantity-cart-row .blupo-qty-input:focus {
    outline: none;
    color: hsl(var(--blupo-primary));
}

.blupo-quantity-cart-row .blupo-qty-input::-webkit-outer-spin-button,
.blupo-quantity-cart-row .blupo-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Screen reader text */
.blupo-quantity-cart-row .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cart Row Container */
.blupo-quantity-cart-row .blupo-cart-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 12px;
    width: 100%;
}

/* Add to Cart Button */
.blupo-quantity-cart-row .blupo-add-to-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
    border: none;
    border-radius: var(--blupo-radius-sm);
    cursor: pointer;
    transition: var(--blupo-transition);
    box-shadow: 0 4px 14px hsla(var(--blupo-primary), 0.4);
    position: relative;
    overflow: hidden;
}

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

.blupo-quantity-cart-row .blupo-add-to-cart-button:hover::before {
    left: 100%;
}

.blupo-quantity-cart-row .blupo-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(var(--blupo-primary), 0.5);
}

.blupo-quantity-cart-row .blupo-add-to-cart-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px hsla(var(--blupo-primary), 0.4);
}

.blupo-quantity-cart-row .blupo-add-to-cart-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: hsl(var(--blupo-border));
    box-shadow: none;
}

.blupo-quantity-cart-row .blupo-add-to-cart-button:disabled::before {
    display: none;
}

/* Button Text */
.blupo-quantity-cart-row .blupo-btn-text {
    position: relative;
    z-index: 1;
}

/* Button Icon */
.blupo-quantity-cart-row .blupo-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.blupo-quantity-cart-row .blupo-btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.blupo-quantity-cart-row .blupo-add-to-cart-button:hover .blupo-btn-icon svg {
    transform: translateX(3px);
}

/* Loading State */
.blupo-quantity-cart-row .blupo-add-to-cart-button.loading {
    pointer-events: none;
}

.blupo-quantity-cart-row .blupo-add-to-cart-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: blupo-spin 0.8s linear infinite;
}

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

/* Added Success State */
.blupo-quantity-cart-row .blupo-add-to-cart-button.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet and Mobile - Stack in one column */
@media (max-width: 768px) {
    .blupo-quantity-cart-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: var(--blupo-shadow-md);
        gap: 16px;
        background: linear-gradient(135deg, hsl(var(--blupo-bg)) 0%, hsl(var(--blupo-surface)) 100%);
        border-radius: var(--blupo-radius);
        border: 1px solid hsl(var(--blupo-border));
        transition: var(--blupo-transition);
    }
    
    .blupo-quantity-cart-row .blupo-quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .blupo-quantity-cart-row .blupo-cart-row {
        width: 100%;
    }
    
    .blupo-quantity-cart-row .blupo-add-to-cart-button {
        padding: 14px 20px;
        width: 100%;
    }
}

/* Mobile - Smaller buttons and input, stacked */
@media (max-width: 480px) {
    .blupo-quantity-cart-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    
    .blupo-quantity-cart-row .blupo-qty-btn {
        width: 40px;
        height: 44px;
    }
    
    .blupo-quantity-cart-row .blupo-qty-input {
        width: 48px;
        height: 44px;
        font-size: 16px;
    }
    
    .blupo-quantity-cart-row .blupo-add-to-cart-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .blupo-quantity-cart-row .blupo-btn-text {
        font-size: 14px;
    }
}

/* Extra small mobile - minimal sizing, stacked */
@media (max-width: 360px) {
    .blupo-quantity-cart-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .blupo-quantity-cart-row .blupo-qty-btn {
        width: 32px;
        height: 36px;
        font-size: 16px;
    }
    
    .blupo-quantity-cart-row .blupo-qty-input {
        width: 36px;
        height: 36px;
    }
    
    .blupo-quantity-cart-row .blupo-add-to-cart-button {
        padding: 10px 12px;
        font-size: 11px;
    }
}

.blupo-product-purchase .blupo-price-section {
    text-align: center;
}

.blupo-product-purchase .blupo-price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.blupo-product-purchase .blupo-price-label {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--blupo-text-muted));
}

.blupo-product-purchase .blupo-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: hsl(var(--blupo-primary));
}

/* Sale price layout - stack del above ins */
.blupo-product-purchase .blupo-price-amount:has(del),
.blupo-product-purchase .blupo-price-amount:has(ins) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Sale price - original crossed out price styling */
.blupo-product-purchase .blupo-price-amount del {
    display: block;
    width: 100%;
    text-align: center;
    opacity: 0.45;
    font-size: 0.58em;
    font-weight: 500;
    text-decoration: line-through;
    color: hsl(var(--blupo-text-main));
    line-height: 1.2;
}

.blupo-product-purchase .blupo-price-amount del .woocommerce-Price-amount {
    color: inherit;
}

.blupo-product-purchase .blupo-price-amount del .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

.blupo-product-purchase .blupo-price-amount ins {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
}

.blupo-product-purchase .blupo-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blupo-product-purchase .blupo-delivery-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: hsl(var(--blupo-text-muted));
}

.blupo-product-purchase .blupo-add-to-cart-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Product Details Section */

.blupo-product-details {
    border-radius: 12px;
    color: #2d3748;
    line-height: 1.7;
}

.blupo-product-details .blupo-product-description {
    margin-bottom: 24px;
}

.blupo-product-details .blupo-short-description {
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #f8fafb;
    border-left: 3px solid #2271b1;
    border-radius: 0 8px 8px 0;
}

.blupo-product-details .blupo-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.8;
}

/* Description Headings */
.blupo-product-details .blupo-description h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #2271b1;
    display: inline-block;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.blupo-product-details .blupo-description h2 span,
.blupo-product-details .blupo-description h2 strong {
    color: #1a3a5c !important;
}

.blupo-product-details .blupo-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    margin: 28px 0 14px 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #edf4fb 0%, #f8fafb 100%);
    border-left: 3px solid #2271b1;
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.blupo-product-details .blupo-description h3 span {
    color: #2271b1 !important;
}

/* Description Paragraphs */
.blupo-product-details .blupo-description p {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
}

.blupo-product-details .blupo-description p strong {
    color: #2d3748;
    font-weight: 600;
}

/* Description Lists */
.blupo-product-details .blupo-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.blupo-product-details .blupo-description ul li {
    position: relative;
    padding: 10px 16px 10px 36px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #4a5568;
    background: #f8fafb;
    border-radius: 8px;
    border: 1px solid #e8edf2;
    transition: all 0.2s ease;
}

.blupo-product-details .blupo-description ul li:hover {
    background: #f0f6fc;
    border-color: #c5d9ed;
}

.blupo-product-details .blupo-description ul li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: #2271b1;
    border-radius: 50%;
}

.blupo-product-details .blupo-description ul li strong {
    color: #1a3a5c;
    font-weight: 600;
}

/* Description Links */
.blupo-product-details .blupo-description a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.blupo-product-details .blupo-description a:hover {
    color: #1a5f9e;
    border-bottom-color: #2271b1;
}

/* Product Images */
.blupo-product-details .blupo-product-images {
    margin-bottom: 24px;
}

.blupo-product-details .blupo-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* YITH WAPO Content */
.blupo-product-details .blupo-yith-wapo-content {
    margin-top: 24px;
    padding-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .blupo-product-details {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .blupo-product-details .blupo-description h2 {
        font-size: 18px;
    }

    .blupo-product-details .blupo-description h3 {
        font-size: 16px;
    }

    .blupo-product-details .blupo-description p {
        font-size: 14px;
    }

    .blupo-product-details .blupo-description ul li {
        padding: 8px 12px 8px 30px;
        font-size: 13px;
    }

    .blupo-product-details .blupo-description ul li::before {
        left: 10px;
        top: 14px;
        width: 6px;
        height: 6px;
    }
}

/* Options Section */
.blupo-options-section {
    margin-bottom: 32px;
}

/* Variations Grid */
.blupo-default-options .variations {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 20px !important;
}

.blupo-default-options .variations tr {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 24px !important;
    border-radius: var(--blupo-radius);
    overflow: hidden;
    background: hsl(var(--blupo-surface));
    border: 1px solid hsl(var(--blupo-border));
    transition: var(--blupo-transition);
}

.blupo-default-options .variations tr:hover {
    box-shadow: var(--blupo-shadow-md);
    border-color: hsla(var(--blupo-primary), 0.3);
}

.blupo-default-options .variations th {
    display: block !important;
    text-align: left !important;
    padding: 12px 16px !important;
    width: 100% !important;
    background-color: hsl(var(--blupo-header-bg)) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: hsl(var(--blupo-text-main)) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid hsl(var(--blupo-border)) !important;
}

.blupo-default-options .variations td {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.blupo-default-options .variations select {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid hsl(var(--blupo-border)) !important;
    border-radius: var(--blupo-radius-sm) !important;
    background: hsl(var(--blupo-bg)) !important;
    font-size: 15px !important;
    color: hsl(var(--blupo-text-main)) !important;
    cursor: pointer !important;
    transition: var(--blupo-transition) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}

.blupo-default-options .variations select:focus {
    outline: none !important;
    border-color: hsl(var(--blupo-primary)) !important;
    box-shadow: 0 0 0 4px hsla(var(--blupo-primary), 0.1) !important;
}

/* Variation Swatches */
.blupo-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blupo-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    transition: var(--blupo-transition);
    min-width: 60px;
    text-align: center;
}

.blupo-swatch:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.blupo-swatch.selected {
    border-color: #ffc107;
    background-color: #fff;
    color: #ffc107;
    box-shadow: inset 0 0 0 1px #ffc107;
}

.blupo-swatch-color {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    font-size: 0;
    /* Hide text, we use it for accessibility/tooltips */
    background-color: #000;
    /* Placeholder color, should be handled by term meta or data-color if available */
}

.blupo-swatch-color::after {
    content: "\2713";
    /* Checkmark */
    font-size: 16px;
    color: #fff;
    display: none;
}

.blupo-swatch-color.selected::after {
    display: block;
}

/* Hide default WooCommerce variation labels inside our container if they are redundant */
.blupo-default-options .variations .label {
    padding-bottom: 8px !important;
}

/* YITH WAPO Section */
.blupo-yith-wapo-content {
    margin-top: 32px;
    padding-top: 32px;
}

.yith-wapo-addon {
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: hsl(var(--blupo-bg)) !important;
    border: 1px solid hsl(var(--blupo-border)) !important;
    border-radius: var(--blupo-radius) !important;
    overflow: hidden !important;
    transition: var(--blupo-transition) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.yith-wapo-addon:hover {
    box-shadow: var(--blupo-shadow-md);
    border-color: hsla(var(--blupo-primary), 0.3);
}

.addon-header {
    margin: 0 !important;
    padding: 12px 16px !important;
    background-color: hsl(var(--blupo-header-bg)) !important;
    border-bottom: 1px solid hsl(var(--blupo-border)) !important;
}

.wapo-addon-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: hsl(var(--blupo-text-main)) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.options-container {
    padding: 16px !important;
}

/* Total Price Section */
/* ============================================
   [bestlab_product_price_cart] Shortcode - Modern E-commerce Style
   ============================================ */

.blupo-price-cart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 24px 0px 24px;
    border-radius: var(--blupo-radius);
    margin: 16px 0;
    align-items: center;
}

/* ============================================
   Price Section - Net / Gross Display
   ============================================ */

.blupo-price-cart-container .blupo-price-section {
    text-align: center;
    padding: 8px 0;
}

.blupo-price-cart-container .blupo-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Price block: wraps the amount + label */
.blupo-price-cart-container .blupo-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: font-size 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* Primary block (net by default) */
.blupo-price-cart-container .blupo-price-block--net {
    order: 1;
}

/* Secondary block (gross by default) */
.blupo-price-cart-container .blupo-price-block--gross {
    order: 2;
}

/* Primary price amount */
.blupo-price-cart-container .blupo-price-block--net .blupo-price-amount {
    font-size: 42px;
    font-weight: 800;
    color: hsl(var(--blupo-text-main));
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blupo-price-cart-container .blupo-price-block--net .blupo-price-amount .woocommerce-Price-amount {
    color: hsl(var(--e-global-color-accent));
}

.blupo-price-cart-container .blupo-price-block--net .blupo-price-amount .woocommerce-Price-currencySymbol {
    font-size: 26px;
    font-weight: 600;
    vertical-align: top;
    margin-right: 2px;
}

/* Secondary price amount (gross) */
.blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount {
    font-size: 18px;
    font-weight: 500;
    color: hsl(var(--blupo-text-muted));
    line-height: 1.3;
}

.blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount .woocommerce-Price-amount {
    color: inherit;
}

.blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* Price label tags (nettó / bruttó) */
.blupo-price-cart-container .blupo-price-label-tag {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(var(--blupo-text-muted));
    line-height: 1;
}

/* Sale price layout - stack del above ins */
.blupo-price-cart-container .blupo-price-amount:has(del),
.blupo-price-cart-container .blupo-price-amount:has(ins) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Sale price - original crossed out price */
.blupo-price-cart-container .blupo-price-amount del {
    display: block;
    width: 100%;
    text-align: center;
    opacity: 0.45;
    font-size: 0.58em;
    font-weight: 500;
    text-decoration: line-through;
    color: hsl(var(--blupo-text-main));
    line-height: 1.2;
}

.blupo-price-cart-container .blupo-price-amount del .woocommerce-Price-amount {
    color: inherit;
}

.blupo-price-cart-container .blupo-price-amount del .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

/* Sale price - discounted price */
.blupo-price-cart-container .blupo-price-amount ins {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.1;
}

/* ============================================
   Gross mode: swap primary/secondary
   ============================================ */

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--net {
    order: 2;
}

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--gross {
    order: 1;
}

/* Gross becomes primary */
body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: hsl(var(--blupo-text-main));
    line-height: 1.1;
    letter-spacing: -0.02em;
}

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount .woocommerce-Price-amount {
    color: hsl(var(--blupo-text-main));
}

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--gross .blupo-price-amount .woocommerce-Price-currencySymbol {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
    margin-right: 2px;
}

/* Net becomes secondary */
body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--net .blupo-price-amount {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--blupo-text-muted));
    line-height: 1.3;
    letter-spacing: 0;
}

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--net .blupo-price-amount .woocommerce-Price-amount {
    color: inherit;
}

body.blupo-prices-gross .blupo-price-cart-container .blupo-price-block--net .blupo-price-amount .woocommerce-Price-currencySymbol {
    font-size: inherit;
    vertical-align: baseline;
    margin-right: 0;
}

/* Quantity Selector - Modern Style */
.blupo-price-cart-container .blupo-quantity-selector {
    display: flex;
    width: 100%;
    background: hsl(var(--blupo-bg));
    border: 2px solid hsl(var(--blupo-border));
    border-radius: var(--blupo-radius-sm);
    overflow: hidden;
    transition: var(--blupo-transition);
}

.blupo-price-cart-container .blupo-quantity-selector:hover,
.blupo-price-cart-container .blupo-quantity-selector:focus-within {
    border-color: hsl(var(--blupo-primary));
    box-shadow: 0 0 0 4px hsla(var(--blupo-primary), 0.1);
}

.blupo-price-cart-container .blupo-qty-btn {
    width: 44px;
    height: 48px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: hsl(var(--blupo-text-main));
    cursor: pointer;
    transition: var(--blupo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blupo-price-cart-container .blupo-qty-btn:hover {
    background: hsla(var(--blupo-primary), 0.08);
    color: hsl(var(--blupo-primary));
}

.blupo-price-cart-container .blupo-qty-btn:active {
    background: hsla(var(--blupo-primary), 0.15);
    transform: scale(0.95);
}

.blupo-price-cart-container .blupo-qty-input {
    width: 100%;
    height: 48px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--blupo-text-main));
    -moz-appearance: textfield;
}

.blupo-price-cart-container .blupo-qty-input::-webkit-outer-spin-button,
.blupo-price-cart-container .blupo-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button - Premium Style */
.blupo-price-cart-container .blupo-add-to-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
    border: none;
    border-radius: var(--blupo-radius-sm);
    cursor: pointer;
    transition: var(--blupo-transition);
    box-shadow: 0 4px 14px hsla(var(--blupo-primary), 0.4);
    position: relative;
    overflow: hidden;
}

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

.blupo-price-cart-container .blupo-add-to-cart-button:hover::before {
    left: 100%;
}

.blupo-price-cart-container .blupo-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsla(var(--blupo-primary), 0.5);
}

.blupo-price-cart-container .blupo-add-to-cart-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px hsla(var(--blupo-primary), 0.4);
}

.blupo-price-cart-container .blupo-add-to-cart-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: hsl(var(--blupo-border));
    box-shadow: none;
}

.blupo-price-cart-container .blupo-add-to-cart-button:disabled::before {
    display: none;
}

.blupo-price-cart-container .blupo-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blupo-price-cart-container .blupo-btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .blupo-price-cart-container {
        padding: 20px 16px;
        max-width: 100%;
    }

    .blupo-price-cart-container .blupo-price-amount {
        font-size: 28px;
    }

    .blupo-price-cart-container .blupo-add-to-cart-button {
        padding: 14px 20px;
        font-size: 14px;
    }

    .blupo-price-cart-container .blupo-qty-btn {
        width: 40px;
    }

    .blupo-price-cart-container .blupo-qty-input {
        width: 48px;
    }
}

/* Total Price Section */
.blupo-total-price-section {
    margin: 32px 0;
}

/* Legacy Price Display - Now handled in shortcode section above */
.blupo-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background-color: transparent;
    border-radius: 0;
    color: hsl(var(--blupo-text-main));
    box-shadow: none;
    transition: var(--blupo-transition);
}

.blupo-price-display:hover {
    transform: none;
    box-shadow: none;
}

.blupo-price-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--blupo-text-muted));
}

.blupo-price-amount {
    font-size: 1.5em;
    font-weight: 800;
    color: hsl(var(--blupo-primary));
}

/* Sale price layout - stack del above ins */
.blupo-price-amount:has(del),
.blupo-price-amount:has(ins) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Sale price - original crossed out price styling */
.blupo-price-amount del {
    display: block;
    width: 100%;
    text-align: center;
    opacity: 0.45;
    font-size: 0.58em;
    font-weight: 500;
    text-decoration: line-through;
    color: hsl(var(--blupo-text-main));
    line-height: 1.2;
}

.blupo-price-amount del .woocommerce-Price-amount {
    color: inherit;
}

.blupo-price-amount del .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

.blupo-price-amount ins {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.1;
}

/* Add to Cart Button */
.blupo-add-to-cart-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: hsl(var(--blupo-primary));
    color: #fff;
    border: none;
    border-radius: var(--blupo-radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--blupo-transition);
    box-shadow: var(--blupo-shadow-md);
}

.blupo-add-to-cart-button:hover {
    background: hsl(var(--blupo-primary-hover));
    transform: translateY(-2px);
    box-shadow: var(--blupo-shadow-lg);
}

.blupo-add-to-cart-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .blupo-unified-container {
        padding: 24px;
    }

    .blupo-price-display {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 20px;
    }

    .blupo-actions-section {
        flex-direction: column;
    }

    .blupo-quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .blupo-qty-btn,
    .blupo-qty-input {
        flex: 1;
    }
}

/* --- Functional Hiding & Visibility Rules --- */

/* Hide WooCommerce price elements when YITH WAPO is active (rendered in our container) */
body.blupo-yith-wapo-active .elementor-widget-woocommerce-product-price,
body.blupo-yith-wapo-active .wooprice {
    display: none !important;
}

/* Hide the original YITH WAPO container inside the form if it exists */
body.blupo-yith-wapo-active form.cart #yith-wapo-container {
    display: none !important;
}

/* Hide the original YITH WAPO total price table inside the form */
body.blupo-yith-wapo-active form.cart #wapo-total-price-table {
    display: none !important;
}

/* Hide the YITH WAPO total price table inside our container (we show our own price) */
.blupo-unified-container #wapo-total-price-table {
    display: none !important;
}

/* Hide standard WooCommerce variation price, quantity and add to cart inside our unified container to avoid duplicates */
.blupo-unified-container .woocommerce-variation-price,
.blupo-unified-container .woocommerce-variation-add-to-cart .quantity,
.blupo-unified-container .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: none !important;
}

/* Force show our variations table and selects */
.blupo-default-options,
.blupo-default-options .cart,
.blupo-default-options .variations,
.blupo-default-options .variations_form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- End Functional Rules --- */

@keyframes pulse-subtle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.blupo-add-to-cart-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.blupo-add-to-cart-button.added {
    background: #28a745 !important;
    animation: pulse-subtle 0.5s ease-in-out;
}

/* Hide Default Elements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   Cart Row - Modern Action Bar
   ============================================ */

/* Quick Buy Button */
.blupo-cart-row .blupo-quick-buy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.blupo-cart-row .blupo-quick-buy:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.blupo-cart-row .blupo-quick-buy.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.blupo-cart-row:hover {
    box-shadow: var(--blupo-shadow-md);
    border-color: hsla(var(--blupo-primary), 0.2);
}

/* Wishlist & Compare Buttons Container */
.blupo-wishlist-compare {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Base Button Styles */
.blupo-wishlist-btn,
.blupo-compare-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid hsl(var(--blupo-border));
    background: hsl(var(--blupo-bg));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: hsl(var(--blupo-text-muted));
    position: relative;
    overflow: hidden;
}

/* Button Icon Animation */
.blupo-wishlist-btn svg,
.blupo-compare-btn svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Button Hover Background Animation */
.blupo-wishlist-btn::before,
.blupo-compare-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.blupo-wishlist-btn:hover::before,
.blupo-compare-btn:hover::before {
    opacity: 1;
}

/* Wishlist Button Hover State */
.blupo-wishlist-btn:hover {
    border-color: hsl(var(--blupo-primary));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--blupo-primary), 0.3);
}

.blupo-wishlist-btn:hover svg {
    transform: scale(1.1);
}

/* Compare Button Hover State */
.blupo-compare-btn::before {
    background: linear-gradient(135deg, #3282C1 0%, #1a5f9e 100%);
}

.blupo-compare-btn:hover {
    border-color: #3282C1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 130, 193, 0.3);
}

.blupo-compare-btn:hover svg {
    transform: scale(1.1);
}

/* Active States with Pulse Animation */
.blupo-wishlist-btn.active {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #e00000;
    color: #e00000;
    animation: blupo-pulse-heart 0.6s ease-out;
}

.blupo-wishlist-btn.active svg {
    fill: #e00000;
}

.blupo-wishlist-btn.active::before {
    display: none;
}

.blupo-compare-btn.active {
    background: linear-gradient(135deg, #3282C1 0%, #1a5f9e 100%);
    border-color: #3282C1;
    color: #fff;
    animation: blupo-pulse-scale 0.4s ease-out;
}

.blupo-compare-btn.active::before {
    opacity: 1;
}

/* Pulse Animations */
@keyframes blupo-pulse-heart {
    0% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blupo-pulse-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Login Required State */
.blupo-wishlist-btn.blupo-login-required {
    opacity: 0.5;
    cursor: not-allowed;
}

.blupo-wishlist-btn.blupo-login-required:hover {
    background: hsl(var(--blupo-bg));
    border-color: hsl(var(--blupo-border));
    color: hsl(var(--blupo-text-muted));
    transform: none;
    box-shadow: none;
}

.blupo-wishlist-btn.blupo-login-required:hover::before {
    opacity: 0;
}

.blupo-wishlist-btn.blupo-login-required:hover svg {
    transform: none;
}

/* Disabled States */
.blupo-wishlist-btn:disabled,
.blupo-compare-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.blupo-wishlist-btn:disabled:hover,
.blupo-compare-btn:disabled:hover {
    background: hsl(var(--blupo-bg));
    border-color: hsl(var(--blupo-border));
    color: hsl(var(--blupo-text-muted));
    transform: none;
    box-shadow: none;
}

/* Modern Tooltip */
.blupo-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

/* Tooltip Arrow */
.blupo-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #16213e;
}

.blupo-wishlist-btn:hover .blupo-btn-tooltip,
.blupo-compare-btn:hover .blupo-btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Add to Cart Button in Cart Row */
.blupo-cart-row .blupo-add-to-cart-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px hsla(var(--blupo-primary), 0.35);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

/* Shimmer Effect */
.blupo-cart-row .blupo-add-to-cart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.blupo-cart-row .blupo-add-to-cart-button:hover::before {
    left: 100%;
}

/* Button Hover State */
.blupo-cart-row .blupo-add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(var(--blupo-primary), 0.45);
}

/* Button Active State */
.blupo-cart-row .blupo-add-to-cart-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px hsla(var(--blupo-primary), 0.35);
}

/* Button Text */
.blupo-cart-row .blupo-btn-text {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Button Icon */
.blupo-cart-row .blupo-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.blupo-cart-row .blupo-btn-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.blupo-cart-row .blupo-add-to-cart-button:hover .blupo-btn-icon svg {
    transform: translateX(3px);
}

/* Disabled Button State */
.blupo-cart-row .blupo-add-to-cart-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: hsl(var(--blupo-border));
    box-shadow: none;
}

.blupo-cart-row .blupo-add-to-cart-button:disabled::before {
    display: none;
}

.blupo-cart-row .blupo-add-to-cart-button:disabled:hover .blupo-btn-icon svg {
    transform: none;
}

/* Loading State */
.blupo-cart-row .blupo-add-to-cart-button.loading {
    pointer-events: none;
    position: relative;
}

.blupo-cart-row .blupo-add-to-cart-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: blupo-spin 0.8s linear infinite;
}

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

/* Added Success State */
.blupo-cart-row .blupo-add-to-cart-button.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    animation: blupo-success-pulse 0.5s ease-out;
}

@keyframes blupo-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Variable Product Button */
.blupo-cart-row .blupo-variable-cart-btn {
    background: linear-gradient(135deg, hsl(var(--blupo-primary)) 0%, hsl(var(--blupo-accent)) 100%);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .blupo-cart-row {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    
    .blupo-wishlist-compare {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }
    
    .blupo-cart-row .blupo-add-to-cart-button,
    .blupo-cart-row .blupo-quick-buy {
        order: 1;
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .blupo-wishlist-btn,
    .blupo-compare-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 400px) {
    .blupo-cart-row .blupo-add-to-cart-button {
        padding: 12px 16px;
        font-size: 13px;
        letter-spacing: 0.05em;
    }
    
    .blupo-cart-row .blupo-btn-text {
        font-size: 13px;
    }
}

/* ===================================
   Attribute Info Button & Popup
   =================================== */

/* Info button styling */
.blupo-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: 4px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: hsl(var(--blupo-text-muted));
    transition: var(--blupo-transition);
    vertical-align: middle;
}

.blupo-info-btn:hover {
    color: #3282C1 !important;
    background-color: hsl(var(--blupo-surface));

}

button.blupo-info-btn:hover{
    color: #3282C1 !important;
    background-color: hsl(var(--blupo-surface));
}

.blupo-info-btn:focus {
    outline: 2px solid hsl(var(--blupo-primary));
    outline-offset: 2px;
}

.blupo-info-btn svg {
    width: 20px;
    height: 20px;
}

/* Label container with info button */
.blupo-product-form .label {
    display: flex;
    align-items: center;
    gap: 0;
}

.blupo-product-form .label label {
    display: inline;
}

/* Variations label styling */
.variations td.label {
    margin-bottom: 1em;
}

.variations td.label label {
    display: inline-block;
    vertical-align: middle;
}

/* Info popup overlay */
.blupo-info-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: blupo-fade-in 0.2s ease-out;
}

@keyframes blupo-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Info popup container */
.blupo-info-popup {
    background: hsl(var(--blupo-bg));
    border-radius: var(--blupo-radius);
    box-shadow: var(--blupo-shadow-lg);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: blupo-slide-up 0.3s ease-out;
}

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

/* Info popup header */
.blupo-info-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid hsl(var(--blupo-border));
    background-color: hsl(var(--blupo-header-bg));
}

.blupo-info-popup-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: hsl(var(--blupo-text-main));
}

.blupo-info-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: hsl(var(--blupo-text-muted));
    transition: var(--blupo-transition);
}

.blupo-info-popup-close:hover {
    background-color: hsl(var(--blupo-border));
    color: hsl(var(--blupo-text-main));
}

.blupo-info-popup-close:focus {
    outline: 2px solid hsl(var(--blupo-primary));
    outline-offset: 2px;
}

/* Info popup content */
.blupo-info-popup-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
    font-size: 14px;
    line-height: 1.6;
    color: hsl(var(--blupo-text-main));
}

.blupo-info-popup-content p {
    margin: 0 0 12px;
}

.blupo-info-popup-content p:last-child {
    margin-bottom: 0;
}

.blupo-info-popup-content ul,
.blupo-info-popup-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.blupo-info-popup-content li {
    margin-bottom: 4px;
}

.blupo-info-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blupo-radius-sm);
    margin: 8px 0;
}

.blupo-info-popup-content a {
    color: hsl(var(--blupo-primary));
}

.blupo-info-popup-content a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .blupo-info-popup {
        max-width: calc(100% - 40px);
        max-height: 90vh;
    }
    
    .blupo-info-popup-content {
        max-height: calc(90vh - 70px);
    }
}