/* A distinct confirmed state on catalog and product-page buttons. */
[data-cart-product].is-in-cart { background: #edf8f3 !important; color: #246c50 !important; border: 1px solid #a9d5c0 !important; box-shadow: none !important; }
[data-cart-product].is-in-cart::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: #d5efdf; color: #246c50; font-size: 13px; font-weight: 700; flex-shrink: 0; }
[data-cart-product].is-in-cart > img { display: none; }
[data-cart-product].is-in-cart:hover { background: #dff2e8 !important; border-color: #71af91 !important; color: #174d37 !important; }
[data-cart-product]:focus-visible { outline: 3px solid #007ba8; outline-offset: 3px; }
.cart-heading { padding: 30px 0 25px; }
.cart-back { display: inline-flex; min-height: 28px; align-items: center; color: #496575; font-size: 13px; text-decoration: none; }
.cart-heading h1 { display: flex; align-items: center; gap: 12px; margin: 15px 0 10px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.7px; }
.cart-heading h1 span { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: #e8f1f5; color: #587383; font-size: 15px; letter-spacing: 0; }
.cart-heading p { margin: 0; font-size: 15px; line-height: 1.6; color: #607381; }
.cart-page { --cart-ink: #193b4e; --cart-muted: #607381; margin-top: 0; margin-bottom: 0; padding-bottom: 58px; color: var(--cart-ink); }
.cart-page [hidden] { display: none !important; }
.cart-page *, .cart-page *::before, .cart-page *::after { box-sizing: border-box; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.cart-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cart-item { padding: 24px; border: 1px solid #e1eaf0; background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgb(27 62 82 / 3%); }
.cart-item-top { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 18px; }
.cart-item-image { display: grid; place-items: center; width: 80px; height: 88px; padding: 8px; border-radius: 12px; background: #f3f7f9; color: #94adb9; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-image svg { width: 37px; height: 37px; }
.cart-item-name { display: block; margin: 0 0 8px; color: var(--cart-ink); text-decoration: none; font-size: 15px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
a.cart-item-name:hover { color: #007ca9; }
.cart-item-price { color: var(--cart-muted); font-size: 13px; }
.cart-item-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; margin-top: 20px; border-top: 1px solid #edf1f4; }
.cart-quantity { display: inline-flex; height: 42px; border: 1px solid #cbdce6; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cart-quantity button { display: grid; place-items: center; width: 38px; padding: 0; background: #f4f8fa; border: 0; color: #244c62; font-size: 21px; cursor: pointer; }
.cart-quantity button:hover { background: #e3f1f7; }
.cart-quantity button:disabled { color: #a1b2bc; cursor: not-allowed; }
.cart-quantity input { width: 48px; min-width: 0; padding: 0 2px; border: 0; background: #fff; color: var(--cart-ink); font-family: inherit; font-size: 16px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.cart-quantity input::-webkit-inner-spin-button, .cart-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove { padding: 9px 0; border: 0; background: none; color: #748995; font-family: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-remove:hover { color: #a62d3d; }
.cart-item-sum { margin-left: auto; font-size: 20px; font-weight: 600; white-space: nowrap; }
.cart-save-note { margin: 16px 4px 0; color: var(--cart-muted); font-size: 12px; line-height: 1.7; }
.cart-summary { position: sticky; top: 20px; min-width: 0; }
.cart-summary-card { padding: 26px; border: 1px solid #e1eaf0; border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgb(27 62 82 / 3%); }
.cart-summary h2 { margin: 0 0 24px; font-size: 21px; font-weight: 600; }
.cart-summary-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid #e1eaf0; color: var(--cart-muted); font-size: 13px; }
.cart-summary-row > span:last-child { white-space: nowrap; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 21px 0 16px; }
.cart-total > span { font-size: 13px; }
.cart-total strong { font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; white-space: nowrap; }
.cart-cost-note { margin: 0 0 22px; padding: 12px; border-radius: 10px; background: #f1f7fa; color: #547080; font-size: 12px; line-height: 1.6; }
.cart-primary { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 12px; background: #00a8e5; box-shadow: 0 5px 15px rgb(0 148 206 / 13%); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.cart-primary:hover { background: #008ec5; color: #fff; }
.cart-checkout-note { margin: 12px 0 0; color: var(--cart-muted); font-size: 11px; line-height: 1.6; text-align: center; }
.cart-help { display: flex; flex-direction: column; gap: 7px; padding: 20px 10px; color: var(--cart-ink); text-decoration: none; }
.cart-help > span { color: var(--cart-muted); font-size: 12px; }
.cart-help strong { font-size: 17px; font-weight: 500; }
.cart-page a:focus-visible, .cart-page button:focus-visible, .cart-page input:focus-visible { outline: 3px solid #007fa9; outline-offset: 3px; }
.cart-quantity input:focus-visible { outline-offset: -3px; }
.cart-undo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px; background: #eaf6f1; border: 1px solid #c9e5d7; border-radius: 12px; color: #2c6850; font-size: 13px; }
.cart-undo > span { overflow-wrap: anywhere; }
.cart-undo button { flex-shrink: 0; padding: 9px 0; border: 0; background: transparent; color: #246c50; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.cart-empty { padding: 46px 24px; text-align: center; border: 1px solid #e1eaf0; border-radius: 20px; background: #fff; }
.cart-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%; background: #eaf7fc; color: #00a8e5; font-size: 32px; }
.cart-empty h2 { margin: 0 0 12px; font-size: 26px; }
.cart-empty p { max-width: 440px; margin: 0 auto 24px; color: var(--cart-muted); font-size: 14px; line-height: 1.7; }
.cart-empty .cart-primary { max-width: 270px; margin: auto; }
@media (max-width: 991px) {
    .cart-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
    .cart-item, .cart-summary-card { padding: 20px; }
    .cart-item-top { grid-template-columns: 60px minmax(0, 1fr); gap: 13px; }
    .cart-item-image { width: 60px; height: 70px; }
}
@media (max-width: 767px) {
    .cart-heading { padding: 20px 0; }
    .cart-heading p { font-size: 14px; }
    .cart-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .cart-summary { position: static; }
    .cart-item, .cart-summary-card { padding: 18px; border-radius: 16px; }
    .cart-item-name { font-size: 14px; }
    .cart-item-bottom { gap: 12px; }
    .cart-item-sum { font-size: 18px; }
    .cart-undo { flex-direction: column; align-items: flex-start; gap: 2px; }
    .cart-page { padding-bottom: 32px; }
}
@media (max-width: 359px) {
    .cart-item { padding: 14px; }
    .cart-item-sum { font-size: 17px; }
    .cart-item-bottom { gap: 9px; }
    .cart-quantity button { width: 32px; }
    .cart-quantity input { width: 40px; }
}
