:root {
    --lacivert: #1b2f77;
    --kirmizi: #E71864;
    --turuncu: #ff6b35;
    --acik-gri: #f5f6fa;
    --sinir: #e0e4ef;
    --yazi: #2d2d2d;
    --yazi-acik: #888;
}

.cart-container {
    max-width: 1200px;
    margin: 140px auto 100px;
    padding: 0 20px;
    min-height: 50vh;
}

.cart-header-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--lacivert);
    padding-bottom: 15px;
}

.cart-header-title h1 {
    font-size: 28px;
    color: var(--lacivert);
    font-weight: 800;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-count {
    color: var(--yazi-acik);
    font-size: 16px;
    font-weight: 500;
}

/* ── Alert ── */
.kargo-firsat-alert {
    background: #eef2ff;
    border: 1px dashed var(--lacivert);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lacivert);
    font-size: 15px;
}

.kargo-firsat-alert i {
    font-size: 20px;
    color: var(--turuncu);
}

.kargo-firsat-alert strong {
    font-weight: 800;
    color: var(--turuncu);
}

/* ── Boş Sepet ── */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--sinir);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.empty-icon {
    font-size: 70px;
    color: var(--sinir);
    margin-bottom: 25px;
}

.empty-cart h2 {
    font-size: 24px;
    color: var(--lacivert);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--yazi-acik);
    margin-bottom: 30px;
}

.btn-continue-shopping {
    display: inline-block;
    background: var(--turuncu);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* ── Sepet İçeriği ── */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: flex-start;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-items-list {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--sinir);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.cart-item-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px 50px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--acik-gri);
    gap: 20px;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.item-img img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    background: #fdfdfd;
    padding: 5px;
    border-radius: 8px;
}

.item-info .item-name {
    display: block;
    font-weight: 700;
    color: var(--lacivert);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.item-info .item-name:hover {
    color: var(--turuncu);
}

.item-price-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price-unit .price-new {
    color: var(--lacivert);
    font-weight: 700;
    font-size: 16px;
}

.item-price-unit .price-old {
    color: var(--yazi-acik);
    text-decoration: line-through;
    font-size: 13px;
}

/* Miktar Kontrolü */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--sinir);
    border-radius: 20px;
    width: fit-content;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    color: var(--lacivert);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--acik-gri);
}

.quantity-controls input {
    width: 36px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--lacivert);
    outline: none;
    background: transparent;
}

.item-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--lacivert);
}

.item-remove button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
}

.item-remove button:hover {
    color: var(--kirmizi);
}

/* ── Kupon Alanı ── */
.coupon-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--sinir);
    overflow: hidden;
}

.coupon-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon-wrapper h4 {
    font-size: 18px;
    color: var(--lacivert);
    margin: 0;
    font-weight: 800;
}

.coupon-wrapper p {
    font-size: 14px;
    color: var(--yazi-acik);
    margin: 0;
}

.coupon-input-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid var(--sinir);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.coupon-input-group input:focus {
    border-color: var(--lacivert);
}

.btn-apply-coupon {
    background: var(--lacivert);
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-coupon:hover {
    background: var(--turuncu);
}

/* ── Özeti Kartı ── */
.cart-summary .summary-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--sinir);
    position: sticky;
    top: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}

.summary-card h3 {
    font-size: 20px;
    color: var(--lacivert);
    margin-bottom: 20px;
    font-weight: 800;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.summary-row.discount-total {
    color: var(--kirmizi);
    font-weight: 700;
}

.summary-row.discount {
    color: #1a8a4a;
    font-weight: 700;
}

.free-shipping {
    color: #1a8a4a;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: var(--sinir);
    margin: 15px 0;
}

.summary-row.total {
    font-size: 22px;
    color: var(--lacivert);
    font-weight: 800;
    margin-bottom: 25px;
}

.btn-checkout {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--lacivert);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-checkout:hover,
.btn-checkout:focus {
    background: var(--turuncu);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.link-continue {
    display: block;
    text-align: center;
    color: var(--yazi-acik);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.link-continue:hover {
    color: var(--lacivert);
}

.cart-footer-actions {
    padding: 15px 20px;
    background: #fbfbfb;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--sinir);
}

.btn-remove-all {
    color: var(--yazi-acik);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-remove-all:hover {
    color: var(--kirmizi);
}

@media (max-width: 992px) {
    .cart-container {
        margin-top: 250px;
        padding: 0 15px;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-main {
        order: 1;
    }

    .cart-summary {
        order: 2;
    }

    .cart-summary .summary-card {
        position: static;
    }

    .cart-item-row {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }

    .item-quantity {
        grid-column: 2;
    }

    .item-total,
    .item-remove {
        display: none;
    }
}

@media (max-width: 576px) {
    .cart-container {
        margin-top: 260px;
    }

    .cart-header-title h1 {
        font-size: 22px;
    }

    .item-name {
        font-size: 14px !important;
    }

    .btn-checkout {
        font-size: 14px;
        padding: 12px 10px;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .btn-apply-coupon {
        padding: 12px;
    }
}