/* WooCommerce Variation Popup Styles */

/* Overlay */
.wc-variation-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wc-variation-popup-overlay.active {
    display: flex;
}

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

/* Popup Container */
.wc-variation-popup-container {
    background: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

/* Close Button */
.wc-variation-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.wc-variation-popup-close:hover {
    background: #f0f0f0;
    color: #000;
}

/* Content */
.wc-variation-popup-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}

.wc-variation-popup-image {
    flex: 0 0 45%;
    padding-right: 30px;
}

.wc-variation-popup-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wc-variation-popup-details {
    flex: 0 0 55%;
}

.wc-variation-popup-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
    font-weight: 600;
}

.wc-variation-popup-price {
    font-size: 22px;
    color: #e2a73b;
    font-weight: bold;
    margin: 0 0 25px 0;
}

/* Variations */
.wc-variation-popup-variations {
    margin-bottom: 25px;
}

.wc-variation-popup-variations label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.wc-variation-popup-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wc-variation-option {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.wc-variation-option:hover {
    border-color: #e2a73b;
    background: #fff9f0;
}

.wc-variation-option.selected {
    border-color: #e2a73b;
    background: #e2a73b;
    color: #fff;
}

.wc-variation-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity */
.wc-variation-popup-quantity {
    margin-bottom: 25px;
}

.wc-variation-popup-quantity label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.wc-variation-popup-qty {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

/* Add to Cart Button */
.wc-variation-popup-add-to-cart {
    width: 100%;
    padding: 15px 30px;
    background: #e2a73b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wc-variation-popup-add-to-cart:hover {
    background: #c98f2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 167, 59, 0.3);
}

.wc-variation-popup-add-to-cart:active {
    transform: translateY(0);
}

.wc-variation-popup-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message */
.wc-variation-popup-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.wc-variation-popup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.wc-variation-popup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-variation-popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .wc-variation-popup-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .wc-variation-popup-image {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .wc-variation-popup-details {
        flex: 0 0 100%;
    }
    
    .wc-variation-popup-title {
        font-size: 20px;
    }
    
    .wc-variation-popup-close {
        top: 10px;
        right: 10px;
    }
}

/* Trigger Button on Shop Page */
.wc-variation-popup-trigger {
    background: #e2a73b !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
}

.wc-variation-popup-trigger:hover {
    background: #c98f2e !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 167, 59, 0.3);
}