.header-cart{position:relative;display:inline-flex;min-height:40px;align-items:center;gap:7px;padding:0;border:0;color:var(--ink);background:transparent;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.header-cart svg{width:21px;height:21px}.header-cart b{position:absolute;top:-5px;left:15px;display:grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;color:#fff;background:var(--blue);font-size:10px;line-height:1}.product-card__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.product-card__actions .btn{min-width:0}.product-card__actions svg,.product-detail__actions svg{width:18px;height:18px;flex:0 0 auto}.product-detail__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.product-price small,.product-price strong,.product-price span{display:block}.product-price strong{margin:3px 0;font-size:18px}.product-price span{max-width:240px;color:var(--muted);font-size:11px}.product-detail__order .product-price strong{font-size:26px}.product-detail__order .product-price span{color:#bdc9d3}.cart-drawer{position:fixed;z-index:120;inset:0;visibility:hidden;transition:visibility .25s}.cart-drawer.is-open{visibility:visible}.cart-drawer__backdrop{position:absolute;inset:0;border:0;background:rgba(10,18,25,.44);opacity:0;transition:opacity .25s;backdrop-filter:blur(3px)}.cart-drawer.is-open .cart-drawer__backdrop{opacity:1}.cart-drawer__panel{position:absolute;top:0;right:0;display:flex;width:min(100%,610px);height:100%;flex-direction:column;overflow:auto;padding:28px;background:#fff;box-shadow:-24px 0 70px rgba(10,18,25,.18);transform:translateX(102%);transition:transform .3s ease}.cart-drawer.is-open .cart-drawer__panel{transform:translateX(0)}.cart-drawer__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}.cart-drawer__head span{color:var(--blue);font-size:12px;font-weight:750}.cart-drawer__title{margin-top:4px;font-size:28px;font-weight:850;letter-spacing:-.035em}.cart-drawer__close{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border:0;border-radius:50%;color:var(--ink);background:var(--page);cursor:pointer}.cart-drawer__close svg{width:21px;height:21px}.cart-drawer__status{margin:18px 0 0}.cart-drawer__empty{display:grid;max-width:340px;place-items:center;margin:auto;text-align:center}.cart-drawer__empty>svg{width:58px;height:58px;padding:14px;border-radius:18px;color:var(--blue);background:var(--blue-soft)}.cart-drawer__empty strong{margin-top:20px;font-size:22px}.cart-drawer__empty p{margin:8px 0 20px;color:var(--muted)}.cart-drawer__content{display:block}.cart-items{display:grid;gap:12px;padding:20px 0}.cart-item{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:17px}.cart-item__image{display:grid;width:76px;height:76px;place-items:center;overflow:hidden;border-radius:13px;background:var(--page)}.cart-item__image img{width:100%;height:100%;object-fit:contain}.cart-item__image svg{width:28px;height:28px;color:var(--muted)}.cart-item__copy{min-width:0}.cart-item__copy a{display:block;overflow:hidden;color:var(--ink);font-weight:800;text-overflow:ellipsis;white-space:nowrap}.cart-item__copy small,.cart-item__copy strong{display:block}.cart-item__copy small{margin-top:4px;color:var(--muted)}.cart-item__copy strong{margin-top:7px}.cart-item__controls{display:grid;grid-template-columns:34px 36px 34px;align-items:center}.cart-item__controls button{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:19px;cursor:pointer}.cart-item__controls output{text-align:center;font-weight:800}.cart-item__remove{grid-column:1/-1;width:auto!important;margin-top:7px!important;border:0!important;color:#6d7984;background:transparent!important;font-size:11px!important}.cart-summary{display:grid;gap:9px;padding:18px 20px;border-radius:18px;background:var(--page)}.cart-summary>div{display:flex;align-items:center;justify-content:space-between;gap:18px}.cart-summary>div+div{padding-top:9px;border-top:1px solid var(--line)}.cart-summary span{color:var(--muted)}.cart-summary strong{font-size:19px}.cart-summary p{margin:3px 0 0;color:var(--muted);font-size:12px}.cart-form{display:grid;gap:14px;margin-top:20px}.cart-form__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cart-form__fields label:first-child{grid-column:1/-1}.cart-form label>span{display:block;margin-bottom:6px;font-size:12px;font-weight:750}.cart-form .form-consent{display:flex}.cart-form__note{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.cart-form>.btn{width:100%}@media(max-width:1120px){.header-cart span{display:none}}@media(max-width:620px){.cart-drawer__panel{padding:20px 15px}.cart-drawer__title{font-size:24px}.cart-item{grid-template-columns:58px minmax(0,1fr)}.cart-item__image{width:58px;height:58px}.cart-item__controls{grid-column:2}.cart-form__fields{grid-template-columns:1fr}.cart-form__fields label:first-child{grid-column:auto}.product-card__actions,.product-detail__actions{display:grid;grid-template-columns:1fr}.product-card__actions .btn{width:100%}}
.is-cart-disabled{display:none!important}.product-card__bottom{align-items:stretch;flex-direction:column}.product-card__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.product-card__actions .btn{width:100%;padding-inline:10px}.cart-summary__clear{justify-self:start;padding:0;border:0;color:#6d7984;background:transparent;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:620px){.product-card__actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.cart-drawer,.cart-drawer__backdrop,.cart-drawer__panel{transition:none}}
.header-cart [hidden],.cart-drawer [hidden]{display:none!important}

/* Stable product actions: price typography must not leak into button labels. */
.product-card__actions .btn{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:7px;line-height:1.15;white-space:nowrap}
.product-card__actions .btn span{display:inline;color:inherit;font-size:inherit;font-weight:inherit}
.product-card__actions{grid-template-columns:minmax(0,.95fr) minmax(112px,1.05fr)}

/* The cart is a form on a white drawer, so fields need their own visible surface. */
.cart-form{gap:17px;margin-top:22px;padding-bottom:6px}
.cart-form__fields{gap:14px}
.cart-form label>span{margin-bottom:7px;color:var(--ink);font-size:12px;font-weight:750}
.cart-form .field{min-height:50px;border-color:var(--line);background:#f8fafc;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.cart-form textarea.field{min-height:92px;padding-top:13px;line-height:1.45;resize:vertical}
.cart-form .field:hover{border-color:#bdcbd8;background:#fff}
.cart-form .field:focus{border-color:var(--blue);outline:0;background:#fff;box-shadow:0 0 0 3px rgba(23,105,255,.12)}
.cart-form .form-consent{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;margin:0;line-height:1.45;cursor:pointer}
.cart-form .form-consent input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue)}
.cart-form .form-consent>span{margin:0;color:var(--muted);font-size:12px;font-weight:400}
.cart-form .form-consent a{font-weight:650;text-underline-offset:2px}
.cart-form>.btn{min-height:50px}
.cart-form__note{padding:0 2px;text-align:center}

/* Keep the shared cart glyph and its counter optically centered in every header mode. */
.header-cart{min-height:42px;padding:0 8px;border-radius:12px;transition:color .18s ease,background .18s ease}
.header-cart:hover{color:var(--blue);background:var(--blue-soft)}
.header-cart svg{display:block;width:22px;height:22px;flex:0 0 auto;overflow:visible}
.header-cart b{top:-2px;left:25px;min-width:17px;height:17px;padding:0 4px;font-size:9px}
@media(max-width:1120px){.header-cart{width:42px;padding:0;justify-content:center}.header-cart b{top:-4px;right:-4px;left:auto}}

/* A cart may hold more products than the current request: selection is independent from removal. */
.cart-selection{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:11px 14px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.cart-selection__all{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:13px;font-weight:800;cursor:pointer}
.cart-selection__all input,.cart-item__select input{display:grid;width:16px;height:16px;flex:0 0 auto;place-content:center;margin:0;appearance:none;border:1px solid #aebbc7;border-radius:4px;background:#fff;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.cart-selection__all input::before,.cart-item__select input::before{width:9px;height:7px;background:#fff;content:"";clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);transform:scale(0);transition:transform .12s ease}
.cart-selection__all input:checked,.cart-item__select input:checked{border-color:var(--blue);background:var(--blue)}
.cart-selection__all input:checked::before,.cart-item__select input:checked::before{transform:scale(1)}
.cart-selection__all input:focus-visible,.cart-item__select input:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(23,105,255,.14)}
.cart-selection__status{color:var(--muted);font-size:12px;white-space:nowrap}
.cart-items{padding-top:12px}
.cart-item{grid-template-columns:18px 76px minmax(0,1fr) auto;transition:opacity .18s ease,background .18s ease,border-color .18s ease}
.cart-item.is-unselected{border-color:#e5ebf1;background:#f8fafc;opacity:.62}
.cart-item__select{display:grid;align-self:start;place-items:center;padding-top:2px;cursor:pointer}
.cart-form__selection-error{margin:0;padding:10px 12px;border-radius:10px;color:#a43b32;background:#fff0ee;font-size:12px;font-weight:700}
.cart-form>.btn:disabled{box-shadow:none;cursor:not-allowed;opacity:.48}
@media(max-width:620px){.cart-selection{margin-top:14px}.cart-item{grid-template-columns:18px 58px minmax(0,1fr);gap:10px}.cart-item__controls{grid-column:3}.cart-selection__status{font-size:11px}}
