/**
 * Vistore dark mode.
 *
 * Loaded on every page after style.css, mobile-app.css and experience.css.
 *
 * 1. Light defaults for the semantic tokens introduced by the dark-mode
 *    retrofit. They resolve to the same colors the stylesheets used before,
 *    so light mode is unchanged.
 * 2. `html.vistore-dark` token overrides. The class is applied by an inline
 *    script in head.php before first paint (no flash), driven by the stored
 *    visitor choice or the system preference.
 * 3. Overrides for frosted/backdrop panels that hardcode white rgba fills,
 *    plus the header and drawer theme-toggle buttons.
 */

/* ------------------------------------------------------------------ */
/* 1. Light defaults for retrofit tokens                               */
/* ------------------------------------------------------------------ */

:root {
  --vs-line-strong: #d0d5dd;
  --vs-fill: #f2f4f7;
  --vs-fill-soft: #f7f9fc;
  --vs-primary-soft: #eef4ff;
  --vs-primary-strong: #175cd3;
  --vs-success-soft: #ecfdf3;
  --vs-success-strong: #067647;
  --vs-warning-soft: #fffaeb;
  --vs-warning-strong: #b54708;
  --vs-danger-soft: #fef3f2;
  --vs-danger-strong: #b42318;
  --vs-rose-soft: #ffe4e8;
  --vs-rose-strong: #e11d48;
  --vs-purple-soft: #f4f0ff;
  --vs-purple-strong: #6941c6;
  --vs-accent-soft: #fed7bf;
  --vs-header-bg: rgba(255, 255, 255, .96);
}

/* ------------------------------------------------------------------ */
/* 2. Dark palette                                                     */
/* ------------------------------------------------------------------ */

html.vistore-dark {
  color-scheme: dark;

  --vs-bg: #0c111d;
  --vs-surface: #151c28;
  --vs-surface-subtle: #1b2330;
  --vs-fill: #232c3c;
  --vs-fill-soft: #1f2836;
  --vs-ink: #f2f4f7;
  --vs-text: #cdd3de;
  --vs-muted: #97a1b3;
  --vs-soft: #6b7688;
  --vs-line: #2e3849;
  --vs-line-soft: #252e3d;
  --vs-separator: #293245;
  --vs-line-strong: #45526a;
  --vs-primary-soft: #14284d;
  --vs-primary-strong: #84adff;
  --vs-success: #47cd89;
  --vs-success-soft: #10291c;
  --vs-success-strong: #5cd69a;
  --vs-warning: #fdb022;
  --vs-warning-soft: #31260e;
  --vs-warning-strong: #fdb022;
  --vs-danger: #f97066;
  --vs-danger-soft: #3a1618;
  --vs-danger-strong: #fda29b;
  --vs-rose-soft: #3b1220;
  --vs-rose-strong: #fd6f8e;
  --vs-purple-soft: #251c40;
  --vs-purple-strong: #b69df8;
  --vs-accent-soft: #3a2214;
  --vs-shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --vs-shadow-sm: 0 5px 16px rgba(0, 0, 0, .45);
  --vs-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  --vs-header-bg: rgba(12, 17, 29, .92);

  background: var(--vs-bg);
  color: var(--vs-text);
}

html.vistore-dark body {
  background: var(--vs-bg);
  color: var(--vs-text);
}

/* ------------------------------------------------------------------ */
/* 3. Frosted panels hardcoded to white rgba fills                     */
/* ------------------------------------------------------------------ */

html.vistore-dark .vistore-header,
html.vistore-dark .vistore-announcement ~ .vistore-header {
  background: var(--vs-header-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

html.vistore-dark .vistore-header .vistore-brand:has(img) {
  border-radius: 10px;
  padding: 4px 7px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

html.vistore-dark .vistore-user-sidebar,
html.vistore-dark .vistore-user-sidebar__public {
  background: rgba(21, 28, 40, .97);
}

html.vistore-dark .vistore-space-switcher,
html.vistore-dark .vistore-publish-actions,
html.vistore-dark .vistore-publish-steps,
html.vistore-dark .vistore-space-search--premium {
  background: rgba(21, 28, 40, .95);
}

html.vistore-dark .vistore-live-search.nocsrf,
html.vistore-dark .vistore-live-search.nocsrf .vistore-live-search__results {
  background: rgba(17, 23, 34, .96);
}

html.vistore-dark .vistore-item-mobile-actions,
html.vistore-dark .vistore-mobile-nav {
  background: rgba(12, 17, 29, .97);
  box-shadow: 0 -7px 18px rgba(0, 0, 0, .4);
}

/* Hero and slider overlays stay readable: keep white scrims over photos. */

/* Native form controls, scrollbars and carets follow color-scheme: dark. */

/* Soften photos slightly so bright imagery does not glare on dark UI. */
html.vistore-dark .vistore-gallery__slide img,
html.vistore-dark .vistore-card__media img {
  filter: brightness(.96);
}

/* ------------------------------------------------------------------ */
/* 4. Theme toggle                                                     */
/* ------------------------------------------------------------------ */

.vistore-theme-toggle {
  position: relative;
  flex: 0 0 auto;
}

.vistore-theme-toggle .vistore-theme-toggle__sun,
.vistore-drawer__theme-toggle .vistore-theme-toggle__sun {
  display: none;
}

.vistore-theme-toggle .vistore-theme-toggle__moon,
.vistore-drawer__theme-toggle .vistore-theme-toggle__moon {
  display: block;
}

html.vistore-dark .vistore-theme-toggle .vistore-theme-toggle__sun,
html.vistore-dark .vistore-drawer__theme-toggle .vistore-theme-toggle__sun {
  display: block;
}

html.vistore-dark .vistore-theme-toggle .vistore-theme-toggle__moon,
html.vistore-dark .vistore-drawer__theme-toggle .vistore-theme-toggle__moon {
  display: none;
}

/* Drawer row: styled after the existing drawer footer links. */
.vistore-drawer__theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--vs-radius-sm, 10px);
  background: var(--vs-fill, #f2f4f7);
  color: var(--vs-text, #344054);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.vistore-drawer__theme-toggle .vistore-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--vs-muted, #667085);
}

.vistore-drawer__theme-toggle b {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--vs-muted, #667085);
}

.vistore-drawer__theme-toggle b.vistore-theme-toggle__state--on {
  color: var(--vs-primary, #155eef);
}

/* ------------------------------------------------------------------ */
/* 5. Item header actions over the gallery (light + dark)              */
/* ------------------------------------------------------------------ */

/* Gallery overlay buttons: frosted light glass by default... */
.vistore-gallery .vistore-item-header__actions > a,
.vistore-gallery .vistore-item-header__actions > button,
.vistore-gallery .vistore-favorite--gallery button {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

/* ...dark glass once the dark mode is active. */
html.vistore-dark .vistore-gallery .vistore-item-header__actions > a,
html.vistore-dark .vistore-gallery .vistore-item-header__actions > button,
html.vistore-dark .vistore-gallery .vistore-favorite--gallery button {
  border-color: rgba(255, 255, 255, .14);
  color: var(--vs-ink);
  background: rgba(21, 28, 40, .92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}

/* ------------------------------------------------------------------ */
/* 6. Share orbit (ported from the Vistromotive theme)                 */
/* ------------------------------------------------------------------ */

.vistore-share-orbit {
  --vistore-share-ease: cubic-bezier(.3, 1.25, .4, 1);
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  isolation: isolate;
}

.vistore-share-orbit__main {
  position: relative;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  color: #0f223a;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 30px rgba(3, 12, 28, .24), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  cursor: pointer;
  transition: transform .22s var(--vistore-share-ease), box-shadow .22s ease, color .22s ease, background .22s ease;
}

.vistore-share-orbit__main .vistore-icon {
  width: 19px;
  height: 19px;
}

.vistore-share-orbit__main:hover,
.vistore-share-orbit__main:focus-visible,
.vistore-share-orbit.is-open .vistore-share-orbit__main {
  color: #fff;
  background: linear-gradient(135deg, var(--vs-primary, #155eef), color-mix(in srgb, var(--vs-primary, #155eef) 68%, #263f73));
  box-shadow: 0 15px 34px color-mix(in srgb, var(--vs-primary, #155eef) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28);
  transform: translateY(-1px) rotate(-7deg);
}

.vistore-share-orbit__menu {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.vistore-share-orbit__item {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #17263a;
  text-decoration: none;
  background: rgba(248, 250, 252, .94);
  box-shadow: 5px 5px 13px rgba(15, 23, 42, .18), -4px -4px 12px rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px) saturate(145%);
  -webkit-backdrop-filter: blur(10px) saturate(145%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, 0) scale(.48);
  transition: opacity .18s ease, visibility .18s ease, transform .28s var(--vistore-share-ease), color .18s ease, background .18s ease, box-shadow .18s ease;
}

.vistore-share-orbit.is-open .vistore-share-orbit__item {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vistore-share-orbit__item svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: none;
  transition: transform .2s var(--vistore-share-ease);
}

.vistore-share-orbit__item:hover,
.vistore-share-orbit__item:focus-visible,
.vistore-share-orbit__item.is-copied {
  color: #fff;
  box-shadow: 0 14px 28px rgba(4, 13, 29, .27);
}

.vistore-share-orbit__item:hover svg,
.vistore-share-orbit__item:focus-visible svg {
  transform: scale(1.12);
}

.vistore-share-orbit.is-open .vistore-share-orbit__item--discord { transform: translate(-60px, 0) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--x { transform: translate(-48px, 48px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--reddit { transform: translate(0, 64px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--messenger { transform: translate(-110px, 14px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--pinterest { transform: translate(-96px, 66px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--instagram { transform: translate(-56px, 102px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--snapchat { transform: translate(-4px, 116px) scale(1); }
.vistore-share-orbit.is-open .vistore-share-orbit__item--whatsapp { transform: translate(-112px, 120px) scale(1); }

.vistore-share-orbit__item--discord:hover,
.vistore-share-orbit__item--discord:focus-visible { background: #5865f2; }
.vistore-share-orbit__item--x:hover,
.vistore-share-orbit__item--x:focus-visible { background: #111; }
.vistore-share-orbit__item--reddit:hover,
.vistore-share-orbit__item--reddit:focus-visible { background: #ff4500; }
.vistore-share-orbit__item--messenger:hover,
.vistore-share-orbit__item--messenger:focus-visible { background: #0093ff; }
.vistore-share-orbit__item--pinterest:hover,
.vistore-share-orbit__item--pinterest:focus-visible { background: #e60023; }
.vistore-share-orbit__item--instagram:hover,
.vistore-share-orbit__item--instagram:focus-visible { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); }
.vistore-share-orbit__item--snapchat:hover,
.vistore-share-orbit__item--snapchat:focus-visible { color: #111; background: #fffc00; }
.vistore-share-orbit__item--whatsapp:hover,
.vistore-share-orbit__item--whatsapp:focus-visible { background: #25d366; }

.vistore-share-orbit__item.is-loading {
  opacity: .62;
  cursor: progress;
}

.vistore-share-orbit__status {
  position: absolute;
  top: 128px;
  right: 0;
  display: block;
  width: max-content;
  max-width: min(240px, calc(100vw - 38px));
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: rgba(7, 20, 38, .9);
  box-shadow: 0 12px 30px rgba(3, 12, 28, .22);
  font-size: 10px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.vistore-share-orbit__status:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.vistore-share-orbit__main,
.vistore-share-orbit__menu,
.vistore-share-orbit__item,
.vistore-share-orbit__item svg {
  border-radius: 50%;
}

html.vistore-dark .vistore-share-orbit__main,
html.vistore-dark .vistore-share-orbit__item {
  border-color: rgba(255, 255, 255, .12);
  color: #edf4ff;
  background: rgba(13, 29, 48, .92);
  box-shadow: 7px 7px 16px rgba(0, 0, 0, .34), -4px -4px 12px rgba(255, 255, 255, .035);
}

/* ------------------------------------------------------------------ */
/* 7. Main menu bar (under the header)                                 */
/* ------------------------------------------------------------------ */

.vistore-main-menu {
  position: sticky;
  top: var(--vs-header-height, 72px);
  z-index: 90;
  background: var(--vs-header-bg, var(--vs-surface));
  border-bottom: 1px solid var(--vs-line);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.vistore-main-menu__inner {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 44px;
}

.vistore-main-menu__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.vistore-main-menu__links::-webkit-scrollbar {
  display: none;
}

.vistore-main-menu .vistore-main-menu__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--vs-text);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  text-decoration: none;
}

.vistore-main-menu .vistore-main-menu__links a:hover,
.vistore-main-menu .vistore-main-menu__links a:focus-visible {
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-main-menu__tools {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding-left: 8px;
  border-left: 1px solid var(--vs-line-soft);
}

.vistore-main-menu .vistore-main-menu__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--vs-muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.vistore-main-menu .vistore-main-menu__tool .vistore-icon {
  width: 16px;
  height: 16px;
}

.vistore-main-menu .vistore-main-menu__tool:hover,
.vistore-main-menu .vistore-main-menu__tool:focus-visible {
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-main-menu__tool b {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--vs-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-style: normal;
}

.vistore-main-menu__tool b[hidden] {
  display: none;
}

.vistore-main-menu__langs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 4px;
}

.vistore-main-menu .vistore-main-menu__langs a {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--vs-muted);
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.vistore-main-menu .vistore-main-menu__langs a.is-current {
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-main-menu .vistore-theme-toggle {
  width: 34px;
  height: 34px;
}

@media (max-width: 820px) {
  .vistore-main-menu__tool span {
    display: none;
  }

  .vistore-main-menu__langs {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* 8. Header search: clean bar in the OsclassEdge style                */
/* ------------------------------------------------------------------ */

.vistore-theme .vistore-header-search {
  flex: 1 1 430px;
  max-width: 520px;
  margin-inline: auto;
  transition: max-width .35s cubic-bezier(.3, 1.1, .4, 1);
}

.vistore-theme .vistore-header-search:focus-within {
  max-width: 680px;
}

/* Leading magnifier, like the OsclassEdge hero search. */
.vistore-theme .vistore-header-search__lead {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--vs-muted);
  pointer-events: none;
}

.vistore-theme .vistore-header-search__lead .vistore-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.vistore-theme .vistore-header-search input {
  height: 46px;
  min-height: 46px;
  padding-left: 44px !important;
  padding-right: 122px !important;
  border: 1px solid var(--vs-line) !important;
  border-radius: 10px !important;
  color: var(--vs-ink) !important;
  background: var(--vs-surface) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .12);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.vistore-theme .vistore-header-search input::placeholder {
  color: var(--vs-muted) !important;
  opacity: .7;
}

.vistore-theme .vistore-header-search:focus-within input {
  border-color: var(--vs-primary) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .12),
    0 0 0 3px color-mix(in srgb, var(--vs-primary, #155eef) 20%, transparent);
}

/* Primary "Search" button inside the field. */
.vistore-theme .vistore-header-search > button {
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: var(--vs-primary, #155eef) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background .15s ease, transform .15s ease;
}

.vistore-theme .vistore-header-search > button .vistore-icon {
  width: 16px;
  height: 16px;
}

.vistore-theme .vistore-header-search > button:hover {
  background: color-mix(in srgb, var(--vs-primary, #155eef) 84%, #000) !important;
}

.vistore-theme .vistore-header-search > button:active {
  transform: scale(.98);
}



/* Deployable filter panel, matching the light card look. */
.vistore-theme .vistore-header-search__filters {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  background: var(--vs-surface);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .14);
}

.vistore-theme .vistore-header-search__filters[hidden] {
  display: none;
}

.vistore-theme .vistore-header-search__filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vistore-theme .vistore-header-search__filters-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.vistore-theme .vistore-header-search__filters-grid label > span {
  color: var(--vs-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-left: 4px;
}

.vistore-theme .vistore-header-search__filters-grid select,
.vistore-theme .vistore-header-search__filters-grid input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  color: var(--vs-ink) !important;
  background: var(--vs-surface) !important;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.vistore-theme .vistore-header-search__filters-grid input[type="number"]::-webkit-outer-spin-button,
.vistore-theme .vistore-header-search__filters-grid input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vistore-theme .vistore-header-search__filters-grid input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.vistore-theme .vistore-header-search__filters-grid input::placeholder {
  color: var(--vs-muted);
  opacity: 1;
}

.vistore-theme .vistore-header-search__filters-grid select:focus,
.vistore-theme .vistore-header-search__filters-grid input:focus {
  border-color: var(--vs-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vs-primary, #155eef) 20%, transparent);
}

.vistore-theme .vistore-header-search__apply {
  position: static;
  width: 100%;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--vs-primary, #155eef);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.vistore-theme .vistore-header-search__apply:hover {
  background: color-mix(in srgb, var(--vs-primary, #155eef) 84%, #000);
}

.vistore-theme .vistore-header-search__apply:active {
  transform: scale(.98);
}

@media (max-width: 560px) {
  .vistore-theme .vistore-header-search__filters-grid {
    grid-template-columns: 1fr;
  }

  .vistore-theme .vistore-header-search > button span {
    display: none;
  }

  .vistore-theme .vistore-header-search > button {
    padding: 0 12px;
  }

  .vistore-theme .vistore-header-search input {
    padding-right: 118px !important;
  }

}

html.vistore-dark .vistore-header-search input,
html.vistore-dark .vistore-header-search__filters {
  border-color: rgba(255, 255, 255, .1);
}

html.vistore-dark .vistore-header-search input,
html.vistore-dark .vistore-header-search__filters,
html.vistore-dark .vistore-header-search__filters-grid select,
html.vistore-dark .vistore-header-search__filters-grid input {
  background: rgba(21, 28, 40, .96) !important;
}

html.vistore-dark .vistore-header-search__filters {
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

/* ------------------------------------------------------------------ */
/* 10. Mobile header: burger + search only                             */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .vistore-main-menu {
    display: none;
  }

  .vistore-header__brand,
  .vistore-header-actions,
  .vistore-header__publish {
    display: none !important;
  }

  .vistore-theme .vistore-header__main {
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: 46px;
    align-items: center;
    /* experience.css forces a 98px min-height (two-row header) — the mobile
       header has a single search row, so drop the empty half. */
    min-height: 0;
  }

  .vistore-theme .vistore-header-search {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
  }

  .vistore-mobile-nav__leaf {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    object-fit: contain;
  }

  /* Account nav: a full grid instead of a swipe strip — every button is
     visible at once, icon above a short label. */
  .vistore-theme .vistore-user-sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    margin-inline: 0;
    padding: 0 0 2px;
  }

  .vistore-theme .vistore-user-sidebar__link,
  .vistore-theme .vistore-user-sidebar__plugin-links a {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
    white-space: normal;
    text-align: center;
    font-size: 9.5px;
  }

  .vistore-theme .vistore-user-sidebar__link-icon {
    width: 22px;
    height: 22px;
    flex-basis: auto;
  }

  .vistore-theme .vistore-user-sidebar__count {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 0;
  }

  /* The fixed bottom nav needs ~64px of clearance; body and main both
     reserved far more, leaving a wide empty band above the nav. */
  body {
    padding-bottom: 0 !important;
  }

  .vistore-main {
    padding-bottom: 70px !important;
  }
}

  /* Compact, cleaner user dashboard. */
  .vistore-user-sidebar {
    border: 1px solid var(--vs-line);
    border-radius: 14px;
    padding: 10px 9px 6px;
  }

  .vistore-user-sidebar__avatar .vistore-avatar.large {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .vistore-user-sidebar__profile {
    padding: 0 0 8px;
  }

  .vistore-user-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .vistore-user-sidebar nav a {
    padding: 9px 12px;
  }

  .vistore-user-heading {
    margin: 12px 0;
  }

  .vistore-user-heading p {
    display: none;
  }

  .vistore-user-heading h1 {
    font-size: 20px;
  }

  .vistore-user-heading .vistore-button {
    min-height: 42px;
  }

  .vistore-dashboard-guide {
    display: none;
  }

  .vistore-dashboard-actions a {
    padding: 10px 12px;
  }

.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__businesses {
  gap: 6px;
  border-color: color-mix(in srgb, #18372e 20%, var(--vs-line));
  color: #18372e;
  background: color-mix(in srgb, #f8f5ec 88%, var(--vs-surface));
  font-weight: 780;
}
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__businesses .vistore-icon { width: 15px; height: 15px; }
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__businesses:hover,
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__businesses:focus-visible { border-color: #18372e; color: #fff; background: #18372e; }
html.vistore-dark .vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__businesses { border-color: rgba(230, 210, 169, .22); color: #f8e7bd; background: rgba(121, 86, 25, .18); }
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__explore {
  gap: 6px;
  border-color: #075d43;
  color: #fff;
  background: linear-gradient(135deg, #087047, #07533f);
  box-shadow: 0 5px 12px rgba(7, 83, 63, .18);
  font-weight: 780;
}
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__explore .vistore-icon { width: 15px; height: 15px; }
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__explore:hover,
.vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__explore:focus-visible { border-color: #064832; color: #fff; background: #064832; }
html.vistore-dark .vistore-main-menu .vistore-main-menu__links a.vistore-main-menu__explore { border-color: #168760; color: #ecfff3; background: linear-gradient(135deg, #087047, #07533f); }
html.vistore-dark .vistore-business-directory__cta { border-color: var(--vs-line); background: linear-gradient(115deg, #102b25, #13231f); }

/* ------------------------------------------------------------------ */
/* 11. Dark mode row inside the drawer navigation                      */
/* ------------------------------------------------------------------ */

.vistore-drawer__nav .vistore-drawer-nav-theme {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  color: var(--vs-text);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

/* On mobile the drawer nav becomes a card grid: match the other cards. */
@media (max-width: 720px) {
  .vistore-drawer__nav .vistore-drawer-nav-theme {
    min-width: 0;
    min-height: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 5px;
    border: 1px solid var(--vs-line);
    border-radius: 14px;
    background: var(--vs-surface);
    font-size: 10px;
    font-weight: 720;
    text-align: center;
  }

  .vistore-drawer__nav .vistore-drawer-nav-theme .vistore-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .vistore-drawer__nav .vistore-drawer-nav-theme {
    min-height: 68px;
    font-size: 9px;
  }
}

.vistore-drawer__nav .vistore-drawer-nav-theme:hover,
.vistore-drawer__nav .vistore-drawer-nav-theme:focus-visible {
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-drawer__nav .vistore-drawer-nav-theme .vistore-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Icon swap (moon at rest, sun in dark mode) for the drawer nav row. */
.vistore-drawer-nav-theme .vistore-theme-toggle__sun {
  display: none;
}

html.vistore-dark .vistore-drawer-nav-theme .vistore-theme-toggle__sun {
  display: block;
}

html.vistore-dark .vistore-drawer-nav-theme .vistore-theme-toggle__moon {
  display: none;
}

/* ------------------------------------------------------------------ */
/* 12. Dashboard: hide sidebar links duplicated by the action cards    */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .vistore-user-layout--dashboard .vistore-user-sidebar__link.is-dupe {
    display: none;
  }

  /* The "My account" eyebrow right below already says it. */
  .vistore-user-layout--dashboard .vistore-user-sidebar__identity small {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* 13. User dashboard hero + polish                                    */
/* ------------------------------------------------------------------ */

.vistore-theme .vistore-user-heading.vistore-user-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--vs-line);
  border-radius: 16px;
  background:
    radial-gradient(130% 160% at 0% 0%, color-mix(in srgb, var(--vs-primary) 11%, transparent), transparent 58%),
    var(--vs-surface);
  box-shadow: var(--vs-shadow-xs);
}

.vistore-user-hero__id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vistore-user-hero__avatar {
  flex: 0 0 auto;
}

.vistore-user-hero__avatar .vistore-avatar.large {
  width: 50px;
  height: 50px;
  font-size: 18px;
  border: 2px solid color-mix(in srgb, var(--vs-primary) 35%, transparent);
}

.vistore-user-hero__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vistore-user-hero__text h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.02em;
}

.vistore-user-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vs-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.vistore-user-hero__status .vistore-icon {
  width: 13px;
  height: 13px;
}

.vistore-user-hero__status.is-pro {
  color: var(--vs-warning-strong);
}

.vistore-user-hero__status.is-pro .vistore-icon {
  color: var(--vs-warning-strong);
}

.vistore-user-hero__public {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  color: var(--vs-muted);
  background: var(--vs-surface);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.vistore-user-hero__public .vistore-icon {
  width: 17px;
  height: 17px;
}

.vistore-user-hero__public:hover,
.vistore-user-hero__public:focus-visible {
  color: var(--vs-primary);
  border-color: color-mix(in srgb, var(--vs-primary) 30%, var(--vs-line));
  background: var(--vs-primary-soft);
}

/* Stats: icon left, figure right — tighter and scannable. */
.vistore-theme .vistore-analytics-cards {
  gap: 7px;
}

.vistore-theme .vistore-analytics-cards > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid var(--vs-line);
  border-radius: 13px;
  background: var(--vs-surface);
  box-shadow: var(--vs-shadow-xs);
}

.vistore-theme .vistore-analytics-cards > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  color: var(--vs-primary);
  background: var(--vs-primary-soft);
}

.vistore-theme .vistore-analytics-cards > div > span .vistore-icon {
  width: 17px;
  height: 17px;
}

.vistore-theme .vistore-analytics-cards > div > strong {
  font-size: 17px;
  line-height: 1.1;
}

.vistore-theme .vistore-analytics-cards > div > small {
  display: block;
  color: var(--vs-muted);
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 720px) {
  /* The hero replaces the sidebar identity card on the dashboard. */
  .vistore-user-layout--dashboard .vistore-user-sidebar__profile {
    display: none;
  }

  .vistore-user-layout--dashboard .vistore-user-sidebar nav {
    border-top: 0;
    padding-top: 0;
  }

  .vistore-theme .vistore-user-heading.vistore-user-hero {
    padding: 14px;
    border-radius: 14px;
  }

  .vistore-user-hero__text h1 {
    font-size: 19px;
  }

  .vistore-user-heading .vistore-button {
    min-height: 44px;
  }
}

/* Dashboard layout: the hero spans both columns above sidebar + content. */
.vistore-theme .vistore-user-layout--dashboard > .vistore-user-hero {
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------------ */
/* 14. Account nav: colorful access tiles (mobile)                     */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .vistore-theme .vistore-user-sidebar nav {
    gap: 8px;
  }

  .vistore-theme .vistore-user-sidebar__link,
  .vistore-theme .vistore-user-sidebar__plugin-links a {
    min-height: 74px;
    padding: 10px 4px 8px;
    gap: 6px;
    border: 0;
    border-radius: 16px;
    background: var(--vs-surface);
    box-shadow: 0 3px 12px rgba(16, 24, 40, .07), inset 0 0 0 1px var(--vs-line-soft);
  }

  .vistore-theme .vistore-user-sidebar__link .vistore-user-sidebar__link-icon,
  .vistore-theme .vistore-user-sidebar__plugin-links a .vistore-user-sidebar__link-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-basis: auto;
    border-radius: 13px;
    color: var(--vs-primary);
    background: var(--vs-primary-soft);
  }

  .vistore-theme .vistore-user-sidebar__link .vistore-user-sidebar__link-icon .vistore-icon,
  .vistore-theme .vistore-user-sidebar__plugin-links a .vistore-user-sidebar__link-icon .vistore-icon {
    width: 20px;
    height: 20px;
  }

  /* Per-destination tints */
  .vistore-theme .vistore-user-sidebar nav a[href*="favorites"] .vistore-user-sidebar__link-icon {
    color: var(--vs-rose-strong);
    background: var(--vs-rose-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="messages"] .vistore-user-sidebar__link-icon {
    color: var(--vs-success-strong);
    background: var(--vs-success-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="alerts"] .vistore-user-sidebar__link-icon {
    color: var(--vs-warning-strong);
    background: var(--vs-warning-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="offers"] .vistore-user-sidebar__link-icon {
    color: var(--vs-purple-strong);
    background: var(--vs-purple-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="variants-stock"] .vistore-user-sidebar__link-icon {
    color: var(--vs-success-strong);
    background: var(--vs-success-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="password/change"] .vistore-user-sidebar__link-icon,
  .vistore-theme .vistore-user-sidebar nav a[href*="change_password"] .vistore-user-sidebar__link-icon {
    color: var(--vs-purple-strong);
    background: var(--vs-purple-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="email/change"] .vistore-user-sidebar__link-icon,
  .vistore-theme .vistore-user-sidebar nav a[href*="change_email"] .vistore-user-sidebar__link-icon {
    color: var(--vs-accent);
    background: var(--vs-accent-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="logout"] {
    color: var(--vs-danger-strong);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="logout"] .vistore-user-sidebar__link-icon {
    color: var(--vs-danger-strong);
    background: var(--vs-danger-soft);
  }

  .vistore-theme .vistore-user-sidebar__link.is-active {
    box-shadow: 0 3px 12px rgba(16, 24, 40, .07), inset 0 0 0 2px var(--vs-primary);
    background: var(--vs-primary-soft);
  }
}

/* Chevron under compact tiles: noise. */
.vistore-theme .vistore-user-sidebar__chevron {
  display: none !important;
}

/* The variants link comes from a plugin as a bare <a>: give it the same
   green chip + glyph as the other tiles. */
@media (max-width: 720px) {
  .vistore-theme .vistore-user-sidebar nav a[href*="variants-stock"]::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--vs-success-soft);
  }

  .vistore-theme .vistore-user-sidebar nav a[href*="variants-stock"]::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%);
    background-color: var(--vs-success-strong);
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5z'/%3E%3Cpath d='m3 12 9 5 9-5'/%3E%3Cpath d='m3 17 9 5 9-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 9 5-9 5-9-5z'/%3E%3Cpath d='m3 12 9 5 9-5'/%3E%3Cpath d='m3 17 9 5 9-5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* ------------------------------------------------------------------ */
/* 15. Business directory — mockup design (desktop + mobile)           */
/* ------------------------------------------------------------------ */

/* Light hero: dark title, 3 green benefits, photo right, script overlay. */
.vistore-theme .vistore-business-directory__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  min-height: 0;
  border: 1px solid var(--vs-line);
  border-color: var(--vs-line);
  background: var(--vs-surface);
  background-image: none;
  box-shadow: 0 16px 42px rgba(16, 24, 40, .08);
}

.vistore-theme .vistore-business-directory__eyebrow {
  color: #14804d;
}

.vistore-theme .vistore-business-directory__hero-copy {
  width: auto;
  max-width: none;
  background: none;
  padding: clamp(24px, 3vw, 40px);
}

.vistore-theme .vistore-business-directory__hero h1 {
  color: var(--vs-ink);
  font-size: clamp(26px, 3vw, 38px);
}

.vistore-theme .vistore-business-directory__hero-copy > p {
  color: var(--vs-muted);
  font-size: 14.5px;
}

.vistore-theme .vistore-business-directory__benefits {
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 10px 26px;
}

.vistore-theme .vistore-business-directory__benefits > span {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.vistore-theme .vistore-business-directory__benefits > span .vistore-icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 10px;
  color: #14804d;
  background: #e8f5ee;
}

.vistore-theme .vistore-business-directory__benefits > span b {
  color: var(--vs-ink);
  font-size: 12px;
  font-weight: 750;
}

.vistore-theme .vistore-business-directory__benefits > span small {
  display: none;
}

/* Photo right with the handwritten brand line over it. */
.vistore-theme .vistore-business-directory__hero-visual {
  position: relative;
  min-height: 230px;
  border-radius: 0;
  background: var(--vistore-business-hero-image, none) center / cover no-repeat;
}

.vistore-theme .vistore-business-directory__hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(6, 60, 40, 0) 30%, rgba(6, 60, 40, .55));
}

.vistore-theme .vistore-business-directory__hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--vs-surface) 0%, transparent 26%);
}

.vistore-business-directory__script {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(4, 30, 18, .55);
  transform: rotate(-3deg);
}

/* Category chips: dark-green active, green icons, green counts. */
.vistore-theme .vistore-business-directory__categories a {
  border: 1px solid var(--vs-line);
  color: var(--vs-text);
  background: var(--vs-surface);
}

.vistore-theme .vistore-business-directory__categories a .vistore-icon {
  color: #14804d;
}

.vistore-theme .vistore-business-directory__categories a small {
  color: #14804d;
  background: #e8f5ee;
  border-radius: 999px;
  padding: 1px 7px;
}

.vistore-theme .vistore-business-directory__categories a.is-active {
  border-color: #0e5c3f;
  color: #fff;
  background: linear-gradient(140deg, #116345, #0e5c3f);
}

.vistore-theme .vistore-business-directory__categories a.is-active .vistore-icon,
.vistore-theme .vistore-business-directory__categories a.is-active small {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

/* Cards: cover badge, wish heart, verified check, green store button. */
.vistore-theme .vistore-business-card__cover b {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
}

.vistore-theme .vistore-business-card__cover b.is-premium {
  color: #7a4d00;
  background: linear-gradient(140deg, #ffe9b8, #ffd77a);
}

.vistore-theme .vistore-business-card__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--vs-rose-strong);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(16, 24, 40, .14);
}

.vistore-theme .vistore-business-card__wish .vistore-icon {
  width: 16px;
  height: 16px;
}

.vistore-theme .vistore-business-card__check {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  vertical-align: -2px;
  border-radius: 999px;
  color: #fff;
  background: #1d9bf0;
}

.vistore-theme .vistore-business-card__check .vistore-icon {
  width: 9px;
  height: 9px;
  stroke-width: 3;
}

.vistore-theme .vistore-business-card__actions .vistore-button--primary {
  background: linear-gradient(140deg, #116345, #0b4a34);
}

.vistore-theme .vistore-business-card__actions .vistore-button--primary:hover {
  background: linear-gradient(140deg, #0e5c3f, #093d2b);
}

/* Cream CTA banner. */
.vistore-theme .vistore-business-directory__cta--cream {
  background: linear-gradient(120deg, #faf3e0, #f3ead2);
  border: 1px solid #ecdfbc;
}

.vistore-theme .vistore-business-directory__cta--cream h2 {
  color: #123c2c;
}

.vistore-theme .vistore-business-directory__cta--cream p,
.vistore-theme .vistore-business-directory__cta--cream small {
  color: #5d6b58;
}

.vistore-theme .vistore-business-directory__cta--cream ul li {
  color: #14804d;
}

.vistore-theme .vistore-business-directory__cta-basket {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(90, 70, 20, .25));
}

.vistore-theme .vistore-business-directory__cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, #116345, #0b4a34);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(11, 74, 52, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.vistore-theme .vistore-business-directory__cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(11, 74, 52, .34);
}

.vistore-theme .vistore-business-directory__cta-button .vistore-icon {
  width: 16px;
  height: 16px;
}

.vistore-theme .vistore-business-directory__heading-star {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #b8860b;
  background: #fff7dd;
}

.vistore-theme .vistore-business-directory__heading-star .vistore-icon {
  width: 14px;
  height: 14px;
}

/* Dark mode equivalents. */
html.vistore-dark .vistore-business-directory__hero {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(21, 28, 40, .96);
}

html.vistore-dark .vistore-business-directory__hero h1 {
  color: var(--vs-ink);
}

html.vistore-dark .vistore-business-directory__benefits > span b {
  color: var(--vs-ink);
}

html.vistore-dark .vistore-business-directory__benefits > span .vistore-icon {
  color: #7ce3a8;
  background: rgba(20, 128, 77, .22);
}

html.vistore-dark .vistore-business-directory__hero-visual::after {
  background: linear-gradient(90deg, rgba(21, 28, 40, .96) 0%, transparent 26%);
}

html.vistore-dark .vistore-theme .vistore-business-directory__categories a {
  background: rgba(21, 28, 40, .96);
  border-color: rgba(255, 255, 255, .1);
}

html.vistore-dark .vistore-business-directory__categories a small {
  background: rgba(20, 128, 77, .2);
}

html.vistore-dark .vistore-business-directory__cta--cream {
  background: linear-gradient(120deg, rgba(32, 42, 30, .96), rgba(24, 32, 24, .96));
  border-color: rgba(148, 200, 120, .18);
}

html.vistore-dark .vistore-business-directory__cta--cream h2 {
  color: #d9edd2;
}

html.vistore-dark .vistore-business-directory__cta--cream p,
html.vistore-dark .vistore-business-directory__cta--cream small {
  color: #9db3a0;
}

/* Home: the leading "Businesses" tile with a clear, trust-led visual. */
.vistore-category-strip .vistore-category-tile.vistore-category-tile--business {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(92, 224, 166, .34);
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 209, 92, .28), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(24, 179, 126, .35), transparent 45%),
    linear-gradient(145deg, #0c604a 0%, #084b43 54%, #102d3b 100%);
  box-shadow: 0 9px 20px rgba(6, 48, 33, .2);
}

.vistore-category-strip .vistore-category-tile.vistore-category-tile--business::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, .9), transparent 72%);
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__icon {
  position: relative;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 12px rgba(0, 0, 0, .12);
  backdrop-filter: blur(7px);
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__icon > .vistore-icon {
  width: 25px;
  height: 25px;
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__icon > i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #0c604a;
  border-radius: 50%;
  color: #0c604a;
  background: #f6d76b;
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__icon > i .vistore-icon {
  width: 11px;
  height: 11px;
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__arrow {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .12);
}

.vistore-category-strip .vistore-category-tile--business .vistore-category-tile__arrow .vistore-icon {
  width: 13px;
  height: 13px;
}

.vistore-category-strip .vistore-category-tile--business strong {
  color: #fff !important;
}

.vistore-category-strip .vistore-category-tile--business small {
  color: rgba(255, 255, 255, .85) !important;
}

.vistore-category-strip .vistore-category-tile--business:hover,
.vistore-category-strip .vistore-category-tile--business:focus-visible {
  border-color: rgba(246, 215, 107, .8);
  box-shadow: 0 13px 26px rgba(6, 48, 33, .28);
  transform: translateY(-3px);
}

@media (max-width: 720px) {
  /* Give the featured destination enough room without widening the full strip. */
  .vistore-category-strip .vistore-category-tile.vistore-category-tile--business {
    width: 82px;
    min-width: 82px;
    flex-basis: 82px;
    padding-inline: 6px;
    border-radius: 13px;
  }

  .vistore-category-strip .vistore-category-tile--business small {
    display: none;
  }

  .vistore-category-strip .vistore-category-tile--business strong {
    margin-top: 7px;
    font-size: 11px;
    text-align: center;
  }

  .vistore-category-strip .vistore-category-tile--business .vistore-category-tile__arrow {
    top: 7px;
    right: 7px;
    bottom: auto;
    width: 18px;
    height: 18px;
    border-color: rgba(255, 255, 255, .36);
    background: rgba(0, 34, 28, .28);
  }
}

@media (max-width: 900px) {
  .vistore-theme .vistore-business-directory__hero {
    grid-template-columns: 1fr;
  }

  .vistore-theme .vistore-business-directory__hero-visual {
    order: -1;
    min-height: 150px;
    border-radius: 0;
  }

  .vistore-theme .vistore-business-directory__hero-visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, .9));
  }

  html.vistore-dark .vistore-business-directory__hero-visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(21, 28, 40, .96));
  }

  .vistore-business-directory__script {
    right: 14px;
    bottom: 12px;
    font-size: 16px;
  }

  .vistore-theme .vistore-business-directory__benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Card actions: two equal, aligned buttons. */
.vistore-theme .vistore-business-card__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vistore-theme .vistore-business-card__actions .vistore-button,
.vistore-theme .vistore-business-card__actions .vistore-follow-form .vistore-button--follow {
  min-height: 40px;
  padding: 0 8px;
  justify-content: center;
  font-size: 12px;
}

/* Follow as an outline pill next to "Voir la boutique". */
.vistore-theme .vistore-follow-form--directory .vistore-button--follow {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--vs-line-strong, #d0d5dd);
  border-radius: 10px;
  color: var(--vs-ink) !important;
  background: var(--vs-surface) !important;
  box-shadow: none;
}

.vistore-theme .vistore-follow-form--directory .vistore-button--follow span {
  display: inline !important;
}

.vistore-theme .vistore-follow-form--directory .vistore-button--follow .vistore-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  color: var(--vs-primary);
  background: transparent;
  box-shadow: none;
}

.vistore-theme .vistore-follow-form--directory .vistore-button--follow small {
  display: none;
}

.vistore-theme .vistore-follow-form--directory .vistore-button--follow.is-following {
  color: #14804d;
  border-color: rgba(20, 128, 77, .35);
  background: #e8f5ee;
}

/* ------------------------------------------------------------------ */
/* 16. Business directory — mobile refinements                         */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  /* The 122px cover cannot fit badge + heart + logo: drop the heart. */
  .vistore-theme .vistore-business-card__wish {
    display: none;
  }

  /* Both card buttons share the same size on mobile too. */
  .vistore-theme .vistore-business-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vistore-theme .vistore-business-card__actions .vistore-button--follow {
    width: auto !important;
    min-height: 33px;
    padding: 0 6px;
  }

  .vistore-theme .vistore-business-card__actions .vistore-button--follow span {
    display: inline !important;
    font-size: 9.5px;
  }

  /* Cream CTA: stack and give the button its own full-width row. */
  .vistore-theme .vistore-business-directory__cta--cream {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vistore-theme .vistore-business-directory__cta--cream .vistore-business-directory__cta-button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .vistore-theme .vistore-business-directory__script {
    right: auto;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) rotate(-2deg);
    text-align: center;
    white-space: nowrap;
    width: max-content;
  }
}

/* ------------------------------------------------------------------ */
/* 17. Business directory — clean mobile (2-col grid, simple hero)     */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  /* Simple hero: title + subtitle only. */
  .vistore-theme .vistore-business-directory__benefits,
  .vistore-theme .vistore-business-directory__eyebrow {
    display: none;
  }

  .vistore-theme .vistore-business-directory__hero-copy {
    padding: 15px 12px 13px;
  }

  .vistore-theme .vistore-business-directory__hero h1 {
    margin-bottom: 4px;
    font-size: 22px;
  }

  .vistore-theme .vistore-business-directory__hero-copy > p {
    margin-bottom: 0;
    font-size: 11.5px;
  }

  /* Category pills, no icons. */
  .vistore-theme .vistore-business-directory__categories a .vistore-icon {
    display: none;
  }

  .vistore-theme .vistore-business-directory__categories a {
    min-height: 32px;
    padding: 6px 13px;
    border: 0;
    border-radius: 999px;
    color: var(--vs-text);
    background: var(--vs-surface);
    box-shadow: 0 2px 7px rgba(16, 24, 40, .06);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
  }

  .vistore-theme .vistore-business-directory__categories a small {
    margin-left: 4px;
    padding: 1px 6px;
    font-size: 9px;
  }

  .vistore-theme .vistore-business-directory__categories a.is-active {
    color: #fff;
    background: linear-gradient(140deg, #116345, #0e5c3f);
    box-shadow: 0 4px 12px rgba(14, 92, 63, .3);
  }

  /* Two-column card grid, like desktop. */
  .vistore-theme .vistore-business-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vistore-theme .vistore-business-card {
    display: block;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .vistore-theme .vistore-business-card__cover {
    height: 88px;
    min-height: 0;
  }

  .vistore-theme .vistore-business-card__cover b {
    top: 7px;
    left: 7px;
    padding: 3px 8px;
    font-size: 8px;
  }

  .vistore-theme .vistore-business-card__logo {
    top: -24px;
    left: 8px;
    width: 46px;
    height: 46px;
    border-width: 3px;
  }

  .vistore-theme .vistore-business-card__logo i {
    width: 15px;
    height: 15px;
  }

  .vistore-theme .vistore-business-card__body {
    min-height: 0;
    padding: 26px 8px 8px;
  }

  .vistore-theme .vistore-business-card__identity {
    padding-left: 0;
  }

  .vistore-theme .vistore-business-card__identity h3 {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vistore-theme .vistore-business-card__identity > span {
    font-size: 9px;
  }

  .vistore-theme .vistore-business-card__rating {
    margin-top: 5px;
  }

  .vistore-theme .vistore-business-card__rating strong {
    font-size: 10px;
  }

  .vistore-theme .vistore-business-card__rating small {
    font-size: 8px;
  }

  .vistore-theme .vistore-business-card__facts {
    margin-top: 5px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .vistore-theme .vistore-business-card__facts > span {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vistore-theme .vistore-business-card__actions {
    padding-top: 8px;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .vistore-theme .vistore-business-card__actions .vistore-button {
    min-height: 32px;
    padding: 0 6px;
    font-size: 10px;
  }

  .vistore-theme .vistore-business-card__actions .vistore-button--follow {
    width: 34px !important;
    min-height: 32px;
    padding: 0;
  }

  .vistore-theme .vistore-business-card__actions .vistore-button--follow span {
    display: none !important;
  }
}

/* Buy credits shortcut (main menu + drawer). */
.vistore-main-menu .vistore-main-menu__credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--vs-warning-strong);
  background: var(--vs-warning-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.vistore-main-menu .vistore-main-menu__credits .vistore-icon {
  width: 14px;
  height: 14px;
}

/* Recharge shortcut in the main menu. */
.vistore-main-menu .vistore-main-menu__recharge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid color-mix(in srgb, #126ea8 22%, var(--vs-line));
  border-radius: 10px;
  color: #12618e;
  background: color-mix(in srgb, #e6f5fe 88%, var(--vs-surface));
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  text-decoration: none;
}

.vistore-main-menu .vistore-main-menu__recharge .vistore-icon {
  width: 14px;
  height: 14px;
}

.vistore-main-menu .vistore-main-menu__recharge:hover,
.vistore-main-menu .vistore-main-menu__recharge:focus-visible {
  border-color: #12618e;
  color: #fff;
  background: #12618e;
}

html.vistore-dark .vistore-main-menu .vistore-main-menu__recharge {
  border-color: rgba(125, 211, 252, .25);
  color: #bae6fd;
  background: rgba(3, 105, 161, .18);
}
