#sheet-toggle { display: none; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9999;
}

#sheet-toggle:checked ~ .sheet-overlay {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  max-width: 700px;
  width: 100%;
  background: white;
  height: 85%;
  max-height: 100vh;
  border-radius: 18px 18px 0 0;
  transform: translate(-50%, 100%);
  transition: transform .35s ease, height .35s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

#sheet-toggle:checked ~ .bottom-sheet {
  transform: translate(-50%, 0);
}

.bottom-sheet.full {
  height: 100%;
}

.sheet-header {
  padding: 15px;
  text-align: center;
  cursor: grab;
  user-select: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.drag-handle {
  width: 40px;
  height: 5px;
  background: #ccc;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.product-root {
  padding: 20px;
  overflow-y: auto;
}

.close-btn {
  display: block;
  padding: 10px;
  background: red;
  color: white;
  margin-top: 20px;
  cursor: pointer;
  text-align: center;
}

