/**
 * Classic Mode Styles (Min-Max Range)
 * Scoped to .wab-scope.wab-classic to avoid conflicts
 */

.wab-scope.wab-classic {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #17ef97;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #ffffff;
}

.wab-scope.wab-classic .wab-classic-title {
    color: #17ef97;
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
}

/* Attributes Section */
.wab-scope.wab-classic .wab-classic-attributes-section {
    margin-bottom: 25px;
}

.wab-scope.wab-classic .wab-classic-attribute-group {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.wab-scope.wab-classic .wab-classic-attribute-name {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.wab-scope.wab-classic .wab-classic-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid #ddd;
}

.wab-scope.wab-classic .wab-classic-value-name {
    color: #ffffff;
    font-weight: 500;
    flex: 1;
}

/* Quantity Controls */
.wab-scope.wab-classic .wab-classic-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wab-scope.wab-classic .wab-classic-qty-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wab-scope.wab-classic .wab-classic-qty-btn:hover {
    background: #17ef97 !important;
    color: white !important;
    border-color: #17ef97 !important;
}

.wab-scope.wab-classic .wab-classic-qty-input {
    width: 60px;
    text-align: center;
    font-size: 14px;
    padding: 4px 2px;
    border: 2px solid #17ef97;
    border-radius: 4px;
    background: white;
    color: black;
}

/* Discount Tiers */
.wab-classic-frontend .wab-discount-tiers {
    margin: 20px 0;
}

.wab-classic-frontend .wab-discount-tiers h4 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.wab-classic-frontend .wab-tier-buttons {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.wab-classic-frontend .wab-tier-button {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wab-classic-frontend .wab-tier-button:hover {
    background: rgba(23, 239, 151, 0.2);
    border-color: #17ef97;
}

.wab-classic-frontend .wab-tier-button.active {
    background: #17ef97;
    color: #000000;
    border-color: #17ef97;
}

.wab-classic-frontend .wab-tier-qty {
    font-weight: bold;
    margin-bottom: 5px;
}

.wab-classic-frontend .wab-tier-discount {
    font-size: 12px;
    margin-bottom: 5px;
    color: #ffc107;
}

.wab-classic-frontend .wab-tier-price {
    font-size: 16px;
    font-weight: bold;
}

/* Summary Section */
.wab-classic-frontend .wab-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.wab-classic-frontend .wab-total-info,
.wab-classic-frontend .wab-price-info {
    margin-bottom: 10px;
    color: #ffffff;
}

.wab-classic-frontend .wab-total-qty,
.wab-classic-frontend .wab-total-price {
    color: #17ef97;
    font-weight: bold;
}

.wab-classic-frontend .wab-add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #17ef97;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wab-classic-frontend .wab-add-to-cart-btn:hover:not(:disabled) {
    background: #15d085;
    transform: translateY(-1px);
}

.wab-classic-frontend .wab-add-to-cart-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

/* Progress Line */
.wab-classic-frontend .wab-progress-line {
    height: 4px;
    background: linear-gradient(90deg, #28a745, #17ef97);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wab-classic-frontend .wab-value-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wab-classic-frontend .wab-tier-buttons {
        flex-direction: column;
    }
    
    .wab-classic-frontend .wab-tier-button {
        margin-bottom: 2px;
    }
}

/* Debug Styles */
.wab-classic-frontend .wab-debug {
    background: #e3f2fd;
    color: #1976d2;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 2px solid #2196f3;
}

.wab-classic-frontend .wab-debug h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

.wab-classic-frontend .wab-debug pre {
    background: white;
    padding: 10px;
    border-radius: 3px;
    overflow-x: auto;
    color: #333;
}
