.storefront-cart {
    --cart-red: #c9342f;
    --cart-red-dark: #a92320;
    --cart-green: #238b4b;
    --cart-dark: #272727;
    --cart-muted: #6c6c6c;
    --cart-line: #dedede;
    --cart-soft: #f6f6f6;
    color: var(--cart-dark);
    max-width: 1320px;
}

.storefront-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-progress { display: flex; align-items: center; justify-content: center; max-width: 880px; margin: 4px auto 30px; }
.cart-progress-step { display: flex; align-items: center; gap: 9px; color: #9a9a9a; white-space: nowrap; }
.cart-progress-step span { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #cfcfcf; border-radius: 50%; font-size: 14px; }
.cart-progress-step strong { font-size: 14px; }
.cart-progress-step.is-active { color: var(--cart-dark); }
.cart-progress-step.is-active span { color: #fff; border-color: var(--cart-red); background: var(--cart-red); }
.cart-progress-line { flex: 1; max-width: 130px; height: 1px; margin: 0 18px; background: #d9d9d9; }

.cart-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid; border-radius: 4px; font-size: 14px; }
.cart-alert > svg { flex: 0 0 21px; margin-top: 1px; }
.cart-alert.is-success { color: #176536; border-color: #add8be; background: #eef9f2; }
.cart-alert.is-danger { color: #8f2420; border-color: #e3b3b1; background: #fff2f1; }
.cart-alert.is-warning { color: #755610; border-color: #ead28e; background: #fff9e8; }
.cart-alert.is-info { color: #195978; border-color: #afd5e7; background: #eef8fc; }
.cart-alert-action { align-items: center; }
.cart-alert-action > span { flex: 1; }
.cart-alert-action form { margin-left: auto; }
.cart-alert-action button { padding: 7px 11px; color: inherit; border: 1px solid currentColor; border-radius: 3px; background: transparent; font-size: 12px; font-weight: 700; }

.cart-empty { min-height: 340px; padding: 70px 24px; border: 1px solid var(--cart-line); background: #fff; text-align: center; }
.cart-empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; color: var(--cart-red); border-radius: 50%; background: #fff0ef; }
.cart-empty-icon svg { width: 34px; height: 34px; }
.cart-empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.cart-empty p { margin: 0 0 24px; color: var(--cart-muted); }

.cart-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 22px; color: #fff; border: 0; border-radius: 3px; background: var(--cart-red); font-size: 15px; font-weight: 800; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.cart-primary-button:hover { color: #fff; background: var(--cart-red-dark); }
.cart-primary-button:active { transform: translateY(1px); }
.cart-primary-button:disabled { cursor: not-allowed; background: #aaa; }
.cart-primary-button svg { width: 19px; height: 19px; }

.cart-volume { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--cart-line); background: #fff; }
.cart-volume-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.cart-volume-head h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.cart-volume-head > span { text-align: right; }
.cart-volume-head small { display: block; color: var(--cart-muted); }
.cart-volume-head svg { vertical-align: -5px; }
.cart-volume-progress { height: 7px; margin: 15px 0 12px; overflow: hidden; border-radius: 6px; background: #e8e8e8; }
.cart-volume-progress span { display: block; height: 100%; border-radius: inherit; background: var(--cart-green); }
.cart-volume-tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.cart-volume-tiers > div { padding: 7px; border: 1px solid var(--cart-line); border-radius: 3px; text-align: center; }
.cart-volume-tiers > div.is-active { border-color: #8bc6a3; background: #eef9f2; }
.cart-volume-tiers small, .cart-volume-tiers strong { display: block; font-size: 11px; }
.cart-volume-tiers small { color: var(--cart-muted); }

.cart-products { border: 1px solid var(--cart-line); background: #fff; }
.cart-table-head, .cart-product-main { display: grid; grid-template-columns: 80px minmax(0, 1fr) 112px 126px 112px 36px; column-gap: 16px; }
.cart-table-head { align-items: center; min-height: 46px; padding: 0 20px; color: #777; border-bottom: 1px solid var(--cart-line); background: var(--cart-soft); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cart-table-head span:nth-last-child(-n+2) { text-align: right; }
.cart-product { border-bottom: 1px solid var(--cart-line); }
.cart-product.is-invalid { box-shadow: inset 3px 0 #bd302a; }
.cart-product-main { align-items: center; min-height: 130px; padding: 20px; }
.cart-product-picture { display: flex; align-items: center; justify-content: center; width: 80px; height: 92px; overflow: hidden; color: #999; border: 1px solid #ececec; background: #fafafa; text-decoration: none; }
.cart-product-picture img { width: 100%; height: 100%; object-fit: contain; }
.cart-product-picture span { font-size: 11px; font-weight: 800; }
.cart-product-info { min-width: 0; }
.cart-product-info h2 { margin: 0 0 3px; font-size: 16px; font-weight: 800; line-height: 1.25; }
.cart-product-info h2 a { color: var(--cart-dark); text-decoration: none; }
.cart-product-info h2 a:hover { color: var(--cart-red); }
.cart-shirt-name, .cart-variant, .cart-item-note { margin: 2px 0; font-size: 12px; line-height: 1.35; }
.cart-shirt-name { color: var(--cart-muted); }
.cart-variant span { margin: 0 4px; color: #aaa; }
.cart-discount-badge, .cart-free-badge { display: inline-block; margin: 4px 4px 0 0; padding: 3px 7px; color: #fff; border-radius: 2px; background: var(--cart-red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.cart-discount-expiry { display: block; margin-top: 5px; color: #9a3412; font-size: 11px; }
.cart-discount-expiry strong { font-variant-numeric: tabular-nums; }
.cart-free-badge { background: var(--cart-green); }
.cart-unit-price { display: block; margin-top: 5px; color: var(--cart-muted); font-size: 11px; }
.cart-unit-price s { margin-right: 3px; }
.cart-product-availability { font-size: 12px; line-height: 1.35; }
.cart-product-availability > span { display: block; font-weight: 700; }
.cart-product-availability > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.cart-product-availability .is-stock { color: var(--cart-green); }
.cart-product-availability .is-warning { color: #bd7616; }
.cart-product-availability .is-error, .cart-product-availability small { color: #b12823; }
.cart-product-availability small { display: block; margin-top: 3px; }
.cart-product-quantity form { display: grid; grid-template-columns: 34px 44px 34px; }
.cart-product-quantity button, .cart-product-quantity input { height: 36px; color: var(--cart-dark); border: 1px solid #d1d1d1; background: #fff; text-align: center; }
.cart-product-quantity button { display: grid; place-items: center; padding: 0; }
.cart-product-quantity button:first-child { border-radius: 3px 0 0 3px; }
.cart-product-quantity button[data-quantity-change="1"] { border-radius: 0 3px 3px 0; }
.cart-product-quantity button:hover { background: #f3f3f3; }
.cart-product-quantity button svg { width: 15px; height: 15px; }
.cart-product-quantity input { min-width: 0; border-right: 0; border-left: 0; font-weight: 700; appearance: textfield; }
.cart-product-quantity input::-webkit-inner-spin-button { appearance: none; }
.cart-product-quantity .cart-quantity-submit { grid-column: 1 / -1; height: auto; margin-top: 4px; padding: 3px; border-radius: 3px; font-size: 10px; }
.cart-product-quantity form.has-js .cart-quantity-submit { display: none; }
.cart-fixed-quantity { display: block; text-align: center; font-weight: 700; }
.cart-product-price { text-align: right; }
.cart-product-price s, .cart-product-price strong { display: block; }
.cart-product-price s { color: #999; font-size: 11px; }
.cart-product-price strong { font-size: 16px; white-space: nowrap; }
.cart-product-remove button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #999; border: 0; border-radius: 50%; background: transparent; }
.cart-product-remove button:hover { color: #fff; background: var(--cart-red); }
.cart-product-remove svg { width: 17px; height: 17px; }
.cart-product-mobile-actions { display: none; }

.cart-note-editor { margin-top: 7px; font-size: 12px; }
.cart-note-editor summary { display: inline-flex; align-items: center; gap: 4px; color: #555; cursor: pointer; text-decoration: underline; }
.cart-note-editor summary svg { width: 13px; height: 13px; }
.cart-note-editor form { display: flex; align-items: stretch; max-width: 520px; margin-top: 7px; }
.cart-note-editor textarea { flex: 1; min-height: 52px; padding: 7px 9px; border: 1px solid #ccc; border-radius: 3px 0 0 3px; font: inherit; resize: vertical; }
.cart-note-editor button { padding: 6px 10px; color: #fff; border: 0; border-radius: 0 3px 3px 0; background: var(--cart-dark); font-size: 11px; font-weight: 700; }

.cart-addons { margin: 0 20px 20px 116px; padding: 14px; border: 1px solid #e1e1e1; background: #fafafa; }
.cart-addons-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.cart-addons-head h3 { margin: 0; font-size: 13px; font-weight: 800; }
.cart-addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cart-addon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 9px; border: 1px solid #ddd; background: #fff; }
.cart-addon.is-selected { border-color: #75b88f; background: #f2fbf5; }
.cart-addon img { object-fit: contain; border: 1px solid #eee; background: #fff; }
.cart-addon > div > strong, .cart-addon > div > small, .cart-addon > div > span { display: block; font-size: 11px; }
.cart-addon > div > span { margin-top: 4px; font-weight: 800; }
.cart-addon details { margin-top: 4px; font-size: 11px; }
.cart-addon details summary { cursor: pointer; text-decoration: underline; }
.cart-addon form button, .cart-addon-error button { padding: 5px 7px; color: var(--cart-dark); border: 1px solid #aaa; border-radius: 2px; background: #fff; font-size: 10px; font-weight: 800; }
.cart-addon.is-selected form button { color: #fff; border-color: var(--cart-green); background: var(--cart-green); }
.cart-addon-error, .cart-addon-warning { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 8px 10px; color: #8f2420; border: 1px solid #e4b4b2; background: #fff2f1; font-size: 11px; }
.cart-addon-error form { display: inline; margin-left: auto; }
.cart-addon-warning { color: #755610; border-color: #ead28e; background: #fff9e8; }
.cart-addon-warning svg { flex: 0 0 17px; width: 17px; height: 17px; }
.cart-guarantee { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 64px; color: var(--cart-green); background: #f4fbf6; }
.cart-guarantee svg { width: 27px; height: 27px; }
.cart-guarantee strong, .cart-guarantee small { display: block; }
.cart-guarantee strong { font-size: 13px; }
.cart-guarantee small { color: #65756b; font-size: 11px; }

.cart-free-shipping { margin: 12px 0; padding: 13px 15px; border: 1px solid #d8e7dd; border-radius: 4px; background: #f6fbf7; }
.cart-free-shipping-head, .cart-free-shipping-values { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #405448; font-size: 12px; }
.cart-free-shipping-head > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--cart-green); }
.cart-free-shipping-head svg { width: 18px; height: 18px; }
.cart-free-shipping-progress { overflow: hidden; height: 7px; margin: 10px 0 6px; border-radius: 99px; background: #dfe7e1; }
.cart-free-shipping-progress span { display: block; height: 100%; border-radius: inherit; background: var(--cart-green); transition: width .2s ease; }
.cart-free-shipping-values { color: var(--cart-muted); font-size: 10px; }
.cart-free-shipping.is-earned { border-color: #b7dcc4; background: #eef9f1; }

.cart-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr); margin-top: 18px; border: 1px solid var(--cart-line); background: #fff; }
.cart-bottom-tools { padding: 20px; border-right: 1px solid var(--cart-line); }
.cart-tool-card + .cart-tool-card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--cart-line); }
.cart-tool-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.cart-tool-card h2 svg { width: 18px; height: 18px; color: var(--cart-red); }
.cart-tool-card form { display: flex; max-width: 560px; }
.cart-tool-card input, .cart-tool-card textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px 0 0 3px; font-size: 13px; resize: vertical; }
.cart-tool-card button { padding: 9px 16px; color: #fff; border: 0; border-radius: 0 3px 3px 0; background: var(--cart-dark); font-size: 12px; font-weight: 800; }
.cart-summary { padding: 22px; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 9px; font-size: 13px; }
.cart-summary dt { font-weight: 500; }
.cart-summary dd { margin: 0; font-weight: 800; }
.cart-summary .is-discount { color: var(--cart-green); }
.cart-summary .cart-total { align-items: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--cart-line); }
.cart-summary .cart-total dt { font-size: 17px; font-weight: 800; }
.cart-summary .cart-total dd { font-size: 25px; }
.cart-summary > p { display: flex; align-items: center; gap: 7px; margin: 14px 0; color: var(--cart-muted); font-size: 11px; }
.cart-summary > p svg { flex: 0 0 18px; color: var(--cart-green); }
.cart-summary .cart-primary-button { width: 100%; }
.cart-continue { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; color: var(--cart-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.cart-continue:hover { color: var(--cart-red); }
.cart-continue svg { width: 16px; height: 16px; }
.cart-clear { margin-top: 14px; text-align: center; }
.cart-clear button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: #8d8d8d; border: 0; background: transparent; font-size: 11px; text-decoration: underline; }
.cart-clear button:hover { color: var(--cart-red); }
.cart-clear svg { width: 14px; height: 14px; }
.cart-sticky-checkout { display: flex; position: sticky; z-index: 25; bottom: 0; align-items: center; justify-content: center; gap: 28px; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--cart-line); background: rgba(255,255,255,.97); box-shadow: 0 -4px 15px rgba(0,0,0,.08); backdrop-filter: blur(6px); }
.cart-sticky-checkout > span small, .cart-sticky-checkout > span strong { display: block; }
.cart-sticky-checkout > span small { color: var(--cart-muted); font-size: 10px; text-transform: uppercase; }
.cart-sticky-checkout > span strong { font-size: 18px; }
.cart-sticky-checkout a, .cart-sticky-checkout button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 18px; color: #fff; border: 0; border-radius: 3px; background: var(--cart-red); font-size: 13px; font-weight: 800; text-decoration: none; }
.cart-sticky-checkout button:disabled { background: #aaa; }
.cart-sticky-checkout svg { width: 17px; height: 17px; }

@media (max-width: 1024px) {
    .cart-table-head { display: none; }
    .cart-products { border-top: 1px solid var(--cart-line); }
    .cart-product-main { grid-template-columns: 86px minmax(0, 1fr) auto; align-items: start; min-height: 0; padding: 16px; }
    .cart-product-picture { grid-row: 1 / span 3; width: 80px; height: 92px; }
    .cart-product-info { grid-column: 2; }
    .cart-product-main > .cart-product-availability, .cart-product-main > .cart-product-price { display: none; }
    .cart-product-quantity { grid-column: 2; margin-top: 12px; }
    .cart-product-quantity form { width: 112px; }
    .cart-product-remove { grid-column: 3; grid-row: 1; }
    .cart-product-mobile-actions { display: flex; grid-column: 2 / span 2; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
    .cart-addons { margin: 0 16px 16px; }
    .cart-bottom { grid-template-columns: 1fr; }
    .cart-bottom-tools { border-right: 0; border-bottom: 1px solid var(--cart-line); }
    .cart-sticky-checkout { display: none; }
}

@media (max-width: 700px) {
    .storefront-cart { padding-right: 12px; padding-left: 12px; }
    .cart-progress { margin-bottom: 20px; }
    .cart-progress-step strong { display: none; }
    .cart-progress-step.is-active strong { display: block; font-size: 13px; }
    .cart-progress-line { margin: 0 8px; }
    .cart-alert { padding: 11px 12px; }
    .cart-alert-action { align-items: flex-start; flex-wrap: wrap; }
    .cart-alert-action form { flex-basis: 100%; margin-left: 33px; }
    .cart-volume-head { display: block; }
    .cart-free-shipping-head { align-items: flex-start; }
    .cart-free-shipping-head > span:last-child { text-align: right; }
    .cart-volume-head > span { display: block; margin-top: 8px; text-align: left; }
    .cart-volume-tiers { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cart-product-main { grid-template-columns: 70px minmax(0, 1fr) 30px; column-gap: 11px; padding: 13px 11px; }
    .cart-product-picture { width: 66px; height: 78px; }
    .cart-product-info h2 { font-size: 14px; }
    .cart-product-quantity { grid-column: 1 / span 2; grid-row: auto; }
    .cart-product-mobile-actions { grid-column: 1 / span 3; }
    .cart-addons { margin: 0 10px 12px; padding: 10px; }
    .cart-addon-grid { grid-template-columns: 1fr; }
    .cart-addon { grid-template-columns: auto minmax(0, 1fr); }
    .cart-addon > form { grid-column: 2; }
    .cart-bottom-tools, .cart-summary { padding: 15px; }
    .cart-tool-card form { display: block; }
    .cart-tool-card input, .cart-tool-card textarea { width: 100%; border-radius: 3px; }
    .cart-tool-card button { width: 100%; margin-top: 6px; border-radius: 3px; }
    .cart-bottom { grid-template-columns: minmax(0, 1fr); }
}
