/* WIZZ merchant discovery cards R4 — cover-first RTL composition, 2026-10-30.
   Preserves existing business links, favorite hooks and genuine media. No new endpoints. */
body[data-page] {
  --w18-ink: #171717;
  --w18-muted: #555555;
  --w18-orange: #c2410c;
  --w18-outline: #e9e5e1;
  --w18-bg: #fafaf8;
}
body[data-page="/"],
body[data-page^="/c/"],
body[data-page="/search"] {
  background: var(--w18-bg);
}
body[data-page="/"] .wd-main,
body[data-page^="/c/"] .wd-main,
body[data-page="/search"] .wd-main {
  max-width: 1100px;
  min-width: 0;
  padding-inline: 14px;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}
body[data-page] .wd-home-list.w18-business-list,
body[data-page] .wd-business-list.w18-business-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  margin-block: 14px 20px;
  overflow: visible;
}
body[data-page] .wd-business-card.w18-store {
  display: block;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--w18-outline);
  border-radius: 18px;
  box-shadow: 0 3px 14px rgb(23 23 23 / 5%);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
body[data-page] .wd-business-card.w18-store:hover {
  border-color: #e7c5b1;
  box-shadow: 0 7px 22px rgb(23 23 23 / 8%);
}
body[data-page] .w18-store .w18-store-link {
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  height: 100% !important;
  max-height: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  color: var(--w18-ink);
  text-decoration: none;
}
body[data-page] .w18-store .w18-store-image {
  display: flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 95px;
  width: 100%;
  height: auto;
  max-height: 205px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #f6f2ef;
}
body[data-page] .w18-store .w18-store-image img {
  display: block;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 205px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
  background: transparent;
}
body[data-page] .w18-store .w18-store-image.is-illustration img {
  object-fit: cover;
  filter: saturate(.9);
}
body[data-page] .w18-store .w18-image-caption {
  position: absolute;
  z-index: 2;
  inset-inline-start: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgb(255 255 255 / 94%);
  color: #555;
  font-size: 10px;
  font-weight: 700;
}
body[data-page] .w18-store .w18-image-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100%;
  padding: 12px;
  text-align: center;
  color: #9a3412;
}
body[data-page] .w18-store .w18-image-fallback svg { width: 32px; height: 32px; }
body[data-page] .w18-store .w18-image-fallback small { font-size: 11px; color: #795548; }
body[data-page] .w18-store .w18-store-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 136px;
  padding: 14px 16px 15px;
  text-align: start;
}
body[data-page] .w18-store .w18-store-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--w18-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}
body[data-page] .w18-store .w18-store-category {
  color: #9a3412;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}
body[data-page] .w18-store .w18-store-area {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--w18-muted);
  font-size: 12px;
  line-height: 1.5;
}
body[data-page] .w18-store .w18-store-area svg { height: 15px; width: 15px; flex: 0 0 15px; }
body[data-page] .w18-store .w18-store-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 0;
}
body[data-page] .w18-store .w18-store-hours,
body[data-page] .w18-store .w18-store-verified {
  padding: 3px 8px;
  border: 1px solid #e9e5e1;
  border-radius: 999px;
  background: #f7f7f7;
  color: #555;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
body[data-page] .w18-store .w18-store-hours.is-open {
  border-color: #d2e9d8;
  background: #edf8ef;
  color: #15803d;
}
body[data-page] .w18-store .w18-store-verified {
  border-color: #dde8f4;
  background: #f2f7fd;
  color: #315d89;
}
body[data-page] .w18-store .w18-store-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 7px 10px;
  min-height: 34px;
  border: 1px solid #f2dfd3;
  border-radius: 9px;
  background: #fff3ea;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
body[data-page] .w18-store .w18-store-cta svg { width: 14px; height: 14px; flex: 0 0 14px; }
body[data-page] .w18-store .w18-store-heart {
  display: grid;
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e9e5e1;
  border-radius: 50%;
  background: rgb(255 255 255 / 97%);
  color: #9a3412;
  font-size: 23px;
  box-shadow: 0 2px 9px rgb(23 23 23 / 9%);
}
body[data-page] .w18-store .w18-store-heart.is-active {
  background: #fff1f4;
  color: #b91c4c;
}
body[data-page] .w18-store .w18-store-link:focus-visible,
body[data-page] .w18-store .w18-store-heart:focus-visible {
  outline: 3px solid #c2410c;
  outline-offset: -3px;
}
body[data-page] .wd-discover-filters {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
body[data-page] .wd-discover-filters .wd-filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 15px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
body[data-page] .wd-market-business-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin: 20px 0 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--w18-outline);
}
body[data-page] .wd-market-business-title h2 {
  margin: 0;
  color: var(--w18-ink);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 800;
  line-height: 1.5;
}
body[data-page] .wd-market-business-title form {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
}
body[data-page] .wd-market-business-title select,
body[data-page] .wd-market-business-title button {
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--w18-outline);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}
body[data-page] .wd-market-business-title button {
  border-color: #eac3a6;
  background: #fff3ea;
  color: #9a3412;
  font-weight: 700;
}
body[data-page="/"] .wd-discover-heading { margin-top: 4px; }
body[data-page] .wd-sector-grid { min-width: 0; }
@media (max-width: 359px) {
  body[data-page] .w18-store .w18-store-image { min-height: 90px; }
  body[data-page] .w18-store .w18-store-info { padding: 12px 13px 14px; min-height: 126px; }
  body[data-page] .w18-store .w18-store-name { font-size: 15px; }
  body[data-page] .w18-store .w18-store-category,
  body[data-page] .w18-store .w18-store-area { font-size: 11px; }
  body[data-page] .w18-store .w18-store-cta { padding: 6px 9px; font-size: 11px; min-height: 34px; }
}
@media (min-width: 680px) and (max-width: 919px) {
  body[data-page] .wd-home-list.w18-business-list,
  body[data-page] .wd-business-list.w18-business-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-page] .w18-store .w18-store-info { padding: 12px 13px 14px; }
  body[data-page] .w18-store .w18-store-name { font-size: 15px; }
  body[data-page] .w18-store .w18-store-cta { font-size: 11px; }
}
@media (min-width: 920px) {
  body[data-page] .wd-home-list.w18-business-list,
  body[data-page] .wd-business-list.w18-business-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page] .wd-business-card.w18-store { transition: none; }
}
