.shopping-body {
    color: var(--text);
    --shop-accent: var(--amber);
    --shop-muted: var(--muted);
    --shop-border: var(--line);
}

.shopping-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.shopping-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shopping-page {
    max-width: 1240px;
    padding: 32px clamp(16px, 4vw, 48px) 64px;
    margin: 0 auto;
}

.shopping-page h1,
.shopping-page h2,
.shopping-page p {
    margin: 0;
}

.shopping-page h1 {
    font: 800 clamp(30px, 4.4vw, 44px) / 1.08 var(--font-display);
    letter-spacing: -0.03em;
}

.shopping-page h2 {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.shopping-page p {
    line-height: 1.65;
}

.shopping-page a {
    color: inherit;
    text-decoration: none;
}

.shopping-page button,
.shopping-page input,
.shopping-page select {
    font: inherit;
}

.shopping-page a:focus-visible,
.shopping-page button:focus-visible,
.shopping-page input:focus-visible,
.shopping-page select:focus-visible {
    outline: 2px solid var(--shop-accent);
    outline-offset: 4px;
}

.shopping-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 570px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--shop-muted);
}

.shopping-progress > a,
.shopping-progress > .shopping-progress-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.shopping-progress > a > span,
.shopping-progress-pending > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    font: 12px var(--font-mono);
}

.shopping-progress [aria-current="step"] {
    color: var(--shop-accent);
}

.shopping-progress [aria-current="step"] > span {
    border-color: var(--shop-accent);
    background: var(--amber-tint);
}

.shopping-progress-line {
    flex: 1;
    min-width: 8px;
    height: 1px;
    background: var(--shop-border);
}

.shopping-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.shopping-heading h1 {
    margin-bottom: 10px;
}

.shopping-heading p:not(.shopping-eyebrow):not(.sheet-tag) {
    color: var(--shop-muted);
    font-size: 15px;
}

.shopping-page .shopping-eyebrow {
    color: var(--measure);
    font: 600 11px/1.4 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.shopping-page .sheet-tag {
    margin-bottom: 1.1rem;
}

.shopping-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 550;
}

.shopping-heading .shopping-link {
    flex-shrink: 0;
}

.shopping-page .shopping-link:hover {
    color: var(--shop-accent);
}

.shopping-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 24px;
}

.shopping-panel {
    background: var(--panel);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    padding: 26px;
    min-width: 0;
}

.shopping-notice {
    color: var(--shop-muted);
    background: var(--panel-alt);
    border: 1px solid var(--shop-border);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 12px;
}

.shopping-summary {
    position: sticky;
    top: 96px;
}

.shopping-summary h2 {
    margin-bottom: 22px;
}

.shopping-totals {
    margin: 0;
}

.shopping-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 13px;
}

.shopping-totals dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.shopping-totals dt {
    flex-shrink: 0;
}

.shopping-totals dd.shopping-muted {
    font-size: 12px;
}

.shopping-totals .shopping-total {
    border-top: 1px solid var(--shop-border);
    padding-top: 20px;
    margin-top: 22px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 650;
}

.shopping-total dd {
    color: var(--shop-accent);
}

.shopping-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.shopping-page .shopping-primary {
    color: var(--on-accent);
    background: var(--shop-accent);
    border-color: var(--shop-accent);
}

.shopping-page .shopping-primary:hover:not(:disabled) {
    background: var(--amber-bright);
    border-color: var(--amber-bright);
}

.shopping-page .shopping-secondary {
    color: var(--text);
    background: var(--panel-alt);
    border-color: var(--shop-border);
}

.shopping-page .shopping-secondary:hover {
    background: var(--panel-raised);
    border-color: var(--line-strong);
}

.shopping-summary > .shopping-button {
    width: 100%;
    margin-top: 12px;
}

.shopping-page button:disabled {
    cursor: not-allowed;
    color: var(--muted);
    background: var(--panel-raised);
    border-color: var(--line);
}

.shopping-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 380px;
    padding: 50px 24px;
    border-style: dashed;
}

.shopping-empty-art {
    width: 160px;
    height: auto;
    margin-bottom: 24px;
    fill: none;
    stroke: var(--amber);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.shopping-empty-art .shopping-art-marks {
    stroke: var(--measure);
    stroke-width: 1;
}

.shopping-empty-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(245, 151, 9, 0.3);
    background: rgba(245, 151, 9, 0.06);
    color: var(--shop-accent);
    border-radius: var(--radius);
    margin-bottom: 26px;
}

.shopping-empty-icon .shopping-icon {
    width: 32px;
    height: 32px;
    stroke-width: 1.4;
}

.shopping-empty h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.shopping-empty > p:not(.shopping-eyebrow) {
    max-width: 480px;
    color: var(--shop-muted);
    font-size: 14px;
    margin-bottom: 26px;
}

.shopping-product-image {
    position: relative;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: var(--sheet);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--muted);
}

.shopping-product-image > .shopping-icon {
    width: 30px;
    height: 30px;
}

.shopping-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--sheet);
}

.shopping-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.shopping-page a.shopping-product-name:hover {
    color: var(--shop-accent);
}

.shopping-cart-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 112px;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--shop-border);
}

.shopping-cart-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.shopping-cart-product p {
    font-size: 12px;
    margin-top: 5px;
}

.shopping-muted {
    color: var(--shop-muted);
}

.shopping-cart-line-total {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shopping-cart-line-total strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.shopping-page .shopping-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    padding: 6px;
    cursor: pointer;
}

.shopping-page .shopping-remove:hover {
    color: var(--text);
    text-decoration: underline;
}

.shopping-cart-controls {
    display: grid;
    gap: 6px;
    align-content: start;
}

.shopping-remove .shopping-icon {
    width: 16px;
    height: 16px;
}

.shopping-checkout-form {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.shopping-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.shopping-field-wide {
    grid-column: 1 / -1;
}

.shopping-field {
    min-width: 0;
}

.shopping-field label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    margin-bottom: 8px;
}

.shopping-field label span {
    color: var(--shop-muted);
    font-weight: 400;
    font-size: 11px;
}

.shopping-field input,
.shopping-field select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--control-bg);
    color: var(--text);
    font-size: 14px;
}

.shopping-field [aria-invalid="true"] {
    border-color: var(--danger);
    outline-color: var(--danger);
}

.shopping-summary-products {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.shopping-summary-products li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--shop-border);
}

.shopping-summary-products li:first-child {
    padding-top: 0;
}

.shopping-summary-products .shopping-product-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
}

.shopping-summary-products .shopping-product-image > .shopping-icon {
    width: 22px;
    height: 22px;
}

.shopping-summary-products li > div {
    flex: 1;
    min-width: 0;
}

.shopping-summary-products .shopping-product-name {
    font-size: 12px;
}

.shopping-summary-products small {
    display: block;
    color: var(--shop-muted);
    font-size: 11px;
    margin-top: 4px;
}

.shopping-summary-products strong {
    font-size: 12px;
    font-weight: 550;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.shopping-summary-products .shopping-summary-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: var(--shop-muted);
    font-size: 14px;
}

.shopping-summary-empty .shopping-link {
    color: var(--shop-accent);
}

.shopping-confirmation h1 {
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(24px, 4vw, 32px);
}

.shopping-confirmation-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.shopping-confirmation-details {
    max-width: 720px;
    margin: 0 auto;
}

.shopping-confirmation-details h2 {
    margin: 24px 0 16px;
}

.shopping-confirmation-details address {
    color: var(--shop-muted);
    line-height: 1.8;
    font-style: normal;
}

@media (max-width: 1000px) {
    .shopping-columns {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .shopping-panel {
        padding: 22px;
    }

    .shopping-cart-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px;
    }

    .shopping-cart-row > .shopping-product-image {
        width: 56px;
        height: 56px;
    }

    .shopping-cart-controls {
        grid-column: 2;
        grid-template-columns: auto auto;
        justify-content: start;
        align-items: end;
    }

    .shopping-cart-controls label {
        grid-column: 1 / -1;
    }

}

@media (max-width: 820px) {
    .shopping-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .shopping-summary {
        position: static;
    }

    .shopping-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

}

@media (max-width: 520px) {
    .shopping-page {
        padding: 24px 16px 40px;
    }

    .shopping-progress {
        gap: 8px;
        font-size: 11px;
        margin-bottom: 30px;
    }

    .shopping-progress > a,
    .shopping-progress > .shopping-progress-pending {
        gap: 5px;
    }

    .shopping-progress > a > span,
    .shopping-progress-pending > span {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .shopping-panel {
        padding: 20px 16px;
        border-radius: var(--radius);
    }

    .shopping-heading p:not(.shopping-eyebrow):not(.sheet-tag) {
        font-size: 14px;
    }

    .shopping-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shopping-field input,
    .shopping-field select {
        font-size: 16px;
    }

    .shopping-empty {
        min-height: 350px;
        padding: 36px 20px;
    }

    .shopping-empty h2 {
        font-size: 23px;
    }

    .shopping-empty .shopping-button {
        width: 100%;
    }

    .shopping-confirmation-links {
        flex-direction: column;
    }

    .shopping-confirmation-links > .shopping-button {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .shopping-button {
        transition: none;
    }

}
.shopping-cart-quantity { width: 90px; padding: 8px; }
.shopping-page button:disabled { cursor: not-allowed; opacity: .55; }

.shopping-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.shopping-checkout-form .shopping-panel > h2 + p {
    margin: 4px 0 22px;
    color: var(--shop-muted);
    font-size: 14px;
}

.shopping-crew-cart {
    margin-top: 24px;
}
.shopping-crew-selection + .shopping-crew-selection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
