/* ==========================================================
   BME Pantry Product Sheet
   Version: 1.0
   ========================================================== */


/* ==========================================================
   01. Sheet Shell
   ========================================================== */

.bme-pantry-sheet {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear .35s, opacity .25s ease;
}

.bme-pantry-sheet-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(43,41,38,.45);
  opacity: 0;
  transition: opacity .3s ease;
}

.bme-pantry-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 78vh;
  max-height: 78vh;
  overflow-y: auto;
  background: var(--bme-pantry-panel);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px rgba(43,41,38,.18);
  transform: translateY(100%);
  transition: transform .35s ease;
}

.bme-pantry-sheet-handle {
  width: 48px;
  height: 5px;
  margin: 14px auto;
  border-radius: 999px;
  background: rgba(176,141,87,.38);
}

.bme-pantry-sheet-content {
  padding: 12px 24px 40px;
}


/* ==========================================================
   02. Open State
   ========================================================== */

.bme-pantry-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.bme-pantry-sheet.is-open .bme-pantry-sheet-overlay {
  opacity: 1;
}

.bme-pantry-sheet.is-open .bme-pantry-sheet-panel {
  transform: translateY(0);
}


/* ==========================================================
   03. Product Content
   ========================================================== */

.bme-pantry-sheet-product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
  border-radius: 18px;
  object-fit: cover;
}

.bme-pantry-sheet-kicker {
  margin: 0 0 8px;
  color: var(--bme-brass);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.bme-pantry-sheet-title {
  margin: 0 0 10px;
  color: var(--bme-charcoal);
  font-family: var(--bme-font-heading);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 500;
  line-height: .95;
}

.bme-pantry-sheet-description {
  margin: 0 0 22px;
  color: var(--bme-text-soft);
  font-family: var(--bme-font-body);
  font-size: 16px;
  line-height: 1.5;
}

.bme-pantry-sheet-price {
  display: block;
  margin-bottom: 22px;
  color: var(--bme-brass);
  font-size: 20px;
  font-weight: 800;
}


/* ==========================================================
   04. Detail Blocks
   ========================================================== */

.bme-pantry-sheet-details {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.bme-pantry-sheet-detail {
  padding: 14px 0;
  border-top: 1px solid var(--bme-border);
}

.bme-pantry-sheet-detail strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bme-charcoal);
  font-size: 13px;
  font-weight: 800;
}

.bme-pantry-sheet-detail span {
  display: block;
  color: var(--bme-text-soft);
  font-size: 14px;
  line-height: 1.45;
}


/* ==========================================================
   05. Responsive
   ========================================================== */

@media (min-width: 760px) {
  .bme-pantry-sheet-panel {
    width: min(92vw, 620px);
    left: 50%;
    right: auto;
    transform: translate(-50%, 100%);
  }

  .bme-pantry-sheet.is-open .bme-pantry-sheet-panel {
    transform: translate(-50%, 0);
  }
}