/* ══════════════════════════════════════════════════════════════════════
   MNORY — Public vendor storefront
   Dark cover with a floating profile card, serif display type, hairline
   dividers and the brand blue accent. Class names avoid "hero"/"-banner":
   combined.css forces headings inside those white.
   ══════════════════════════════════════════════════════════════════════ */

.vs {
  --vs-bg: #f6f8fc;
  --vs-surface: #ffffff;
  --vs-ink: #0d0f14;
  --vs-text: #1f2430;
  --vs-muted: #6b7280;
  --vs-line: #e5e9f0;
  --vs-accent: var(--mn-brand, #2563eb);
  --vs-accent-soft: rgba(37, 99, 235, .08);
  --vs-serif: "Playfair Display", "Cairo", Georgia, serif;
  --vs-radius: 22px;
  --vs-shadow: 0 1px 2px rgba(13, 15, 20, .04), 0 30px 60px -28px rgba(13, 15, 20, .22);
  background: var(--vs-bg);
  color: var(--vs-text);
}
body.dark-mode .vs-logo { border-color: var(--vs-line); background: var(--vs-line); }
body.dark-mode .vs {
  --vs-bg: #0b0d12;
  --vs-surface: #12151c;
  --vs-ink: #f5f3ef;
  --vs-text: #e5e7eb;
  --vs-muted: #9aa3b2;
  --vs-line: #232835;
  --vs-accent: #60a5fa;
  --vs-accent-soft: rgba(96, 165, 250, .12);
  --vs-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
}
.vs h1, .vs h2, .vs h3 { color: inherit; }

/* ── Shared type ─────────────────────────────────────────────────── */
.vs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: var(--vs-accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.vs-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.vs .vs-title {
  margin: 0;
  font-family: var(--vs-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--vs-ink);
}
.vs-head { margin-bottom: 2.5rem; }
.vs-head--center { text-align: center; }
.vs-head--center .vs-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.vs-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.vs-btn .material-icons { font-size: 19px; }
.vs-btn:hover { transform: translateY(-1px); }
.vs-btn--ink { background: var(--vs-ink); color: var(--vs-surface); }
.vs-btn--ink:hover { background: var(--vs-accent); color: #fff; }
.vs-btn--line { background: transparent; border-color: var(--vs-line); color: var(--vs-ink); }
.vs-btn--line:hover { border-color: var(--vs-ink); color: var(--vs-ink); }
.vs-btn--icon { width: 48px; padding: 0; }
.vs-btn--light { background: #fff; color: #0d0f14; }
.vs-btn--light:hover { background: var(--vs-accent); color: #fff; }
.vs-btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.vs-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ── Cover ───────────────────────────────────────────────────────── */
.vs-cover {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: linear-gradient(135deg, #1e4fd8 0%, #0f2a73 45%, #05070c 100%);
  isolation: isolate;
}
.vs-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 90% at 15% 0%, rgba(79, 139, 255, .45), transparent 65%),
    radial-gradient(45% 80% at 90% 100%, rgba(37, 99, 235, .25), transparent 65%);
}
.vs-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.vs-cover-mark {
  position: absolute;
  bottom: -110px;
  inset-inline-end: 4%;
  z-index: -1;
  font-family: var(--vs-serif);
  font-size: 380px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
  user-select: none;
}
.vs-crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 2rem 0 0; list-style: none; font-size: .82rem; letter-spacing: .02em; }
.vs-crumbs li { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .55); }
.vs-crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.vs-crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.vs-crumbs a:hover { color: #fff; }

/* ── Profile card ────────────────────────────────────────────────── */
.vs-profile {
  position: relative;
  margin-top: -150px;
  padding: 2.25rem 2.5rem 0;
  border-radius: 28px;
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
  box-shadow: var(--vs-shadow);
}
.vs-profile-main { display: flex; align-items: flex-start; gap: 2rem; }
.vs-logo {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin-top: -90px;
  border-radius: 32px;
  background: var(--vs-surface);
  border: 6px solid var(--vs-surface);
  box-shadow: 0 18px 40px -12px rgba(13, 15, 20, .35);
}
.vs-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.vs-logo > .material-icons {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(145deg, #1b2030, #0d0f14);
  color: var(--vs-accent);
  font-size: 54px;
}
.vs-verified {
  position: absolute;
  bottom: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--vs-accent);
  color: #fff;
  border: 4px solid var(--vs-surface);
}
.vs-verified .material-icons { font-size: 16px; }

.vs-identity { flex: 1; min-width: 0; }
.vs-tier { margin-bottom: .4rem; }
.vs .vs-name {
  margin: 0 0 .75rem;
  font-family: var(--vs-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vs-ink);
  overflow-wrap: anywhere;
}
.vs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--vs-muted); font-size: .9rem; }
.vs-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.vs-meta .material-icons { font-size: 17px; }
.vs-meta .vs-star { color: var(--vs-accent); }
.vs-meta strong { color: var(--vs-ink); font-weight: 700; }
.vs-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }

.vs-actions { display: flex; flex-wrap: wrap; gap: .6rem; flex-shrink: 0; }

.vs-desc { max-width: 760px; margin: 1.5rem 0 0; color: var(--vs-muted); font-size: .98rem; line-height: 1.85; }
.vs-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: var(--vs-accent-soft);
  color: var(--vs-text);
  font-size: .9rem;
  line-height: 1.6;
}
.vs-notice .material-icons { color: var(--vs-accent); font-size: 20px; }

.vs-stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 2rem -2.5rem 0;
  border-top: 1px solid var(--vs-line);
}
.vs-stat { padding: 1.4rem 2.5rem; }
.vs-stat + .vs-stat { border-inline-start: 1px solid var(--vs-line); }
.vs-stat strong {
  display: block;
  font-family: var(--vs-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--vs-ink);
  font-variant-numeric: lining-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .vs-stat strong { text-align: right; }
.vs-stat span { display: block; margin-top: .35rem; color: var(--vs-muted); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ── In-page tabs ────────────────────────────────────────────────
   A pill-shaped segmented bar; the active tab follows the scroll position
   (set by the page script). On narrow screens the bar scrolls sideways. */
.vs-nav {
  display: flex;
  gap: .25rem;
  width: max-content;
  max-width: 100%;
  margin: 2rem auto 0;
  padding: .3rem;
  list-style: none;
  border-radius: 999px;
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
  box-shadow: 0 1px 2px rgba(13, 15, 20, .04), 0 8px 24px -12px rgba(13, 15, 20, .15);
  overflow-x: auto;
  scrollbar-width: none;
}
.vs-nav::-webkit-scrollbar { display: none; }
.vs-nav li { flex-shrink: 0; }
.vs-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  color: var(--vs-muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.vs-nav a .material-icons { font-size: 18px; }
.vs-nav a:hover { color: var(--vs-ink); background: var(--vs-accent-soft); }
.vs-nav a.is-active { background: var(--vs-ink); color: var(--vs-surface); }
.vs-nav a:focus-visible { outline: 2px solid var(--vs-accent); outline-offset: 2px; }

/* ── Sections ────────────────────────────────────────────────────── */
.vs-section { padding: 4.5rem 0; scroll-margin-top: 1rem; }
.vs-section + .vs-section { border-top: 1px solid var(--vs-line); }

.vs-catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.vs-catalog-head .vs-head { margin: 0; }
.vs-count { color: var(--vs-muted); font-size: .88rem; }

.vs-cats { display: flex; gap: .5rem; margin-bottom: 1.5rem; padding-bottom: .25rem; overflow-x: auto; scrollbar-width: none; }
.vs-cats::-webkit-scrollbar { display: none; }
.vs-cat {
  flex-shrink: 0;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--vs-line);
  background: var(--vs-surface);
  color: var(--vs-text);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.vs-cat:hover { border-color: var(--vs-ink); color: var(--vs-ink); }
.vs-cat.is-active { background: var(--vs-ink); border-color: var(--vs-ink); color: var(--vs-surface); }

/* Filter panel: no grey inner box inside the white card */
.vs .horizontal-filters-wrapper { background: transparent; }

.vs-empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  border-radius: var(--vs-radius);
  border: 1px dashed var(--vs-line);
  background: var(--vs-surface);
  text-align: center;
}
.vs-empty > .material-icons { font-size: 44px; color: var(--vs-accent); }
.vs .vs-empty h3 { margin: 1rem 0 .4rem; font-family: var(--vs-serif); font-size: 1.4rem; font-weight: 600; color: var(--vs-ink); }
.vs-empty p { margin: 0 auto 1.5rem; max-width: 420px; color: var(--vs-muted); font-size: .92rem; }

/* ── About the store ─────────────────────────────────────────────── */
.vs-about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
/* No description: the contact details fill the row instead of a lone box */
.vs-about--details-only { grid-template-columns: minmax(0, 1fr); }
.vs-about--details-only .vs-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 1.75rem 1rem;
  background: var(--vs-surface);
}
.vs-about--details-only .vs-details h3 { grid-column: 1 / -1; }
.vs-about--details-only .vs-detail + .vs-detail { border-top: 0; }
.vs-story { position: relative; }
.vs-story-mark { display: block; height: 56px; font-family: var(--vs-serif); font-size: 6rem; line-height: 1; color: var(--vs-accent); opacity: .5; }
.vs-story p { margin: 0; color: var(--vs-text); font-family: var(--vs-serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.85; }
.vs-story-sign { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; color: var(--vs-muted); font-size: .88rem; }
.vs-story-sign strong { color: var(--vs-ink); }

.vs-details {
  padding: .5rem 1.75rem;
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
}
.vs-details h3 { margin: 1.25rem 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--vs-accent) !important; }
.vs-detail { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; color: var(--vs-text); text-decoration: none; }
.vs-detail + .vs-detail { border-top: 1px solid var(--vs-line); }
.vs-detail > .material-icons { flex-shrink: 0; color: var(--vs-muted); font-size: 20px; }
.vs-detail > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vs-detail small { color: var(--vs-muted); font-size: .76rem; }
.vs-detail b { font-weight: 600; font-size: .94rem; overflow-wrap: anywhere; }
a.vs-detail:hover b { color: var(--vs-accent); }
[dir="rtl"] .vs-detail b[dir="ltr"] { text-align: right; }

/* ── Reviews ─────────────────────────────────────────────────────── */
.vs-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.vs-review {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border-radius: var(--vs-radius);
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.vs-review:hover { transform: translateY(-3px); box-shadow: var(--vs-shadow); }
.vs-review-stars { display: inline-flex; gap: 2px; color: var(--vs-accent); }
.vs-review-stars .material-icons { font-size: 17px; }
.vs-review-stars .is-off { color: var(--vs-line); }
.vs-review p { flex: 1; margin: 1rem 0 1.5rem; color: var(--vs-text); font-size: .95rem; line-height: 1.8; }
.vs-review footer { display: flex; align-items: center; gap: .8rem; padding-top: 1.1rem; border-top: 1px solid var(--vs-line); }
.vs-review-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vs-ink);
  color: var(--vs-surface);
  font-family: var(--vs-serif);
  font-weight: 600;
}
.vs-review-name { display: block; color: var(--vs-ink); font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.vs-review-date { color: var(--vs-muted); font-size: .78rem; }

/* ── Similar stores ──────────────────────────────────────────────── */
.vs-stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vs-store {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: var(--vs-surface);
  border: 1px solid var(--vs-line);
  color: var(--vs-text);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vs-store:hover { border-color: var(--vs-ink); box-shadow: var(--vs-shadow); transform: translateY(-2px); color: var(--vs-text); }
.vs-store-logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(145deg, #1b2030, #0d0f14);
  color: var(--vs-accent);
}
.vs-store-body { flex: 1; min-width: 0; }
.vs-store-body strong { display: block; color: var(--vs-ink); font-family: var(--vs-serif); font-size: 1.05rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-store-body span { display: block; color: var(--vs-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .vs-store-body strong { unicode-bidi: plaintext; text-align: right; }
.vs-store-go { color: var(--vs-muted); font-size: 20px; transition: color .2s ease, transform .2s ease; }
[dir="rtl"] .vs-store-go { transform: scaleX(-1); }
.vs-store:hover .vs-store-go { color: var(--vs-accent); }

/* ── Arabic ──────────────────────────────────────────────────────────
   Arabic is a joined script: letter-spacing breaks the joins and it has no
   letter case, and Playfair has no Arabic glyphs, so headings use Cairo. */
[dir="rtl"] .vs { --vs-serif: "Cairo", "Playfair Display", serif; }
[dir="rtl"] .vs-eyebrow,
[dir="rtl"] .vs-stat span,
[dir="rtl"] .vs-details h3 { letter-spacing: 0; text-transform: none; font-size: .85rem; }
[dir="rtl"] .vs-story-mark { transform: scaleX(-1); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .vs-profile-main { flex-wrap: wrap; }
  .vs-identity { flex-basis: calc(100% - 172px); }
  .vs-actions { width: 100%; }
  .vs-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-stat:nth-child(3) { border-inline-start: 0; }
  .vs-stat:nth-child(n+3) { border-top: 1px solid var(--vs-line); }
  .vs-about { grid-template-columns: 1fr; gap: 2.5rem; }
  .vs-reviews, .vs-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
  .vs-cover { height: 260px; }
  .vs-cover-mark { font-size: 260px; bottom: -70px; }
  .vs-profile { margin-top: -120px; padding: 1.5rem 1.25rem 0; border-radius: 22px; }
  .vs-profile-main { flex-direction: column; gap: 1rem; }
  .vs-logo { width: 104px; height: 104px; margin-top: -70px; border-radius: 26px; border-width: 5px; }
  .vs-logo img, .vs-logo > .material-icons { border-radius: 21px; }
  .vs-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .vs-actions .vs-btn--ink { grid-column: 1 / -1; }
  .vs-stats { margin: 1.5rem -1.25rem 0; }
  .vs-stat { padding: 1.1rem 1.25rem; }
  .vs-stat strong { font-size: 1.5rem; }
  .vs-nav { margin-top: 1.5rem; }
  .vs-nav a { padding: .55rem .95rem; font-size: .84rem; }
  .vs-section { padding: 2.75rem 0; }
  .vs-head { margin-bottom: 1.75rem; }
  .vs-reviews, .vs-stores { grid-template-columns: 1fr; }
}
