/* ==========================================================================
   CART.CSS — Sepet sayfası
   ========================================================================== */

/* Header Basitleştirilmiş */
header { background: #fff; padding: 0px 0; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.logo { font-weight: 800; font-size: 1.5rem; color: #15284b; text-decoration: none; }

/* Sepet Düzeni */
.cart-layout { display: flex; gap: 30px; align-items: flex-start; }

/* Sol Taraf (Ürünler) */
.cart-left { flex: 1; }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-title { font-size: 1.5rem; font-weight: 700; color: #111; }
.btn-clear { color: #ef4444; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 500; transition: 0.2s; }
.btn-clear:hover { color: #dc2626; }

/* Ürün Kartı Tasarımı (Yumuşak) */
.cart-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #f3f4f6; }
.cart-img { width: 90px; height: 90px; object-fit: contain; border: 1px solid #eee; border-radius: 8px; padding: 5px; }
.cart-info { flex: 1; }
.cart-name { font-weight: 600; font-size: 1.05rem; color: #1f2937; margin-bottom: 5px; }
.cart-meta { font-size: 0.85rem; color: #6b7280; }

/* Adet Seçici (Hap - Yan Yana Düzenlenmiş Hali) */
.qty-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 5px 10px;
    gap: 10px;
    width: fit-content;
    min-width: 110px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

/* Fiyatlar */
.cart-prices { text-align: right; min-width: 120px; }
.price-total { font-size: 1.2rem; font-weight: 700; color: #15284b; }
.price-unit { font-size: 0.85rem; color: #9ca3af; }

/* Sil Butonu */
.btn-trash { width: 36px; height: 36px; border-radius: 50%; background: #fee2e2; color: #ef4444; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 15px; transition: 0.2s; }
.btn-trash:hover { background: #ef4444; color: white; }

/* Sağ Taraf (Özet) */
.cart-right { width: 380px; position: sticky; top: 20px; align-self: flex-start; }
.summary-box { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.summary-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; border-bottom: 1px solid #f3f4f6; padding-bottom: 15px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: #4b5563; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid #f3f4f6; padding-top: 15px; margin-top: 15px; font-weight: 800; font-size: 1.3rem; color: #111; }
.summary-row.free { color: #00c753; font-weight: 600; }
.summary-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px dashed #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Sepet sayfası checkout butonu (base.css drawer stilini ezar) */
.btn-checkout { width: 100%; background: #00c753; color: white; padding: 16px; border: none; border-radius: 10px; font-weight: 700; font-size: 1.1rem; cursor: pointer; margin-top: 20px; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-checkout:hover { background: #00a644; transform: translateY(-2px); }

/* =========================================
   ULTRA PREMIUM BOŞ SEPET TASARIMI
   ========================================= */

/* 1. Sayfa Zemini (Daha temiz bir grid desen) */
.cart-page-wrapper {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
    overflow: hidden;
}

/* Sepet Doluysa Normal Akış */
.cart-page-wrapper:has(#cart-content[style*="block"]),
.cart-page-wrapper:has(#cart-content:not([style*="none"])) {
    display: block;
    min-height: auto;
    background: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Cam Kart (Glassmorphism) */
.empty-state-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 50px -10px rgba(11, 61, 122, 0.15),
        0 0 0 1px rgba(11, 61, 122, 0.05);
    border-radius: 30px;
    padding: 60px 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEntrance {
    to { transform: translateY(0); opacity: 1; }
}

/* 4. 3D İllüstrasyon Alanı */
.illustration-3d-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dönen Çember */
.floating-circle {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(11, 61, 122, 0.1), rgba(246, 192, 27, 0.1));
    border-radius: 50%;
    animation: spinCircle 20s linear infinite;
    border: 1px dashed rgba(11, 61, 122, 0.2);
}

@keyframes spinCircle { to { transform: rotate(360deg); } }

/* Ana İkon (Sepet) */
.icon-layer {
    font-size: 4rem;
    color: #0b3d7a;
    background: #fff;
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 35px rgba(11, 61, 122, 0.2);
    position: relative;
    z-index: 2;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Yüzen Parçacıklar */
.particle {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #f6c01b;
    font-size: 1.2rem;
    z-index: 3;
    animation: particleFloat 5s ease-in-out infinite;
}
.p-1 { top: 0; right: 0; animation-delay: 0s; color: #0b3d7a; }
.p-2 { bottom: 10px; left: 0; animation-delay: 1.5s; font-size: 1rem; width: 35px; height: 35px; }
.p-3 { top: 20px; left: -10px; animation-delay: 2.5s; font-size: 0.9rem; color: #2ecc71; width: 30px; height: 30px; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -15px); }
}

/* 5. Metinler */
.empty-title {
    font-size: 2rem;
    font-weight: 800;
    color: #15284b;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.empty-desc {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}
.empty-desc strong { color: #0b3d7a; }

/* 6. Buton (Shine Efektli) */
.btn-shop-glitch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #0b3d7a;
    color: white;
    padding: 18px 50px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 25px rgba(11, 61, 122, 0.3);
}

.btn-shop-glitch:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 61, 122, 0.4);
    background: #092e5a;
}

.btn-icon {
    transition: 0.3s;
}
.btn-shop-glitch:hover .btn-icon {
    transform: translateX(5px);
}

/* Buton Işıltısı */
.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineMove 3s infinite;
}

@keyframes shineMove {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* 7. Alt Bilgi Rozetleri */
.trust-badges {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-item .icon-box {
    width: 32px; height: 32px;
    background: rgba(11, 61, 122, 0.08);
    color: #0b3d7a;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

.badge-divider {
    width: 1px; height: 20px;
    background: #e2e8f0;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Mobil Uyum — Boş Sepet */
@media (max-width: 600px) {
    .empty-state-card { padding: 40px 20px; }
    .empty-title { font-size: 1.6rem; }
    .btn-shop-glitch { width: 100%; }
    .trust-badges { flex-direction: column; gap: 15px; }
    .badge-divider { display: none; }
}

/* Sepet Layout Mobil Düzeltmeleri */
@media (max-width: 992px) {
    .cart-layout {
        flex-direction: column !important;
    }
    .cart-left {
        width: 100% !important;
    }
    .cart-right {
        width: 100% !important;
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    .cart-card {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        position: relative;
        padding-top: 45px;
    }
    .cart-img {
        width: 100px !important;
        height: 100px !important;
    }
    .cart-info {
        width: 100%;
    }
    .cart-prices {
        width: 100%;
        text-align: center !important;
        min-width: auto !important;
    }
    .qty-wrapper {
        justify-content: center;
        margin: 10px auto;
    }
    .btn-trash {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin-left: 0 !important;
    }
    .summary-box {
        padding: 20px;
    }
    .summary-row.total {
        font-size: 1.1rem;
    }
}
