html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* the feed container handles its own scrolling */
  background-color: #ffffff;
  font-family: "Jura", Arial, Helvetica, sans-serif;
}

/* ---------- Minimal floating top bar ---------- */

.feed-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0);
  height: calc(50px + env(safe-area-inset-top, 0));
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.feed-topbar-logo {
  color: #111111;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.feed-topbar-close {
  color: #111111;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  padding: 4px 6px;
}

/* ---------- Feed container: one full-viewport card at a time ---------- */

.feed-container {
  height: 100dvh;
  width: 100vw;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feed-container::-webkit-scrollbar {
  display: none;
}

.feed-loading {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* ---------- Individual card ---------- */

.feed-card {
  position: relative;
  height: 100dvh;
  width: 100vw;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background-color: #ffffff;
}

.feed-card-image-wrap {
  position: absolute;
  inset: 0;
  padding: 22px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* Overlay: brand / name / price, bottom-left. The whole card is a link
   through to the product page. */

.feed-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
  color: #111111;
  pointer-events: none; /* let taps pass through to the image underneath */
}

.feed-card-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feed-card-name {
  font-size: 13px;
  font-weight: 300;
  margin-top: 3px;
  opacity: 0.9;
}

.feed-card-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.feed-card-tap-hint {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Extra-small phones ---------- */

@media (max-width: 360px) {
  .feed-card-brand {
    font-size: 15px;
  }

  .feed-card-name {
    font-size: 12px;
  }
}

/* ---------- Short viewports (landscape phones) ----------
   Give the image more room by trimming vertical padding rather than
   shrinking type further. */

@media (max-height: 500px) {
  .feed-card-image-wrap {
    padding: 10px 14px;
  }

  .feed-card-overlay {
    padding: 10px 16px 14px;
  }
}