/* Circle Signature: the shared Market Circle look (same type and tokens as the admin and vendor workspaces).
   Loaded after market.css and circle-next.css; only refines, never restructures. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&display=swap');

:root{--display:'Bricolage Grotesque','DM Sans',Arial,sans-serif;--ease:cubic-bezier(.2,.7,.2,1);--photo-shade:linear-gradient(180deg,#0000 38%,#0e2a1fcc)}

/* Type: a characterful display face for headings, DM Sans for reading. */
h1,h2,.vendor-invite h2,.promo-card h2{font-family:var(--display);font-weight:700;font-variation-settings:'opsz' 72}
h1{letter-spacing:-.035em;line-height:1.02}
h2{letter-spacing:-.025em;line-height:1.08}
h3{letter-spacing:-.01em}
h1 em,h2 em{font-family:var(--display);font-style:normal;color:var(--green);position:relative;white-space:nowrap}
h1 em:after{content:'';position:absolute;left:-.04em;right:-.04em;bottom:.06em;height:.26em;background:var(--lime);z-index:-1;border-radius:.2em;opacity:.85}
html[data-theme=dark] h1 em:after{opacity:.28}
.vendor-invite h2 em,.promo-card h2 em{color:inherit}
.eyebrow{letter-spacing:.14em}

/* Hero: photography first, warmer and calmer. */
.next-hero h1{font-size:clamp(42px,5.4vw,78px)}
.next-mosaic img{object-position:center 30%}
.next-mosaic-main img{object-position:center 35%}
.next-mosaic a{box-shadow:0 22px 50px -28px #0e2a1f73}
.next-sticker{font-family:var(--display);font-weight:700}

/* Department tiles: one consistent photographic style for every department. */
.category-tile{overflow:hidden;background:var(--surface);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.category-tile .category-cover{width:100%;object-fit:cover;object-position:center 30%;transition:transform .6s var(--ease);filter:saturate(1.04)}
.category-tile:hover{box-shadow:0 18px 40px -24px #0e2a1f66}
.category-tile:hover .category-cover{transform:scale(1.06)}
.category-tile .category-icon{box-shadow:0 0 0 3px var(--surface),0 6px 16px -8px #0e2a1f66}
@media (prefers-reduced-motion:reduce){.category-tile,.category-tile .category-cover,.next-mosaic a,.next-mosaic img{transition:none!important}.category-tile:hover .category-cover{transform:none}}

/* Product photos fill their frame; drawn fallbacks stay contained. */
.product-image{overflow:hidden}
.product-image img:not([src$=".svg"]){object-fit:cover;padding:0}
.product-card{transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -26px #0e2a1f59}
.store-cover img{object-fit:cover;object-position:center 30%}

/* Promo cards and the seller invitation carry real people. */
.promo-card>img{width:40%;max-width:250px;aspect-ratio:4/5;object-fit:cover;border-radius:22px;margin-right:0;transform:rotate(4deg);box-shadow:0 20px 40px -22px #0e2a1f80;border:5px solid #fff}
.neighbourhood-art.photo{position:relative;display:block;width:40%;max-width:250px}
.neighbourhood-art.photo img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:22px;transform:rotate(-4deg);box-shadow:0 20px 40px -22px #0e2a1f80;border:5px solid #fff}
.neighbourhood-art.photo .art-spark{position:absolute;top:-14px;right:-6px}
.invite-mark.photo{position:relative;display:block;max-width:440px;width:100%}
.invite-mark.photo img{width:100%;aspect-ratio:7/5;object-fit:cover;border-radius:22px;box-shadow:0 26px 60px -30px #000c}
.invite-mark.photo span{position:absolute;left:-18px;bottom:-16px;background:var(--lime);color:#173e2c;padding:12px 18px;border-radius:16px;transform:rotate(-4deg);font-weight:700;line-height:1.15;font-family:var(--display);font-size:20px;box-shadow:0 12px 30px -16px #000a}
.invite-mark.photo span em{font-family:var(--display)}

/* Live launch card: shown while sellers are still publishing their first products. */
.launch-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:26px;overflow:hidden;background:var(--surface)}
.launch-card img{width:100%;height:100%;min-height:300px;object-fit:cover;object-position:center 30%}
.launch-card>div{padding:44px 44px 40px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.launch-card h3{font-family:var(--display);font-size:clamp(24px,2.4vw,34px);line-height:1.08;letter-spacing:-.02em;margin:10px 0 4px}
.launch-card p{color:var(--muted);max-width:44ch}
.launch-card .flex{margin-top:14px}

/* Photo credits page. */
.credits-page ul{columns:2;gap:40px;padding-left:18px}
.credits-page li{margin:6px 0;break-inside:avoid}
.credits-page h2{margin-top:34px}

@media (max-width:900px){
  .launch-card{grid-template-columns:1fr}
  .launch-card img{min-height:220px;max-height:260px}
  .launch-card>div{padding:26px 22px 28px}
  .invite-mark.photo{margin-top:26px}
  .invite-mark.photo span{left:10px;font-size:17px}
  .credits-page ul{columns:1}
}
@media (max-width:640px){
  .promo-card>img,.neighbourhood-art.photo{width:38%}
  .next-hero h1{font-size:clamp(38px,11vw,52px)}
}

/* Department rows stay even: 9 departments sit as 5 + 4, 14 as 7 + 7, on wide screens. */
@media (min-width:1101px){.category-grid.balanced{grid-template-columns:repeat(var(--cols,6),minmax(0,1fr))}}

/* Shop header: Market Circle's own photographs fill the frame; real shop logos keep their whole shape. */
.store-profile-art.is-photo{padding:0;align-items:stretch}
.store-profile-art.is-photo img{width:100%;height:100%;max-height:none;min-height:300px;object-fit:cover;object-position:center 30%}

/* Department names stay readable on dark tiles. */
.category-tile,.category-tile strong{color:var(--ink)}
html[data-theme=dark] .category-tile{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .category-tile .round-arrow{border-color:var(--line);color:var(--ink)}

/* Location dialog: zones within zones. */
.zone-steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 6px}
.zone-steps label{font-size:12px;color:var(--muted);font-weight:600}
.zone-steps label[hidden]{display:none}
.zone-steps select{margin-top:5px}
@media (max-width:520px){.zone-steps{grid-template-columns:1fr}}

.place-search{position:relative;margin:6px 0 4px}
.place-search label{font-size:12px;color:var(--muted);font-weight:600}
.place-search input{margin-top:5px}
.place-search ul{list-style:none;margin:6px 0 0;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);max-height:240px;overflow:auto;box-shadow:var(--shadow)}
.place-search li button{width:100%;text-align:left;padding:9px 10px;border-radius:10px;display:flex;flex-direction:column;gap:1px}
.place-search li button:hover,.place-search li button:focus-visible{background:var(--soft)}
.place-search li span{font-size:12px;color:var(--muted);text-transform:capitalize}
.place-chosen{margin:6px 0 0}

/* Three-sided demo: shopper, shop and courier. */
.workflow h1{font-size:clamp(36px,4.4vw,60px)}
.flow-start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);border:1px solid var(--line);border-radius:26px;overflow:hidden;background:var(--surface)}
.flow-start img{width:100%;height:100%;min-height:280px;object-fit:cover}
.flow-start>div{padding:40px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.flow-start h2{font-size:clamp(24px,2.4vw,34px)}
.flow-steps{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;padding:0;margin:6px 0 22px}
.flow-steps li{border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-size:13px;font-weight:600;background:var(--surface);color:var(--muted);display:flex;flex-direction:column;gap:3px}
.flow-steps li span{font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.flow-steps li.done{background:var(--soft);color:var(--ink);border-color:transparent}
.flow-steps li.done span{color:var(--green)}
.flow-tabs{display:none}
.flow-screens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.flow-screen{border:1px solid var(--line);border-radius:26px;background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:14px;transition:box-shadow .3s var(--ease),transform .3s var(--ease)}
.flow-screen.is-turn{border-color:var(--green);box-shadow:0 0 0 4px var(--lime),0 22px 44px -28px #0e2a1f80;transform:translateY(-3px)}
.flow-screen header{display:flex;flex-direction:column;gap:2px;position:relative;padding-right:84px}
.flow-role{font-family:var(--display);font-weight:700;font-size:19px;display:flex;align-items:center;gap:8px}
.flow-screen header small{color:var(--muted)}
.flow-turn{position:absolute;right:0;top:0;background:var(--lime);color:#173e2c;font-size:11px;font-weight:700;padding:5px 10px;border-radius:999px}
.flow-status{background:var(--soft);border-radius:18px;padding:14px 16px}
.flow-status strong{font-family:var(--display);font-size:20px;display:block}
.flow-status p{margin:4px 0 0;color:var(--muted);font-size:14px}
.flow-card{border:1px solid var(--line);border-radius:18px;padding:12px 14px}
.flow-shop{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.flow-shop img{width:44px;height:44px;border-radius:12px;object-fit:cover}
.flow-shop small{display:block;color:var(--muted)}
.flow-lines{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:14px}
.flow-lines li{display:flex;justify-content:space-between;gap:10px}
.flow-lines li.total{border-top:1px solid var(--line);padding-top:6px;font-weight:700}
.flow-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:4px 0}
.flow-row span{color:var(--muted)}
.flow-row strong{text-align:right}
.flow-code{background:var(--green);color:#fff;border-radius:18px;padding:16px;text-align:center;display:grid;gap:2px}
.flow-code b{font-family:var(--display);font-size:40px;letter-spacing:.2em;color:var(--lime)}
html[data-theme=dark] .flow-code{color:#173e2c}
html[data-theme=dark] .flow-code b{color:#173e2c}
.flow-action{display:grid;gap:10px}
.flow-wait{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:6px;margin:0}
.flow-done{margin:0;font-weight:600}
.flow-error{background:#ffe3df;color:#8a2a22;border-radius:14px;padding:10px 14px;font-weight:600}
.flow-foot{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:22px}
.flow-foot p{flex-basis:100%;margin:0}
@media (max-width:980px){
  .flow-start{grid-template-columns:1fr}.flow-start img{min-height:200px;max-height:240px}.flow-start>div{padding:24px 20px}
  .flow-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:var(--soft);padding:5px;border-radius:16px;margin-bottom:14px;position:sticky;top:8px;z-index:5}
  .flow-tabs a{text-align:center;padding:10px 6px;border-radius:12px;font-weight:700;font-size:14px;position:relative}
  .flow-tabs a.active{background:var(--surface);box-shadow:0 4px 14px -8px #0e2a1f66}
  .flow-tabs a b{position:absolute;top:7px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--green)}
  .flow-screens{grid-template-columns:1fr}
  .flow-screen{display:none}.flow-screen.is-active{display:flex}
  .flow-screen.is-turn{transform:none}
  .flow-steps{display:flex;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 16px 4px}
  .flow-steps::-webkit-scrollbar{display:none}
  .flow-steps li{flex:0 0 auto;min-width:118px}
}
/* Shop cover first, with the shop's own logo (or its initials) as a badge */
.store-cover,.store-profile-art{position:relative}
.store-badge{position:absolute;left:14px;bottom:14px;width:52px;height:52px;border-radius:14px;background:#fffefa;border:2px solid #fffefa;box-shadow:0 6px 18px #0b231a33;display:grid;place-items:center;overflow:hidden;font:700 18px/1 'Bricolage Grotesque',sans-serif;color:#124d3b;letter-spacing:.02em}
.store-badge img{width:100%;height:100%;object-fit:contain;transform:none!important}
.store-badge.large{width:76px;height:76px;left:18px;bottom:18px;border-radius:18px;font-size:26px}
.store-card:hover .store-badge img{transform:none}
html[data-theme=dark] .store-badge{background:var(--surface);border-color:var(--surface);color:#d8fa75}

/* 2026 logo (20 Nov 2026). It sits on the brand's white tile in light and dark mode alike, so one (light) version;
   the logo is a little taller than wide, so keep its shape in the square slot */
.mc-logo{object-fit:contain}
