/* market — stylesheet
   Fonts: Anek Bangla (Ek Type, SIL OFL). "Anek Text" for reading, "Anek Display" (wider cut) for signs and headings. */

@font-face { font-family: 'Anek Text'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/anek-text-bengali.woff2) format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Anek Text'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/anek-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anek Text'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/anek-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anek Display'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/anek-display-bengali.woff2) format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Anek Display'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/anek-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anek Display'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/anek-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Base colours. Admin → Branding writes these into the page; the values here are the fallback (Bazaar festival). */
  color-scheme: light;
  --floor: #FFF7FB;
  --surface: #FFFFFF;
  --ink: #2A0F1F;
  --green: #C2185B;        /* main accent */
  --accent-2: #FF6F3C;     /* second accent, for gradients */
  --on-accent: #FFFFFF;

  /* Everything below is derived from the base colours. */
  --band: color-mix(in srgb, var(--ink) 6%, var(--surface));
  --ink-2: color-mix(in srgb, var(--ink) 78%, var(--floor));
  --ink-3: color-mix(in srgb, var(--ink) 58%, var(--floor));
  --line: color-mix(in srgb, var(--ink) 11%, var(--surface));
  --line-2: color-mix(in srgb, var(--ink) 20%, var(--surface));
  --green-2: color-mix(in srgb, var(--green) 82%, var(--ink));
  --green-tint: color-mix(in srgb, var(--green) 12%, var(--surface));
  --link: color-mix(in srgb, var(--green) 85%, var(--ink));
  --link-hover: color-mix(in srgb, var(--green) 65%, var(--ink));
  --grad: linear-gradient(135deg, var(--green) 0%, var(--accent-2) 100%);
  --grad-hover: linear-gradient(135deg, color-mix(in srgb, var(--green) 88%, #000) 0%, color-mix(in srgb, var(--accent-2) 88%, #000) 100%);
  --on-ink: var(--surface);
  --board: #12141A;        /* directory board, always dark */
  --board-2: #1F232C;
  --street: #2C3038;
  --street-edge: #474D58;
  --amber: #FFB547;        /* lift light */
  --amber-2: #E8971A;
  --amber-soft: color-mix(in srgb, var(--amber) 16%, var(--surface));
  --amber-line: color-mix(in srgb, var(--amber) 45%, var(--surface));
  --amber-ink: color-mix(in srgb, #B36B00 60%, var(--ink));
  --sale: #E5394E;
  --sale-tint: color-mix(in srgb, var(--sale) 11%, var(--surface));
  --sale-line: color-mix(in srgb, var(--sale) 40%, var(--surface));
  --sale-ink: color-mix(in srgb, var(--sale) 75%, var(--ink));
  --ok: #1FA463;
  --ok-bg: color-mix(in srgb, var(--ok) 12%, var(--surface));
  --ok-line: color-mix(in srgb, var(--ok) 38%, var(--surface));
  --ok-ink: color-mix(in srgb, var(--ok) 72%, var(--ink));

  --font: 'Anek Text', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anek Display', 'Anek Text', 'Noto Sans Bengali', system-ui, sans-serif;

  --r-lg: 14px;
  --r: 10px;
  --r-sm: 7px;
  --wrap: 1180px;
  --gutter: 20px;
  --street-h: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(bn) body, body:lang(bn) { line-height: 1.62; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
p { margin: 0 0 .9em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.012em; line-height: 1.12; }
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3 { letter-spacing: 0; line-height: 1.22; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
svg.i { display: inline-block; vertical-align: -0.18em; width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* ---------- buttons, chips, fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.1em;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--grad); color: var(--on-accent);
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--grad-hover); color: var(--on-accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 35%, transparent); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }
.btn-amber { background: var(--amber); color: #2A1C00; }
.btn-amber:hover { background: #F5A40F; color: #2A1C00; }
.btn-danger { background: var(--surface); color: var(--sale); border-color: var(--sale-line); }
.btn-danger:hover { background: var(--sale-tint); color: var(--sale); }
.btn-wa { background: #1E8E4E; }
.btn-wa:hover { background: #17733F; }
.btn-sm { min-height: 36px; padding: .35em .8em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .i { width: 1.2em; height: 1.2em; }
.btn-link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .38em .85em; min-height: 36px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); font-size: .92rem; text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip .i { color: var(--ink-2); }
.chip.is-on, button.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip.is-on .i { color: var(--on-ink); }
button.chip { cursor: pointer; }
.chip-open { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }
.chip-open .i { color: var(--ok); }
.chip-closed { background: var(--band); color: var(--ink-2); }

.field { display: grid; gap: 6px; margin-bottom: 18px; align-content: start; }
.field > label, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--ink-3); margin: 0; }
.field .error, .form-error { color: var(--sale); font-size: .9rem; margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: .6em .8em;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.4em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%234B5650' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8em center; background-size: 1em; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--sale); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

.search-box { display: flex; gap: 8px; }
.search-box .input { flex: 1; min-width: 0; }
.search-box .btn { flex: none; min-width: 50px; padding-inline: .9em; }

/* ---------- header ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1; padding-bottom: 2px; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .4em .5em; }
.nav-link:hover { color: var(--ink); }
.nav-hide-sm { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--floor); color: var(--ink); }
.icon-btn .i { width: 22px; height: 22px; }
.lang-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9em; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lang-pill:hover { border-color: var(--ink-3); color: var(--ink); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: inline-flex; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px;
}
.menu-pop .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .who strong { display: block; }
.menu-pop .who span { font-size: .86rem; color: var(--ink-3); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--floor); }
.menu-pop .i { color: var(--ink-3); }

.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--green-tint); color: var(--link); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }

@media (min-width: 720px) {
  .nav-hide-sm { display: inline-flex; }
}

/* ---------- flash ---------- */

.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid; font-weight: 500; }
.flash .i { margin-top: 3px; }
.flash-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.flash-error { background: var(--sale-tint); border-color: var(--sale-line); color: var(--sale-ink); }
.flash-info { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-ink); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-ink); margin: 16px 0; }
.notice .i { margin-top: 3px; }
.notice-bad { background: var(--sale-tint); border-color: var(--sale-line); color: var(--sale-ink); }

/* ---------- sections ---------- */

main { display: block; min-height: 60vh; }
.section { padding-block: 40px; }
.section-band { background: var(--band); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.section-head p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.page-head { padding-top: 32px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
.page-head p { color: var(--ink-2); max-width: 60ch; margin-top: 8px; }

/* ---------- home hero + street ---------- */

.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; max-width: 13ch; }
.hero:lang(bn) h1, :lang(bn) .hero h1 { line-height: 1.14; letter-spacing: 0; max-width: 15ch; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 46ch; margin: 18px 0 24px; }
.hero .search-box { max-width: 560px; }
.hero .search-box .input { min-height: 52px; font-size: 1.05rem; }
.hero .search-box .btn { min-height: 52px; min-width: 56px; }

.street { margin-top: 44px; }
.street-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.street-head h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.street-head p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.street-scroll {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  background:
    repeating-linear-gradient(90deg, #E9C46A 0 26px, transparent 26px 56px) 0 calc(var(--street-h) + 29px) / 100% 3px no-repeat local,
    linear-gradient(var(--street), var(--street)) 0 calc(var(--street-h) + 10px) / 100% 42px no-repeat local,
    linear-gradient(var(--street-edge), var(--street-edge)) 0 var(--street-h) / 100% 10px no-repeat local;
}
.street-scroll::-webkit-scrollbar { display: none; }
.lot { flex: none; width: 176px; padding-inline: 10px; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
.lot:hover { color: var(--ink); }
.lot-bldg { height: var(--street-h); display: flex; align-items: flex-end; justify-content: center; }
.lot-bldg svg { width: 100%; height: auto; transition: transform .2s ease; transform-origin: bottom center; }
.lot:hover .lot-bldg svg, .lot:focus-visible .lot-bldg svg { transform: translateY(-4px); }
.lot-info { padding-top: 66px; padding-bottom: 6px; }
.lot-info h3 { font-size: 1.04rem; line-height: 1.2; }
.lot-info p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); line-height: 1.35; }
.lot-info .count { color: var(--link); font-weight: 600; }
.art-sign text { font-family: var(--font-display); font-weight: 700; }
.street-more { margin-top: 18px; }

.cat-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cat-row { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------- product cards ---------- */

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1140px) { .pgrid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.pcard:hover { color: var(--ink); }
.pcard-media { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paint-tint, var(--band)); border: 1px solid var(--line); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--paint, var(--green));
  background: radial-gradient(circle at 50% 42%, #fff 0, var(--paint-wash, #F6F8F5) 38%, var(--paint-tint, #EAEFEA) 100%); }
.ph .i { width: 42%; height: 42%; }
.pcard:hover .pcard-media { border-color: var(--line-2); }
.badge-sale { display: inline-block; background: var(--sale); color: #fff; font-weight: 600; font-size: .8rem; padding: .18em .55em; border-radius: 5px; line-height: 1.3; }
.pcard-media .badge-sale { position: absolute; top: 10px; left: 10px; }
.badge-out { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(10, 11, 13, .86); color: #fff; text-align: center; font-size: .82rem; font-weight: 500; padding: .35em; border-radius: 6px; }
.pcard.is-out .pcard-media img, .pcard.is-out .ph { filter: grayscale(.85); opacity: .7; }
.pcard-body { padding-top: 10px; }
.pcard-name { font-family: var(--font); font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.pcard .price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 3px 0 0; }
.was { color: var(--ink-3); font-size: .88rem; text-decoration: line-through; }
.pcard-shop { display: flex; align-items: center; gap: 5px; margin: 5px 0 0; font-size: .86rem; color: var(--ink-3); min-width: 0; }
.pcard-shop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-shop .i { width: 1em; height: 1em; }
.status-pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15em .55em; border-radius: 5px; background: var(--band); color: var(--ink-2); }
.pcard .status-pill { position: absolute; top: 10px; right: 10px; }

/* ---------- market page ---------- */

.market-head { display: grid; gap: 26px; padding-top: 28px; padding-bottom: 30px; align-items: end; }
.market-art { display: flex; justify-content: center; align-items: flex-end; border-bottom: 8px solid var(--street-edge); padding-inline: 20px; }
.market-art svg { width: min(230px, 62vw); height: auto; }
.market-info h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin: 10px 0 14px; }
.loc .i { color: var(--ink-3); }
.market-info .desc { color: var(--ink-2); max-width: 62ch; }
.market-info .chips { margin: 16px 0 10px; }
.market-info .addr { font-size: .92rem; color: var(--ink-3); margin: 10px 0 0; }
.market-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.market-cover { margin-top: 18px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); max-width: 560px; }
.market-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 860px) {
  .market-head { grid-template-columns: minmax(240px, 300px) 1fr; gap: 48px; align-items: center; }
  .market-art { border-bottom-width: 10px; }
}

/* the lift: the one loud thing on this site */
.lift { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, var(--surface), var(--band)); border-block: 1px solid var(--line-2); }
.lift-inner { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.lift-display {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 66px; height: 50px; padding: 0 10px; border-radius: 9px;
  background: var(--board); color: var(--amber);
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1;
  text-shadow: 0 0 10px rgba(255, 176, 32, .55);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55), 0 0 0 3px var(--street-edge), 0 0 0 4px var(--street);
}
.lift-display .i { width: 16px; height: 16px; filter: drop-shadow(0 0 4px rgba(255, 176, 32, .6)); }
.lift-display.is-moving .lift-floor { animation: lift-blink .12s steps(2) 1; }
@keyframes lift-blink { 50% { opacity: .55; } }
.lift-buttons { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 5px 4px 7px; margin: -5px 0 -7px; }
.lift-buttons::-webkit-scrollbar { display: none; }
.lift-btn {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: none;
  background: radial-gradient(circle at 50% 32%, var(--surface) 0%, var(--band) 55%, var(--line-2) 100%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2), 0 4px 8px rgba(0, 0, 0, .18);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.lift-btn:hover { color: var(--ink); }
.lift-btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 var(--line-2), 0 1px 3px rgba(0, 0, 0, .4); }
.lift-btn.is-on {
  color: var(--amber-ink);
  background: radial-gradient(circle at 50% 32%, #FFF8E4 0%, #FFE08A 50%, #FFC23D 100%);
  box-shadow: inset 0 0 0 2px var(--amber-2), 0 2px 0 var(--amber-2), 0 0 0 4px rgba(255, 176, 32, .25), 0 0 18px rgba(255, 176, 32, .55);
}
.lift-btn.is-empty { color: var(--ink-3); }

.market-tools { display: grid; gap: 10px; padding-top: 22px; }
.tools-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.view-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; justify-self: start; }
.view-toggle button, .view-toggle a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; text-decoration: none; }
.view-toggle [aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (min-width: 760px) {
  .market-tools { grid-template-columns: 1fr auto; align-items: center; }
  .tools-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.floor { padding-top: 30px; }
.floor-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.45rem; }
.floor-title small { font-family: var(--font); font-weight: 400; font-size: .92rem; color: var(--ink-3); letter-spacing: 0; }
.floor-badge { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px; background: var(--board); color: var(--amber); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-shadow: 0 0 8px rgba(255, 176, 32, .45); }
.floor-empty { color: var(--ink-3); padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 55%, transparent); margin: 0; }

.stores { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.store { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.store:hover { color: var(--ink); border-color: var(--line-2); }
.store:hover .art-store { transform: scale(1.015); }
.store-sign { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paint); color: #fff; min-height: 58px; }
.store-sign .mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); font-family: var(--font-display); font-weight: 800; font-size: .95rem; overflow: hidden; }
.store-sign .mark img { width: 100%; height: 100%; object-fit: cover; }
.store-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-sign .closed-tag { margin-left: auto; flex: none; font-size: .78rem; font-weight: 600; background: rgba(0, 0, 0, .28); padding: .2em .6em; border-radius: 999px; }
.store-art { overflow: hidden; background: var(--paint-wash); }
.art-store { width: 100%; height: auto; aspect-ratio: 320 / 170; transition: transform .25s ease; }
.store-where { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.store-where .i { color: var(--ink-3); }
.store-where + .store-meta { border-top: 0; padding-top: 6px; }
.store-meta { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.unit { flex: none; font-weight: 600; font-size: .82rem; color: var(--ink); background: var(--floor); border: 1px solid var(--line-2); padding: .1em .5em; border-radius: 5px; font-variant-numeric: tabular-nums; }
.store-meta .cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-meta .count { margin-left: auto; flex: none; color: var(--ink-3); }

/* directory board */
.board { background: var(--board); color: #E3E6E9; border-radius: var(--r-lg); padding: 22px 20px 12px; margin-top: 26px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.board-title { color: var(--amber); font-size: 1.4rem; margin-bottom: 8px; }
.board-floor { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: #fff; margin: 18px 0 4px; }
.board .floor-badge { background: var(--amber); color: var(--board); text-shadow: none; min-width: 30px; height: 30px; font-size: .92rem; border-radius: 6px; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { border-top: 1px solid rgba(255, 255, 255, .12); }
.board li a { display: flex; align-items: center; gap: 14px; padding: 11px 2px; color: inherit; text-decoration: none; }
.board li a:hover .b-name { text-decoration: underline; text-underline-offset: 3px; }
.b-name { font-weight: 600; color: #fff; display: block; }
.b-cat { font-size: .86rem; color: #9AA2AB; display: block; }
.b-unit { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }

.open-here { margin: 40px 0 10px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.open-here p { margin: 0; font-weight: 600; font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- shop page ---------- */

.shop-hero { background: var(--paint-wash); }
.shop-sign { background: var(--paint); color: #fff; }
.shop-sign .wrap { display: flex; align-items: center; gap: 14px; padding-block: 18px; }
.shop-sign .mark { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .9); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; overflow: hidden; background: rgba(255, 255, 255, .08); }
.shop-sign .mark img { width: 100%; height: 100%; object-fit: cover; }
.shop-sign h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); color: #fff; }
.shop-sign p { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; opacity: .92; }
.shop-art { max-width: 1600px; margin-inline: auto; }
.shop-art .art-store { aspect-ratio: auto; width: 100%; height: clamp(170px, 24vw, 250px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .95rem; color: var(--ink-2); margin: 22px 0 16px; }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .i { color: var(--ink-3); width: 1em; height: 1em; }
.shop-about { display: grid; gap: 24px; padding-bottom: 8px; }
.shop-about .desc { color: var(--ink-2); max-width: 64ch; margin-top: 14px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.run-by { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .92rem; margin-top: 18px; }
.run-by .avatar { width: 30px; height: 30px; font-size: .85rem; }
.run-by a { color: var(--ink); font-weight: 600; }
.shop-tools { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 760px) { .shop-tools { grid-template-columns: minmax(0, 1fr) 240px; } .shop-tools .chips { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 38px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty .i { display: block; width: 40px; height: 40px; margin: 0 auto 10px; color: var(--ink-3); }
.empty p { max-width: 46ch; margin-inline: auto; }

/* ---------- product page ---------- */

.product { display: grid; gap: 28px; padding-bottom: 20px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: start; } .gallery { position: sticky; top: 20px; } }
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paint-tint); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.gallery-main .badge-sale { position: absolute; top: 14px; left: 14px; font-size: .92rem; }
.gallery-main .ph .i { width: 38%; height: 38%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--surface); }
.thumbs button[aria-current="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ptag { display: inline-block; color: var(--link); font-weight: 600; font-size: .95rem; text-decoration: none; margin-bottom: 6px; }
.product-info h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.price-row .price { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem); }
.price-row .was { font-size: 1.05rem; }
.you-save { color: var(--sale); font-weight: 500; margin: 6px 0 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 14px 0 0; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--ok); }
.stock-out { color: var(--ink-3); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.product-info h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.prose { color: var(--ink-2); max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }
.sold-by { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.sold-by:hover { border-color: var(--line-2); color: var(--ink); }
.sold-by .mark { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--paint); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.sold-by .mark img { width: 100%; height: 100%; object-fit: cover; }
.sold-by small { display: block; color: var(--ink-3); font-size: .86rem; }
.sold-by strong { display: block; font-family: var(--font-display); font-size: 1.12rem; }
.sold-by span { display: block; color: var(--ink-2); font-size: .9rem; }
.views-note { color: var(--ink-3); font-size: .88rem; margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; font-weight: 500; z-index: 100; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- lists: markets, search, categories ---------- */

.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
@media (min-width: 700px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mcard { display: block; color: var(--ink); text-decoration: none; }
.mcard:hover { color: var(--ink); }
.mcard-art { height: 220px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 8px solid var(--street-edge); padding-inline: 6px; }
.mcard-art svg { max-height: 100%; width: auto; }
.mcard h3 { font-size: 1.05rem; margin-top: 12px; }
.mcard p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); }
.mcard .count { color: var(--link); font-weight: 600; }

.filters { display: grid; gap: 10px; margin: 20px 0 6px; }
@media (min-width: 700px) { .filters { grid-template-columns: minmax(0, 1fr) 220px auto; } }

.result-group { margin-top: 32px; }
.result-group h2 { font-size: 1.35rem; margin-bottom: 14px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 34px 0 10px; }
.pager span { color: var(--ink-3); }

/* ---------- profile ---------- */

.profile-head { display: flex; gap: 18px; align-items: center; padding-top: 34px; flex-wrap: wrap; }
.profile-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
.profile-head p { margin: 4px 0 0; color: var(--ink-3); }
.profile-bio { max-width: 64ch; color: var(--ink-2); margin-top: 16px; white-space: pre-line; }

/* ---------- CTA board ---------- */

.cta-board { background: var(--board); color: #D5DADF; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; position: relative; overflow: hidden; }
.cta-board h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); max-width: 18ch; }
.cta-board p { max-width: 54ch; margin: 0; }
.cta-board .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-board .btn-quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-board .btn-quiet:hover { border-color: #fff; }
@media (min-width: 900px) { .cta-board { grid-template-columns: 1.3fr 1fr; align-items: end; } .cta-board .btns { justify-content: flex-end; } }

/* ---------- auth ---------- */

.auth { max-width: 440px; margin: 0 auto; padding: 44px var(--gutter) 60px; }
.auth h1 { font-size: 2rem; }
.auth .lead { color: var(--ink-2); margin: 8px 0 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.auth .alt { text-align: center; margin-top: 18px; color: var(--ink-2); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 6px; }

/* ---------- footer ---------- */

.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h2 { font-family: var(--font); font-weight: 600; font-size: .95rem; letter-spacing: 0; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { color: var(--ink-2); max-width: 32ch; margin-top: 10px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- dashboard ---------- */

.dash { display: grid; gap: 22px; padding-top: 26px; padding-bottom: 20px; }
.dash-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.dash-nav a:hover { background: var(--surface); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dash-nav .i { color: var(--ink-3); }
.dash-nav hr { display: none; }
@media (min-width: 900px) {
  .dash { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 34px; }
  .dash-nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: 20px; align-self: start; }
  .dash-nav hr { display: block; border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
}
.dash-main h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
.dash-main > .lead { color: var(--ink-2); margin: 6px 0 22px; }
.dash-section { margin-top: 30px; }
.dash-section > .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dash-section > .head h2 { font-size: 1.3rem; }

.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row-main { flex: 1 1 220px; min-width: 0; display: flex; gap: 12px; align-items: center; }
.row-title { font-weight: 600; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
a.row-title:hover { text-decoration: underline; }
.row-sub { font-size: .88rem; color: var(--ink-3); display: block; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-thumb { flex: none; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paint-tint, var(--floor)); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb .ph .i { width: 56%; height: 56%; }
.row-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--paint); color: #fff; font-family: var(--font-display); font-weight: 800; overflow: hidden; }
.row-mark img { width: 100%; height: 100%; object-fit: cover; }
.row-mark svg { width: 70%; height: auto; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-approved, .st-active { background: var(--ok-bg); color: var(--ok-ink); }
.st-pending { background: var(--amber-soft); color: var(--amber-ink); }
.st-rejected, .st-banned { background: var(--sale-tint); color: var(--sale-ink); }
.st-hidden { background: var(--band); color: var(--ink-2); }
.st-admin { background: var(--green-tint); color: var(--link); }
.st-admin::before { display: none; }
.review-note { font-size: .88rem; color: var(--sale-ink); margin: 6px 0 0; flex-basis: 100%; }
.inline-form { display: inline; margin: 0; }
.request-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-basis: 100%; }
.request-form .input { flex: 1 1 220px; min-height: 38px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--ink-3); font-size: .92rem; }

/* forms in the dashboard */
.form { max-width: 760px; }
.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; }
.form-section > h2 { font-size: 1.2rem; margin-bottom: 16px; }
.form-section > .hint { margin: -8px 0 16px; color: var(--ink-3); font-size: .9rem; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-errors { margin-bottom: 18px; }
.form-errors ul { margin: 6px 0 0; padding-left: 1.2em; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); cursor: pointer; transition: transform .1s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 5px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; background: var(--surface); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 2px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days span { display: inline-grid; place-items: center; min-width: 52px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; background: var(--surface); font-size: .92rem; }
.days input:checked + span { background: var(--sale-tint); border-color: var(--sale-line); color: var(--sale-ink); font-weight: 600; }
.days input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 2px; }

.preview-box { display: flex; justify-content: center; align-items: flex-end; min-height: 200px; padding: 16px 16px 0; background: var(--floor); border-radius: var(--r); border-bottom: 8px solid var(--street-edge); margin-bottom: 16px; }
.preview-box svg { width: 170px; height: auto; }
.preview-store { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; max-width: 420px; }
.preview-store .store-sign { min-height: 50px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.photo { position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--floor); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.photo .tools button { flex: 1; min-height: 28px; font-size: .76rem; padding: 0 6px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); cursor: pointer; font-weight: 600; }
.photo .tools button.danger { color: var(--sale); }
.photo .cover-tag { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--on-ink); font-size: .74rem; font-weight: 600; padding: .1em .5em; border-radius: 5px; }
.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--floor); color: var(--ink-2); cursor: pointer; }
.drop:hover { border-color: var(--green); }
.drop .i { width: 30px; height: 30px; color: var(--ink-3); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2.5px solid var(--green); outline-offset: 2px; }
.new-previews { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.new-previews img { aspect-ratio: 1; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.current-img { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.current-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.current-img .wide { width: 140px; aspect-ratio: 16/9; height: auto; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 600; color: var(--ink-2); font-size: .86rem; border-top: 0; background: var(--band); white-space: nowrap; }
.table td .row-sub { white-space: nowrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 16px; }

.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; border: 0; padding: 0; margin: 0; }
.icon-pick label { position: relative; }
.icon-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-pick span { display: grid; place-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--ink-2); }
.icon-pick input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--link); box-shadow: inset 0 0 0 1px var(--green); }
.icon-pick .i { width: 24px; height: 24px; }

details.more { margin-top: 12px; }
details.more summary { cursor: pointer; color: var(--link); font-weight: 500; }

/* ---------- misc ---------- */

.error-page { text-align: center; padding: 70px var(--gutter) 40px; max-width: 560px; margin: 0 auto; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; color: var(--amber); line-height: 1; text-shadow: 0 0 18px rgba(255, 176, 32, .35); background: var(--board); display: inline-block; padding: 8px 22px; border-radius: 12px; margin-bottom: 22px; }
.error-page h1 { font-size: 2rem; margin-bottom: 10px; }
.error-page p { color: var(--ink-2); }

.page-text { max-width: 68ch; padding-bottom: 20px; }
.page-text p { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .lift, .market-tools, .product-actions { display: none; }
}

/* ---------- account types & shop control ---------- */
.acct-type { border: 0; padding: 0; margin: 0 0 18px; }
.acct-type legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.acct-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 460px) { .acct-choices { grid-template-columns: 1fr; } }
.acct-choice { position: relative; cursor: pointer; }
.acct-choice input { position: absolute; opacity: 0; inset: 0; }
.acct-choice > span { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--band); }
.acct-choice > span .i { width: 1.5em; height: 1.5em; color: var(--ink-2); }
.acct-choice small { color: var(--ink-3); font-size: .84rem; line-height: 1.4; }
.acct-choice input:checked + span { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: var(--green-tint); }
.acct-choice input:checked + span .i { color: var(--link); }
.acct-choice input:focus-visible + span { outline: 2.5px solid var(--green); outline-offset: 2px; }
.dash-role { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--band); color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.st-type { background: var(--band); color: var(--ink-2); }
.st-type::before { display: none; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.shop-cover { margin-top: 18px; }

/* ---------- polish ---------- */
.brand-word { color: var(--ink); }
.brand-logo { display: block; height: 38px; width: auto; max-width: 180px; object-fit: contain; }
::selection { background: color-mix(in srgb, var(--green) 35%, transparent); }
.btn-quiet:hover { border-color: var(--green); }
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); outline: none; }

/* ---------- home hero background picture ---------- */
.hero-band { position: relative; isolation: isolate; color: #fff;
  background: linear-gradient(100deg, rgba(10, 6, 20, .86) 0%, rgba(10, 6, 20, .62) 45%, rgba(10, 6, 20, .15) 100%), var(--hero-img) center / cover no-repeat, #2A0E3D;
  padding-bottom: clamp(48px, 8vw, 110px); min-height: clamp(380px, 52vw, 560px); display: flex; align-items: center; }
.hero-band .hero { padding-top: clamp(40px, 7vw, 90px); }
.hero-band h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-band .hero-lead { color: rgba(255, 255, 255, .88); }
.hero-band .search-box .input { background: rgba(255, 255, 255, .96); color: #1A1A1A; border-color: transparent; }
.hero-band .search-box .input::placeholder { color: #6B6B6B; }
@media (max-width: 700px) { .hero-band { background: linear-gradient(180deg, rgba(10, 6, 20, .55) 0%, rgba(10, 6, 20, .85) 100%), var(--hero-img) 70% center / cover no-repeat, #2A0E3D; } }
.hero-current img { width: 100%; max-width: 520px; aspect-ratio: 8 / 3; object-fit: cover; border-radius: var(--r); }

/* ---------- admin branding pickers ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick-grid.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); height: 100%; }
.pick-card b { font-size: .92rem; }
.pick-card small { color: var(--ink-3); font-size: .8rem; margin-top: -4px; }
.pick input:checked + .pick-card { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.pick input:focus-visible + .pick-card { outline: 2.5px solid var(--green); outline-offset: 3px; }
.theme-mini { display: grid; gap: 6px; padding: 8px; border-radius: 8px; height: 92px; grid-template-rows: 10px 1fr; position: relative; }
.tm-bar { border-radius: 4px; }
.tm-card { border: 1px solid; border-radius: 6px; padding: 8px; display: grid; gap: 6px; align-content: start; }
.tm-line { height: 6px; border-radius: 3px; width: 80%; opacity: .85; }
.tm-line.short { width: 45%; }
.tm-btn { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.font-card { gap: 2px; }
.font-sample { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.font-body { font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.ill-thumb { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 6px; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .9rem; cursor: pointer; }
.color-field input { width: 40px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.brand-preview { display: inline-flex; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--band); margin-bottom: 10px; }
.brand-preview img { max-height: 60px; width: auto; }
.form-section h2 .i { color: var(--green); }
