/**
 * Merkez Ambalaj - Teklif Sepeti Stilleri
 */

/* ==================== SEPET BUTONU (Header) ==================== */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.cart-btn i {
    font-size: 18px;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

/* ==================== FLOATING SEPET BUTONU ==================== */
.cart-float-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 9997;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 26, 110, 0.35);
    transition: all 0.3s ease;
}

.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(46, 26, 110, 0.45);
}

.cart-float-btn .cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
}

/* ==================== SEPET SİDEBAR ==================== */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.cart-sidebar-close:hover {
    color: #fff;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-sidebar-footer {
    padding: 16px 20px;
    background: #f8f9fc;
    border-top: 1px solid var(--border);
}

/* ==================== SEPET BOŞ ==================== */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.cart-empty p {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.cart-empty small {
    font-size: 14px;
}

/* ==================== SEPET ÜRÜNLERİ ==================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.cart-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-qty .qty-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-qty .qty-btn:hover {
    background: var(--secondary);
    color: #fff;
}

.cart-item-qty input {
    width: 42px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid #ffebee;
    border-radius: 8px;
    color: #e74c3c;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* ==================== TEKLİF GÖNDER BUTONU ==================== */
.cart-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cart-submit-btn:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.cart-submit-btn i {
    font-size: 20px;
}

.cart-clear-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.cart-clear-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ==================== SEPETE EKLE BUTONU ==================== */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-add-cart i {
    font-size: 15px;
}

/* ==================== BİLDİRİM ==================== */
.quote-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10002;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.quote-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quote-notification.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.quote-notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.quote-notification i {
    font-size: 18px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-float-btn {
        bottom: 85px;
        right: 14px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cart-sidebar-header {
        padding: 16px;
    }

    .cart-sidebar-header h3 {
        font-size: 16px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-qty .qty-btn {
        width: 28px;
        height: 28px;
    }

    .cart-item-qty input {
        width: 36px;
        height: 28px;
        font-size: 13px;
    }

    .quote-notification {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(100px);
    }

    .quote-notification.show {
        transform: translateX(0) translateY(0);
    }
}
