/* VIZINU — warm, local and unmistakably human */
:root {
  --primitive-cream: oklch(97% .015 80); --primitive-paper: oklch(99% .008 80); --primitive-sand: oklch(94% .025 80);
  --primitive-ink: oklch(22% .04 48); --primitive-clay: oklch(52% .04 55); --primitive-red: oklch(51% .19 29);
  --primitive-red-dark: oklch(43% .17 29); --primitive-green: oklch(57% .13 150); --primitive-line: oklch(88% .018 75);
  --surface: var(--primitive-cream); --surface-raised: var(--primitive-paper); --surface-muted: var(--primitive-sand);
  --text: var(--primitive-ink); --text-muted: var(--primitive-clay); --accent: var(--primitive-red); --accent-hover: var(--primitive-red-dark);
  --success: var(--primitive-green); --border: var(--primitive-line); --shadow: 0 12px 36px oklch(22% .04 48 / .08);
  --font-ui: "Manrope", sans-serif; --font-display: "DM Serif Display", serif; --radius: 22px; --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--surface); color: var(--text); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.5rem); } h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); } h3 { line-height: 1.25; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid oklch(65% .16 70); outline-offset: 3px; }
::selection { background: oklch(89% .09 85); color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }

.site-header { position: sticky; top: 0; z-index: 40; background: oklch(97% .015 80 / .94); border-bottom: 1px dotted var(--border); backdrop-filter: blur(14px); }
.header-inner { max-width: var(--max); margin: auto; min-height: 78px; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--accent); line-height: 1; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; stroke: none; }
.brand > span { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand small { display: block; color: var(--text); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 5px; }
.location-button { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 6px; min-height: 48px; text-align: left; margin-right: auto; border-radius: 12px; }
.location-button:hover { background: var(--surface-muted); }
.location-button svg { color: var(--accent); }
.location-button span { display: flex; flex-direction: column; line-height: 1.25; }
.location-button small { color: var(--text-muted); font-size: 11px; }
.location-button strong { font-size: 13px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 700; }
.desktop-nav > a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.desktop-nav > a:hover { color: var(--accent); }
.cart-link svg { width: 20px; margin-right: 5px; }
.nav-badge { position: absolute; top: 1px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 20px; background: var(--accent); color: var(--surface-raised); font-size: 10px; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; box-sizing: border-box; width: 44px; height: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; box-sizing: border-box; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--surface-muted); color: var(--text); font-family: var(--font-display); font-size: 18px; line-height: 1; }
img.account-avatar { display: block; object-fit: contain; object-position: center; }
.account-menu > div { position: absolute; right: 0; top: 52px; width: 220px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.account-menu > div a, .account-menu > div button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; border-radius: 8px; }
.account-menu > div a:hover, .account-menu > div button:hover { background: var(--surface-muted); }

.button { border: 1px solid var(--accent); border-radius: 999px; min-height: 48px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--surface-raised); font-weight: 800; font-size: 14px; line-height: 1.3; transition: transform .18s ease-out, background .18s ease-out, color .18s ease-out; }
.button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-muted); color: var(--text); }
.button-light { background: var(--surface-raised); color: var(--accent); border-color: var(--surface-raised); }
.button-light:hover { background: var(--surface-muted); color: var(--accent); }
.button-danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.button-small { min-height: 40px; padding: 8px 18px; }
.button-wide { width: 100%; }
.text-danger { border: 0; background: none; color: var(--accent); min-height: 44px; padding: 8px 0; font-weight: 700; }

.eyebrow { font-family: var(--font-ui); font-size: 11px; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; }
.home-hero { max-width: var(--max); margin: auto; padding: 72px 24px 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; min-height: 590px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 em, .auth-intro h1 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: 520px; color: var(--text-muted); font-size: 18px; line-height: 1.65; margin-bottom: 28px; }
.location-cta svg { width: 20px; }
.seller-text-link { display: inline-flex; gap: 12px; margin-left: 18px; min-height: 48px; align-items: center; font-size: 14px; font-weight: 800; }
.seller-text-link:hover { color: var(--accent); }
.hero-map { position: relative; }
.radar-map { position: relative; aspect-ratio: 1.04; overflow: hidden; border-radius: 48% 48% 28% 44%; background-color: var(--surface-muted); background-image: radial-gradient(oklch(22% .04 48 / .08) 1px, transparent 1px); background-size: 15px 15px; border: 1px solid var(--border); transform: rotate(2deg); }
.road { position: absolute; display: block; background: var(--surface); border: 1px solid var(--border); transform-origin: center; }
.road-a { width: 130%; height: 28px; top: 42%; left: -15%; transform: rotate(-22deg); }
.road-b { width: 30px; height: 130%; top: -15%; left: 62%; transform: rotate(17deg); }
.road-c { width: 120%; height: 15px; top: 72%; left: -10%; transform: rotate(14deg); }
.radar-ring { position: absolute; border: 1px solid oklch(51% .19 29 / .25); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 36%; height: 36%; } .ring-two { width: 65%; height: 65%; }
.radar-sweep { position: absolute; left: 50%; top: 50%; width: 32%; height: 2px; background: var(--accent); transform-origin: left center; animation: radar 9s linear infinite; opacity: .45; }
.map-pin { position: absolute; width: 18px; height: 18px; background: var(--accent); border: 4px solid var(--surface-raised); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 12px oklch(22% .04 48 / .18); }
.pin-one { left: 28%; top: 31%; } .pin-two { right: 19%; top: 48%; } .pin-three { left: 37%; bottom: 17%; }
.you-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--surface); border: 7px solid oklch(99% .008 80 / .8); font-weight: 800; }
.live-note { position: absolute; bottom: 24px; left: -22px; display: flex; gap: 12px; align-items: center; padding: 15px 20px; border-radius: 16px; background: var(--surface-raised); box-shadow: var(--shadow); transform: rotate(-2deg); }
.live-note div { display: flex; flex-direction: column; line-height: 1.4; } .live-note strong { font-size: 13px; } .live-note small { color: var(--text-muted); font-size: 11px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px oklch(57% .13 150 / .12); animation: pulse 2.4s ease-in-out infinite; }
@keyframes radar { to { transform: rotate(360deg); } } @keyframes pulse { 50% { transform: scale(.8); opacity: .65; } }

.discovery-section { background: var(--surface-raised); border-block: 1px dotted var(--border); }
.search-panel { max-width: var(--max); margin: auto; padding: 24px; }
.search-box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 780px; background: var(--surface); }
.search-box svg { flex-shrink: 0; color: var(--text-muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; min-height: 44px; color: var(--text); }
.search-box button { border: 0; border-radius: 999px; background: var(--text); color: var(--surface); min-height: 44px; padding: 0 22px; font-weight: 800; }
.category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 2px; scrollbar-width: none; }
.category-chip { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 700; transition: background .15s, color .15s; }
.category-chip:hover, .category-chip.selected { background: var(--text); border-color: var(--text); color: var(--surface); }
.stores-section, .store-products, .dashboard-section { max-width: var(--max); margin: auto; padding: 64px 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; } .section-heading .eyebrow { margin-bottom: 8px; }
.location-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-block: 1px dotted var(--border); padding: 12px 0 20px; margin-bottom: 24px; color: var(--text-muted); font-size: 13px; }
.location-hint button { border: 0; background: transparent; color: var(--accent); font-weight: 800; min-height: 44px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.store-card { min-width: 0; border-radius: var(--radius); background: var(--surface-raised); overflow: hidden; box-shadow: 0 1px 0 var(--border); transition: transform .2s ease-out, box-shadow .2s ease-out; }
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.store-card-link { display: block; height: 100%; }
.store-visual { aspect-ratio: 1.55; position: relative; overflow: hidden; background: var(--surface-muted); }
.store-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease-out; } .store-card:hover .store-visual img { opacity: .9; }
.store-placeholder { display: grid; place-items: center; background: var(--surface-muted); background-image: radial-gradient(oklch(51% .19 29 / .13) 1px, transparent 1px); background-size: 12px 12px; }
.store-placeholder > .store-monogram { font-family: var(--font-display); font-size: 88px; color: var(--accent); line-height: 1; }
.store-placeholder > i { position: absolute; bottom: 20px; right: 20px; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; width: max-content; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: var(--surface-raised); color: var(--text-muted); font-size: 11px; font-weight: 800; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
.status-pill.online { color: oklch(38% .1 150); } .status-pill.online i { background: var(--success); box-shadow: 0 0 0 3px oklch(57% .13 150 / .15); }
.store-visual > .status-pill { position: absolute; left: 14px; top: 14px; box-shadow: 0 3px 12px oklch(22% .04 48 / .08); }
.store-card-body { padding: 20px; }
.store-card-body h3 { margin: 0 0 8px; font-size: 18px; }
.store-card-body p { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; min-height: 42px; }
.store-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px dotted var(--border); padding-top: 12px; color: var(--text-muted); font-size: 12px; }
.store-meta strong { color: var(--accent); }
.radius-filter select { min-height: 44px; padding: 6px 36px 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); color: var(--text); }
.empty-state { border: 1px dashed var(--border); border-radius: var(--radius); padding: 48px 24px; text-align: center; background: var(--surface-raised); }
.empty-state strong { font-family: var(--font-display); font-size: 26px; } .empty-state p { color: var(--text-muted); max-width: 520px; margin: 8px auto 22px; }
.seller-band { background: var(--accent); color: var(--surface-raised); padding: 72px max(24px, calc((100vw - var(--max))/2 + 24px)); display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.seller-band .eyebrow { color: var(--surface-raised); } .seller-band h2 { font-size: clamp(2.4rem,5vw,4.6rem); margin: 0; } .seller-band p { max-width: 520px; }

.site-footer { max-width: var(--max); margin: auto; padding: 56px 24px 42px; display: grid; grid-template-columns: 1fr auto; gap: 24px; border-top: 1px dotted var(--border); }
.footer-brand { color: var(--accent); font-weight: 800; font-size: 22px; } .site-footer p, .site-footer small { color: var(--text-muted); }
.site-footer nav { display: flex; gap: 24px; font-size: 13px; font-weight: 700; } .site-footer > small { grid-column: 1/-1; border-top: 1px dotted var(--border); padding-top: 20px; }
.mobile-nav { display: none; }
.toast-stack { position: fixed; top: 88px; right: 20px; z-index: 60; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 20px; align-items: center; background: var(--text); color: var(--surface); padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; }
.toast button { border: 0; background: none; color: inherit; font-size: 22px; min-width: 32px; min-height: 32px; }

.breadcrumb { max-width: var(--max); margin: auto; padding: 24px 24px 0; font-size: 13px; font-weight: 700; } .breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; } .breadcrumb a:hover { color: var(--accent); }
.store-hero { max-width: var(--max); margin: auto; padding: 24px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.store-cover { position: relative; aspect-ratio: 1.2; border-radius: 28px 70px 28px 28px; overflow: hidden; background: var(--surface-muted); } .store-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.store-hero-copy h1 { font-size: clamp(3rem,5vw,5.4rem); margin: 14px 0 18px; }
.store-hero-copy > p { color: var(--text-muted); max-width: 650px; }
.store-title-line { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.icon-action { width: 48px; height: 48px; border: 1px solid var(--border); background: var(--surface-raised); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.icon-action svg { width: 21px; } .icon-action .filled { fill: var(--accent); color: var(--accent); }
.store-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; border-block: 1px dotted var(--border); color: var(--text-muted); font-size: 12px; }
.store-facts strong { color: var(--text); }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.compact-search { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 4px; background: var(--surface-raised); }
.compact-search input { min-width: 0; width: 210px; min-height: 40px; border: 0; background: none; padding: 0 12px; outline: 0; }
.compact-search button { border: 0; background: none; font-weight: 800; padding: 0 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.product-card { min-width: 0; }
.product-image { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface-muted); }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; } .product-image:hover img { opacity: .88; }
.product-placeholder { display: grid; place-items: center; position: relative; background-color: oklch(93% .035 80); background-image: radial-gradient(oklch(22% .04 48 / .1) 1px, transparent 1px); background-size: 14px 14px; color: var(--text); }
.product-placeholder > span { position: absolute; top: 14px; left: 14px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.product-placeholder > strong { font-family: var(--font-display); font-size: 72px; font-weight: 400; color: var(--accent); }
.category-drink { background-color: oklch(91% .06 185); } .category-craft { background-color: oklch(91% .07 65); } .category-food { background-color: oklch(92% .07 90); }
.discount-tag { position: absolute; right: 12px; top: 12px; border-radius: 999px; padding: 4px 9px; background: var(--accent); color: var(--surface-raised); font-size: 10px; text-transform: uppercase; }
.product-card-info { padding: 12px 3px; } .product-card-info h3 { font-size: 15px; margin: 0 0 4px; } .product-card-info p { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price-row div { display: flex; flex-direction: column; line-height: 1.25; } .price-row del { color: var(--text-muted); font-size: 10px; } .price-row strong { font-size: 17px; }
.add-button { border: 0; background: var(--accent); color: var(--surface-raised); border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; transition: transform .15s, background .15s; } .add-button:hover { transform: rotate(90deg); background: var(--accent-hover); }
.pickup-info { max-width: calc(var(--max) - 48px); margin: 0 auto 64px; padding: 24px; border: 1px dotted var(--border); border-radius: 16px; } .pickup-info p { margin: 6px 0; color: var(--text-muted); } .pickup-info span { font-size: 12px; }

.product-detail-grid { max-width: 1080px; margin: auto; padding: 40px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-detail-image { position: relative; aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: var(--surface-muted); } .product-detail-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-detail-copy h1 { font-size: clamp(2.8rem,4vw,4.4rem); margin-bottom: 20px; } .product-description { color: var(--text-muted); }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 24px 0; } .detail-price strong { font-size: 30px; } .detail-price del, .detail-price span, .stock-note { color: var(--text-muted); }
.seller-mini { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px dotted var(--border); }
.seller-mini > span { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-muted); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; }
.seller-mini div { display: flex; flex-direction: column; } .seller-mini small { color: var(--text-muted); } .seller-mini b { margin-left: auto; }

.auth-layout, .form-page { max-width: 1080px; margin: auto; padding: 64px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.auth-intro, .form-page-intro { position: sticky; top: 130px; padding-top: 24px; } .auth-intro h1, .form-page-intro h1 { font-size: clamp(3rem,5vw,5rem); } .auth-intro > p:last-child, .form-page-intro > p:last-child { color: var(--text-muted); max-width: 440px; }
.form-panel { background: var(--surface-raised); padding: 32px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border); }
.form-panel h2 { margin-bottom: 8px; } .form-panel > p { color: var(--text-muted); }
.form-panel form, .checkout-page form { display: grid; gap: 16px; }
.form-panel label, .order-actions label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.field-input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); outline: 0; }
textarea.field-input { resize: vertical; }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(51% .19 29 / .1); }
label small { color: var(--text-muted); font-weight: 400; font-size: 11px; } label ul { color: var(--text-muted); font-size: 11px; margin: 0; padding-left: 18px; } label ul li { margin-bottom: 4px; }
.errorlist { color: var(--accent); margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; }
.form-error { background: oklch(94% .04 29); color: var(--accent); padding: 12px; border-radius: 10px; font-size: 13px; }
.form-switch { margin: 20px 0 0; text-align: center; font-size: 13px; } .form-switch a, .form-back { color: var(--accent); font-weight: 800; }
.demo-login { border-top: 1px dotted var(--border); margin-top: 20px; padding-top: 16px; font-size: 12px; color: var(--text-muted); } .demo-login summary { min-height: 40px; font-weight: 700; }
.form-back { display: inline-flex; margin-top: 20px; min-height: 44px; align-items: center; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px !important; } .checkbox-label input { width: 20px; height: 20px; } .checkbox-label small { flex-basis: 100%; }

.dashboard-page, .profile-page, .cart-page, .checkout-page, .orders-page, .order-detail-page, .messages-page, .notifications-page, .favorites-page { max-width: var(--max); margin: auto; padding: 48px 24px 80px; }
.dashboard-heading, .page-title { margin-bottom: 32px; } .dashboard-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; } .dashboard-heading h1, .page-title h1 { font-size: clamp(2.8rem,5vw,4.5rem); margin-bottom: 10px; } .page-title > p:last-child, .dashboard-heading > div > p:last-child { color: var(--text-muted); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.vendor-stats { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px dotted var(--border); margin-bottom: 32px; }
.vendor-stats > div { padding: 24px; display: flex; flex-direction: column; } .vendor-stats > div + div { border-left: 1px dotted var(--border); } .vendor-stats span { font-family: var(--font-display); font-size: 34px; line-height: 1.2; } .vendor-stats small { color: var(--text-muted); }
.location-console { padding: 32px; border-radius: 28px; background: var(--text); color: var(--surface); }
.location-console-copy h2 { margin: 18px 0 12px; } .location-console-copy > p { color: oklch(85% .018 75); font-size: 14px; }
.console-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; } .location-console .button-secondary { color: var(--surface); border-color: oklch(55% .02 55); } .location-console .button-danger { color: var(--surface); border-color: var(--surface); }
.location-feedback { font-size: 11px !important; margin: 18px 0 0; }
.dashboard-section { padding-inline: 0; }
.vendor-product-list { border-top: 1px dotted var(--border); }
.vendor-product-list article { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--border); }
.vendor-product-image { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); } .vendor-product-image img { height: 100%; object-fit: contain; } .vendor-product-image strong { font-size: 30px; }
.vendor-product-list h3 { font-size: 15px; margin: 0 0 4px; } .vendor-product-list p { margin: 0; color: var(--text-muted); font-size: 12px; }
.availability { font-size: 11px; color: var(--text-muted); } .availability.available { color: var(--success); }
.row-actions { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; } .row-actions button { border: 0; background: none; color: var(--accent); min-height: 44px; }
.order-table { border-top: 1px dotted var(--border); } .order-table > a { display: grid; grid-template-columns: 1.4fr .8fr 1fr .5fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px dotted var(--border); font-size: 13px; } .order-table > a:hover { color: var(--accent); } .order-table span { display: flex; flex-direction: column; } .order-table small { color: var(--text-muted); }

.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; } .profile-header h1 { font-size: 54px; margin: 0; } .profile-header p { margin: 0; color: var(--text-muted); }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--surface-raised); display: grid; place-items: center; font-family: var(--font-display); font-size: 46px; } .profile-avatar img { height: 100%; object-fit: contain; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .profile-links { border-top: 1px dotted var(--border); } .profile-links a, .profile-links button { display: flex; width: 100%; min-height: 60px; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px dotted var(--border); background: none; font-weight: 700; } .profile-links a:hover { color: var(--accent); }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.cart-items { border-top: 1px dotted var(--border); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px dotted var(--border); align-items: center; }
.cart-item-image { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--surface-muted); } .cart-item-image img { height: 100%; object-fit: contain; } .cart-item-image strong { font-size: 38px; }
.cart-item-copy h2 { font-family: var(--font-ui); font-size: 16px; font-weight: 800; margin: 0 0 4px; } .cart-item-copy p { color: var(--text-muted); font-size: 12px; }
.quantity-form { display: flex; align-items: end; gap: 8px; } .quantity-form label { font-size: 10px; color: var(--text-muted); } .quantity-form input { display: block; width: 70px; min-height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); padding: 6px; } .quantity-form button { min-height: 40px; border: 0; background: none; color: var(--accent); font-weight: 700; }
.order-summary { padding: 26px; border-radius: var(--radius); background: var(--surface-raised); box-shadow: 0 0 0 1px var(--border); position: sticky; top: 104px; }
.order-summary h2 { font-size: 28px; } .order-summary > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; margin: 10px 0; } .order-summary hr { border: 0; border-top: 1px dotted var(--border); margin: 20px 0; } .order-summary .summary-total { font-size: 18px; } .order-summary > p { font-size: 11px; color: var(--text-muted); margin: 18px 0; }
.cart-empty { margin-top: 32px; }
.checkout-page fieldset { border: 0; padding: 0; margin: 0; } .checkout-page legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; } .checkout-page fieldset ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .checkout-page fieldset label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; } .checkout-page fieldset input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkout-notice { background: var(--surface-muted); border-radius: 12px; padding: 16px; } .checkout-notice p { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }

.orders-section + .orders-section { margin-top: 48px; } .orders-section > h2 { font-size: 30px; }
.order-cards { display: grid; gap: 12px; } .order-card { display: flex; justify-content: space-between; gap: 20px; padding: 22px; border-radius: 16px; background: var(--surface-raised); border: 1px solid var(--border); transition: transform .18s, box-shadow .18s; } .order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-card h3 { margin: 4px 0; font-size: 17px; } .order-card small, .order-card p { color: var(--text-muted); font-size: 11px; margin: 0; } .order-card > div:last-child { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 10px; }
.order-status { display: inline-flex; width: max-content; padding: 4px 10px; border-radius: 999px; background: var(--surface-muted); color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.status-ready, .status-accepted, .status-completed { background: oklch(94% .04 150); color: oklch(38% .1 150); } .status-cancelled, .status-rejected { background: oklch(94% .04 29); color: var(--accent); } .status-pending { background: oklch(93% .07 80); color: oklch(40% .09 60); }
.empty-inline { padding: 24px 0; border-block: 1px dotted var(--border); } .empty-inline p { color: var(--text-muted); } .empty-inline a { color: var(--accent); font-weight: 800; }
.order-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 32px; } .order-detail-heading h1 { font-size: clamp(2.4rem,4vw,4rem); margin-bottom: 8px; } .order-detail-heading p { color: var(--text-muted); }
.order-detail-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.order-items-panel, .pickup-panel, .order-side > section { padding: 26px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--border); }
.order-items-panel h2, .pickup-panel h2, .order-side h2 { font-size: 26px; } .order-items-panel > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--border); } .order-items-panel > div span { display: flex; flex-direction: column; } .order-items-panel small { color: var(--text-muted); } .order-items-panel .order-total { border: 0; font-size: 18px; }
.order-items-panel blockquote { margin: 20px 0 0; padding: 14px; background: var(--surface-muted); border-radius: 10px; } .order-items-panel blockquote p { margin: 4px 0 0; font-size: 13px; }
.pickup-panel { margin-top: 20px; } .pickup-panel > small { color: var(--text-muted); }
.pickup-map { height: 260px; border-radius: 14px; margin-top: 18px; z-index: 1; }
.order-side { display: grid; gap: 20px; } .order-side p { color: var(--text-muted); font-size: 13px; } .order-actions form { display: grid; gap: 10px; margin-bottom: 12px; } .order-actions .button { margin-top: 4px; }
.code-input { font-size: 24px; letter-spacing: .2em; text-align: center; }
.pickup-code { text-align: center; } .pickup-code small { color: var(--text-muted); } .pickup-code > strong { display: block; font-size: 38px; letter-spacing: .16em; margin: 8px 0; }

.conversation-list { border-top: 1px dotted var(--border); }
.conversation-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px dotted var(--border); } .conversation-row:hover h2 { color: var(--accent); }
.conversation-avatar { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-muted); color: var(--accent); font-family: var(--font-display); font-size: 28px; flex: 0 0 auto; }
.conversation-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.conversation-title { display: flex; justify-content: space-between; gap: 12px; } .conversation-title h2 { font-family: var(--font-ui); font-size: 16px; font-weight: 800; margin: 0; } .conversation-title small, .conversation-row p { color: var(--text-muted); font-size: 12px; } .conversation-row p { margin: 4px 0 0; } .thread-order { font-size: 10px; color: var(--accent); }
.notification-list { display: grid; gap: 10px; } .notification-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 18px; background: var(--surface-raised); border-radius: 14px; } .notification-item.unread { box-shadow: inset 0 0 0 1px var(--accent); } .notification-item div { display: flex; flex-direction: column; } .notification-item small { color: var(--text-muted); }

.chat-page .site-footer { display: none; }
.chat-shell { max-width: 900px; height: calc(100dvh - 79px); margin: auto; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface-raised); border-inline: 1px solid var(--border); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px dotted var(--border); } .chat-header > a { min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: 22px; } .chat-header h1 { font-family: var(--font-ui); font-size: 15px; font-weight: 800; margin: 0; letter-spacing: 0; } .chat-header h1 + a, .chat-header small { color: var(--text-muted); font-size: 11px; }
.connection-status { margin-left: auto; font-size: 10px; color: var(--text-muted); }
.chat-messages { overflow-y: auto; padding: 24px; background-color: var(--surface); background-image: radial-gradient(oklch(22% .04 48 / .05) 1px, transparent 1px); background-size: 18px 18px; }
.chat-welcome { text-align: center; padding: 32px; color: var(--text-muted); } .chat-welcome strong { font-family: var(--font-display); font-size: 26px; color: var(--text); }
.message-row { display: flex; margin: 8px 0; } .message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(76%, 580px); padding: 11px 14px; border-radius: 7px 18px 18px 18px; background: var(--surface-raised); box-shadow: 0 1px 0 var(--border); animation: message-in .18s ease-out; }
.message-row.mine .message-bubble { background: var(--accent); color: var(--surface-raised); border-radius: 18px 7px 18px 18px; }
.message-bubble p { margin: 0; font-size: 14px; overflow-wrap: anywhere; } .message-bubble small { display: block; text-align: right; font-size: 9px; opacity: .72; margin-top: 4px; }
@keyframes message-in { from { opacity: 0; transform: translateY(5px) scale(.98); } }
.chat-composer { position: relative; display: grid; grid-template-columns: 1fr 48px; gap: 10px; padding: 14px 18px; background: var(--surface-raised); border-top: 1px solid var(--border); }
.chat-composer textarea { min-height: 48px; max-height: 140px; resize: vertical; border: 1px solid var(--border); border-radius: 18px; padding: 12px 16px; background: var(--surface); color: var(--text); outline: 0; }
.chat-composer > button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: var(--surface-raised); display: grid; place-items: center; } .chat-composer > button svg { width: 20px; }
.chat-composer > small { grid-column: 1/-1; color: var(--accent); }

@media (max-width: 1000px) {
  .desktop-nav { gap: 12px; } .desktop-nav > a:not(.cart-link):not(.button) { display: none; }
  .home-hero { gap: 32px; } .store-grid { grid-template-columns: repeat(2,1fr); } .product-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); font-size: 16px; }
  .site-header { position: relative; } .header-inner { min-height: 66px; padding: 10px 16px; gap: 10px; } .brand > span { font-size: 18px; } .brand-mark { width: 30px; } .brand small { font-size: 7px; }
  .location-button { margin-left: auto; margin-right: 0; padding: 4px; } .location-button svg { width: 22px; } .location-button small { display: none; } .location-button strong { font-size: 11px; max-width: 100px; }
  .desktop-nav { display: none; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5,1fr); left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--border); }
  .mobile-nav > a { min-height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; color: var(--text-muted); font-size: 9px; font-weight: 700; } .mobile-nav svg { width: 22px; height: 22px; } .mobile-nav > a.active { color: var(--accent); }
  .mobile-icon-wrap { position: relative; line-height: 1; } .mobile-nav .nav-badge { top: -7px; right: -12px; }
  .home-hero { padding: 36px 18px 30px; grid-template-columns: 1fr; gap: 28px; min-height: auto; } .hero-copy h1 { font-size: clamp(3.1rem,14vw,4.6rem); } .hero-description { font-size: 16px; } .location-cta { width: 100%; } .seller-text-link { margin: 8px 0 0; width: 100%; justify-content: center; }
  .hero-map { width: 92%; margin: auto; } .radar-map { border-radius: 36% 36% 22% 36%; } .live-note { left: -8px; bottom: 10px; padding: 12px 16px; }
  .search-panel { padding: 16px; } .search-box { padding-left: 12px; } .search-box button { padding: 0 14px; font-size: 12px; } .category-strip { padding-top: 12px; }
  .stores-section, .store-products, .dashboard-section { padding: 40px 16px; } .section-heading { align-items: start; gap: 12px; } .section-heading h2 { font-size: 30px; } .section-heading .button { padding-inline: 14px; font-size: 12px; }
  .location-hint { align-items: start; font-size: 12px; } .store-grid { grid-template-columns: 1fr; gap: 18px; } .store-card { display: grid; grid-template-columns: 40% 60%; border-radius: 16px; } .store-card-link { display: contents; } .store-visual { aspect-ratio: auto; height: 100%; min-height: 190px; } .store-placeholder > .store-monogram { font-size: 64px; } .store-placeholder > i { display: none; } .store-card-body { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; } .store-card-body p { min-height: 0; font-size: 12px; } .store-meta { flex-direction: column; align-items: start; gap: 3px; }
  .seller-band { padding: 48px 20px; grid-template-columns: 1fr; gap: 20px; } .seller-band h2 { font-size: 42px; }
  .site-footer { padding: 40px 20px; grid-template-columns: 1fr; } .site-footer nav { flex-direction: column; gap: 8px; }
  .toast-stack { top: 12px; right: 16px; }
  .breadcrumb { padding: 12px 16px 0; }
  .store-hero { padding: 16px; grid-template-columns: 1fr; gap: 24px; } .store-cover { aspect-ratio: 1.5; border-radius: 20px 50px 20px 20px; } .store-hero-copy h1 { font-size: 48px; } .store-actions .button { width: 100%; } .store-actions form { width: 100%; }
  .compact-search { width: 100%; } .compact-search input { width: 100%; } .store-products .section-heading { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; } .product-image { border-radius: 14px; } .product-placeholder > strong { font-size: 54px; } .product-card-info h3 { font-size: 14px; } .price-row strong { font-size: 15px; }
  .pickup-info { margin: 0 16px 40px; }
  .product-detail-grid { padding: 24px 16px 48px; grid-template-columns: 1fr; gap: 28px; } .product-detail-copy h1 { font-size: 44px; }
  .auth-layout, .form-page { padding: 32px 16px 48px; grid-template-columns: 1fr; gap: 28px; } .auth-intro, .form-page-intro { position: static; padding: 0; } .auth-intro h1, .form-page-intro h1 { font-size: 44px; } .form-panel { padding: 22px; }
  .dashboard-page, .profile-page, .cart-page, .checkout-page, .orders-page, .order-detail-page, .messages-page, .notifications-page, .favorites-page { padding: 32px 16px 48px; }
  .dashboard-heading { align-items: start; flex-direction: column; }
  .vendor-stats { grid-template-columns: repeat(2,1fr); }
  .vendor-stats > div { padding: 16px 10px; }
  .vendor-stats > div:nth-child(odd) { border-left: 0; }
  .vendor-stats > div:nth-child(n+3) { border-top: 1px dotted var(--border); }
  .vendor-stats span { font-size: 26px; } .vendor-stats small { font-size: 9px; }
  .location-console { padding: 22px; border-radius: 20px; } .console-actions .button { width: 100%; }
  .vendor-product-list article { grid-template-columns: 56px 1fr auto; gap: 12px; } .vendor-product-image { width: 56px; height: 56px; } .vendor-product-list article > .availability { grid-column: 2; } .row-actions { grid-column: 3; grid-row: 1/3; flex-direction: column; gap: 0; }
  .order-table > a { grid-template-columns: 1fr auto; } .order-table > a > span:nth-child(2) { display: none; } .order-table > a > strong { text-align: right; }
  .profile-header { align-items: start; } .profile-avatar { width: 64px; height: 64px; font-size: 34px; } .profile-header h1 { font-size: 36px; } .profile-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout, .checkout-layout, .order-detail-layout { grid-template-columns: 1fr; gap: 24px; } .order-summary { position: static; } .cart-item { grid-template-columns: 72px 1fr; gap: 14px; } .cart-item-image { width: 72px; height: 72px; } .cart-item > strong { grid-column: 2; } .quantity-form { align-items: center; }
  .order-card { padding: 16px; } .order-card h3 { font-size: 15px; } .order-detail-heading { align-items: start; flex-direction: column; }
  .conversation-row { grid-template-columns: 48px 1fr auto; gap: 12px; } .conversation-avatar { width: 46px; height: 46px; }
  .chat-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } .chat-shell { height: calc(100dvh - 66px - 70px - env(safe-area-inset-bottom)); border: 0; } .chat-header { padding: 10px 12px; } .chat-header .conversation-avatar { display: none; } .connection-status { font-size: 9px; } .chat-messages { padding: 16px 12px; } .message-bubble { max-width: 86%; } .chat-composer { padding: 10px 12px; }
}
@media (max-width: 380px) { .location-button strong { display: none; } .product-grid { gap: 14px 9px; } .product-card-info p { min-height: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Functional discovery, persistent location and contextual product chat */
.header-search { flex: 1 1 560px; min-width: 120px; max-width: 620px; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.header-search:focus-within { outline: 3px solid oklch(65% .16 70); outline-offset: 2px; }
.header-search input { flex: 1; min-width: 0; min-height: 36px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.header-search button { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 800; }
.header-location { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; }
.header-location svg { width: 22px; height: 22px; }
.header-location.busy { opacity: .6; pointer-events: none; }
.home-functional { padding-bottom: 48px; }
.home-map-section { max-width: var(--max); margin: 0 auto; padding: 20px 24px 0; }
.home-map-section .category-strip { padding-top: 0; margin-bottom: 16px; }
.home-map-wrap { position: relative; height: clamp(220px, 32vw, 340px); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-muted); }
.home-map { position: absolute; inset: 0; z-index: 1; }
.map-scan { position: absolute; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.map-scan::after { content: ''; position: absolute; width: 100px; height: 100px; left: calc(50% - 50px); top: calc(50% - 50px); border: 1px solid oklch(51% .19 29 / .35); border-radius: 50%; animation: mapScan 3s ease-out infinite; }
@keyframes mapScan { from { transform: scale(.3); opacity: .7; } to { transform: scale(5); opacity: 0; } }
.map-caption { position: absolute; z-index: 800; left: 12px; bottom: 12px; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--surface-raised); box-shadow: 0 2px 14px oklch(22% .04 48 / .12); font-size: 12px; font-weight: 700; }
.map-caption div { display: grid; line-height: 1.35; }
.map-caption small { color: var(--text-muted); font-weight: 500; }
.home-map .leaflet-control-attribution { font-size: 9px; }
.map-user-marker, .map-store-marker { background: transparent; border: 0; }
.map-user-marker span { display: block; width: 22px; height: 22px; border: 5px solid var(--surface-raised); border-radius: 50%; background: oklch(55% .2 255); box-shadow: 0 2px 10px oklch(22% .04 48 / .28); }
.map-store-marker span { display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--surface-raised); border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 2px 10px oklch(22% .04 48 / .25); color: var(--surface-raised); font: 800 13px var(--font-ui); }
.map-store-marker span b { transform: rotate(45deg); }
.map-store-marker.offline span { background: var(--text-muted); }
.home-functional .stores-section { padding-top: 36px; padding-bottom: 32px; }
.home-functional .section-heading { margin-bottom: 16px; }
.home-functional .section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.home-functional .location-hint { margin: 0; padding: 12px 0; border-bottom: 0; }
.home-functional .store-grid { margin-top: 8px; }
.store-card { position: relative; }
.store-image-link { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.store-placeholder .store-monogram { font-family: var(--font-display); font-size: 88px; color: var(--accent); line-height: 1; }
.store-placeholder .store-image-link > i { position: absolute; bottom: 20px; right: 20px; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.store-card-body { display: block; }
.card-favorite { position: absolute; z-index: 5; top: 12px; right: 12px; }
.card-favorite { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-raised); color: var(--text-muted); box-shadow: 0 2px 12px oklch(22% .04 48 / .12); cursor: pointer; }
.card-favorite svg { width: 21px; height: 21px; }
.card-favorite .filled { fill: var(--accent); color: var(--accent); }
.card-favorite[aria-pressed="true"] { color: var(--accent); }
.store-card-body h3 a:hover { color: var(--accent); }
.product-card-actions { display: flex; flex-direction: row; align-items: center; gap: 7px; }
.message-product-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-raised); color: var(--accent); }
.message-product-button:hover { background: var(--surface-muted); }
.message-product-button svg { width: 19px; height: 19px; }
.product-question-form { margin-top: 10px; }
.product-gallery-frame { position: relative; aspect-ratio: 1.1; overflow: hidden; border-radius: var(--radius); background: var(--surface-muted); }
.product-gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.product-thumbnails button { position: relative; padding: 0; aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--surface-muted); cursor: pointer; }
.product-thumbnails button[aria-pressed="true"] { border-color: var(--accent); }
.product-thumbnails img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.form-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 24px; }
.form-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--surface-muted); }
.chat-shell { grid-template-rows: auto auto 1fr auto; }
.chat-product-context { display: flex; align-items: center; gap: 14px; margin: 12px 20px 0; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised); }
.chat-product-context img { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; border-radius: 10px; background: var(--surface-muted); }
.chat-product-context div { display: grid; gap: 3px; min-width: 0; }
.chat-product-context > span { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--surface-muted); color: var(--accent); font-family: var(--font-display); font-size: 26px; }
.chat-product-context > i { margin-left: auto; font-style: normal; }
.chat-product-context small { color: var(--text-muted); }
.chat-product-context b { color: var(--accent); }
.help-text { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .site-header { position: sticky; }
  .header-inner { min-height: 64px; gap: 8px; padding: 8px 14px; }
  .header-search { flex-basis: auto; max-width: none; padding-left: 12px; }
  .header-search input { font-size: 13px; }
  .header-search button { padding: 0 12px; }
  .header-location { flex-basis: 44px; width: 44px; height: 44px; }
  .home-map-section { padding: 12px 16px 0; }
  .home-map-wrap { height: 230px; border-radius: 18px; }
  .home-map-section .category-strip { margin-bottom: 12px; }
  .home-functional .stores-section { padding: 24px 16px; }
  .home-functional .section-heading { display: block; }
  .home-functional .location-hint { font-size: 12px; }
  .store-card { display: block; border-radius: 18px; }
  .store-card-link { height: auto; }
  .store-visual { width: 100%; height: auto; aspect-ratio: 1.45; }
  .store-card-body { padding: 16px; }
  .store-card-body p { min-height: 0; margin-bottom: 14px; }
  .store-meta { gap: 10px; }
  .product-thumbnails, .form-gallery { gap: 7px; }
  .chat-product-context { align-items: flex-start; }
  .toast-stack { top: 76px; }
}

@media (max-width: 380px) {
  .header-search button { width: 38px; overflow: hidden; padding: 0; color: transparent; position: relative; }
  .header-search button::after { content: '↵'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--surface); font-size: 18px; }
}

/* Exclusão voluntária e irreversível da própria conta */
.profile-links .profile-delete-link { color: var(--accent); }
.account-delete-page { max-width: 680px; margin: auto; padding: 64px 24px 80px; }
.account-delete-page h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 4rem); }
.account-delete-warning { font-size: 18px; font-weight: 700; }
.account-delete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.account-delete-actions form { margin: 0; }
.account-delete-actions .button-danger { background: var(--accent); color: var(--surface-raised); }
@media (max-width: 760px) {
  .account-delete-page { padding: 32px 16px 48px; }
  .account-delete-actions { align-items: stretch; flex-direction: column; }
  .account-delete-actions .button, .account-delete-actions form { width: 100%; }
}

/* Public opt-in points and custom map markers */
.profile-map-settings, .marker-customization { min-width: 0; margin: 12px 0 0; padding: 24px 0 0; border: 0; border-top: 1px dotted var(--border); }
.profile-map-settings > legend, .marker-customization > legend { padding: 0; font: 700 20px var(--font-ui); }
.profile-map-settings > p { margin: 8px 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.profile-location-modes { display: grid; gap: 8px; margin: 16px 0; }
.profile-location-mode { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); cursor: pointer; }
.profile-location-mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.profile-location-mode input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.profile-location-mode span { display: flex; flex-direction: column; gap: 4px; }
.profile-location-mode strong { font-size: 14px; } .profile-location-mode small { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.profile-map-settings .profile-location-help { margin: 12px 0; }
#profile-use-gps[hidden] { display: none; }
.profile-map { height: 260px; margin: 16px 0 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-muted); z-index: 1; }
.public-coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.map-custom-marker { background: transparent; border: 0; overflow: visible; }
.map-custom-marker:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.map-custom-marker .marker-pin { position: relative; display: block; box-sizing: border-box; width: 38px; height: 38px; overflow: hidden; border: 3px solid var(--surface-raised); border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 2px 10px oklch(22% .04 48 / .25); color: var(--surface-raised); }
.map-custom-marker .marker-pin svg { position: absolute; left: 6px; top: 6px; display: block; width: 20px; height: 20px; transform: rotate(45deg); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-custom-marker .marker-pin img { position: absolute; left: 0; top: 0; display: block; width: 32px; height: 32px; min-width: 0; max-width: 32px; max-height: 32px; transform: rotate(45deg); border-radius: 50%; background: var(--surface-raised); object-fit: contain; }
.map-custom-marker .marker-pin-custom { width: 38px; height: 38px; overflow: hidden; border-color: #000000; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); opacity: 1; background: #ffffff; }
.map-custom-marker .marker-pin-custom img { left: 50%; top: 50%; width: 28px; height: 28px; min-width: 28px; max-width: 28px; min-height: 28px; max-height: 28px; transform: translate(-50%, -50%) rotate(45deg); transform-origin: center; border-radius: 50%; background: #ffffff; object-fit: contain; object-position: center; }
.map-custom-marker.is-offline .marker-pin:not(.marker-pin-custom) { filter: grayscale(1); opacity: .65; }
.marker-customization > p { margin: 8px 0 16px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.marker-field { min-width: 0; }
.marker-field[hidden] { display: none; }
.marker-field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.marker-style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-panel .marker-style-option { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); cursor: pointer; }
.form-panel .marker-style-option:has(input:checked) { border-color: var(--accent); background: var(--surface-raised); box-shadow: 0 0 0 1px var(--accent); }
.marker-style-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.marker-style-option > span { display: grid; gap: 4px; min-width: 0; }
.marker-style-option strong { font-size: 13px; }
.marker-style-option small { color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.marker-color-field input[type='color'] { width: 100%; height: 44px; padding: 4px; cursor: pointer; }
.marker-preview-note { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.upload-field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.clearable-upload { display: grid; gap: 10px; min-width: 0; }
.current-upload { display: grid; gap: 7px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-muted); }
.current-upload-title { font-size: 13px; }
.current-upload-name { color: var(--text-muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.form-panel .remove-upload { display: flex; align-items: center; gap: 8px; width: fit-content; font-size: 13px; cursor: pointer; }
.remove-upload input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.upload-input-label { color: var(--text-muted); font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
  .profile-map { height: 230px; }
  .public-coordinate-fields, .marker-style-options { grid-template-columns: 1fr; }
}

/* Chat em tempo real: contraste estável, sem misturar as cores dos dois participantes. */
.chat-messages {
  background-color: #f4f1ec;
  background-image: none;
  overscroll-behavior: contain;
}
.message-row { margin: 10px 0; }
.message-bubble {
  background: #ffffff;
  color: #292524;
  border: 1px solid #ddd6ce;
  box-shadow: 0 2px 5px rgb(41 37 36 / 6%);
}
.message-row.mine .message-bubble {
  background: #34302d;
  color: #ffffff;
  border-color: #34302d;
}
.message-bubble p { line-height: 1.55; white-space: pre-wrap; }
.message-bubble small { color: #625c57; opacity: 1; font-size: 10px; }
.message-row.mine .message-bubble small { color: #e7e5e4; opacity: 1; }
.connection-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ebe7e1;
  color: #57534e;
  font-size: 10px;
  white-space: nowrap;
}
.connection-status[data-state='online'] { background: #e3f2e8; color: #225c36; }
.connection-status[data-state='offline'] { background: #fff0dc; color: #7a4215; }
.chat-composer { background: #ffffff; align-items: end; }
.chat-composer textarea {
  height: 48px;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  background: #ffffff;
  color: #292524;
  border-color: #cfc8c0;
  line-height: 1.45;
}
.chat-composer textarea::placeholder { color: #78716c; opacity: 1; }
.chat-composer textarea:focus { border-color: #7c2d12; box-shadow: 0 0 0 3px rgb(124 45 18 / 10%); }
.chat-composer > button { align-self: end; }
.chat-composer > button:disabled { cursor: not-allowed; opacity: .55; }
.chat-composer > small { min-height: 18px; margin: 0; font-size: 12px; }
.chat-security-note { display: grid; gap: 3px; padding: 10px 18px; border-bottom: 1px solid #ddd6ce; background: #ffffff; color: #44403c; font-size: 11px; line-height: 1.45; }
.chat-security-note strong { color: #225c36; font-size: 12px; }
.chat-security-note small { color: #625c57; }
.chat-security-note[data-state='error'] strong, .chat-security-note[data-state='error'] span { color: #8b1e1e; }
.message-bubble.is-locked { border-style: dashed; }
.message-bubble.is-locked p { color: #625c57; font-style: italic; }
.message-row.mine .message-bubble.is-locked p { color: #e7e5e4; }
.chat-error { padding: 16px; color: #8b1e1e; }
@media (max-width: 600px) {
  .connection-status { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .message-bubble { max-width: 88%; }
}

/* Mídia direta: controles pressionáveis, contraste e reprodução local. */
.chat-composer { grid-template-columns: auto minmax(0, 1fr) 48px; }
.chat-media-actions { display: flex; align-items: end; gap: 8px; }
.chat-media-button {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid #cfc8c0;
  border-radius: 50%;
  background: #ffffff;
  color: #57534e;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out;
}
.chat-media-button svg { width: 21px; height: 21px; pointer-events: none; }
.chat-media-button:hover:not(:disabled) { background: #f4f1ec; border-color: #78716c; color: #292524; }
.chat-media-button:active:not(:disabled) { background: #e7e5e4; }
.chat-media-button:focus-visible { outline: 3px solid rgb(124 45 18 / 35%); outline-offset: 2px; }
.chat-media-button:disabled { cursor: not-allowed; opacity: .45; }
#chat-audio { touch-action: none; user-select: none; -webkit-user-select: none; }
#chat-audio[data-recording='true'] { background: #8b1e1e; border-color: #8b1e1e; color: #ffffff; }
#recording-time { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 48px; padding: 3px 6px; border-radius: 6px; background: #292524; color: #ffffff; font-size: 11px; line-height: 1.3; pointer-events: none; }
#recording-time:empty { display: none; }
.chat-composer > #media-feedback { grid-column: 1 / -1; min-height: 0; color: #7a4215; }
.chat-composer > #media-feedback:empty { display: none; }
.message-bubble.media-bubble { padding: 6px; overflow: hidden; }
.media-bubble img { display: block; width: auto; max-width: min(320px, 68vw); height: auto; max-height: 360px; object-fit: contain; border-radius: 12px; background: #e7e5e4; }
.media-bubble audio { display: block; width: min(290px, 66vw); max-width: 100%; height: 44px; }
.media-bubble .media-duration { display: block; padding: 3px 6px 0; font-size: 11px; color: #625c57; }
.message-row.mine .media-bubble .media-duration { color: #e7e5e4; }
.media-bubble small { padding: 2px 5px 3px; margin-top: 2px; }
.media-delivery-status[data-state='failed'] { color: #8b1e1e; font-weight: 700; }
.message-row.mine .media-delivery-status[data-state='failed'] { color: #fecaca; }
@media (max-width: 600px) {
  .chat-composer { grid-template-columns: auto minmax(0, 1fr) 44px; gap: 6px; }
  .chat-media-actions { gap: 5px; }
  .chat-media-button, .chat-composer > button { width: 44px; height: 44px; flex-basis: 44px; }
  .chat-composer textarea { min-height: 44px; height: 44px; padding: 11px 12px; }
  .media-bubble img { max-width: min(280px, 65vw); max-height: 320px; }
}

/* Revisão local de mídia e conversa compacta. O IndexedDB guarda somente ciphertext. */
.chat-shell { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.chat-header { padding: 10px 16px; }
.chat-messages { min-height: 0; padding: 14px 18px; }
.message-row { margin: 6px 0; }
.chat-composer { gap: 8px; padding: 10px 14px; }
.chat-composer > small { min-height: 0; }
.chat-composer > small:empty { display: none; }
details.chat-security-note { display: block; padding: 0; font-size: 11px; }
.chat-security-note > summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
  list-style-position: inside;
}
.chat-security-note > summary strong { flex: 0 0 auto; font-size: 11px; }
.chat-security-note > summary span {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: #57534e;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-security-note[open] > summary { border-bottom: 1px dotted #ddd6ce; }
.chat-security-details { display: grid; gap: 5px; padding: 8px 16px 10px; }
.chat-security-details small { display: block; line-height: 1.45; }
.chat-security-note[data-state='ready'] > summary strong { color: #225c36; }
.chat-product-context { gap: 10px; margin: 8px 14px 0; padding: 8px 10px; border-radius: 12px; }
.chat-product-context img { width: 48px; height: 48px; }
.chat-product-context > span { width: 44px; height: 44px; }
.media-photo-button {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.media-photo-button:focus-visible { outline: 3px solid #b45309; outline-offset: 2px; }
.media-photo-button img { margin: 0; }
.media-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(12 10 9 / 96%);
  color: #ffffff;
  overflow: hidden;
}
.media-viewer[open] { display: flex; align-items: center; justify-content: center; }
.media-viewer::backdrop { background: rgb(12 10 9 / 96%); }
.media-viewer > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 56px 12px 16px;
  object-fit: contain;
  pointer-events: none;
}
.media-viewer-close {
  position: absolute;
  z-index: 1;
  top: calc(8px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: rgb(41 37 36 / 85%);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.media-viewer-close:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
@media (max-width: 600px) {
  .chat-header { gap: 8px; padding: 7px 10px; }
  .chat-header > a { min-width: 40px; min-height: 44px; }
  .chat-header h1 { font-size: 14px; }
  .chat-messages { padding: 10px; }
  .message-row { margin: 5px 0; }
  .message-bubble p { line-height: 1.45; }
  .chat-composer { gap: 6px; padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); }
  .chat-media-actions { gap: 4px; }
  .chat-security-note > summary { min-height: 31px; gap: 5px; padding: 5px 10px; font-size: 10px; }
  .chat-security-note > summary strong { font-size: 10px; }
  .chat-security-details { padding: 7px 10px 9px; }
  .chat-product-context { margin: 6px 10px 0; }
  .media-bubble img { max-width: min(270px, 68vw); max-height: 300px; }
  .media-bubble small { font-size: 9px; }
  .media-viewer > img { padding: 58px 4px 10px; }
}
@media (max-width: 370px) {
  .chat-security-note > summary strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-security-note > summary span { max-width: 90px; }
}

/* A conversa usa toda a altura disponível; a navegação inferior permanece nas outras telas. */
.chat-page .mobile-nav { display: none; }
@media (max-width: 760px) {
  body.chat-page { padding-bottom: 0; }
  .chat-page .chat-shell { height: calc(100dvh - 66px); }
  .chat-page .chat-composer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .chat-page .chat-composer { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* Viewport inicial do chat: cabeçalho e compositor fixos no layout, sem rolagem externa. */
@media (max-width: 760px) {
  body.chat-page {
    display: flex;
    flex-direction: column;
    height: var(--chat-viewport-height, 100dvh);
    min-height: 0;
    overflow: hidden;
  }
  .chat-page .site-header { position: relative; flex: 0 0 auto; }
  .chat-page > main { display: flex; flex: 1 1 auto; min-height: 0; }
  .chat-page .chat-shell { flex: 1 1 auto; height: auto; min-height: 0; margin: 0 auto; }
}

/* Edição da vitrine: hierarquia clara, foto visível e leitura confortável. */
.store-form-page {
  max-width: 1120px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.store-form-intro h1 { font-size: clamp(3rem, 5vw, 4.6rem); }
.store-form-intro > p:last-child { font-size: 15px; line-height: 1.7; }
.store-form-panel { padding: 34px; }
.store-form-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.store-form-heading .eyebrow { margin-bottom: 8px; }
.store-form-heading h2 { margin: 0 0 10px; font-size: 34px; }
.store-form-heading > p:last-child { margin: 0; color: var(--text-muted); font-size: 13px; }
.store-form-panel form { gap: 0; }
.store-form-section {
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.store-form-section:first-of-type { padding-top: 0; border-top: 0; }
.store-form-section > legend {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
  padding: 0;
}
.store-form-step {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.store-form-legend-copy { display: grid; gap: 4px; }
.store-form-legend-copy strong { font-size: 17px; line-height: 1.35; }
.store-form-legend-copy small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.store-form-field { min-width: 0; }
.store-form-field + .store-form-field { margin-top: 20px; }
.store-form-panel .store-form-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.store-form-panel .store-form-field > .field-input { min-height: 52px; }
.store-form-panel textarea.field-input { line-height: 1.65; resize: vertical; }
.store-field-help {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.store-form-field.has-error > .field-input { border-color: var(--accent); }
.store-form-field .errorlist { margin-top: 8px; line-height: 1.5; }
.store-photo-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.store-photo-layout.without-preview { grid-template-columns: minmax(0, 1fr); }
.store-photo-preview { width: 140px; margin: 0; }
.store-photo-preview img {
  width: 140px;
  height: 140px;
  border: 4px solid var(--surface-raised);
  border-radius: 18px;
  background: var(--surface-muted);
  box-shadow: 0 0 0 1px var(--border);
  object-fit: contain;
}
.store-photo-preview figcaption {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}
.store-photo-field { overflow-wrap: anywhere; }
.store-form-panel .current-upload {
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}
.current-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.store-form-panel .current-upload-title { font-size: 13px; font-weight: 800; }
.store-form-panel .current-upload-name {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.store-form-panel .remove-upload {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s ease-out, background .15s ease-out;
}
.store-form-panel .remove-upload:hover { border-color: var(--accent); }
.store-form-panel .remove-upload:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface-raised);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.store-form-panel .store-photo-field .remove-upload input { margin: 0; }
.store-form-panel .upload-input-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.store-photo-field input[type='file'].field-input {
  min-height: 54px;
  padding: 7px;
  border-style: dashed;
  background: var(--surface-raised);
  font-size: 12px;
  line-height: 1.4;
  transition: border-color .15s ease-out, background .15s ease-out;
}
.store-photo-field input[type='file'].field-input:hover { border-color: var(--accent); }
.store-photo-field input[type='file']::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface-raised);
  font: 700 12px var(--font-ui);
  cursor: pointer;
}
.store-photo-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 8px 4px 8px 0;
  accent-color: var(--accent);
  vertical-align: middle;
}
.store-form-actions {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.store-form-actions .button { min-height: 54px; font-size: 15px; }
.store-form-actions .form-back { margin: 6px auto 0; }

@media (max-width: 900px) {
  .store-form-page { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px; }
  .store-form-panel { padding: 26px; }
  .store-photo-layout { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .store-photo-preview, .store-photo-preview img { width: 112px; }
  .store-photo-preview img { height: 112px; }
}
@media (max-width: 760px) {
  .store-form-page { grid-template-columns: 1fr; gap: 24px; padding: 28px 16px 44px; }
  .store-form-intro h1 { margin-bottom: 16px; font-size: 42px; }
  .store-form-intro > p:last-child { margin-bottom: 0; }
  .store-form-panel { padding: 22px; }
  .store-form-heading { margin-bottom: 24px; }
  .store-form-heading h2 { font-size: 30px; }
  .store-form-section { padding: 24px 0; }
  .store-photo-layout { grid-template-columns: 1fr; }
  .store-photo-preview {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 4px;
  }
  .store-photo-preview img { width: 104px; height: 104px; }
  .store-photo-preview figcaption { margin-top: 0; font-size: 12px; text-align: left; }
}
@media (max-width: 420px) {
  .store-form-panel { padding: 20px 16px; }
  .store-form-intro h1 { font-size: 38px; }
  .store-photo-field input[type='file']::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 8px;
  }
}

/* Aparência opcional da vitrine pública e controles do vendedor. */
.store-form-panel .store-appearance-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
  cursor: pointer;
}
.store-appearance-toggle input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.store-appearance-toggle > span { display: grid; gap: 4px; }
.store-appearance-toggle strong { font-size: 13px; }
.store-appearance-toggle small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.store-color-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.store-color-field input[type='color'] {
  height: 52px;
  padding: 5px;
  cursor: pointer;
}
.store-wallpaper-field { margin-top: 24px; }
.store-typography-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}
.store-typography-fields .store-form-field + .store-form-field { margin-top: 0; }
.store-form-panel .store-text-bold {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
  cursor: pointer;
}
.store-text-bold input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.store-text-bold > span { display: grid; gap: 4px; }
.store-text-bold strong { font-size: 13px; }
.store-text-bold small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.store-appearance-list-note { margin: 20px 0 0; }

/* QR Code individual: prévia nítida, endereço visível e download direto. */
.store-qrcode-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.store-qrcode-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.store-qrcode-preview {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px oklch(22% .04 48 / .06);
}
.store-qrcode-preview img { width: 100%; height: auto; aspect-ratio: 1; }
.store-qrcode-copy { min-width: 0; }
.store-qrcode-copy > p { margin-bottom: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.store-qrcode-address {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
}
.store-qrcode-address label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.store-qrcode-address input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 13px;
  cursor: text;
}
.store-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.store-share-actions .button { min-height: 44px; padding: 9px 16px; }
.store-share-actions [hidden] { display: none; }
.location-settings-page > .form-panel { max-width: 860px; margin: 0 auto; }
.location-settings-page h1 { margin-bottom: 16px; }
.location-settings-page #store-location-settings-form { margin-top: 28px; }
.location-settings-page .form-back { display: inline-flex; margin-top: 24px; min-height: 44px; align-items: center; }
@media (max-width: 420px) {
  .store-share-actions, .store-share-actions .button { width: 100%; }
}
.store-qrcode-download { width: fit-content; margin-top: 18px; }
.store-qrcode-copy > .store-field-help { margin-top: 12px; }
@media (max-width: 900px) {
  .store-qrcode-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .store-qrcode-layout { grid-template-columns: 1fr; }
  .store-qrcode-preview { width: 190px; }
}
@media (max-width: 420px) {
  .store-qrcode-download { width: 100%; }
}

.store-text-small { --store-font-scale: .92; }
.store-text-medium { --store-font-scale: 1; }
.store-text-large { --store-font-scale: 1.16; }
.store-page-themed {
  --text: var(--store-text);
  --text-muted: var(--store-text);
  position: relative;
  isolation: isolate;
  background: var(--store-surface);
  color: var(--store-text);
  font-weight: var(--store-text-weight);
}
.store-page-themed > :not(.store-wallpaper) { position: relative; z-index: 1; }
.store-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.store-wallpaper img { width: 100%; height: 100%; object-fit: cover; }
.store-page-themed :is(h1, h2, h3) { font-weight: var(--store-text-weight); }
.store-page-themed .breadcrumb { font-size: calc(13px * var(--store-font-scale)); }
.store-page-themed .store-hero-copy h1 {
  font-size: clamp(
    calc(3rem * var(--store-font-scale)),
    calc(5vw * var(--store-font-scale)),
    calc(5.4rem * var(--store-font-scale))
  );
}
.store-page-themed .store-hero-copy > p { font-size: calc(16px * var(--store-font-scale)); }
.store-page-themed .store-facts { font-size: calc(12px * var(--store-font-scale)); }
.store-page-themed .store-products .section-heading h2 {
  font-size: clamp(
    calc(1.85rem * var(--store-font-scale)),
    calc(3vw * var(--store-font-scale)),
    calc(2.65rem * var(--store-font-scale))
  );
}
.store-page-themed .product-card-info h3 { font-size: calc(15px * var(--store-font-scale)); }
.store-page-themed .product-card-info p { font-size: calc(11px * var(--store-font-scale)); }
.store-page-themed .price-row strong { font-size: calc(17px * var(--store-font-scale)); }
.store-page-themed .pickup-info { font-size: calc(16px * var(--store-font-scale)); }
.store-page-themed .pickup-info span { font-size: calc(12px * var(--store-font-scale)); }
.store-page-themed .product-image { border: 2px solid var(--store-product-border); }
.store-card-themed {
  --text: var(--store-text);
  --text-muted: var(--store-text);
  isolation: isolate;
  background: var(--store-surface);
  color: var(--store-text);
  font-weight: var(--store-text-weight);
}
.store-card-themed > :not(.store-card-wallpaper) { position: relative; z-index: 1; }
.store-card-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.store-card-wallpaper img { width: 100%; height: 100%; object-fit: cover; }
.store-card-themed .store-visual { background: transparent; }
.store-card-themed .store-card-body h3 {
  font-size: calc(18px * var(--store-font-scale));
  font-weight: var(--store-text-weight);
}
.store-card-themed .store-card-body p { font-size: calc(13px * var(--store-font-scale)); }
.store-card-themed .store-meta { font-size: calc(12px * var(--store-font-scale)); }
.store-card-themed .store-meta strong,
.store-card-themed .store-monogram { color: var(--store-text); }
@media (max-width: 600px) {
  .store-color-fields, .store-typography-fields { grid-template-columns: 1fr; }
}


/* Cadastro e edição de produtos: leitura em etapas e uploads sem ambiguidade. */
.product-form-page {
  max-width: 1120px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.product-form-intro h1 { font-size: clamp(3rem, 5vw, 4.6rem); }
.product-form-intro > p:last-child { font-size: 15px; line-height: 1.7; }
.product-form-panel { padding: 34px; }
.product-form-heading {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.product-form-heading .eyebrow { margin-bottom: 8px; }
.product-form-heading h2 { margin: 0 0 10px; font-size: 34px; }
.product-form-heading > p:last-child { margin: 0; color: var(--text-muted); font-size: 13px; }
.product-form-panel form { gap: 0; }
.product-form-section {
  min-width: 0;
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.product-form-section:first-of-type { padding-top: 0; border-top: 0; }
.product-form-section > legend {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-bottom: 22px;
  padding: 0;
}
.product-form-section > legend strong { font-size: 18px; line-height: 1.35; }
.product-form-section > legend small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.product-form-field { min-width: 0; }
.product-form-field + .product-form-field { margin-top: 20px; }
.product-form-panel .product-form-field > label,
.product-photo-field-heading label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.product-form-panel .product-form-field > .field-input { min-height: 52px; }
.product-form-panel textarea.field-input { line-height: 1.65; resize: vertical; }
.product-field-help {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.product-form-field.has-error > .field-input,
.product-photo-field.has-error input[type='file'] { border-color: var(--accent); }
.product-form-field .errorlist,
.product-photo-field .errorlist,
.product-availability .errorlist { margin-top: 8px; line-height: 1.5; }
.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
}
.product-form-grid .product-form-field + .product-form-field { margin-top: 0; }
.product-availability {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}
.product-form-panel .product-availability-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}
.product-availability-label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.product-availability-label > span { display: grid; gap: 4px; }
.product-availability-label strong { font-size: 14px; line-height: 1.45; }
.product-availability-label small { font-size: 12px; line-height: 1.5; }
.product-photo-field {
  min-width: 0;
  padding: 22px 0;
  border-top: 1px dotted var(--border);
}
.product-photo-field:first-of-type { padding-top: 0; border-top: 0; }
.product-photo-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 14px;
}
.product-photo-field-heading strong,
.product-photo-field-heading label { margin: 0; font-size: 14px; font-weight: 800; }
.product-photo-field-heading > span { color: var(--text-muted); font-size: 11px; }
.product-photo-current {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}
.product-photo-current img {
  width: 88px;
  height: 88px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
  object-fit: contain;
}
.product-photo-current figcaption { display: grid; gap: 4px; }
.product-photo-current figcaption strong { font-size: 13px; }
.product-photo-current figcaption small { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.product-photo-field .current-upload {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  overflow-wrap: anywhere;
}
.product-photo-field .current-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.product-photo-field .current-upload-title { font-size: 12px; font-weight: 800; }
.product-photo-field .current-upload-name {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-form-panel .product-photo-field .upload-input-label {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.product-photo-field input[type='file'].field-input {
  min-height: 54px;
  padding: 7px;
  border-style: dashed;
  background: var(--surface-raised);
  font-size: 12px;
  line-height: 1.4;
  transition: border-color .15s ease-out, background .15s ease-out;
}
.product-photo-field input[type='file'].field-input:hover { border-color: var(--accent); }
.product-photo-field input[type='file']::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface-raised);
  font: 700 12px var(--font-ui);
  cursor: pointer;
}
.product-form-panel .product-remove-photo,
.product-form-panel .product-photo-field .remove-upload {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.product-form-panel .product-remove-photo:hover,
.product-form-panel .product-photo-field .remove-upload:hover { border-color: var(--accent); }
.product-form-panel .product-remove-photo:has(input:checked),
.product-form-panel .product-photo-field .remove-upload:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.product-remove-photo input,
.product-photo-field .remove-upload input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.product-form-actions {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.product-form-actions .button { min-height: 54px; font-size: 15px; }
.product-form-actions .form-back { margin: 6px auto 0; }

@media (max-width: 1080px) {
  .product-form-page { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px; }
  .product-form-panel { padding: 26px; }
}
@media (max-width: 900px) {
  .product-form-page { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 52px; }
  .product-form-intro { position: static; padding: 0; }
  .product-form-intro h1 { margin-bottom: 16px; }
  .product-form-intro > p:last-child { max-width: 680px; margin-bottom: 0; }
}
@media (max-width: 620px) {
  .product-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .product-form-page { padding: 28px 16px 44px; }
  .product-form-intro h1 { font-size: 40px; }
  .product-form-panel { padding: 22px; }
  .product-form-heading { margin-bottom: 24px; }
  .product-form-heading h2 { font-size: 30px; }
  .product-form-section { padding: 24px 0; }
}
@media (max-width: 420px) {
  .product-form-panel { padding: 20px 16px; }
  .product-form-intro h1 { font-size: 36px; }
  .product-photo-field input[type='file']::file-selector-button {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0 0 8px;
  }
  .product-photo-current { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .product-photo-current img { width: 76px; height: 76px; }
}

/* Botão de denúncia de vitrine (v24 ajuste visual) */
.report-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 9px 18px;
  border-radius: 10px;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.report-link:hover {
  background: #96281b;
}

/* Banner de ativacao de notificacoes push (v25) */
.push-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px dashed rgba(124, 45, 18, 0.4);
  border-radius: 12px;
  background: rgba(124, 45, 18, 0.06);
  font-size: 0.95rem;
}

/* Correcao v25b: o atributo hidden precisa vencer o display flex do banner */
.push-banner[hidden] {
  display: none;
}
