/* =========================================
   SHOP FLOW (cart + checkout)
   Shared pieces so the two pages feel like one journey:
   progress steps, page background and the summary panel.
========================================= */

.cart-page,
.checkout-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(219, 92, 7, .06), transparent 38%),
        linear-gradient(180deg, #fbf7f4 0, #ffffff 420px);
}


/* ---------- Progress steps ---------- */

.cart-steps {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #999999;
}

.cart-steps li,
.cart-steps li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.cart-steps li + li::before {
    content: "";
    width: 44px;
    height: 2px;
    margin: 0 12px;
    background: #e3e3e3;
}

.cart-steps li span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #999999;
    font-size: 11px;
    font-weight: 600;
}

.cart-steps li.active {
    color: #111111;
    font-weight: 600;
}

.cart-steps li.active span {
    border-color: #db5c07;
    background: #db5c07;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(219, 92, 7, .3);
}

.cart-steps li.done {
    color: #2e8b57;
}

.cart-steps li.done span {
    border-color: #2e8b57;
    background: #2e8b57;
    color: #ffffff;
}

.cart-steps li.done + li::before,
.cart-steps li.done + li.active::before {
    background: linear-gradient(90deg, #2e8b57, #db5c07);
}

.cart-steps li.done a:hover {
    color: #1f6b41;
}


/* ---------- Summary panel ---------- */

.cart-page .cart-summary,
.checkout-page .checkout-summary {
    position: sticky;
    top: 130px;
    padding: 30px;
    border: 1px solid #ececec;
    border-top: 3px solid #db5c07;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 17, 17, .07);
}


/* Let the summary column span the whole row so the sticky summary has room to move
   while the (longer) item list / form scrolls past. */
@media (min-width: 992px) {
    .cart-page .row.align-items-start,
    .checkout-page .row.align-items-start {
        align-items: stretch !important;
    }
}

@media (max-width: 991px) {
    .cart-page .cart-summary,
    .checkout-page .checkout-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-steps li + li::before {
        width: 18px;
        margin: 0 8px;
    }
}
