/* Wolt-like storefront - visual mimic without Wolt branding */
:root {
  --wl-bg: #ffffff;
  --wl-bg-soft: #f7f5f2;
  --wl-surface: #ffffff;
  --wl-text: #272b42;
  --wl-muted: #6d7185;
  --wl-accent: #009de0;
  --wl-accent-soft: #c8eefb;
  --wl-accent-mid: #8fd8f5;
  --wl-search: #eeead5;
  --wl-border: #ebe7e1;
  --wl-radius-lg: 20px;
  --wl-radius-md: 14px;
  --wl-radius-pill: 999px;
  --wl-shadow: 0 2px 10px rgba(39, 43, 66, 0.06);
  --wl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arimo, "Open Sans", sans-serif;
  --wl-max: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wl {
  margin: 0;
  background: var(--wl-bg);
  color: var(--wl-text);
  font-family: var(--wl-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.wl--discovery { background: var(--wl-bg-soft); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }

.wl-ico { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* -- Top bar -- */
.wl-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--wl-border);
}
.wl-top--over-hero {
  position: absolute;
  left: 0; right: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent);
  border-bottom: 0;
  color: #fff;
}
.wl-top__row {
  max-width: var(--wl-max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wl-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--wl-accent);
  color: #fff;
  flex-shrink: 0;
}
.wl-top--over-hero .wl-logo {
  background: #fff;
  color: var(--wl-accent);
}
.wl-user {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--wl-radius-pill);
  background: rgba(39, 43, 66, 0.08);
  display: grid;
  place-items: center;
  color: var(--wl-text);
  padding: 0;
  margin-left: auto;
}
.wl-top--over-hero .wl-user {
  background: rgba(0,0,0,.35);
  color: #fff;
}
.wl-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: var(--wl-radius-pill);
  background: var(--wl-accent-mid);
  color: var(--wl-text);
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.wl-cart .wl-ico { width: 18px; height: 18px; }

.wl-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--wl-search);
  border-radius: var(--wl-radius-pill);
  padding: 0 14px;
  height: 40px;
  color: var(--wl-muted);
}
.wl-top--over-hero .wl-search--global {
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.85);
}
.wl-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  text-overflow: ellipsis;
}
.wl-search input:focus,
.wl-search input:not(:placeholder-shown) {
  text-overflow: clip;
}
.wl-search input::placeholder { color: inherit; opacity: .75; }
.wl-search input[type="search"]::-webkit-search-decoration,
.wl-search input[type="search"]::-webkit-search-results-button,
.wl-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* -- Discovery -- */
.wl-main {
  max-width: var(--wl-max);
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.wl-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 18px;
  font-weight: 700;
}
.wl-loc__pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wl-accent-soft);
  color: var(--wl-accent);
  display: grid;
  place-items: center;
}
.wl-loc__pin .wl-ico { width: 16px; height: 16px; }

.wl-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wl-section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wl-venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wl-venue-card {
  background: var(--wl-surface);
  border-radius: var(--wl-radius-lg);
  overflow: hidden;
  box-shadow: var(--wl-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wl-venue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 43, 66, 0.1);
}
.wl-venue-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a3a4a, #009de0 60%, #8fd8f5);
  overflow: hidden;
}
.wl-venue-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-venue-card__body { padding: 14px 16px 16px; }
.wl-venue-card__title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.wl-venue-card__meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dotted var(--wl-border);
  color: var(--wl-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* -- Venue / restaurant -- */
.wl-backbar {
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  z-index: 30;
  max-width: var(--wl-max);
  margin: 0 auto;
  padding: 0 16px;
}
.wl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--wl-radius-pill);
  background: rgba(0,0,0,.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.wl-hero {
  position: relative;
  height: min(42vw, 280px);
  min-height: 180px;
  background: linear-gradient(160deg, #14252f 0%, #1f4d63 40%, #009de0 100%);
  overflow: hidden;
}
.wl-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78);
}
.wl-hero__curve {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 48px;
  background: var(--wl-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.wl-main--venue {
  padding-top: 4px;
  padding-bottom: max(48px, calc(100dvh - var(--sf-sticky-h, 120px) - 5rem));
}

.wl-venue-head { text-align: center; padding: 4px 8px 18px; }
.wl-venue-head__title {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.wl-venue-head__meta {
  margin: 10px 0 0;
  color: var(--wl-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.wl-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #fff;
  padding: 8px 0 10px;
  margin: 0 -4px 8px;
  border-bottom: 1px solid transparent;
}
.wl-catnav { padding: 0 4px 8px; }
.wl-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wl-cats::-webkit-scrollbar { display: none; }
.wl-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--wl-radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--wl-text);
  white-space: nowrap;
}
.wl-chip.is-active {
  background: var(--wl-accent-soft);
  color: #0a3d52;
}
.wl-search--menu {
  margin: 0 4px;
  background: var(--wl-bg-soft);
}
.wl-sticky__tools {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 4px 0 0;
}
.wl-sticky__tools .wl-search--menu {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 0 4px;
}
.wl-sticky__tools .wl-cart {
  flex: 0 0 auto;
}
.wl-show-all-wrap {
  text-align: center;
  padding: 8px 8px 32px;
}
.wl-show-all-wrap[hidden] { display: none; }
.wl-show-all {
  border: 0;
  background: var(--wl-accent-soft);
  color: #0a3d52;
  font: inherit;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--wl-radius-pill);
  cursor: pointer;
}

.wl-cat { margin: 22px 0 8px; scroll-margin-top: var(--sf-sticky-h, 120px); }
.wl-cat__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  scroll-margin-top: var(--sf-sticky-h, 120px);
}
.wl-cat__desc {
  margin: -4px 0 12px;
  color: var(--wl-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.wl-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.wl-item {
  display: flex;
  min-width: 0;
  background: var(--wl-surface);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius-md);
  box-shadow: var(--wl-shadow);
  padding: 0;
}
.wl-item[hidden] { display: none; }
.wl-item__hit {
  display: flex;
  flex: 1;
  gap: 12px;
  padding: 14px;
  color: inherit;
  width: 100%;
  min-width: 0;
}
.wl-item__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.wl-item__title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.wl-item__desc {
  margin-top: 4px;
  color: var(--wl-muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-item__price {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.wl-item__media {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f7fd, #bfe8f8);
}
.wl-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-item__add {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--wl-accent-soft);
  color: var(--wl-text);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.wl-item__add.is-in-cart {
  background: var(--wl-accent);
  color: #fff;
  font-size: 0.85rem;
}

.wl-empty {
  text-align: center;
  color: var(--wl-muted);
  padding: 2.5rem 1rem;
  font-weight: 600;
}

body.wl .sf-cart__note-input {
  background: var(--wl-bg-soft);
  border-radius: var(--wl-radius-md);
}
body.wl .sf-cart__note-input:focus {
  outline-color: var(--wl-accent-mid);
}
/* Phone sheet and desktop drawer: lines scroll, checkout stays on screen (as on wolt.com). */
body.wl .sf-cart__panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.wl .sf-cart__head,
body.wl .sf-cart__empty,
body.wl .sf-cart__closed { flex-shrink: 0; }
body.wl .sf-cart__lines {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
body.wl .sf-cart__foot {
  margin-top: auto;
  flex-shrink: 0;
}
@keyframes wl-cart-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (min-width: 640px) {
  /* Wide Wolt: cart is a right drawer. Phone keeps the shared bottom sheet. */
  body.wl .sf-cart {
    align-items: stretch;
    justify-content: flex-end;
  }
  body.wl .sf-cart__panel {
    width: min(400px, calc(100% - 48px));
    max-width: 400px;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    animation: wl-cart-in 0.22s ease;
  }
  :root { --wl-max: 960px; }
  .wl-venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-sticky {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .wl-catnav { flex: 1; min-width: 0; padding-bottom: 0; }
  .wl-sticky__tools {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    padding: 0;
  }
  .wl-sticky__tools .wl-search--menu {
    flex: 1 1 12rem;
    width: auto;
    min-width: 8rem;
    max-width: 16rem;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.wl .sf-cart__panel { animation: none; }
}
@media (min-width: 1024px) {
  :root { --wl-max: 1280px; }
  .wl-venue-grid,
  .wl-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-items { gap: 12px; }
  .wl-item__media { width: 104px; height: 104px; }
}

