        /* Page header.
           The same values as products.css, since the cart is part of that
           journey - gallery and contact drifted from the other pages exactly
           by each keeping its own copy, so these are worth checking together
           when one changes.

           No background photograph here: the rest of the site hotlinks one
           from Unsplash, and a page behind a basket does not need a decorative
           image at the cost of a third-party request. */
        .page-header {
            background: linear-gradient(135deg, rgba(128, 0, 0, 0.95), rgba(92, 0, 0, 0.9));
            padding: 8px 0;
            color: var(--white);
            text-align: center;
        }

        .page-header h1 {
            font-size: 22px;
            margin-bottom: 3px;
        }

        .page-header p {
            font-size: 13px;
            opacity: 0.95;
            margin-bottom: 3px;
        }

        .breadcrumb {
            display: flex;
            justify-content: center;
            gap: 10px;
            font-size: 12px;
        }

        .breadcrumb a {
            color: var(--accent-gold);
            text-decoration: none;
        }

        .breadcrumb span {
            color: rgba(255, 255, 255, 0.7);
        }

/*
 * The cart - A-05.
 *
 * Two columns on a desktop, one on a phone. The summary sticks so the total is
 * always visible while the lines scroll, which is the one thing a shopper
 * checks repeatedly.
 */
.cart-section { padding: 40px 0 70px; background: var(--light-bg); }

.cart-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14.5px;
}

.cart-alert.is-error { background: #f8e6e3; color: #a81e12; }
.cart-alert.is-ok    { background: #e8f3ec; color: #2e6b4f; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.cart-lines { display: flex; flex-direction: column; gap: 12px; }

.cart-line {
    display: grid;
    grid-template-columns: 84px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border: 1px solid #e4e4e0;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 0;
}

.cart-line-image {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9b4ac;
}

.cart-line-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-line-body { min-width: 0; }

.cart-line-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.cart-line-name:hover { color: var(--primary-maroon); }

.cart-line-price { font-size: 14px; color: var(--text-light); }

.cart-line-note { font-size: 12.5px; color: var(--text-light); margin-top: 3px; }
.cart-line-note.is-warn { color: #9a6a12; font-weight: 600; }

.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid #dfdfda;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty button {
    width: 34px;
    height: 34px;
    border: 0;
    background: var(--white);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-qty button:hover { background: var(--light-bg); }

.cart-qty span {
    min-width: 34px;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-line-total {
    font-weight: 700;
    color: var(--primary-maroon);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cart-line-remove button {
    border: 0;
    background: none;
    color: #b9b4ac;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
}

.cart-line-remove button:hover { color: #a81e12; }

.cart-summary {
    background: var(--white);
    border: 1px solid #e4e4e0;
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 { font-size: 17px; margin: 0 0 16px; color: var(--primary-maroon); }

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0eee9;
    font-size: 14.5px;
}

.cart-summary-row.is-muted { color: var(--text-light); font-size: 13.5px; }
.cart-summary-row strong { font-size: 18px; color: var(--primary-maroon); font-variant-numeric: tabular-nums; }

.cart-btn-primary {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-maroon);
    color: var(--accent-gold);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.cart-btn-primary.is-disabled { background: #cfc9c0; color: #7c766d; cursor: not-allowed; }

.cart-btn-plain {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--primary-maroon);
    text-decoration: none;
}

.cart-empty {
    max-width: 460px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid #e4e4e0;
    border-radius: 12px;
    padding: 48px 30px;
    text-align: center;
}

.cart-empty i { font-size: 46px; color: #d8d2c8; }
.cart-empty h2 { font-size: 20px; margin: 16px 0 8px; }
.cart-empty p { color: var(--text-light); font-size: 14.5px; margin: 0 0 22px; }
.cart-empty .cart-btn-primary { display: inline-block; width: auto; padding: 12px 26px; }

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

@media (max-width: 620px) {
    .cart-section { padding: 24px 0 44px; }

    /* The line becomes two rows: picture and name across the top, then the
       controls beneath, so nothing is squeezed to an untappable width. */
    .cart-line {
        grid-template-columns: 64px 1fr auto;
        gap: 12px;
    }

    .cart-line-image { width: 64px; height: 64px; }
    .cart-qty { grid-column: 2; }
    .cart-line-total { grid-column: 3; }
    .cart-line-remove { grid-column: 3; grid-row: 1; }
}

/* The pack size a line was bought as — "Pair", "4 pcs". Absent on products
   that are sold as one thing, which is most of them. */
.cart-line-unit {
    font-size: 12.5px;
    color: var(--text-light);
    margin: 2px 0 4px;
}

