/* Cart drawer (Senior Developer 2). Uses only tokens/variables from the site. */
.cart-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.cart-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cart-button:focus-visible, .cart-close:focus-visible, .cart-remove:focus-visible, .cart-checkout:focus-visible { outline: 3px solid var(--focus, #1a56db); outline-offset: 2px; }
.cart-button--float { position: fixed; top: 1rem; right: 1rem; z-index: 70; background: var(--bg, #fff); color: var(--text, #111); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cart-count { min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent, #b4342d); color: var(--on-accent, #fff); font-size: .8rem; font-weight: 700; }
.cart-count[hidden] { display: none; }
@media (max-width: 480px) { .cart-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.cart-lock { overflow: hidden; }
.cart-drawer { display: flex; flex-direction: column; }
.cart-drawer[hidden] { display: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid rgba(127,127,127,.25); }
.cart-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.cart-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart-close:hover { background: rgba(127,127,127,.15); }
.cart-body { flex: 1; overflow-y: auto; padding: .5rem 1.4rem; overscroll-behavior: contain; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid rgba(127,127,127,.2); }
.cart-line-name { margin: 0; font-weight: 700; }
.cart-line-meta { margin: .2rem 0 0; font-size: .9rem; opacity: .75; }
.cart-line-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cart-remove { justify-self: end; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .9rem; min-height: 44px; padding: 0 .5rem; cursor: pointer; opacity: .8; }
.cart-remove:hover { opacity: 1; }
.cart-stepper { justify-self: start; }
.cart-foot { padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(127,127,127,.25); display: grid; gap: .9rem; }
.cart-sums { margin: 0; display: grid; gap: .4rem; }
.cart-sums div { display: flex; justify-content: space-between; gap: 1rem; }
.cart-sums dt, .cart-sums dd { margin: 0; }
.cart-sums dd { font-variant-numeric: tabular-nums; }
.cart-discount { color: var(--success, #1b6e3c); }
.cart-total { font-size: 1.35rem; font-weight: 800; padding-top: .5rem; border-top: 1px solid rgba(127,127,127,.25); }
.cart-checkout { text-align: center; justify-content: center; text-decoration: none; width: 100%; }
.cart-checkout[aria-disabled="true"] { opacity: .6; }
.cart-loading { margin: 0; opacity: .75; }
.cart-error { margin: 1rem 0; color: var(--danger, #b00020); font-weight: 600; }
.cart-empty { text-align: center; padding: 3rem 1rem; display: grid; gap: .8rem; justify-items: center; }
.cart-empty-title { font-size: 1.4rem; font-weight: 700; margin: 0; }
.cart-empty p { margin: 0; }
.cart-foot .shop-testlabel { text-align: center; }
@media (prefers-reduced-motion: reduce) { .cart-button { transition: none; } }
