.bay-varyasyon-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.bay-gorsel-secici {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
}

.bay-secenek {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    width: 85px; /* Bilgisayardaki ideal genişlik */
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bay-secenek img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 6px;
    object-fit: cover;
}

.bay-secenek-isim {
    font-size: 13px;
    color: #334155;
    line-height: 1.2;
    font-weight: 500;
}

.bay-secenek:hover {
    border-color: #cbd5e1;
}

.bay-secenek.secili {
    border: 2px solid #2dd4bf; /* Temandaki sepete ekle butonuyla uyumlu turkuaz/yeşil renk */
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2);
}

/* ===== TELEFON (MOBİL) İÇİN ÖZEL AYARLAR ===== */
@media screen and (max-width: 768px) {
    .bay-gorsel-secici {
        gap: 8px; 
    }
    .bay-secenek {
        /* Telefonda 3 kutu yan yana sığacak şekilde genişliği otomatik ayarlar */
        width: calc(33.333% - 8px); 
        min-width: 70px;
        padding: 4px;
    }
    .bay-secenek-isim {
        font-size: 11px; /* Telefonda yazılar bir tık küçülür, taşmayı önler */
    }
}

/* Başlığı üste, kutuları alta almak için gerekli ayarlar */
table.variations tr {
    display: block !important;
    margin-bottom: 15px !important;
}

table.variations td.label {
    display: block !important;
    text-align: left !important;
    padding-bottom: 8px !important;
    padding-right: 0 !important;
    width: 100% !important;
}

table.variations td.value {
    display: block !important;
    width: 100% !important;
}