#mayorista-grid-container.ja-variation-grid {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.mayorista-qty-input{
    color:inherit !important;   
}
.ja-grid-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ja-grid-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ja-pivot-label {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.ja-row-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Swatches Container */
.ja-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

/* Base Swatch Button */
.ja-swatch-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2.5px solid #ffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Color Swatch (Circle) */
.ja-swatch-btn.is-color {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
}

/* Text Swatch (Pill) */
.ja-swatch-btn.is-text {
    width: auto;
    height: auto;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-align: center;
}

/* Hover States */
.ja-swatch-btn:hover {
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Selected States */
.ja-swatch-btn.selected {
    border-color: #e2103b;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px #333;
    /* Double border effect */
}

.ja-swatch-btn.is-text.selected {
    background-color: #333;
    color: #fff;
}

/* Disabled State */
.ja-swatch-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    border-color: #eee;
    box-shadow: none;
    background-color: #f1f1f1;
}

/* Info Area */
.ja-info-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 120px;
    text-align: right;
    font-size: 0.9em;
}

.ja-info-price {
    font-weight: bold;
}

.ja-info-stock {
    font-size: 0.85em;
}

.ja-info-stock.out-of-stock-text {
    /* Red color for OOS */
    font-weight: bold;
}

/* Input Area (Custom Quantity Buttons) */
.ja-input-area {
    width: auto;
}

.qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ffff;
    border-radius: 10px;
    overflow: hidden;
    width: auto;
}

.mayorista-qty-input {
    width: 60px !important;
    text-align: center;
    border: none !important;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    -moz-appearance: textfield;
    appearance: textfield;
    /* Added standard property */
    background: transparent;
    margin: 0 !important;
    height: 42px;
}

.mayorista-qty-input::-webkit-outer-spin-button,
.mayorista-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: background 0.2s, transform 0.05s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
    line-height: 1;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn.minus {
    background: #fee2e2;
    color: #b91c1c;
}

.qty-btn.minus:hover {
    background: #fecaca;
}

.qty-btn.plus {
    background: #dcfce7;
    color: #15803d;
}

.qty-btn.plus:hover {
    background: #bbf7d0;
}

/* Disabled styling integration */
.qty-wrapper.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.mayorista-qty-input:disabled {
    background-color: transparent;
    cursor: not-allowed;
}


/* Batch Button */
.mayorista-controls {
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#mayorista-add-to-cart-btn {
    width: 100%;
    max-width: 300px;
}

/* Responsive */
@media (max-width: 600px) {
    .ja-row-content {
        align-items: flex-start;
    }

    .ja-swatches-container {
        width: 100%;
        margin-bottom: 10px;
    }

    .ja-info-area {
        text-align: left;
        margin-bottom: 0;
    }
}

/* ========================================
   MULTI-ATTRIBUTE SELECTORS
   ======================================== */

.ja-curva-multi-selectors {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    /* Ocupar espacio libre */
    min-width: 250px;
}

.ja-curva-attr-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.ja-curva-attr-selector.active {
    background: #fff;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.ja-curva-attr-selector.dependent {
    opacity: 0.6;
    pointer-events: none;
}

.ja-curva-attr-selector.dependent.unlocked {
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    border-color: #dee2e6;
}

.ja-curva-attr-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    min-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ja-curva-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

/* Multi-attribute buttons base */
.ja-curva-multi-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
    background: #fff;
    font-family: inherit;
}

.ja-curva-multi-btn:hover {
    border-color: #999;
    transform: translateY(-1px);
}

/* Color swatches (círculos) */
.ja-curva-multi-btn.is-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    border-width: 1px;
}

/* Text/Pill swatches */
.ja-curva-multi-btn.is-text {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #f8f9fa;
}

.ja-curva-multi-btn.is-text:hover {
    background: #e9ecef;
}

/* Selected state */
.ja-curva-multi-btn.selected {
    border-color: #333 !important;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.ja-curva-multi-btn.is-text.selected {
    background: #333;
    color: #fff;
}

/* Disabled state */
.ja-curva-multi-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #eee !important;
}

/* Visual connector between selectors */
.ja-curva-attr-selector:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -8px;
    width: 2px;
    height: 8px;
    background: #dee2e6;
}

.ja-curva-multi-selectors {
    position: relative;
}

/* Unlock Pulse Animation */
@keyframes ja-unlock-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.ja-curva-attr-selector.just-unlocked {
    animation: ja-unlock-pulse 0.3s ease;
}

@media (max-width: 600px) {
    .ja-curva-multi-selectors {
        width: 100%;
        margin-bottom: 20px;
    }

    .ja-curva-attr-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .ja-curva-attr-label {
        margin-bottom: 8px;
    }
}
@media (min-width: 1360px){
    #mayorista-grid-container{
        width: 100%;
    } 
}
