.static-cart-toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 6px;
  color: #fff;
  background: #171717;
  box-shadow: 0 10px 32px rgb(0 0 0 / 20%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.static-cart-toast.is-visible { opacity: 1; transform: translateY(0); }

dialog[data-testid="cart-drawer-dialog"] {
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: #1b1b1b;
}
dialog[data-testid="cart-drawer-dialog"]::backdrop { background: rgb(0 0 0 / 35%); }

.static-cart-drawer { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.static-cart-drawer__header { min-height: 70px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e5e5; }
.static-cart-drawer__header h2 { margin: 0; font-size: 21px; letter-spacing: 0; }
.static-cart-icon-button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.static-cart-drawer__body { overflow: auto; padding: 8px 22px; }
.static-cart-drawer__footer { padding: 18px 22px 22px; border-top: 1px solid #e5e5e5; background: #fff; }
.static-cart-drawer__subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 17px; }
.static-cart-note { margin: 0 0 16px; color: #666; font-size: 13px; line-height: 1.45; }
.static-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.static-cart-action { min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #1b1b1b; border-radius: 4px; text-decoration: none; cursor: pointer; }
.static-cart-action--primary { color: #fff; background: #000; }
.static-cart-action--secondary { color: #1b1b1b; background: #fff; }

.static-cart-line { display: grid; grid-template-columns: 86px minmax(0, 1fr) 32px; gap: 14px; padding: 18px 0; border-bottom: 1px solid #ececec; }
.static-cart-line__image { width: 86px; aspect-ratio: 1; display: block; border: 1px solid #e5e5e5; background: #fafafa; }
.static-cart-line__image img { width: 100%; height: 100%; object-fit: contain; }
.static-cart-line__details { min-width: 0; }
.static-cart-line__title { display: block; color: inherit; line-height: 1.4; text-decoration: none; }
.static-cart-line__price { margin: 6px 0 12px; color: #666; }
.static-cart-line__total { margin: 10px 0 0; font-weight: 600; }
.static-cart-remove { align-self: start; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; font-size: 23px; line-height: 1; cursor: pointer; }
.static-cart-quantity { width: 122px; height: 42px; display: grid; grid-template-columns: 38px 46px 38px; border: 1px solid #d7d7d7; border-radius: 4px; overflow: hidden; }
.static-cart-quantity button { border: 0; background: #fff; cursor: pointer; }
.static-cart-quantity input { width: 100%; min-width: 0; padding: 0; border: 0; text-align: center; appearance: textfield; }
.static-cart-quantity input::-webkit-inner-spin-button { appearance: none; }

.static-cart-empty { min-height: 270px; padding: 48px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.static-cart-empty h2 { margin: 0 0 22px; font-size: 23px; letter-spacing: 0; }
.static-cart-empty .static-cart-action { min-width: 190px; }

.static-cart-page-host { min-height: 380px; }
.static-cart-page { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 62px 0 76px; }
.static-cart-page__header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.static-cart-page__header h1 { margin: 0; font-size: 36px; letter-spacing: 0; }
.static-cart-page__layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr); gap: 60px; align-items: start; }
.static-cart-page__items { border-top: 1px solid #dedede; }
.static-cart-page__items .static-cart-line { grid-template-columns: 118px minmax(0, 1fr) 40px; padding: 22px 0; }
.static-cart-page__items .static-cart-line__image { width: 118px; }
.static-cart-summary { padding: 24px; border: 1px solid #dedede; border-radius: 6px; }
.static-cart-summary h2 { margin: 0 0 22px; font-size: 20px; letter-spacing: 0; }
.static-cart-summary__row { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.static-cart-summary .static-cart-action { width: 100%; margin-top: 8px; }
.static-cart-page-empty { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.static-cart-page-empty h1 { margin: 0 0 25px; font-size: 30px; letter-spacing: 0; }

.static-cart-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 8px; padding: 28px; color: #191919; box-shadow: 0 18px 60px rgb(0 0 0 / 24%); }
.static-cart-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.static-cart-dialog h2 { margin: 0 30px 12px 0; font-size: 21px; letter-spacing: 0; }
.static-cart-dialog p { margin: 0 0 22px; color: #555; line-height: 1.55; }
.static-cart-dialog__action { min-height: 44px; border: 0; border-radius: 4px; padding: 0 16px; color: #fff; background: #000; font-weight: 700; cursor: pointer; }

@media (max-width: 749px) {
  .static-cart-toast { right: 16px; bottom: 16px; }
  .static-cart-actions { grid-template-columns: 1fr; }
  .static-cart-page { width: min(100% - 32px, 620px); padding: 38px 0 52px; }
  .static-cart-page__header { display: block; margin-bottom: 24px; }
  .static-cart-page__header h1 { margin-bottom: 10px; font-size: 30px; }
  .static-cart-page__layout { grid-template-columns: 1fr; gap: 32px; }
  .static-cart-page__items .static-cart-line { grid-template-columns: 88px minmax(0, 1fr) 34px; }
  .static-cart-page__items .static-cart-line__image { width: 88px; }
}
