.topbar .actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}
.header-action{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;color:#f5f5f1;transition:color .35s ease,transform .5s cubic-bezier(.22,1,.36,1)}
.header-action:hover,.header-action:focus-visible{color:#f12b21;transform:translateY(-3px) rotate(-5deg)}
.header-action svg{display:block;width:27px;height:27px;fill:currentColor}
.header-action--bag svg{width:29px;height:29px}
.header-action__count{position:absolute;top:-3px;right:-7px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 3px;border-radius:999px;background:#f12b21;color:#fff;font-size:10px;font-weight:800}
.header-action__count[hidden]{display:none}
.header-login{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 20px;border-radius:999px;background:#f5f5f1;color:#111;font-size:13px;font-weight:800;letter-spacing:.11em;transition:background .35s,color .35s,transform .5s cubic-bezier(.22,1,.36,1)}
.header-login:hover,.header-login:focus-visible{background:#f12b21;color:#fff;transform:translateY(-3px)}
.commerce-page{min-height:58vh;padding:70px 0 110px;background:#f4f4f1;color:#111}
.commerce-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}
.commerce-heading h2{margin:0;font-size:clamp(28px,3vw,46px);letter-spacing:-.06em}
.commerce-heading>span{font-size:12px;font-weight:800;letter-spacing:.08em}
.cart-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:18px;align-items:start}
.cart-row,.cart-summary,.login-panel,.cart-empty{border-radius:24px;background:#e7e7e4}
.cart-row{display:grid;grid-template-columns:105px 1fr auto;gap:22px;align-items:center;padding:22px;margin-bottom:10px}
.cart-row img{width:105px;height:105px;object-fit:cover;border-radius:12px;background:#ddd}
.cart-row h3{margin:0 0 5px;font-size:21px;letter-spacing:-.04em}
.cart-row__meta{color:#777;font-size:12px;font-weight:800;letter-spacing:.06em}
.cart-row__price{margin-top:12px;font-size:16px;font-weight:800}
.cart-row__actions{display:flex;align-items:center;gap:10px}
.cart-row__actions button{display:grid;place-items:center;min-width:34px;height:34px;border:1px solid #111;border-radius:999px;background:transparent;cursor:pointer;transition:background .25s,color .25s}
.cart-row__actions button:hover{background:#111;color:#fff}
.cart-row__actions .cart-remove{font-size:12px;padding:0 12px}
.cart-row__quantity{min-width:20px;text-align:center;font-weight:800}
.cart-summary{padding:28px}
.cart-summary h3{margin:0 0 28px;font-size:18px;letter-spacing:.02em}
.cart-summary__line,.cart-summary__total{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;font-size:14px}
.cart-summary__total{margin:14px 0 20px;padding-top:20px;border-top:1px solid #b9b9b5;font-weight:800;font-size:18px}
.cart-summary>p,.checkout-notice{color:#686864;font-size:13px;line-height:1.55}
.commerce-primary,.commerce-secondary{display:flex;align-items:center;justify-content:center;width:100%;min-height:47px;border:1px solid #111;border-radius:999px;padding:12px 18px;font-size:14px;font-weight:800;text-align:center;cursor:pointer;transition:background .25s,color .25s,transform .35s cubic-bezier(.22,1,.36,1)}
.commerce-primary{background:#111;color:#fff}
.commerce-primary:not(:disabled):hover{background:#f12b21;border-color:#f12b21;transform:translateY(-2px)}
.commerce-primary:disabled{opacity:.48;cursor:not-allowed}
.commerce-secondary{margin-top:9px;background:transparent;color:#111}
.commerce-secondary:hover{background:#111;color:#fff}
.cart-empty{padding:62px 30px;text-align:center}
.cart-empty h3{margin:0 0 8px;font-size:30px;letter-spacing:-.05em}
.cart-empty p{margin:0 0 24px;color:#686864}
.cart-empty .commerce-primary{max-width:220px;margin:auto}
.login-panel{max-width:650px;margin:auto;padding:clamp(35px,5vw,70px)}
.commerce-kicker{margin:0 0 25px;color:#f12b21;font-size:12px;font-weight:800;letter-spacing:.13em}
.login-panel h2{margin:0 0 18px;font-size:clamp(30px,4vw,56px);line-height:1.08;letter-spacing:-.06em}
.login-panel>p:not(.commerce-kicker){margin:0 0 30px;color:#555;line-height:1.7}
.login-panel .auth-preview-note{margin-bottom:28px;padding:13px 15px;border-left:3px solid #f12b21;background:#f6f6f3;color:#555;font-size:13px;line-height:1.55}
.auth-form{display:flex;flex-direction:column}
.auth-form label{margin:0 0 8px;font-size:13px;font-weight:800}
.auth-form input{width:100%;height:51px;margin:0 0 22px;padding:0 16px;border:1px solid #bdbdb8;border-radius:11px;background:#f7f7f4;color:#111;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
.auth-form input:focus{border-color:#f12b21;box-shadow:0 0 0 3px #f12b2122}
.auth-form input::placeholder{color:#989894}
.auth-help{align-self:flex-end;margin:-8px 0 23px;font-size:12px;color:#666;text-decoration:underline;text-underline-offset:3px}
.auth-help:hover{color:#f12b21}
.auth-feedback{min-height:1.5em;margin:12px 0 0;color:#b22119;font-size:13px;line-height:1.5}
.auth-switch{display:flex;justify-content:center;gap:8px;margin-top:26px;padding-top:24px;border-top:1px solid #c9c9c5;font-size:13px}
.auth-switch a{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.auth-switch a:hover{color:#f12b21}
@media(max-width:850px){.cart-layout{grid-template-columns:1fr}.cart-summary{order:2}}
@media(max-width:600px){.topbar .actions{gap:5px}.header-action{width:31px;height:34px}.header-action svg{width:23px;height:23px}.header-login{padding:7px 11px;font-size:10px}.commerce-page{padding:50px 0 75px}.cart-row{grid-template-columns:76px 1fr;gap:14px;padding:14px}.cart-row img{width:76px;height:76px}.cart-row h3{font-size:17px}.cart-row__actions{grid-column:2;justify-content:flex-start}.cart-summary{padding:22px}}
@media(prefers-reduced-motion:reduce){.header-action,.header-login,.commerce-primary,.commerce-secondary{transition:none}}
