.filara-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(44, 31, 23, 0);
  visibility: hidden; z-index: 2000;
  transition: background 0.44s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.44s;
  pointer-events: none;
}
.filara-drawer-overlay.is-open {
  visibility: visible;
  background: rgba(44, 31, 23, 0.5);
  pointer-events: auto;
  transition: background 0.44s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0s;
}
.filara-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 2001;
  display: flex; flex-direction: column; overflow: hidden;
}
.filara-drawer-overlay.is-open .filara-drawer { transform: translateX(0); }
.filara-drawer-overlay[data-empty="true"] .fd-progress,
.filara-drawer-overlay[data-empty="true"] .fd-footer { display: none; }
.fd-empty {
  padding: 3rem 1rem;
  text-align: center;
}
.fd-empty__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.fd-empty__text {
  color: var(--ink-muted);
  line-height: 1.6;
}
@media (max-width: 540px) { .filara-drawer { width: 100vw; } }
.fd-header {
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}
.fd-title {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
}
.fd-title__count { color: var(--ink-muted); font-weight: 500; margin-left: 0.125rem; }
.fd-close {
  width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: color 0.15s ease;
}
.fd-close:hover { color: var(--madder); }
.fd-close svg { width: 18px; height: 18px; }
.fd-progress {
  padding: 0.75rem 1.25rem 0.875rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.fd-progress__title {
  text-align: center; font-size: 0.75rem;
  color: var(--ink); margin-bottom: 0.625rem;
  font-weight: 500; letter-spacing: 0.01em; line-height: 1.3;
}
.fd-progress__title strong { color: var(--madder); font-weight: 700; }
.fd-progress__track {
  position: relative; height: 3px;
  background: var(--border-soft);
  border-radius: 1.5px; margin: 0 2rem;
}
.fd-progress__fill {
  position: absolute; inset: 0;
  background: var(--madder); border-radius: 1.5px; width: 100%;
}
.fd-progress__dots {
  display: flex; justify-content: space-between;
  position: absolute; top: -7px; left: -6px; right: -6px;
}
.fd-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--madder);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-inverse);
}
.fd-dot svg { width: 10px; height: 10px; }
.fd-progress__labels {
  display: flex; justify-content: space-between;
  margin: 0.5rem 2rem 0;
  font-size: 0.625rem; color: var(--ink-muted);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.filara-drawer-overlay[data-product="device"] .fd-dot--ebook,
.filara-drawer-overlay[data-product="device"] .fd-label--ebook { display: none; }
.filara-drawer-overlay[data-product="device"] .fd-progress__dots,
.filara-drawer-overlay[data-product="device"] .fd-progress__labels { justify-content: center; }
.fd-items {
  flex: 1; overflow-y: auto;
  padding: 0.5rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.fd-item {
  display: grid; grid-template-columns: 68px 1fr auto;
  gap: 0.875rem; padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.fd-item:last-of-type { border-bottom: none; }
.fd-item__image {
  width: 68px; height: 68px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  object-fit: cover; display: block; border-radius: 2px;
}
.fd-item__body {
  min-width: 0;
  display: flex; flex-direction: column; gap: 0.375rem;
}
.fd-item__name {
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink); line-height: 1.2;
}
.fd-item__qty-chip {
  display: inline-block; margin-left: 0.375rem;
  padding: 0.0625rem 0.4375rem;
  background: var(--olive); color: var(--ink-inverse);
  font-family: var(--font-body);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.02em; border-radius: 10px;
  vertical-align: middle;
}
.fd-item__gift-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--madder); color: var(--ink-inverse);
  font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.1875rem 0.4375rem;
  border-radius: 2px; width: fit-content;
}
.fd-item__gift-badge svg { width: 10px; height: 10px; }
.fd-item__qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 2px; overflow: hidden; width: fit-content;
}
.fd-item__qty button {
  width: 26px; height: 26px;
  background: none; border: none; color: var(--ink);
  cursor: pointer; font-size: 0.9375rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease; padding: 0;
}
.fd-item__qty button:hover:not(:disabled) { background: var(--bg-alt); }
.fd-item__qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.fd-item__qty-val {
  min-width: 28px; text-align: center;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink);
}
.fd-item__price-col {
  text-align: right;
  display: flex; flex-direction: column; gap: 0.125rem;
  align-items: flex-end; min-width: 64px;
}
.fd-item__price {
  font-family: var(--font-display);
  font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); line-height: 1.1;
}
.fd-item__price-old {
  font-size: 0.75rem; color: var(--ink-muted); text-decoration: line-through;
}
.fd-item__price--free {
  color: var(--olive); font-weight: 700;
  font-size: 0.8125rem; letter-spacing: 0.04em;
}
.fd-footer {
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-soft);
  background: var(--bg); flex-shrink: 0;
}
.fd-subtotal {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 0.75rem;
}
.fd-subtotal__label {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.01em;
}
.fd-subtotal__values { display: flex; align-items: baseline; gap: 0.5rem; }
.fd-save-pill {
  background: var(--madder); color: var(--ink-inverse);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1875rem 0.5rem;
  border-radius: 10px; text-transform: uppercase;
}
.fd-subtotal__old {
  font-size: 0.875rem; color: var(--ink-muted); text-decoration: line-through;
}
.fd-subtotal__now {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); line-height: 1;
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fd-subtotal__now.is-pulsing { transform: scale(1.08); }
.fd-checkout {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; width: 100%;
  background: var(--cta); color: var(--ink-inverse);
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 2px;
  cursor: pointer; transition: background 0.15s ease;
}
.fd-checkout:hover { background: var(--cta-hover); }
.fd-checkout svg { width: 14px; height: 14px; }
.fd-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem; color: var(--ink-muted);
}
.fd-trust__stars {
  color: var(--brass); font-size: 0.875rem; letter-spacing: -0.05em;
}
.fd-trust strong { color: var(--ink); font-weight: 700; }
body.filara-drawer-open { overflow: hidden; }
.fd-status { padding: 0.75rem 1.25rem; color: var(--madder); font-size: 0.875rem; }
.fd-status[hidden] { display: none; }
.fd-empty__shop { display: inline-block; margin-top: 1.5rem; padding: 0.75rem 1.25rem; background: var(--cta); color: var(--ink-inverse); border-radius: 2px; text-decoration: none; }
.fd-item__remove { font-size: 0.75rem; text-decoration: underline; color: var(--ink-muted); margin-top: 0.5rem; }
.fd-checkout:disabled { opacity: 0.55; cursor: not-allowed; }
.cart-count { pointer-events: none; }
#headerCart:focus-visible, .filara-drawer button:focus-visible, .filara-drawer a:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .filara-drawer, .filara-drawer-overlay { transition: none; } }
