/* Fashionbymilox — fully custom cart drawer, independent of Framer's own
   modal (which only exists in the DOM after a same-pageload Add to Cart
   click, so it can't be relied on for a header cart-icon click when a
   returning visitor already has items from a previous visit). Visual
   tokens match /cart/ and /checkout/ (fbm-checkout.css), duplicated here
   since those pages don't load that stylesheet. */
.fbm-cd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2147483000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fbm-cd-backdrop.fbm-cd-open {
  opacity: 1;
  pointer-events: auto;
}

.fbm-cd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  color: #000;
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
}
.fbm-cd-drawer.fbm-cd-open {
  transform: translateX(0);
}

.fbm-cd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14px;
  flex-shrink: 0;
}
.fbm-cd-header-title { font-weight: 600; }
.fbm-cd-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: #000;
  padding: 0;
}

.fbm-cd-lines {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

.fbm-cd-empty {
  padding: 40px 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}
.fbm-cd-empty a { color: #000; }

.fbm-cd-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.fbm-cd-line img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  background: #f5f5f5;
  border-radius: 4px;
}
.fbm-cd-line-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.fbm-cd-line-opt { font-size: 12px; color: rgba(0, 0, 0, 0.55); margin-bottom: 10px; }
.fbm-cd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.fbm-cd-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  color: #000;
}
.fbm-cd-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
}
.fbm-cd-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 13px;
}
.fbm-cd-line-remove {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.fbm-cd-footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.fbm-cd-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.fbm-cd-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.fbm-cd-btn-primary { background: #000; color: #fff; margin-bottom: 8px; }
.fbm-cd-btn-primary:hover { background: #1a1a1a; }
.fbm-cd-btn-secondary { background: #f5f5f5; color: #000; margin-bottom: 12px; }
.fbm-cd-btn-secondary:hover { background: #e8e8e8; }
.fbm-cd-viewbasket {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #000;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .fbm-cd-drawer { width: 100vw; max-width: 100vw; }
}
