/* ============================================================
/* PRODUCT ADDONS PRO - V38.0 (FINAL GOLD STYLE) */   
/* --- YENİ: CONTAINED LOADING (KUTU İÇİ YÜKLEME) --- */
#deus-loading-overlay {
    position: absolute; /* Fixed yerine Absolute: Sadece kutu içinde kalır */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100; 
    display: none; 
    border-radius: 24px;
    backdrop-filter: blur(2px);
}

.deus-loading-wrapper { 
    position: sticky; /* Sticky: Kullanıcı scroll yapsa da görünür kalır */
    top: 50vh; /* Ekranın ortasında asılı kalır */
    transform: translateY(-50%);
    text-align: center; 
    width: 100%;
}

.deus-spin-logo {
    max-width: 80px; margin-bottom: 20px;
    animation: deus-pulse 1.5s infinite ease-in-out;
}
.deus-loading-text { font-size: 16px; font-weight: 600; color: #333; letter-spacing: 0.5px; }

@keyframes deus-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* --- 1. RESET & WRAPPER --- */
#deus-app, #deus-app * { box-sizing: border-box; }
#deus-app {
    position: relative; /* Overlay için gerekli */
    background: #ffffff;
    border: 1px solid #eaecf0;
    padding: 40px;
    border-radius: 24px;
    margin-top: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.05);
    max-width: 100%;
}

/* --- 2. DEMO BUTTON --- */
.deus-demo-wrapper { margin-bottom: 25px; text-align: center; }
.deus-demo-btn { display: inline-flex; align-items: center; justify-content: center; border: 2px dashed #000; padding: 15px 30px; border-radius: 12px; text-decoration: none !important; color: #000 !important; font-size: 16px; font-weight: 700; transition: all 0.3s ease; background: transparent; width: 100%; gap: 10px; }
.deus-demo-btn:hover { background-color: #f9f9f9; border-color: #27ae60; color: #27ae60 !important; transform: translateY(-2px); }
.deus-demo-note { font-size: 12px; color: #888; margin-top: 8px; font-style: italic; margin-bottom: 0; }

/* --- 3. INTRO SECTION --- */
.deus-intro-box { text-align: left; margin-bottom: 25px; padding: 0 5px; }
.deus-intro-title { font-size: 20px; font-weight: 800; color: #101828; margin: 0 0 8px 0; display: flex; align-items: center; gap: 8px; }
.deus-intro-icon { font-size: 20px; }
.deus-intro-desc { font-size: 14px; color: #475467; margin: 0; line-height: 1.5; }

/* --- 4. PROGRESS BAR --- */
.deus-progress-container { background-color: #f2f4f7; border-radius: 100px; height: 8px; width: 100%; margin-bottom: 35px; overflow: visible; position: relative; }
.deus-progress-bar { background: linear-gradient(90deg, #101828, #344054); height: 100%; width: 0%; border-radius: 100px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.deus-progress-bar.final-step { animation: none !important; background-image: none !important; }

/* İkon (Eski Hediye İkonu yerine genel ikon yapısı) */
.deus-gift-icon { position: absolute; top: 50%; right: 0; transform: translate(50%, -50%); width: 32px; height: 32px; background: #fff; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.deus-gift-icon svg { width: 18px; height: 18px; }
.deus-progress-bar.final-step + .deus-gift-icon { opacity: 1; animation: deus-wiggle 2s ease-in-out infinite; }

/* Son Adım Metni */
.deus-final-text { text-align: center; font-size: 13px; color: #667085; font-weight: 500; margin-top: 15px; margin-bottom: 20px; opacity: 0; animation: fadeInUp 0.5s ease-out forwards; animation-delay: 0.5s; font-style: italic; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Konfeti */
.deus-confetti-piece { position: absolute; width: 6px; height: 6px; top: 50%; right: 0; z-index: 5; pointer-events: none; border-radius: 50%; }

/* Animasyonlar */
@keyframes confetti-fall { 0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0) rotate(var(--rot)); opacity: 0; } }
@keyframes deus-wiggle { 0%, 100% { transform: translate(50%, -50%) rotate(0deg); } 25% { transform: translate(50%, -50%) rotate(-10deg); } 50% { transform: translate(50%, -50%) rotate(10deg); } 75% { transform: translate(50%, -50%) rotate(-5deg); } }
@keyframes deus-stripes { from { background-position: 20px 0; } to { background-position: 0 0; } }

/* --- 5. ROZETLER --- */
.deus-top-badges { display: flex; justify-content: space-around; align-items: flex-start; margin-bottom: 25px; margin-top: 40px; text-align: center; padding: 0 10px; }
.dt-badge-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 32%; }
.dt-badge-icon { width: 40px; height: 40px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.dt-badge-icon svg { width: 100%; height: 100%; fill: #333; }
.dt-badge-icon img { max-width: 100%; height: auto; }
.dt-badge-item span { font-size: 13px; color: #333; font-weight: 600; line-height: 1.3; }

/* --- 6. FORM & INPUTS (GÜNCELLENMİŞ: YAN YANA DİZİLİM) --- */
.step-header { margin-bottom: 30px; text-align: left; }
.step-header h4 { margin: 0; font-size: 26px; font-weight: 800; color: #101828; letter-spacing: -0.5px; }
.group-box { margin-bottom: 35px; }
.group-title { font-size: 14px; color: #475467; margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; }

/* --- GÜNCELLENMİŞ GRID YAPISI (Tam Eşitlik İçin) --- */

* GÜÇLENDİRİLMİŞ SEÇİCİLER (Important Gerekmez) */

/* #deus-app ekleyerek seçiciyi "id" seviyesine çıkardık, temanın ezmesi çok zorlaşır */
#deus-app .options-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px; 
    align-items: stretch; 
}

/* Text ve File tipleri için */
#deus-app .options-grid.type-text, 
#deus-app .options-grid.type-file { 
    display: block; 
}

/* Kartın kendisi */
#deus-app .opt-card { 
    position: relative; 
    border: 2px solid #eaecf0; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 15px 10px;
    
    width: 100%; 
    height: 100%;
    
    word-break: break-word;
}
/* Sadece metin içeren kartlar (Resimsiz) daha kompakt olsun */
.opt-card.text-only {
    min-height: auto; /* Sabit yüksekliği kaldırdık */
    height: auto;
    padding: 15px;
}

.opt-card input { display: none !important; }
.opt-card:hover { border-color: #98a2b3; background-color: #f9fafb; transform: translateY(-2px); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05); }

/* Seçili Olduğunda */
.opt-card:has(input:checked) { 
    border-color: #27ae60; 
    background-color: #f0fdf4; /* Hafif yeşil arka plan */
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2); 
    transform: translateY(-2px); 
    z-index: 2; 
}

/* Seçili tik işareti (Opsiyonel: Daha minimal hale getirildi) */
.opt-card:has(input:checked)::after { 
    content: '✓'; 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    background: #27ae60; 
    color: #fff; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    font-size: 12px; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); 
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Resimli Kartlar */
.opt-card.has-image .img-wrap { width: 100%; height: 70px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.opt-card.has-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Bilgi Alanı */
.opt-info { display: flex; flex-direction: column; gap: 2px; }
.opt-info span { font-size: 14px; font-weight: 600; color: #344054; line-height: 1.3; }
.price-badge { font-size: 11px; font-weight: 700; color: #27ae60; background: rgba(39, 174, 96, 0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.text-opt { margin-bottom: 15px; width: 100%; }
.text-input { width: 100%; padding: 14px 16px; border: 1px solid #d0d5dd; border-radius: 10px; font-size: 15px; transition: all 0.2s; background: #fff; color: #101828; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.text-input:focus { border-color: #27ae60; outline: none; box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1); }

.file-opt { margin-bottom: 20px; width: 100%; }
.file-drop-zone { position: relative; width: 100%; padding: 24px; background-color: #fff; border: 2px dashed #d0d5dd; border-radius: 12px; text-align: center; cursor: pointer; transition: 0.2s; }
.file-drop-zone:hover { border-color: #27ae60; background-color: #f6fdf9; }
.file-drop-zone input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10; }
.upload-placeholder svg { width: 40px; height: 40px; fill: #98a2b3; margin-bottom: 8px; transition:0.3s; }
.file-drop-zone:hover .upload-placeholder svg { fill: #27ae60; transform: translateY(-3px); }
.upload-text { font-size: 14px; font-weight: 600; color: #344054; }
.upload-subtext { font-size: 12px; color: #667085; }
.file-preview-area { display: none; background: #fff; border: 1px solid #eaecf0; border-radius: 100px; padding: 8px 12px; margin-top: 0; position: relative; z-index: 20; box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.03); }
.file-preview-inner { display: flex; align-items: center; gap: 12px; }
.preview-thumb { width: 40px !important; height: 40px !important; object-fit: cover; border-radius: 6px; border: 1px solid #eaecf0; flex-shrink: 0; }
.file-details { flex-grow: 1; overflow: hidden; text-align: left; }
.file-name-txt { font-size: 13px; font-weight: 600; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.change-file-btn { font-size: 11px; color: #b42318; font-weight: 600; cursor: pointer; }
.remove-file-btn:hover { text-decoration: underline; color: #b91c1c; } /* YENİ */

/* Tooltip */
.tooltip-wrap { display: inline-block; margin-left: 6px; position: relative; vertical-align: middle; z-index: 50; }
.tooltip-icon { width: 18px; height: 18px; background: #eaecf0; color: #667085; border-radius: 50%; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; cursor: help; }
.tooltip-box { position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%); width: 220px; background: #101828; color: #fff; padding: 12px; border-radius: 8px; font-size: 12px; visibility: hidden; opacity: 0; transition: 0.2s; pointer-events: none; z-index: 99; text-align: center; }
.tooltip-wrap:hover .tooltip-box { visibility: visible; opacity: 1; }
.tooltip-box img { max-width: 100%; border-radius: 4px; margin-bottom: 8px; }
#deus-missing-alert { margin-top: 20px; padding: 16px; background: #fef3f2; color: #b42318; border: 1px solid #fecdca; border-radius: 10px; font-size: 14px; display: none; text-align: center; font-weight: 500; }

/* ============================================================
   7. ÖZET TABLOSU (PROFESYONEL FİŞ GÖRÜNÜMÜ)
   ============================================================ */
.deus-summary-box { 
    background: #ffffff; 
    border: 1px solid #eaecf0; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 12px 30px -10px rgba(0,0,0,0.08); /* Daha derin gölge */
    margin-bottom: 30px;
}

/* 1. Başlık Alanı (Gri Arkaplan) */
.summary-header { 
    background: #f9fafb; 
    padding: 18px 24px; 
    border-bottom: 1px solid #eaecf0; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.summary-header h5 { 
    margin: 0; 
    font-size: 15px; 
    color: #101828; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Başlığın yanına ikon eklemiş gibi */
.summary-header h5::before {
   
    font-size: 16px;
}

/* 2. Liste Yapısı */
.summary-table { 
    display: block; 
    width: 100%; 
    padding: 0;
    margin: 0;
}
.summary-table tbody { display: block; width: 100%; }

.summary-table tr {
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* Dikey ortalama */
    padding: 12px 24px; /* Sağdan soldan boşluk */
    border-bottom: 1px solid #f2f4f7; /* Çok hafif çizgi */
    transition: background 0.2s;
}

/* Zebra Efekti: Çizgileri kaldırdık, bir dolu bir boş renk yaptık */
.summary-table tr:nth-child(even) { background-color: #fafafa; } 
.summary-table tr:hover { background-color: #f4f6f8; } /* Mouse üzerine gelince */

.summary-table td { padding: 0 !important; border: none !important; display: block; }

/* Sol Taraf: Özellik Adı (Label) */
.summary-table td:first-child { 
    width: 40%; 
    font-size: 13px; 
    font-weight: 500; 
    color: #667085; /* Daha soft gri */
}

/* Sağ Taraf: Değer (Value) */
.summary-table td:last-child { 
    width: 60%; 
    text-align: right; 
    font-size: 14px; 
    font-weight: 600; 
    color: #1d2939; /* Koyu antrasit */
    word-break: break-word;
}

/* Dosya linki varsa rengini düzelt */
.summary-table td:last-child a { color: #2271b1; text-decoration: none; }

/* 3. Toplam Alanı (En Alt Kısım) */
.summary-total { 
    background: #f0fdf4; /* Hafif Yeşil Arkaplan */
    padding: 20px 24px; 
    border-top: 1px solid #dcfce7; 
    display: flex; 
    flex-direction: column;
    align-items: flex-end; 
    justify-content: center;
}

/* Ara toplam ve Base price yazıları */
.summary-total div {
    font-size: 13px !important;
    color: #475467 !important;
    margin-bottom: 2px;
}

/* Ana Toplam Fiyatı */
.summary-total div:last-child {
    font-size: 28px !important; 
    font-weight: 800 !important; 
    color: #16b364 !important; /* Modern yeşil */
    letter-spacing: -1px;
    margin-top: 5px;
}
/* ============================================================ */

/* --- 8. FOOTER & BUTONLAR --- */
.step-footer { margin-top: 40px; padding-top: 25px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; gap: 15px; }
.nav-btn { padding: 14px 28px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.next-btn { background: #101828; color: #fff; }
.next-btn:hover { background: #1d2939; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1); }
.prev-btn { background: #fff; color: #344054; border-color: #d0d5dd; }
.prev-btn:hover { background: #f9fafb; border-color: #98a2b3; }
.add-cart-btn { background: #344054; color: #fff; }
.buy-now-btn { background: #27ae60; color: #fff; }
.buy-now-btn:hover { background: #219150; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2); }

/* --- 9. AKORDİYON --- */
.deus-accordion-wrapper { margin-top: 40px; border-top: 1px solid #eee; padding-top: 20px; font-family: inherit; }
.deus-acc-item { border-bottom: 1px solid #f0f0f0; }
.deus-acc-header { padding: 15px 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background 0.2s; }
.deus-acc-header:hover { background: #fafafa; }
.deus-acc-title { font-weight: 600; color: #333; font-size: 15px; }
.deus-acc-icon { font-size: 18px; color: #777; font-weight: 300; transition: transform 0.3s; }
.deus-acc-item.active .deus-acc-icon { transform: rotate(45deg); }
.deus-acc-content { display: none; padding: 10px 10px 20px 10px; color: #555; font-size: 14px; line-height: 1.6; }
.action-btn-group { display: flex; gap: 15px; margin-left: auto; }

/* --- 10. MOBİL DÜZELTMELER --- */
@media only screen and (max-width: 480px) {
    .deus-top-badges { gap: 5px; }
    .dt-badge-item span { font-size: 11px; }
    .dt-badge-icon { width: 32px; height: 32px; }
    .deus-demo-btn { font-size: 14px; padding: 12px 20px; }
    #deus-app { padding: 20px 15px !important; margin-top: 10px; border-radius: 16px; }
    .step-footer { flex-wrap: wrap; gap: 10px; margin-top: 25px; padding-top: 15px; }
    .prev-btn { padding: 10px 15px !important; font-size: 13px !important; width: auto !important; flex-grow: 0; }
    .action-btn-group { display: flex; gap: 8px !important; flex: 1; margin-left: 0 !important; width: 100%; }
    .next-btn { width: 100%; margin-left: 0 !important; padding: 12px !important; }
    .add-cart-btn, .buy-now-btn { flex: 1; padding: 10px 5px !important; font-size: 11px !important; white-space: nowrap; border-radius: 8px !important; height: 44px; display: flex; align-items: center; justify-content: center; }
    .step-footer:has(.add-cart-btn) { flex-direction: column-reverse; }
    .step-footer:has(.add-cart-btn) .prev-btn { width: 100% !important; background: transparent; border: none; color: #999; text-decoration: underline; padding: 5px !important; }
}
/* Alt Bilgi & Anlık Tutar */
.footer-actions { display: flex; align-items: center; gap: 15px; }
.running-total-box { text-align: right; line-height: 1.2; }
@media only screen and (max-width: 480px) {
    .step-footer { flex-direction: column-reverse; gap: 15px; }
    .footer-actions { width: 100%; justify-content: space-between; }
}

/* --- 11. QUOTE MODE (TEKLİF FORMU) STİLİ --- */
.deus-quote-form {
    background: #fcfcfd; 
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.03), 0 12px 16px -4px rgba(16, 24, 40, 0.08); 
    position: relative;
    overflow: hidden;
}

.deus-quote-form::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 4px; 
    height: 100%;
    background: #2271b1; 
}

.deus-quote-form h5 {
    font-size: 18px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f2f4f7;
    letter-spacing: -0.5px;
}

.deus-quote-form label {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deus-quote-form .text-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
    background-color: #fff;
}

.deus-quote-form textarea.text-input {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* --- 12. SUCCESS MESSAGE STYLE --- */
.deus-success-msg {
    color: #27ae60;
    font-size: 18px;
    font-weight: 800;
    margin-top: 10px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #dcfce7;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    animation: fadeInUp 0.5s ease;
}

@media only screen and (max-width: 480px) {
    .deus-quote-form {
        padding: 20px 15px;
    }
}

/* --- YENİ EKLENEN SELECT STİLİ --- */
.deus-select-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207.5L10%2012.5L15%207.5%22%20stroke%3D%22%23667085%22%20stroke-width%3D%221.66667%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") no-repeat right 16px center;
    appearance: none; 
    -webkit-appearance: none;
    font-size: 15px;
    color: #101828;
    cursor: pointer;
}
.deus-select-input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
    outline: none;
}

/* --- 13. VARIATION SWATCHES (YENİ) --- */
.deus-swatch-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }

/* Gizli Radio Button Yapısı */
.deus-swatch-item { position: relative; cursor: pointer; user-select: none; margin: 0; }
.deus-swatch-item input { position: absolute; opacity: 0; width: 0; height: 0; cursor: pointer; }

/* TİP 1: LABEL / BUTON (Beden vb.) */
.swatch-label-box {
    display: inline-block; padding: 10px 18px;
    border: 1px solid #d0d5dd; background: #fff; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #344054;
    transition: all 0.2s ease; min-width: 40px; text-align: center;
}
.deus-swatch-item:hover .swatch-label-box { border-color: #98a2b3; background: #f9fafb; }
.deus-swatch-item input:checked + .swatch-label-box {
    border-color: #27ae60; background: #f0fdf4; color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* TİP 2: RENK (Yuvarlak) */
.swatch-color-circle {
    display: block; width: 38px; height: 38px;
    border-radius: 50%; border: 2px solid #eaecf0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease; position: relative;
}
.deus-swatch-item:hover .swatch-color-circle { transform: scale(1.1); }
.deus-swatch-item input:checked + .swatch-color-circle {
    border-color: #27ae60; transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}
/* Renk seçilince içine tik koy */
.deus-swatch-item input:checked + .swatch-color-circle::after {
    content: '✓'; color: #fff; font-size: 14px; font-weight: bold;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
/* TİP 3: RESİM (Image Swatch) */
.swatch-image-box {
    display: block; 
    width: 60px; 
    height: 60px;
    border: 2px solid #eaecf0;
    border-radius: 8px; /* Hafif oval köşeler */
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.swatch-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya sığdır */
}

/* Hover */
.deus-swatch-item:hover .swatch-image-box { 
    border-color: #98a2b3; 
    transform: translateY(-2px);
}

/* Seçili Olduğunda */
.deus-swatch-item input:checked + .swatch-image-box {
    border-color: #27ae60; 
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3);
}

/* Seçili Tik İşareti (Resmin üzerinde) */
.deus-swatch-item input:checked + .swatch-image-box::after {
    content: '✓'; 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%);
    color: #fff; 
    background: rgba(39, 174, 96, 0.9);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Resim Swatch kapsayıcısını biraz daha genişletelim */
.deus-swatch-item {
    text-align: center; /* Altındaki yazıyı ortalamak için */
}
/* Başlık ve yanındaki yeşil yazının mobilde düzgün durması için */
.group-title {
    display: inline-block; /* Yan yana akışa izin ver */
    margin-right: 5px;
}
.live-val-span {
    white-space: nowrap; /* Yeşil yazının kendi içinde kırılmasını engelle */
}
/* --- YEŞİL YAZI (CANLI ÖZET) DÜZELTMESİ --- */
.live-val-span {
    font-weight: 600 !important; 
    color: #27ae60 !important;
    font-size: 0.95em !important;
    text-transform: none !important; /* Büyük harfe zorlamayı iptal eder */
    display: inline-block;
    margin-left: 5px;
}
/* ==========================================
   SVG ICON STYLE (SMOOTH & OPTIMIZED & BIGGER)
   ========================================== */
.deus-svg-grid {
    display: flex;
    gap: 15px; /* Kutular arası boşluk arttı */
    flex-wrap: wrap;
}

.svg-item .swatch-image-box {
    /* 1. Kutuları Büyüttük ve Rahatlattık */
    width: 85px;  /* 70px'ten 85px'e çıktı */
    height: 85px; 
    padding: 12px; /* İçeriden boşluk verdik ki ikon kenara yapışıp kesilmesin */
    
    border-radius: 12px;
    background: #fff; /* Arkaplanı net beyaz yaptık */
    border: 2px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animasyonlar */
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.2s ease, 
                background-color 0.2s ease, 
                box-shadow 0.2s ease;
                
    will-change: transform; 
    transform: translateZ(0); 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 2. İkon Boyutunu Düzeltme */
.svg-item svg, 
.svg-item img { 
    fill: #667085; 
    stroke: #667085;
    transition: fill 0.2s ease, stroke 0.2s ease;
    
    /* BURASI DEĞİŞTİ: %60 yerine kutuyu doldursun dedik (padding koruyor zaten) */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    overflow: visible; /* Kesilmeyi önlemek için taşmaya izin ver (padding var zaten) */
}

/* Hover */
.svg-item:hover .swatch-image-box {
    border-color: #98a2b3;
    transform: translateY(-3px);
}

.svg-item:hover svg {
    fill: #344054;
}

/* Seçili Olduğunda */
.svg-item input:checked + .swatch-image-box {
    background: #f0fdf4;
    border-color: #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    transform: translateY(-3px);
}

/* Seçilince İkon Rengi */
.svg-item input:checked + .swatch-image-box svg,
.svg-item input:checked + .swatch-image-box svg * {
    fill: #27ae60 !important;
    stroke: #27ae60 !important;
}

/* Tik işaretini gizle (Zaten yeşil oluyor) */
.svg-item input:checked + .swatch-image-box::after {
    display: none; 
}

/* Label (İsim) Kısmı */
.svg-item .svg-label-wrap {
    font-size: 12px; /* Yazıyı bir tık büyüttük */
    margin-top: 8px; 
    font-weight: 600; 
    color: #475467; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: color 0.2s ease;
}

.svg-item input:checked ~ .svg-label-wrap {
    color: #27ae60;
}
/* GÜÇLENDİRİLMİŞ GRID AYARI (Kesin Çözüm) */
#deus-app .options-grid { 
    display: grid;
    /* 130px yerine 100px yaptık, böylece daha dar alanlara da sığar ve yan yana durur */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px; 
    align-items: stretch;
}

/* KART YAPISI */
#deus-app .opt-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Padding taşmasını engeller */
}
/* =========================================
   VARYASYON GİZLEME STİLLERİ (DÜZELTİLDİ)
   ========================================= */

/* 1. Radio, Checkbox ve Swatch (Renk/Resim kutuları) için gizleme */
/* .opt-card veya label etiketine .deus-disabled sınıfı eklendiğinde tamamen gizlenir. */
.deus-disabled {
    display: none !important;
}

/* 2. Dropdown (Select) menü içindeki seçenekler için gizleme */
/* <option> etiketi 'disabled' olduğunda listeden kaybolur. */
option:disabled {
    display: none !important;
}
/* ============================================================
   PROFESYONEL GRID SİSTEMİ (Admin Ayarlı)
   ============================================================ */

/* "Yan Yana (2)" seçilen gruplar için */
#deus-app .options-grid.deus-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Ekranı tam ikiye böl */
    gap: 15px; /* Arada boşluk */
    align-items: start;
}

/* Text Kutularının alt marginini sıfırla ki hizalı dursun */
#deus-app .options-grid.deus-grid-2 .text-opt {
    margin-bottom: 0;
    width: 100%;
}

/* MOBİL UYUMLULUK: Mobilde sıkışmaması için tekrar tek sütuna düşür */
@media only screen and (max-width: 480px) {
    #deus-app .options-grid.deus-grid-2 {
        grid-template-columns: 1fr !important; /* Tek sütun */
        gap: 10px;
    }
}