/* shop.css: the store (js/pages/shop.js). The header is css/components/page-header.css. */

.shop {
  position: relative;
  overflow-y: auto;
}

/* The logo stays sharp, over the welcome (as on the mockup). */
.shop .page-header {
  position: relative;
  z-index: 3;
}

/* The logo is the page's title: no title type around it. */
.shop .page-header h1 {
  width: auto;
  max-width: none;
}

/* Two products side by side, as on the mockup. */
.shop-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-2);
  padding: 0 var(--space-2) max(5cqh, var(--safe-bottom) + var(--space-3));
  list-style: none;
}

.shop-product img {
  width: 100%;
  height: auto;
}

.shop-product-name,
.shop-product-price {
  font-size: var(--text-note);
}

.shop-product-name {
  margin-top: var(--space-2);
  font-style: italic;
}

/* -- on arrival: "thank you for waiting!" over the store, on glassine with more white
   (css/effects/glassine-sheet.css), as on the mockup -- */
.shop .shop-welcome {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10cqh;
  background:
    var(--glassine-sheet, none),
    linear-gradient(var(--drop-veil), var(--drop-veil)),
    var(--glassine-milk);
  font-size: var(--text-body);
  letter-spacing: var(--tracking-wide);
}

.shop-welcome-thanks {
  width: min(16rem, 62%);
}

/* It fades away to show the store (js/interactions/queue-exit.js adds data-leaving). */
@media (prefers-reduced-motion: no-preference) {
  .shop-welcome {
    transition: opacity 900ms ease-in;
  }
}

.shop-welcome[data-leaving] {
  opacity: 0;
}
