/* Additional Modal Styles - Stock Status Colors and Improvements */

/* Stock Status Colors - FIXED */
.stock-status {
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
}

.stock-status.in-stock {
    color: #28a745; /* Green for in stock */
}

.stock-status.out-of-stock {
    color: #dc3545; /* Red for out of stock */
}

/* Size Options Styling */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.size-option {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #333;
    background: #f8f9fa;
}

.size-option.selected {
    border-color: #333;
    background: #333;
    color: white;
}

/* Color Options Styling */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-option.selected {
    box-shadow: 0 0 0 3px #333;
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

/* No options message */
.no-options {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin: 10px 0;
}

/* Thumbnail active state */
.thumbnail {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: #333;
}

/* Modal close button improvements */
.close-modal {
    cursor: pointer;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    color: #666;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal overlay improvements */
.product-modal {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

/* Quantity selector improvements */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-decrease,
.quantity-increase {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background: #f8f9fa;
    border-color: #333;
}

#modal-quantity {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    font-size: 16px;
}

/* Size and Color section headers */
.size-selection h4,
.color-selection h4 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Product modal variants section */
.product-modal-variants {
    margin: 20px 0;
}

.size-selection,
.color-selection {
    margin-bottom: 20px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .size-option {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    .close-modal {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}

