/**
 * www.dizelmotorparca.com - Teklif Sepeti (RFQ) Arayüz Stilleri
 */

/* --- Teklif Sepeti Menü / Yüzen Sayacı --- */
.dmp-cart-counter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f2a900; /* Cummins Endüstriyel Sarısı */
    border: 1px solid rgba(242, 169, 0, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9999;
}

.dmp-cart-counter-btn:hover {
    background: #f2a900;
    color: #111;
    border-color: #f2a900;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
}

.dmp-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e50914; /* Kırmızı bildirim rengi */
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid #111;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dmp-cart-badge.has-items {
    opacity: 1;
    transform: scale(1);
}

/* --- Teklif Sepeti Sayfa Arayüzü --- */
.dmp-quote-container {
    margin: 20px 0;
    font-family: inherit;
}

.dmp-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.dmp-cart-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.dmp-cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.dmp-cart-empty p {
    color: #aaa;
    margin-bottom: 20px;
}

/* --- Tablo Tasarımı --- */
.dmp-cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dmp-cart-table-wrapper {
    overflow-x: auto;
    background: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dmp-cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dmp-cart-table th, 
.dmp-cart-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.dmp-cart-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dmp-cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dmp-cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
}

.dmp-cart-item-title {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.dmp-cart-item-title:hover {
    color: #f2a900;
}

.dmp-cart-oem-badge {
    background: rgba(242, 169, 0, 0.1);
    color: #f2a900;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
    border: 1px solid rgba(242, 169, 0, 0.2);
}

/* --- Miktar Denetleyicisi --- */
.dmp-qty-controller {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 36px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.qty-input {
    width: 55px !important;
    height: 36px !important;
    text-align: center !important;
    background: #16171a !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    outline: none !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Silme Butonu --- */
.dmp-btn-remove {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 6px;
}

.dmp-btn-remove:hover {
    color: #fff;
    background: #e50914;
    border-color: #e50914;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.25);
}

/* --- Genel Butonlar --- */
.dmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.dmp-btn-primary {
    background: #f2a900;
    color: #111;
}

.dmp-btn-primary:hover {
    background: #d49300;
    transform: translateY(-1px);
}

.dmp-btn-whatsapp {
    background: #25D366; /* WhatsApp Yeşili */
    color: #fff;
}

.dmp-btn-whatsapp:hover {
    background: #1ebd5b;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
}

.dmp-cart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Arapça RTL Aynalama */
html[dir="rtl"] .dmp-cart-table {
    text-align: right;
}
html[dir="rtl"] .dmp-cart-actions {
    justify-content: flex-start;
}
html[dir="rtl"] .dmp-btn-whatsapp svg {
    margin-right: 0 !important;
    margin-left: 8px;
}

/* --- MOBİL UYUMLU KART TASARIMI (CARD-BASED MOBILE CART) --- */
@media (max-width: 768px) {
    /* Tablo başlığını gizle */
    .dmp-cart-table thead {
        display: none;
    }
    
    /* Her satırı bağımsız bir kart haline getir */
    .dmp-cart-table, 
    .dmp-cart-table tbody, 
    .dmp-cart-table tr, 
    .dmp-cart-table td {
        display: block;
        width: 100%;
    }
    
    .dmp-cart-table tr {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Hücreler arası çizgileri temizle ve esnek hizala */
    .dmp-cart-table td {
        padding: 8px 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Ürün Bilgisi Bölümü */
    .dmp-cart-table td:first-child {
        display: block;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dmp-cart-item-info {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .dmp-cart-item-thumb {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .dmp-cart-item-title {
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 700;
    }
    
    /* OEM No Bölümü */
    .dmp-cart-table td:nth-child(2)::before {
        content: 'OEM No:';
        color: #aaa;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Adet Bölümü */
    .dmp-cart-table td:nth-child(3) {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 12px;
    }
    
    .dmp-cart-table td:nth-child(3)::before {
        content: 'Adet (Miktar):';
        color: #aaa;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    /* Miktar denetleyicisi butonları */
    .dmp-qty-controller {
        background: rgba(255, 255, 255, 0.03);
    }
    
    /* Silme Butonu Bölümü */
    .dmp-cart-table td:last-child {
        justify-content: center;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dmp-btn-remove {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Alt İşlemler Alanı */
    .dmp-cart-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .dmp-btn-whatsapp {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
}
