.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid #ECE8E0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px #1B1F1D08;
}
.photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #E9EEE7;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.fallback {
  display: grid;
  place-items: center;
  font-size: 35px;
}
.badge {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #FFF3D6;
  color: #5C4000;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.product-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card h3 {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.detail {
  height: 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.price {
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}
.action {
  display: block;
  width: 100%;
}
.out {
  filter: grayscale(1);
  opacity: 0.62;
}
.basket-bar {
  position: fixed;
  z-index: 6;
  bottom: calc(16px + max(18px, env(safe-area-inset-bottom, 18px)));
  left: 50%;
  display: flex;
  justify-content: space-between;
  width: min(460px, calc(100% - 32px));
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  box-shadow: 0 8px 28px #164C3B44;
  transform: translateX(-50%);
}
.basket-count {
  display: grid;
  flex: none;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  place-items: center;
  border-radius: 8px;
  background: #FFFFFF30;
  font-size: 13px;
  font-weight: 700;
}
.basket-total {
  margin-left: auto;
}
