/* The bag bar, the order sheet, the toast, the photo at full size and "Combina com". */
.bag-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 18;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(130%);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.bag-bar[data-visible="true"] {
  transform: none;
  pointer-events: auto;
}
.bag-bar button {
  width: 100%;
  min-height: 58px;
  padding: 0 20px 0 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--espresso);
  color: var(--marfim);
  box-shadow:
    0 18px 40px -16px rgb(32 27 23 / 0.75),
    inset 0 0 0 1px rgb(210 174 104 / 0.3);
}
.bag-bar-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--espresso-3);
  font-size: 0.82rem;
}
.bag-bar-count b {
  font-weight: 700;
}
.bag-bar-cta {
  flex: 1;
  text-align: left;
  font-weight: 700;
}
.bag-bar strong {
  font-variant-numeric: tabular-nums;
}

/* The order. */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 22px 0;
}
.sheet-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  font-variation-settings: "opsz" 48;
}
.sheet-lead {
  margin: 6px 22px 8px;
  color: var(--torra);
  font-size: 0.9rem;
}
.cart-items {
  padding: 4px 22px;
}
.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--crema);
}
.cart-line img,
.cart-line .line-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--crema);
}
.cart-line strong {
  display: block;
  font-weight: 650;
  line-height: 1.25;
}
.cart-line small {
  color: var(--torra);
  font-variant-numeric: tabular-nums;
}
.cart-items > .empty {
  margin: 18px 0;
  color: var(--torra);
}
.note-field {
  display: grid;
  gap: 6px;
  margin: 16px 22px 0;
  font-size: 0.86rem;
  font-weight: 600;
}
.note-field textarea {
  resize: none;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--crema-2);
  font-size: 1rem;
  font-weight: 400;
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 22px 0;
}
.cart-summary strong {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.cart-buttons {
  display: grid;
  gap: 10px;
  margin: 16px 22px 0;
}
.cart-sheet .sheet-note {
  margin: 12px 22px 22px;
  text-align: center;
}

/* The photo at full size. */
dialog.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0d0b09;
  overflow: hidden;
}
dialog.lightbox::backdrop {
  background: #0d0b09;
}
.lightbox img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(100vw, 960px);
  max-height: 100dvh;
  object-fit: contain;
  cursor: zoom-out;
}
.lightbox .sheet-x {
  top: calc(14px + env(safe-area-inset-top));
}
.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  margin: 0;
  color: var(--marfim);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: var(--espresso);
  color: var(--marfim);
  font-size: 0.9rem;
  box-shadow: 0 16px 36px -14px rgb(0 0 0 / 0.6);
  transform: translateX(-50%);
}
.toast span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast button {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--champagne-2);
  font-weight: 700;
}

/* "Combina com" inside the product sheet. */
.pairing {
  margin-top: 24px;
}
.pairing h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
}
.pairing-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -22px;
  padding: 2px 22px 6px;
  scrollbar-width: none;
}
.pairing-item {
  position: relative;
  flex: none;
  width: 132px;
}
.pairing-open {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.25;
}
.pairing-open img {
  width: 132px;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--crema);
}
.pairing-open span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}
.pairing-add {
  position: absolute;
  top: 92px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--espresso);
  color: var(--marfim);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--marfim);
}
.pairing-add .icon {
  width: 18px;
  height: 18px;
}

@media (min-width: 760px) {
  .bag-bar {
    display: none;
  }
  .toast {
    bottom: 28px;
  }
  .pairing-row {
    margin: 0 -32px;
    padding: 2px 32px 6px;
  }
}
