.page-hero {
    background-image:
        linear-gradient(rgba(247, 250, 245, 0.9), rgba(247, 250, 245, 0.9)),
        url("../img/Banner/banner-1.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-soft);
}

.page-hero-inner {
    width: min(92%, 1200px);
    margin: 0 auto;
    padding: 34px 0;
    text-align: left;
}

.page-hero-inner p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: clamp(0.68rem, 2.8vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.page-hero-inner a {
    text-decoration: none;
}

.page-hero-inner h1 {
    margin: 0 0 4px;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 600;
}

.page-hero-inner span {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.cart-page {
    text-align: left;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
}

.cart-card {
    background-color: #fff;
    border: 1px solid #e6eadf;
    border-radius: 14px;
    padding: 20px;
}

.cart-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6eadf;
}

.cart-title-row h2,
.cart-summary h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-title-row span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 140px 130px 140px;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0e8;
}

.cart-head {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 12px;
}

.cart-head span:not(:first-child) {
    text-align: center;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-cell img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.product-cell h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.product-cell p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-cell,
.total-cell {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.total-cell {
    color: var(--color-primary-dark);
}

.qty-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qty-cell button {
    width: 28px;
    height: 28px;
    border: 1px solid #cfd5ca;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-strong);
    cursor: pointer;
}

.qty-cell span {
    min-width: 26px;
    text-align: center;
    font-weight: 500;
}

.cart-tools {
    margin-top: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.coupon-box {
    flex: 1 1 320px;
}

.coupon-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.coupon-box > div {
    display: flex;
    gap: 8px;
}

.coupon-box input {
    flex: 1;
    min-height: 40px;
    border: 1px solid #cfd5ca;
    border-radius: 10px;
    padding: 8px 12px;
    background-color: #fff;
}

.coupon-box button {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--text-strong);
    color: #fff;
    padding: 8px 18px;
    font-weight: 500;
    cursor: pointer;
}

.text-link {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.95rem;
}

.text-link:hover {
    color: var(--color-primary-dark);
}

.cart-summary dl {
    margin: 14px 0 10px;
    padding: 0;
}

.cart-summary dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.cart-summary dt,
.cart-summary dd {
    margin: 0;
    color: var(--text-muted);
}

.grand-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 16px;
}

.grand-total span {
    font-weight: 500;
}

.grand-total strong {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    margin: 0 0 10px;
    justify-content: center;
}

.summary-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1100px) {
    .cart-row {
        grid-template-columns: minmax(0, 1fr) 120px 118px 120px;
        gap: 10px;
    }
}

@media (max-width: 920px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-hero-inner {
        padding: 26px 0;
    }

    .cart-card {
        padding: 16px;
    }

    .cart-head {
        display: none;
    }

    .cart-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .price-cell,
    .total-cell {
        text-align: left;
    }

    .qty-cell {
        justify-content: flex-start;
    }

    .coupon-box > div {
        flex-direction: column;
    }

    .coupon-box button {
        width: 100%;
    }
}
