/* --- KAPSAYICI (CONTAINER) GÜVENLİĞİ --- */
.mcu-upsell-container {
    background: #ffffff; border-radius: 12px; padding: 20px; margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); width: 100% !important; font-family: inherit; border: 1px solid #f0f0f0;
    box-sizing: border-box !important;
    display: block !important; 
    clear: both !important;
    position: relative;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; 
}

.mcu-upsell-container * {
    box-sizing: border-box !important;
}

/* --- BAŞLIK VE METİNLER --- */
.mcu-upsell-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mcu-upsell-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #333; line-height: 1.3; word-break: keep-all; }
.mcu-subtitle { font-size: 0.8rem; color: #666; margin: 4px 0 12px 0; display: block !important; }

/* Okların (İleri/Geri) Tasarımı */
.mcu-nav { display: flex; gap: 6px; flex-shrink: 0; }
.mcu-nav span {
    background: #f0f0f0; color: #333; width: 26px; height: 26px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; font-weight: bold; transition: all 0.3s ease; user-select: none;
}
.mcu-nav span:hover { background: #FF6000; color: #fff; transform: scale(1.1); }

/* --- CAROUSEL VE SLIDE GÖRÜNÜRLÜK ZORLAMASI --- */
.mcu-carousel {
    display: block !important;
    width: 100% !important;
    min-height: 90px !important; 
    visibility: visible !important;
    height: auto !important;
    clear: both !important;
}

.mcu-slide {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    position: relative !important;
}

/* --- ÜRÜN KARTI --- */
.mcu-product-card {
    display: flex !important; align-items: center; gap: 12px;
    background: #fff; padding: 12px; border-radius: 8px; border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.mcu-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.mcu-img { flex-shrink: 0; display: block !important; }
.mcu-img img { border-radius: 6px; width: 70px !important; height: 70px !important; object-fit: cover; border: 1px solid #f5f5f5; display: block !important; max-width: 100% !important; }
.mcu-details { display: flex; flex-direction: column; justify-content: center; width: 100%; min-width: 0; }

/* Başlığı 2 satır ile sınırlandırıp boyutunu küçülttük */
.mcu-title { 
    font-size: 0.85rem; 
    font-weight: 600; 
    line-height: 1.3; 
    margin-bottom: 8px; 
    color: #222; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- FİYAT VE BUTON ALANI HİZALAMASI --- */
.mcu-bottom-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    gap: 8px; 
    flex-wrap: nowrap; /* Asla alt satıra inmesin */ 
}

.mcu-price-col { 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 1; /* Gerektiğinde biraz daralabilir */
    min-width: 0; 
}

.mcu-regular-price { font-size: 0.75rem; color: #999; display: flex; align-items: center; gap: 4px; white-space: nowrap !important; }
.mcu-regular-price del { white-space: nowrap !important; display: inline-block !important; }
.mcu-discount-badge { color: #d32f2f; font-weight: 700; background: #ffebee; padding: 2px 4px; border-radius: 4px; font-size: 0.7rem; white-space: nowrap !important; display: inline-block !important; line-height: 1.2; }
.mcu-final-price { font-size: 1rem; font-weight: 700; color: #111; margin-top: 1px; display: block !important; white-space: nowrap !important; }

/* --- BUTONLAR --- */
html body .woocommerce .mcu-upsell-container button.mcu-add-btn,
html body .mcu-upsell-container button.mcu-add-btn {
    padding: 6px 12px !important; border-radius: 30px !important;
    font-size: 0.75rem !important; font-weight: 700 !important; cursor: pointer !important;
    transition: all 0.3s ease !important; line-height: 1.2 !important;
    box-shadow: 0 3px 8px rgba(255, 96, 0, 0.2) !important;
    white-space: nowrap !important; 
    flex-shrink: 0 !important;
    display: inline-block !important;
    text-align: center !important;
    min-width: auto !important; 
}
html body .woocommerce .mcu-upsell-container button.mcu-add-btn:hover,
html body .mcu-upsell-container button.mcu-add-btn:hover {
    transform: translateY(-2px) !important; box-shadow: 0 5px 12px rgba(255, 96, 0, 0.3) !important; opacity: 0.9 !important;
}

.mcu-dots { display: flex; justify-content: center; gap: 6px; margin-top: 15px; }
.mcu-dots span { width: 7px; height: 7px; background: #ddd; border-radius: 50%; cursor: pointer; transition: 0.3s; display: block !important; }
.mcu-dots span.active { background: #FF6000; transform: scale(1.3); }

/* --- MOBİL UYUM (RESPONSIVE) --- */
@media screen and (max-width: 600px) {
    .mcu-upsell-container { padding: 16px !important; border-radius: 10px !important; margin-bottom: 25px !important; }
    .mcu-upsell-header h4 { font-size: 0.95rem !important; }
    .mcu-subtitle { font-size: 0.75rem !important; margin: 4px 0 10px 0 !important; }
    .mcu-nav span { width: 30px !important; height: 30px !important; font-size: 14px !important; }
    
    .mcu-product-card { flex-direction: row !important; padding: 10px !important; gap: 10px !important; min-height: 80px !important; }
    .mcu-img img { width: 65px !important; height: 65px !important; }
    .mcu-title { font-size: 0.85rem !important; margin-bottom: 6px !important; }
    .mcu-bottom-row { flex-direction: row !important; flex-wrap: nowrap !important; }
    .mcu-add-btn { padding: 6px 12px !important; font-size: 0.75rem !important; }
}

@media screen and (max-width: 380px) {
    .mcu-img img { width: 60px !important; height: 60px !important; }
    .mcu-product-card { flex-direction: column !important; align-items: stretch !important; text-align: center !important; }
    .mcu-bottom-row { flex-direction: column !important; align-items: center !important; gap: 8px !important; }
    .mcu-price-col { align-items: center !important; }
    .mcu-add-btn { width: 100% !important; text-align: center !important; }
}