/* 
   PAZARIX CART PAGE - MODERN MINIMAL DESIGN
   SaaS Style - Pazarix Tasarım Sistemi
   Tarih: 29 Ocak 2026
*/

/* --- Global Cart Layout --- */
.pzx-cart-wrapper {
    background-color: #f8fafc;
    min-height: 45vh;
    padding: 40px 0 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.pzx-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* --- Cart Left (Products) --- */
.pzx-cart-left {
    flex: 1;
}

.pzx-cart-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
}

.pzx-cart-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pzx-cart-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

/* --- Cart Right (Summary) --- */
.pzx-cart-right {
    width: 380px;
    flex-shrink: 0;
}

.pzx-cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eaeaea;
    position: sticky;
    top: 20px;
}

.pzx-summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.pzx-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.pzx-summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

/* --- Buttons --- */
.pzx-btn-checkout {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.pzx-btn-checkout:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.pzx-btn-continue {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    text-decoration: underline;
}

.pzx-btn-continue:hover {
    color: #000;
}

/* --- Empty Cart --- */
.pzx-cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.pzx-cart-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 25px;
}

.pzx-cart-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.pzx-cart-empty p {
    color: #888;
    margin-bottom: 30px;
}

/* --- Cart Items (Modern Grid Layout) --- */
.cart-left-box-main {
    display: grid;
    grid-template-columns: 100px 1fr 120px 140px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    background: #fff;
}

.cart-left-box-main:hover {
    background: #fafafa;
}

.cart-left-box-main.cart-head {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Items */
.cart-left-box-1 {
    /* Görsel */
}

.cart-left-box-1 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.cart-left-box-2 {
    /* Ürün Adı ve Detaylar */
}

.cart-left-box-2 a {
    color: #000000;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-left-box-2 a:hover {
    color: #fe7e12;
}

.cart-left-variant-div {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    padding: 4px 0;
}

.cart-left-box-3 {
    /* Birim Fiyat */
    text-align: center;
    font-weight: 600;
    color: #000000;
    font-size: 15px;
}

.cart-left-box-4 {
    /* Adet Kontrol */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-left-box-4 .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-left-box-4 .btn:hover {
    border-color: #fe7e12;
    color: #fe7e12;
    background: #fff6ec;
}

.cart-left-box-4 input[type="text"] {
    width: 50px !important;
    height: 32px !important;
    text-align: center;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 14px;
    background: #f9fafb !important;
}

.cart-left-box-5 {
    /* Toplam Fiyat */
    text-align: right;
    font-weight: 700;
    color: #fe7e12;
    font-size: 16px;
}

.cart-left-box-6 {
    /* Sil Butonu */
    text-align: center;
}

.cart-left-box-6 .btn-danger {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #ef4444;
    font-size: 18px;
    transition: all 0.2s;
}

.cart-left-box-6 .btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Stok Yok Uyarısı */
.cart-left-box-main[style*="FFF3EE"] {
    background: #fff7ed !important;
    border-left: 3px solid #f59e0b;
}

.badge-dark {
    background: #000000 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    display: inline-block;
}

/* Free Shipping Banner */
div[style*="e8f7ff"] {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 1px solid #7dd3fc !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 500 !important;
    color: #0369a1 !important;
    margin-bottom: 24px !important;
}

div[style*="e8f7ff"] i {
    font-size: 28px !important;
    color: #0284c7 !important;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .pzx-cart-container {
        flex-direction: column;
    }

    .pzx-cart-right {
        width: 100%;
    }

    .cart-left-box-main {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
        padding: 16px;
    }

    .cart-left-box-1 {
        grid-row: 1 / 3;
    }

    .cart-left-box-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-left-box-3,
    .cart-left-box-4 {
        grid-column: 1 / 3;
        grid-row: auto;
        justify-content: flex-start;
    }

    .cart-left-box-5 {
        grid-column: 1 / 3;
        text-align: left;
    }

    .cart-left-box-6 {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .cart-left-box-main.cart-head {
        display: none;
    }
}

/* --- Sepet Özeti (Sağ Panel) Modern Tasarım --- */
.cart-right-div-inside {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-right-div-head {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.cart-right-div-s {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Kupon İndirim Formu */
.cart-right-div-coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.cart-right-div-coupon input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s;
}

.cart-right-div-coupon input[type="text"]:focus {
    outline: none;
    border-color: #fe7e12;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(254, 126, 18, 0.1);
}

.cart-right-div-coupon button {
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    white-space: nowrap;
}

/* Fiyat Satırları */
.cart-right-div-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.cart-right-div-price-box:last-of-type {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.cart-right-div-price-box-left {
    color: #000000;
    font-weight: 500;
}

.cart-right-div-price-box-right {
    font-weight: 600;
    color: #000000;
}

.cart-right-div-price-box-right.font-16 {
    font-size: 18px !important;
    color: #fe7e12 !important;
    font-weight: 700 !important;
}

/* İndirim Kupon Gösterimi */
.cart-right-div-price-box-left i.fa-window-close {
    color: #ef4444;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-right-div-price-box-left i.fa-window-close:hover {
    color: #dc2626;
    transform: scale(1.1);
}

/* Ücretsiz Kargo Sayacı */
.cart-right-div-inside .button-2x[class*="kargo"] {
    background: linear-gradient(135deg, #fe7017 0%, #059669 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    margin-bottom: 16px !important;
}

.cart-right-div-inside .button-2x[class*="kargo"] i {
    font-size: 24px !important;
    margin-bottom: 4px !important;
    display: block;
}

/* Sepeti Onayla Butonu */
.cart-right-div-inside a[href*="teslimat"] .button-2x,
.cart-right-div-inside .button-2x[href*="teslimat"],
.cart-right-div-inside > a:last-child .button-2x {
    background: linear-gradient(135deg, #000000 0%, #000000 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.3) !important;
    transition: all 0.3s !important;
    display: block !important;
    text-align: center !important;
}

.cart-right-div-inside a[href*="teslimat"] .button-2x:hover,
.cart-right-div-inside .button-2x[href*="teslimat"]:hover,
.cart-right-div-inside > a:last-child .button-2x:hover {
    background: linear-gradient(135deg, #fe7e12 0%, #ea580c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(254, 126, 18, 0.4) !important;
}

/* Uyarı Alert Kutusu */
.cart-right-div-inside .alert-danger {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    padding: 16px !important;
    color: #991b1b !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

/* Ücretsiz Kargo Yazısı */
.cart-right-div-price-box-right span[style*="font-size: 12px"] {
    color: #fe7017 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .pzx-cart-wrapper {
        padding: 20px 0 60px;
    }

    .pzx-cart-box {
        padding: 20px;
        border-radius: 12px;
    }

    .pzx-cart-summary {
        padding: 20px;
    }

    .cart-right-div-inside {
        padding: 20px;
        border-radius: 10px;
    }

    .cart-right-div-head {
        font-size: 16px;
    }

    .cart-right-div-price-box {
        font-size: 13px;
    }
}
