.ls-cart-icon {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eee;
  margin-left: 8px;
}
.ls-cart-icon:after {
  content: "🛒";
}
.ls-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e11;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  min-width: 18px;
  text-align: center;
}

.ls-cart-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.ls-cart-overlay.active {
  pointer-events: auto;
}
.ls-cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  transition: right 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
}
.ls-cart-overlay.active .ls-cart-panel {
  right: 0;
}
.ls-cart-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ls-cart-body {
  padding: 12px 16px;
  overflow: auto;
  flex: 1;
}
.ls-cart-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.ls-cart-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.ls-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
}
.ls-cart-item small {
  color: #666;
}
.ls-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ls-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ls-cart-qty button {
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
}
.ls-cart-totals {
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

@media (max-width: 680px) {
  .ls-cart-panel {
    width: 100%;
    right: 0;
    bottom: -100%;
    height: auto;
    min-height: 60%;
    transition: bottom 0.25s ease-in-out;
  }
  .ls-cart-overlay.active .ls-cart-panel {
    bottom: 0;
  }
}
