/* Ürün Özellik Seçimi Stilleri */

/* Renk Seçenekleri */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 80px;
    justify-content: center;
    position: relative;
}

.color-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.color-option.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.color-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.color-option.unavailable:hover {
    border-color: #e0e0e0;
    box-shadow: none;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ddd;
    display: inline-block;
}

.color-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.color-option.unavailable .color-name {
    color: #999;
}

.price-adjustment {
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
    margin-left: 5px;
}

/* Radio Seçenekleri */
.radio-options {
    margin: 10px 0;
}

.radio-options .mv-list-inline-style-1 {
    margin-bottom: 8px !important;
}

.radio-options .mv-list-inline-style-1.unavailable {
    opacity: 0.6;
}

.radio-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.radio-options input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.radio-options input[type="radio"]:disabled {
    cursor: not-allowed;
}

/* Seçenek Grupları */
.option-group {
    margin: 15px 0;
}

.option-group table td:first-child {
    font-weight: 600;
    color: #333;
    vertical-align: top;
    padding-top: 12px;
    width: 120px;
}

.option-group table td:last-child {
    padding-top: 8px;
}

/* Stok Durumu */
.stock-status {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.low-stock {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .color-options {
        gap: 8px;
    }
    
    .color-option {
        min-width: 70px;
        padding: 6px 10px;
    }
    
    .color-swatch {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .color-name {
        font-size: 12px;
    }
    
    .option-group table td:first-child {
        width: 100px;
        font-size: 14px;
    }
}

/* Animasyonlar */
.color-option {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seçim göstergesi */
.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #007bff;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Hover efektleri */
.option-group:hover .color-option {
    transform: translateY(-1px);
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
