/* Photo-led browsing shared by Veganue home, search and filtered lists. */
.vg-home, .vg-search, .vg-browse { color: var(--vg-text, #17251c); font-family: var(--vg-font, system-ui, sans-serif); background: #fff; }
.vg-home *, .vg-search *, .vg-browse * { box-sizing: border-box; }
.vg-browse-icon { display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle; }
.vg-browse-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.vg-home h1, .vg-search h1, .vg-browse h1 { margin: 0; color: var(--vg-text, #17251c); font-family: inherit; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.13; letter-spacing: -.035em; font-weight: 750; text-transform: none; overflow-wrap: anywhere; }
.vg-home h2, .vg-search h2, .vg-browse h2 { margin: 0; color: var(--vg-text, #17251c); font-family: inherit; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-transform: none; }
.vg-browse-eyebrow { color: var(--vg-accent, #256b3a); font-size: 12px; line-height: 1.5; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }
.vg-home-hero { padding: 52px 0 36px; background: linear-gradient(135deg, #f0f7ef 0%, #f9fbf6 75%); border-bottom: 1px solid #e9f0e7; }
.vg-hero-description { max-width: 610px; margin: 18px 0 26px; color: var(--vg-muted, #5d6b61); font-size: 17px; line-height: 1.65; }
.vg-browse-searchform { position: relative; display: flex; align-items: center; gap: 12px; max-width: 720px; padding: 8px 8px 8px 20px; margin: 0; border: 1px solid var(--vg-border, #dce5de); border-radius: 36px; background: #fff; box-shadow: 0 3px 12px rgba(23,37,28,.04); }
.vg-browse-searchform:focus-within { border-color: var(--vg-accent, #256b3a); box-shadow: 0 0 0 3px rgba(37,107,58,.12); }
.vg-browse-searchform > .vg-browse-icon { color: var(--vg-muted, #5d6b61); width: 22px; height: 22px; }
.vg-browse-searchform input[type="search"] { min-width: 0; flex: 1; width: 100%; height: 44px; border: 0; border-radius: 0; outline: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; color: var(--vg-text, #17251c); font: inherit; font-size: 16px; line-height: 1.4; }
.vg-browse-searchform input::placeholder { color: #738076; opacity: 1; }
.vg-browse-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 22px; border: 1px solid transparent; border-radius: 28px; background: var(--vg-accent, #256b3a); color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; white-space: nowrap; }
.vg-browse-button:hover, .vg-browse-button:focus { background: var(--vg-accent-hover, #1d542d); color: #fff; text-decoration: none; }
.vg-browse-button:disabled { opacity: .65; cursor: wait; }
.vg-browse-button-secondary { color: var(--vg-accent, #256b3a); background: #fff; border-color: var(--vg-border, #dce5de); }
.vg-browse-button-secondary:hover, .vg-browse-button-secondary:focus { background: #eaf3e8; color: var(--vg-accent, #256b3a); }
.vg-browse-link, .vg-view-all { color: var(--vg-accent, #256b3a); font-size: 14px; font-weight: 650; text-decoration: none; }
.vg-browse-link:hover, .vg-view-all:hover { color: var(--vg-accent-hover, #1d542d); text-decoration: underline; }
.vg-quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.vg-quicklinks a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #dce8d9; border-radius: 24px; background: rgba(255,255,255,.7); color: #2d5134; font-size: 14px; font-weight: 600; text-decoration: none; }
.vg-quicklinks .vg-browse-icon { width: 18px; height: 18px; }
.vg-quicklinks a:hover { background: #fff; border-color: #a5c4a7; }
.vg-home > .vg-container { padding-top: 10px; padding-bottom: 40px; }
.vg-home-section { margin: 32px 0 44px; }
.vg-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.vg-section-head h2 { flex: 1; min-width: 0; }
.vg-rail-actions, .vg-rail-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.vg-rail-actions { gap: 16px; }
.vg-view-all { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; white-space: nowrap; }
.vg-view-all .vg-browse-icon { width: 17px; height: 17px; }
.vg-rail-controls[hidden] { display: none; }
.vg-rail-control { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--vg-border, #dce5de); border-radius: 50%; color: var(--vg-text, #17251c); background: #fff; cursor: pointer; }
.vg-rail-control:hover:not(:disabled) { background: #edf4ec; border-color: #aac6ab; }
.vg-rail-control:disabled { color: #a7afa9; background: #f8faf8; cursor: default; }
.vg-rail-control .vg-browse-icon { width: 20px; height: 20px; }
.vg-rail-shell { position: relative; }
.vg-rail-shell::before, .vg-rail-shell::after { position: absolute; top: 0; bottom: 12px; width: 14px; z-index: 2; pointer-events: none; content: ''; opacity: 0; transition: opacity .15s; }
.vg-rail-shell::before { left: -16px; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.vg-rail-shell::after { right: -16px; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
.vg-rail-shell.has-previous::before, .vg-rail-shell.has-next::after { opacity: 1; }
.vg-rail { --vg-rail-columns: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; align-items: stretch; list-style: none; margin: -10px -16px -12px; padding: 10px 16px 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; scrollbar-color: #cddccc transparent; }
.vg-rail.is-dragging { scroll-snap-type: none; user-select: none; cursor: grabbing; }
.vg-rail > .vg-card-item { scroll-snap-align: start; }
.vg-card-item { list-style: none; margin: 0; padding: 0; min-width: 0; display: flex; }
.vg-card { display: flex; flex-direction: column; width: 100%; min-width: 0; border: 1px solid #e6ece5; border-radius: 20px; background: #fff; color: var(--vg-text, #17251c); text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.vg-card:hover, .vg-card:focus-visible { color: var(--vg-text, #17251c); text-decoration: none; border-color: #c9d9c8; box-shadow: 0 6px 16px rgba(27,57,32,.12); transform: translateY(-2px); }
.vg-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 19px 19px 0 0; background: #edf3eb; }
.vg-card-media > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.vg-card-media > img[hidden] { display: none; }
.vg-card-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; justify-content: center; align-items: center; color: #72866e; font-size: 12px; }
.vg-card-placeholder .vg-browse-icon { width: 34px; height: 34px; }
.vg-card-status { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 6px 11px; border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: 0 2px 6px rgba(0,0,0,.05); font-size: 12px; line-height: 1.5; font-weight: 700; }
.vg-card-status.is-open { color: #23703a; }
.vg-card-status.is-closed { color: #934332; }
.vg-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; min-width: 0; }
.vg-card .vg-card-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.6em; overflow: hidden; margin: 0 0 8px; color: inherit; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; text-transform: none; overflow-wrap: anywhere; }
.vg-card-meta { display: flex; align-items: center; gap: 0; min-height: 22px; margin: 0 0 12px; color: var(--vg-muted, #5d6b61); font-size: 13px; line-height: 1.5; }
.vg-card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-card-meta span:first-child { flex: none; max-width: 100%; }
.vg-card-meta span + span::before { content: '·'; padding: 0 8px; color: #98a397; }
.vg-card-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; margin-top: auto; }
.vg-card-tags span { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f2f5f0; color: #52614e; font-size: 11px; font-weight: 600; line-height: 1.6; }
.vg-card-tags .vg-card-delivery { color: #2b6937; background: #edf5e8; }
.vg-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vg-category { display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 18px; border: 1px solid var(--vg-border, #dce5de); border-radius: 16px; color: var(--vg-text, #17251c); background: #f8faf6; font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color .15s, background .15s; }
.vg-category > .vg-browse-icon:first-child { width: 30px; height: 30px; color: var(--vg-accent, #256b3a); }
.vg-category .vg-category-arrow { margin-left: auto; width: 16px; height: 16px; color: #81907c; }
.vg-category:hover { color: var(--vg-accent, #256b3a); background: #eef5e9; border-color: #b4cdb0; text-decoration: none; }
.vg-browse-tags, .vg-browse-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.vg-browse-tags a, .vg-browse-filters a, .vg-browse-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--vg-border, #dce5de); border-radius: 24px; background: #fff; color: #41583e; font: inherit; font-size: 14px; line-height: 1.4; font-weight: 550; text-decoration: none; cursor: pointer; }
.vg-browse-tags a:hover, .vg-browse-filters a:hover, .vg-browse-filters button:hover { background: #f0f6ed; border-color: #b4cdb0; }
.vg-more-tags { margin-top: 14px; }
.vg-more-tags > summary { width: fit-content; min-height: 44px; padding: 11px 2px; color: var(--vg-accent, #256b3a); font-size: 14px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.vg-more-tags > summary span { margin-left: 4px; color: var(--vg-muted, #5d6b61); font-weight: 400; }
.vg-more-tags > summary:focus-visible { outline: 2px solid var(--vg-accent, #256b3a); outline-offset: 4px; border-radius: 4px; }
.vg-more-tags[open] > summary { margin-bottom: 8px; }
.vg-browse-empty { padding: 40px 24px; border: 1px solid var(--vg-border, #dce5de); border-radius: 20px; background: var(--vg-surface, #f5f8f5); text-align: center; }
.vg-browse-empty > .vg-browse-icon { width: 36px; height: 36px; color: var(--vg-accent, #256b3a); margin-bottom: 16px; }
.vg-browse-empty h3 { margin: 0 0 10px; color: var(--vg-text, #17251c); font: inherit; font-size: 22px; font-weight: 700; }
.vg-browse-empty p { max-width: 540px; margin: 12px auto 22px; color: var(--vg-muted, #5d6b61); font-size: 15px; line-height: 1.6; }
.vg-browse-empty-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.vg-browse-empty .vg-browse-tags { justify-content: center; }
.vg-search-head { padding: 38px 0 28px; background: var(--vg-surface, #f5f8f5); border-bottom: 1px solid var(--vg-border, #dce5de); }
.vg-search-head h1 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 24px; }
.vg-search-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.vg-radius-control { width: 310px; max-width: 100%; }
.vg-radius-control label { display: flex; justify-content: space-between; gap: 16px; color: var(--vg-text, #17251c); font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.vg-radius-control output { display: inline; padding: 0; margin: 0; color: var(--vg-accent, #256b3a); font-size: inherit; }
.vg-radius-control input[type="range"] { display: block; width: 100%; height: 24px; min-height: 24px; padding: 0; margin: 0; border: 0; accent-color: var(--vg-accent, #256b3a); cursor: pointer; }
.vg-radius-control > span { display: block; margin-top: 5px; color: var(--vg-muted, #5d6b61); font-size: 12px; }
.vg-browse-location { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--vg-accent, #256b3a); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.vg-browse-location .vg-browse-icon { width: 19px; height: 19px; }
.vg-search-error { max-width: 720px; padding: 12px 16px; border: 1px solid #e8c8c2; border-radius: 12px; margin-top: 12px; color: #913b2c; background: #fff8f6; font-size: 14px; }
.vg-search-error p { margin: 0; }
.vg-search-results, .vg-browse-results { padding-top: 30px; padding-bottom: 54px; }
.vg-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 26px 24px; margin: 0; padding: 0; list-style: none; }
.vg-results-note { color: var(--vg-muted, #5d6b61); font-size: 13px; margin: 0 0 18px; }
.vg-section-head > .vg-results-note { margin: 0; }
.vg-browse-head { padding-top: 40px; }
.vg-browse-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 22px; }
.vg-browse-footer-link { display: inline-block; margin-top: 28px; }
.vg-home :is(a, button, input, .vg-rail):focus-visible, .vg-search :is(a, button, input):focus-visible, .vg-browse :is(a, button):focus-visible { outline: 2px solid var(--vg-accent, #256b3a); outline-offset: 4px; }
.vg-browse-searchform input[type="search"]:focus-visible { outline: none; }
@media (max-width: 980px) {
  .vg-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vg-rail { --vg-rail-columns: 2; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; }
  .vg-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (max-width: 600px) {
  .vg-home-hero { padding: 34px 0 26px; }
  .vg-hero-description { font-size: 15px; margin: 14px 0 22px; }
  .vg-browse-searchform { gap: 8px; padding-left: 14px; }
  .vg-browse-searchform > .vg-browse-icon { width: 19px; height: 19px; }
  .vg-browse-searchform .vg-browse-button { padding-inline: 16px; }
  .vg-quicklinks { gap: 8px; margin-top: 18px; }
  .vg-quicklinks a { font-size: 12px; padding-inline: 11px; }
  .vg-home-section { margin: 26px 0 34px; }
  .vg-section-head { gap: 12px; margin-bottom: 18px; }
  .vg-rail-actions { gap: 8px; }
  .vg-rail-actions .vg-view-all { font-size: 12px; }
  .vg-rail-actions .vg-view-all .vg-browse-icon { display: none; }
  .vg-rail-controls { gap: 4px; }
  .vg-rail-control { width: 36px; height: 44px; border-radius: 14px; }
  .vg-rail { --vg-rail-columns: 1; grid-auto-columns: 88%; gap: 16px; }
  .vg-card .vg-card-name { font-size: 17px; }
  .vg-card-body { padding: 14px; }
  .vg-category { min-height: 76px; padding: 14px; gap: 10px; font-size: 13px; }
  .vg-category > .vg-browse-icon:first-child { width: 26px; height: 26px; }
  .vg-category .vg-category-arrow { display: none; }
  .vg-search-head { padding: 28px 0 24px; }
  .vg-search-filters { gap: 14px; }
  .vg-radius-control { width: 100%; }
  .vg-search-results, .vg-browse-results { padding-top: 24px; padding-bottom: 36px; }
  .vg-results-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .vg-browse-empty { padding: 28px 18px; }
  .vg-browse-head { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vg-card, .vg-category, .vg-rail-shell::before, .vg-rail-shell::after { transition: none; }
  .vg-card:hover, .vg-card:focus-visible { transform: none; }
}
