/* Shared cart */
.sf-cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d5d2ca;
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sf-cart-trigger span {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--sf-primary);
  color: #fff;
  font-size: 11px;
}
.sf-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(16, 16, 14, 0.34);
  backdrop-filter: blur(2px);
}
.sf-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(440px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 50px rgba(20, 18, 14, 0.16);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}
.sf-cart.is-open {
  transform: translateX(0);
}
body.sf-cart-open {
  overflow: hidden;
}
.sf-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e3e1db;
}
.sf-cart-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
}
.sf-cart-head > button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1efe9;
  font-size: 24px;
  cursor: pointer;
}
.sf-cart-items {
  overflow: auto;
  padding: 0 24px;
}
.sf-cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #e8e6e0;
}
.sf-cart-thumb {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid #e7e4dd;
  border-radius: 12px;
  background: #faf9f6;
}
.sf-cart-thumb-empty {
  display: grid;
  place-items: center;
  color: #aaa;
  font-size: 32px;
  font-weight: 800;
}
.sf-cart-copy > a {
  display: block;
  margin-bottom: 7px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}
.sf-cart-copy > strong {
  font-size: 14px;
}
.sf-cart-quantity {
  display: inline-flex;
  align-items: center;
  margin-top: 13px;
  border: 1px solid #d8d5cd;
  border-radius: 8px;
  overflow: hidden;
}
.sf-cart-quantity-button {
  width: 30px;
  height: 29px;
  border: 0;
  background: #f6f5f1;
  cursor: pointer;
}
.sf-cart-quantity span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
}
.sf-cart-remove {
  margin-left: 10px;
  border: 0;
  background: transparent;
  color: #777;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}
.sf-cart-empty {
  margin: auto;
  padding: 30px;
  text-align: center;
  color: var(--sf-muted);
}
.sf-cart-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--sf-text);
  font-size: 18px;
}
.sf-cart-footer {
  margin-top: auto;
  padding: 22px 24px;
  border-top: 1px solid #e3e1db;
}
.sf-cart-footer > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 18px;
}
.sf-cart-footer .sf-button {
  width: 100%;
  margin: 0;
  border: 0;
  opacity: 0.55;
}
.sf-cart-footer small {
  display: block;
  margin-top: 12px;
  color: var(--sf-muted);
  text-align: center;
}
.sf-add-cart {
  width: 100%;
  border: 0;
  cursor: pointer;
}
.sf-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 560px) {
  .sf-header-actions nav {
    display: none;
  }
  .sf-cart-head,
  .sf-cart-items,
  .sf-cart-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}
