.cart-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8f1 0%, #ffe9d2 100%);
    border: 1px solid rgba(180, 83, 9, 0.10);
}

.cart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.12), transparent 28%);
    pointer-events: none;
}

.cart-hero > * {
    position: relative;
    z-index: 1;
}

.cart-hero h1,
.cart-hero p,
.cart-hero .hero-badge {
    color: #1f2937;
}

.cart-hero p {
    max-width: 58ch;
    color: #4b5563;
}

.cart-hero .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    border: 1px solid rgba(31, 41, 55, 0.10);
}

.cart-hero .btn-primary {
    background: #b45309;
    color: #fff;
    border: 1px solid #b45309;
}

.cart-hero .btn-primary:hover {
    background: #92400e;
}

@media (max-width: 640px) {
    .cart-hero .hero-actions {
        flex-direction: column;
    }

    .cart-hero .hero-actions a,
    .cart-hero .hero-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.cart-page {
    display: grid;
    gap: 18px;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-card {
    background: #fff;
    border: 1px solid rgba(122, 94, 58, 0.10);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(43, 30, 14, 0.06);
}

.cart-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cart-card-main {
    min-width: 0;
}

.cart-card-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #9a5b1f;
    font-size: 12px;
    font-weight: 700;
}

.cart-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #1f2937;
    font-weight: 800;
}

.cart-card-unit-price {
    margin-top: 6px;
    color: #6b7280;
    font-size: 14px;
}

.cart-card-line-total {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.cart-card-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3ede6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: #f8f3ee;
    border: 1px solid #efe6dc;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.08);
    transition: transform 0.18s ease, background 0.18s ease;
}

.qty-btn:hover {
    transform: translateY(-1px);
    background: #fff7ef;
}

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.cart-remove-btn {
    border: none;
    background: transparent;
    color: #b45309;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 0;
}

.cart-remove-btn:hover {
    color: #92400e;
}

.cart-summary-card {
    background: linear-gradient(180deg, #fffdf9, #fff6ec);
    border: 1px solid rgba(180, 83, 9, 0.10);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(43, 30, 14, 0.05);
    height: fit-content;
}

.cart-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.cart-summary-head h3 {
    margin: 0;
    font-size: 18px;
}

.cart-summary-row,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-summary-row {
    padding: 10px 0;
    color: #6b7280;
    font-size: 14px;
}

.cart-summary-total {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(180, 83, 9, 0.14);
    font-size: 18px;
    color: #111827;
}

.cart-summary-total strong {
    font-size: 24px;
    font-weight: 800;
}

.cart-checkout-btn,
.cart-empty-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

.cart-empty-card {
    background: linear-gradient(180deg, #fff, #fff9f4);
    border: 1px dashed #e7d7c7;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

@media (min-width: 980px) {
    .cart-page {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .cart-summary-card {
        position: sticky;
        top: 90px;
    }
}

@media (max-width: 640px) {
    .cart-card,
    .cart-summary-card,
    .cart-empty-card {
        border-radius: 20px;
        padding: 16px;
    }

    .cart-card-top,
    .cart-card-bottom,
    .cart-summary-head,
    .cart-summary-row,
    .cart-summary-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-card-line-total {
        font-size: 18px;
        white-space: normal;
    }

    .qty-box {
        width: 100%;
        justify-content: space-between;
    }

    .cart-remove-btn {
        padding: 0;
    }
}

.cart-pay-block {
    margin-top: 18px;
}

.paypal-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(180, 83, 9, 0.14);
}