/* ============================================
   RENK VARIATIONS - FRONTEND
   ============================================ */

.renk-variations {
    padding: 10px 0;
    clear: both;
}

.renk-variations * {
    box-sizing: border-box;
}

.renk-variations img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important;
}

/* ----- HEADER (Serisi: ...) ----- */
.renk-header-display {
    padding: 5px 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.renk-header-label {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.renk-header-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.renk-header-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* ----- RESİM LİSTESİ ----- */
.renk-image-display {
    padding: 0;
}

.renk-variations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 -4px;
}

.renk-variations-list > div {
    padding: 4px;
    margin-bottom: 4px;
    flex: 0 0 auto;
}

/* ----- RESİM KAPSI ----- */
.renk-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    background: #f8f9fa;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 58px;
    margin: 0 auto;
}

/* ----- RESİM ----- */
.renk-img {
    border: 2px solid transparent;
    border-radius: 4px;
    transition: transform 0.15s ease, border-color 0.2s ease;
    width: 50px;
    height: 50px;
    object-fit: contain;
    max-width: 50px;
    max-height: 50px;
    display: block;
}

.renk-img:hover {
    border-color: orange;
    transform: scale(1.05);
}

.hover-border {
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.hover-border:hover {
    border-color: orange;
}

/* ----- STOK YOK ----- */
.out-of-stock .renk-img {
    opacity: 0.3 !important;
    filter: grayscale(0.9) !important;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
}

.out-of-stock-text {
    color: #ff0000;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 0 3px rgba(255,255,255,0.9), 0 0 6px rgba(255,255,255,0.7);
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

/* ----- MEVCUT ÜRÜN ----- */
.current-product .renk-img {
    border-color: #ff6b00 !important;
    box-shadow: 0 0 0 2px rgba(255,107,0,0.2);
}

.current-product-img {
    border-color: #ff6b00 !important;
    box-shadow: 0 0 0 2px rgba(255,107,0,0.2);
}

/* ----- TOOLTIP ----- */
.tooltip-inner {
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.tooltip .tooltip-arrow {
    border-color: #333 transparent transparent transparent;
}

[data-bs-toggle="tooltip"] {
    position: relative;
}

.tooltip {
    z-index: 1050;
}

/* ============================================
   RESPONSIVE COLUMN DÜZENLEMELERİ
   ============================================ */

/* 1-12 arası tüm sütunlar için flex değerleri */
.col-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
.col-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
.col-5 { flex: 0 0 20%; max-width: 20%; }
.col-6 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
.col-7 { flex: 0 0 14.28571429%; max-width: 14.28571429%; }
.col-8 { flex: 0 0 12.5%; max-width: 12.5%; }
.col-9 { flex: 0 0 11.11111111%; max-width: 11.11111111%; }
.col-10 { flex: 0 0 10%; max-width: 10%; }
.col-11 { flex: 0 0 9.09090909%; max-width: 9.09090909%; }
.col-12 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-sm-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-sm-5 { flex: 0 0 20%; max-width: 20%; }
    .col-sm-6 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-sm-7 { flex: 0 0 14.28571429%; max-width: 14.28571429%; }
    .col-sm-8 { flex: 0 0 12.5%; max-width: 12.5%; }
    .col-sm-9 { flex: 0 0 11.11111111%; max-width: 11.11111111%; }
    .col-sm-10 { flex: 0 0 10%; max-width: 10%; }
    .col-sm-11 { flex: 0 0 9.09090909%; max-width: 9.09090909%; }
    .col-sm-12 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-md-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-md-5 { flex: 0 0 20%; max-width: 20%; }
    .col-md-6 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-md-7 { flex: 0 0 14.28571429%; max-width: 14.28571429%; }
    .col-md-8 { flex: 0 0 12.5%; max-width: 12.5%; }
    .col-md-9 { flex: 0 0 11.11111111%; max-width: 11.11111111%; }
    .col-md-10 { flex: 0 0 10%; max-width: 10%; }
    .col-md-11 { flex: 0 0 9.09090909%; max-width: 9.09090909%; }
    .col-md-12 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-lg-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-lg-5 { flex: 0 0 20%; max-width: 20%; }
    .col-lg-6 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-lg-7 { flex: 0 0 14.28571429%; max-width: 14.28571429%; }
    .col-lg-8 { flex: 0 0 12.5%; max-width: 12.5%; }
    .col-lg-9 { flex: 0 0 11.11111111%; max-width: 11.11111111%; }
    .col-lg-10 { flex: 0 0 10%; max-width: 10%; }
    .col-lg-11 { flex: 0 0 9.09090909%; max-width: 9.09090909%; }
    .col-lg-12 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
}

@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
    .col-xl-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
    .col-xl-5 { flex: 0 0 20%; max-width: 20%; }
    .col-xl-6 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
    .col-xl-7 { flex: 0 0 14.28571429%; max-width: 14.28571429%; }
    .col-xl-8 { flex: 0 0 12.5%; max-width: 12.5%; }
    .col-xl-9 { flex: 0 0 11.11111111%; max-width: 11.11111111%; }
    .col-xl-10 { flex: 0 0 10%; max-width: 10%; }
    .col-xl-11 { flex: 0 0 9.09090909%; max-width: 9.09090909%; }
    .col-xl-12 { flex: 0 0 8.33333333%; max-width: 8.33333333%; }
}

/* ============================================
   MOBİL DÜZENLEMELER
   ============================================ */
@media (max-width: 575px) {
    .renk-variations-list > div {
        padding: 3px;
    }
    
    .renk-img-container {
        max-width: 48px;
        padding: 3px;
    }
    
    .renk-img {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
    
    .out-of-stock-text {
        font-size: 6px;
    }
}

@media (max-width: 400px) {
    .renk-variations-list > div {
        padding: 2px;
    }
    
    .renk-img-container {
        max-width: 40px;
        padding: 2px;
    }
    
    .renk-img {
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
    }
}