/* Drawery: koszyk, zapytanie ofertowe, menu mobilne. Panel 400 px, przejście 240 ms. */

.ff-drawer,
.ff-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.ff-drawer.is-open,
.ff-mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ff-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 16, 0.55);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-standard);
}
.ff-drawer.is-open .ff-drawer__scrim,
.ff-mobile-menu.is-open .ff-drawer__scrim { opacity: 1; }

.ff-drawer__panel,
.ff-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-0);
  box-shadow: var(--shadow-4);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease-standard);
}
.ff-drawer.is-open .ff-drawer__panel,
.ff-mobile-menu.is-open .ff-mobile-menu__panel { transform: translateX(0); }

.ff-mobile-menu__panel { left: 0; right: auto; transform: translateX(-100%); }
.ff-mobile-menu.is-open .ff-mobile-menu__panel { transform: translateX(0); }

.ff-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-w) solid var(--line);
  flex: 0 0 auto;
}

.ff-drawer__list {
  flex: 1 1 auto;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-drawer__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-w) solid var(--line-soft);
}

.ff-drawer__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-drawer__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ff-drawer__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.ff-drawer__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-sm-size);
  line-height: 1.3;
}
.ff-drawer__name:hover { color: var(--red-500); }
.ff-drawer__meta .ff-mono { color: var(--ink-400); }
.ff-drawer__qty { font-size: var(--caption-size); color: var(--ink-500); }

.ff-drawer__right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
}
.ff-drawer__price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.ff-drawer__remove {
  border: 0;
  background: transparent;
  color: var(--ink-400);
  cursor: pointer;
  padding: var(--space-1);
}
.ff-drawer__remove:hover { color: var(--red-500); }

.ff-drawer__foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: var(--border-w) solid var(--line);
  background: var(--surface-1);
}
.ff-drawer__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ff-drawer__total strong {
  font-family: var(--font-display);
  font-size: var(--h3-size);
}
.ff-drawer__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--caption-size);
  color: var(--ink-600);
}
.ff-drawer__note .ff-icon { color: var(--success-500); }

.ff-drawer__empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--ink-600);
}
.ff-drawer__empty .ff-icon { color: var(--ink-300); }
.ff-drawer__empty p { margin: 0; }
.ff-drawer__empty-note { font-size: var(--caption-size); color: var(--ink-500); max-width: 34ch; }

/* Próg darmowej dostawy. */
.ff-shipping-bar {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-1);
  border-bottom: var(--border-w) solid var(--line);
  flex: 0 0 auto;
}
.ff-shipping-bar p {
  margin: 0 0 var(--space-2);
  font-size: var(--caption-size);
  color: var(--ink-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ff-shipping-bar__track {
  display: block;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.ff-shipping-bar__fill {
  display: block;
  height: 100%;
  background: var(--red-500);
  transition: width var(--dur-3) var(--ease-standard);
}
.ff-shipping-bar--done p { color: var(--success-500); margin: 0; }
.ff-shipping-bar--done .ff-icon { color: var(--success-500); }

/* ── Menu mobilne ─────────────────────────────────────────── */

.ff-mobile-menu__panel { width: 320px; }
.ff-mobile-menu__search {
  display: flex;
  margin: var(--space-4) var(--space-5);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-2);
  overflow: hidden;
  height: var(--control-h);
}
.ff-mobile-menu__search input { flex: 1; border: 0; padding-inline: var(--space-3); outline: none; }
.ff-mobile-menu__search button { width: 44px; border: 0; background: transparent; color: var(--ink-600); cursor: pointer; }

.ff-mobile-menu__list,
.ff-mobile-menu__utility {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff-mobile-menu__list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding-inline: var(--space-5);
  border-bottom: var(--border-w) solid var(--line-soft);
  font-family: var(--font-condensed);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-ls);
  text-transform: uppercase;
}
.ff-mobile-menu__list .ff-icon:first-child { color: var(--red-500); }
.ff-mobile-menu__caret { margin-left: auto; color: var(--ink-300); }

.ff-mobile-menu__utility {
  margin-top: auto;
  padding: var(--space-5);
  background: var(--surface-1);
}
.ff-mobile-menu__utility li + li { margin-top: var(--space-3); }
