/* The bag drawer (js/bag.js): slides in from the right; full width on phones */
.bag { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--brand, #0e3956); font-family: "Inter Tight", system-ui, sans-serif; overflow: visible; }
.bag::backdrop { background: rgba(6,30,44,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .28s; }
.bag.is-open::backdrop { opacity: 1; }
.bag__panel { display: flex; flex-direction: column; height: 100%; background: #f7f8f9; border-left: 1px solid rgba(14,57,86,.12); box-shadow: -30px 0 80px -30px rgba(10,40,57,.45); transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.bag.is-open .bag__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .bag__panel, .bag::backdrop { transition: none; } }
html.bag-locked { overflow: hidden; }

.bag__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 24px; border-bottom: 1px solid rgba(14,57,86,.1); }
.bag__head h2 { margin: 0; font-weight: 300; font-size: 24px; letter-spacing: -0.03em; text-transform: none; }
.bag__n { font-size: 15px; color: #5b6774; letter-spacing: 0; }
.bag__x { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.bag__x:hover { background: rgba(14,57,86,.06); }

.bag__body { flex: 1; overflow: auto; padding: 8px 24px; }
.bag__list { list-style: none; margin: 0; padding: 0; }
.bag__item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(14,57,86,.1); }
.bag__item:last-child { border-bottom: 0; }
.bag__thumb { flex: none; width: 88px; height: 88px; border-radius: 14px; background: #fff; border: 1px solid rgba(14,57,86,.08); overflow: hidden; display: grid; place-items: center; }
.bag__thumb img { width: 92%; height: 92%; object-fit: contain; }
.bag__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bag__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bag__info h3 { margin: 0; font-weight: 400; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; text-transform: none; }
.bag__info h3 a { color: inherit; text-decoration: none; }
.bag__info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bag__price { font-size: 15px; font-weight: 300; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bag__sum { margin: 0; font-size: 12.5px; line-height: 1.5; color: #5b6774; }
.bag__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; }
.bag__qty { display: inline-flex; align-items: center; border: 1px solid rgba(14,57,86,.25); border-radius: 999px; background: #fff; }
.bag__qty button { width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font: inherit; font-size: 16px; cursor: pointer; }
.bag__qty button:disabled { opacity: .35; cursor: default; }
.bag__qty span { min-width: 18px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.bag__link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(14,57,86,.3); cursor: pointer; }
.bag__link:hover { text-decoration-color: currentColor; }

.bag__empty { padding: 40px 0; text-align: center; }
.bag__empty p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: #5b6774; }
.bag__empty p:first-child { font-size: 20px; font-weight: 300; color: var(--brand, #0e3956); }
.bag__go { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 24px; border-radius: 999px; background: var(--brand, #0e3956); color: #f0e6cd; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

.bag__foot { padding: 18px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(14,57,86,.1); background: #f7f8f9; }
.bag__total { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bag__total b { font-weight: 300; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bag__fine { margin: 6px 0 14px; font-size: 12px; line-height: 1.5; color: #5b6774; }
.bag__checkout { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin: 0; padding: 0 24px; border: 1px solid var(--brand, #0e3956); border-radius: 999px; background: var(--brand, #0e3956); color: #f0e6cd; font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.bag__checkout:hover { background: #164a70; }
.bag__note { margin: 0; max-height: 0; overflow: hidden; font-size: 12px; line-height: 1.5; color: #5b6774; transition: max-height .25s, margin .25s; }
.bag__note.is-on { max-height: 80px; margin-top: 12px; }

.bag :focus-visible { outline: 3px solid var(--brand, #0e3956); outline-offset: 2px; }
