/* ==========================================
   VARIANT MODAL - DUX Style
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content.variant-modal {
    background: white;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #000;
    transform: scale(1.1);
}

/* Modal Body */
.variant-modal-body {
    padding: 32px 24px 24px;
}

.variant-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Rating */
.variant-modal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.variant-modal-stars {
    display: flex;
    gap: 2px;
    color: #FFA500;
    font-size: 14px;
}

.variant-modal-rating-text {
    font-size: 13px;
    color: #666;
}

/* Description */
.variant-modal-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Variant Dropdown */
.variant-dropdown-group {
    margin-bottom: 16px;
}

.variant-dropdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    display: block;
}

.variant-dropdown-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.variant-dropdown-select:focus {
    outline: none;
    border-color: #000;
}

.variant-dropdown-select option {
    padding: 10px;
}

/* Price and Quantity Row */
.variant-price-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.variant-price-block {
    display: flex;
    flex-direction: column;
}

.variant-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.variant-current-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.variant-installment-label {
    font-size: 11px;
    color: #666;
}

.variant-current-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.variant-installment-text {
    font-size: 11px;
    color: #666;
}

/* Quantity Selector */
.variant-quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.variant-quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-quantity-btn:hover {
    background: #f5f5f5;
}

.variant-quantity-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.variant-quantity-input:focus {
    outline: none;
}

/* Coupon Link */
.variant-coupon-link {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    margin-bottom: 16px;
    display: inline-block;
    cursor: pointer;
}

.variant-coupon-link:hover {
    color: #000;
}

/* Add to Cart Button */
.variant-add-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.variant-add-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.variant-add-btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .modal-content.variant-modal {
        max-width: 100%;
        margin: 0 12px;
    }

    .variant-modal-body {
        padding: 24px 20px 20px;
    }

    .variant-modal-title {
        font-size: 16px;
    }

    .variant-current-price {
        font-size: 18px;
    }

    .variant-price-quantity-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
