/* Scrim + bottom sheet */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.scrim.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: var(--md-surface-container-high);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--md-elevation-2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 21;
  padding-bottom: 16px;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 32px;
  height: 4px;
  background: var(--md-outline);
  border-radius: 2px;
  margin: 12px auto;
}

.sheet-content {
  padding: 0 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--md-surface-container-highest);
}

.sheet-icon[hidden] {
  display: none;
}

.sheet-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--md-on-surface);
}

.sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--md-primary);
  margin: 4px 0 12px;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--md-surface-container-highest);
  border-radius: 20px;
  padding: 4px;
}

.qty-stepper button {
  appearance: none;
  cursor: pointer;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: transparent;
  color: var(--md-on-surface);
  font-size: 18px;
  line-height: 1;
}

.qty-stepper button:hover {
  background: rgba(255, 255, 255, 0.08);
}

#qtyValue {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.btn-add {
  flex: 1;
  appearance: none;
  cursor: pointer;
  border: none;
  height: 44px;
  border-radius: 22px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: filter 0.15s ease;
}

.btn-add:hover {
  filter: brightness(1.08);
}

.btn-add:active {
  filter: brightness(0.95);
}
