/* ====================================================================
   SEPET MASAÜSTÜ VE GENEL ARAYÜZ STİLLERİ (DESKTOP & GLOBAL)
   Masaüstü yapısı %100 birebir korundu.
==================================================================== */

/* ==========================================
   SEPET BOŞ EKRANI
========================================== */
.empty-cart-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 6rem;
    color: #94a3b8;
    margin-bottom: 20px;
    display: inline-block;
}

.empty-cart-box h2 {
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.empty-cart-box p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-continue-shopping {
    display: inline-block;
    background: var(--flora-green-primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-continue-shopping:hover {
    background: var(--flora-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* ==========================================
   SEPET DOLU - GRID SİSTEMİ
========================================== */
.cart-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.cart-grid {
    display: grid;
    grid-template-columns: 6.5fr 3.5fr;
    gap: 40px;
    align-items: start;
}

/* ==========================================
   SOL SÜTUN: ÜRÜN KARTLARI
========================================== */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--flora-border);
    border-radius: 16px;
    padding: 20px;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.cart-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ci-image {
    width: 140px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ci-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ci-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ci-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #334155;
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-heading);
}

.ci-remove {
    background: #fef2f2;
    color: #ef4444;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.2s;
    text-decoration: none;
}

.ci-remove:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.05);
}

.ci-price-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ci-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--flora-green-primary);
}

.ci-qty {
    font-size: 0.95rem;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.ci-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-badge i {
    font-size: 1.6rem;
    color: var(--flora-green-primary);
}

.info-badge span {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-badge strong {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
}

.ci-note {
    background: #fefce8;
    border: 1px dashed #fcd34d;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #b45309;
}

/* ==========================================
   SAĞ SÜTUN: ÖZET KARTI
========================================== */
.summary-card {
    background: #fff;
    border: 1px solid var(--flora-border);
    border-radius: 16px;
    padding: 30px;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.summary-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    font-family: var(--font-heading);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #475569;
    font-weight: 600;
}

.summary-divider {
    border: 0;
    border-top: 2px dashed #cbd5e1;
    margin: 20px 0;
}

.total-row {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
}

.total-row span:last-child {
    color: var(--flora-green-primary);
    font-size: 1.8rem;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2563eb;
    color: #fff;
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    margin-top: 25px;
}

.btn-checkout:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   KUPON MOTORU BÖLÜMÜ
========================================== */
.discount-row {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

.discount-row i {
    margin-right: 5px;
    color: #ef4444;
}

.coupon-section {
    margin-top: 25px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    border: 1px dashed #cbd5e1;
}

.coupon-form {
    display: flex;
    gap: 10px;
    margin: 0;
}

.coupon-form input {
    flex: 1;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    text-transform: uppercase;
}

.coupon-form input:focus {
    border-color: var(--flora-green-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.coupon-form button {
    background: #334155;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.coupon-form button:hover {
    background: var(--flora-green-dark);
}

.applied-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 12px 15px;
    border-radius: 10px;
}

.ac-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-size: 0.95rem;
}

.ac-left i {
    font-size: 1.4rem;
}

.ac-left strong {
    font-weight: 800;
    font-size: 1rem;
}

.ac-remove {
    color: #ef4444;
    background: #fee2e2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.1rem;
}

.ac-remove:hover {
    background: #fca5a5;
    color: #fff;
}

.coupon-msg {
    font-size: 0.9rem;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.coupon-msg i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.coupon-msg.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.coupon-msg.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}


/* ====================================================================
   MOBİL ÖZEL SEPET ARAYÜZÜ (NATIVE APP UX) - MAKS 992px & 768px
   Masaüstü yapısına dokunmadan mobilde pürüzsüz kart & buton deneyimi.
==================================================================== */

@media (max-width: 992px) {

    /* Sayfa taşmasını engelleyen güvenlik duvarı */
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Sabit alt ödeme butonunun içeriği kapatmaması için alan */
    .cart-grid {
        padding-bottom: 110px !important;
    }

    .cart-header {
        margin-bottom: 25px !important;
    }

    .cart-title {
        font-size: 1.6rem;
    }

    /* Grid düzenini dikey akışa (block) çevir */
    .cart-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    /* SOL SÜTUN: ÜRÜN KARTLARI (MOBİL ERGONOMİSİ) */
    .cart-items-section {
        gap: 15px;
    }

    /* Ürün kartı: Dev dikey kaplama yerine yatay kompakt uygulama kartı */
    .cart-item {
        display: flex !important;
        flex-direction: row !important;
        /* Dikey kırılmayı engelle */
        align-items: flex-start !important;
        padding: 14px !important;
        gap: 14px !important;
        border-radius: 14px !important;
        background: #fff;
    }

    /* Ürün Görseli: KATI 3:4 ORANINDA, ERGONOMİK NATIVE BOYUT */
    .ci-image {
        width: 95px !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
    }

    .ci-details {
        flex: 1 !important;
        min-width: 0 !important;
        /* Metin taşmasını engeller */
    }

    .ci-header {
        margin-bottom: 6px !important;
    }

    .ci-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
    }

    .ci-remove {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        flex-shrink: 0;
    }

    .ci-price-qty {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .ci-price {
        font-size: 1.25rem !important;
    }

    .ci-qty {
        font-size: 0.8rem !important;
        padding: 4px 10px !important;
    }

    /* Teslimat zamanı ve bölge rozetleri: Mobilde tek sütun kompakt grid */
    .ci-info-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .info-badge {
        padding: 8px 12px !important;
        border-radius: 8px !important;
        gap: 10px !important;
    }

    .info-badge i {
        font-size: 1.3rem !important;
    }

    .info-badge span {
        font-size: 0.7rem !important;
    }

    .info-badge strong {
        font-size: 0.85rem !important;
    }

    .ci-note {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    /* SAĞ SÜTUN: ÖZET KARTI & KUPON */
    .summary-card {
        padding: 20px !important;
        border-radius: 14px !important;
        position: static !important;
        /* Mobilde yapışkanlık iptal, akışa katılır */
    }

    .summary-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }

    .summary-row {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }

    .total-row {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }

    .total-row span:last-child {
        font-size: 1.5rem !important;
    }

    .coupon-section {
        margin-top: 15px !important;
        padding: 12px !important;
    }

    .coupon-form input {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .coupon-form button {
        padding: 0 15px !important;
        font-size: 0.9rem !important;
    }

    /* =======================================================
       SABİT (STICKY) MOBİL ÖDEME BUTONU 
       Mobilde her zaman en altta tek tıkla ödemeye geçiş
       ======================================================= */
    .btn-checkout {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 99999 !important;
        padding: 18px 20px !important;
        font-size: 1.15rem !important;
        margin: 0 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15) !important;
        background: #2563eb !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Boş Sepet Ekranı Mobil Optimizasyonu */
    .empty-cart-box {
        padding: 40px 15px !important;
        border-radius: 16px !important;
    }

    .empty-icon {
        font-size: 4.5rem !important;
        margin-bottom: 15px !important;
    }

    .empty-cart-box h2 {
        font-size: 1.4rem !important;
    }

    .empty-cart-box p {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
    }

    .btn-continue-shopping {
        padding: 14px 25px !important;
        font-size: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}