/* ==========================================================================
   Stores (store.php, stores.php, store-edit.php) — the first pages of the new design (owner 2026-10-27: „გიჟური დიზაინი … მოდერნიზებული“).
   One idea: the store's own colour (--st, PRO) drives a living mesh cover, the logo, the active filters and the prices' accents;
   a floating glass head over the cover; tiles that lift; everything one hand-reach on a phone.
   ========================================================================== */

.store-page, .stores-page, .st-editor { --st: var(--accent); --st-soft: color-mix(in srgb, var(--st) 12%, #fff); --st-line: color-mix(in srgb, var(--st) 30%, #fff);
  --st-text: color-mix(in srgb, var(--st) 70%, #000); }   /* the store's colour as TEXT: dark enough for 4.5:1 on white / its tint (axe 2026-10-30) */
.store-body main { padding-bottom: 48px; }

/* ---------- the living cover ---------- */
.st-mesh { position: absolute; inset: 0; overflow: hidden; background: #f6f7fb;   /* design A (2026-10-27): the light aurora, in the store's colour */
  background-image:
    radial-gradient(60% 90% at 12% 18%, color-mix(in srgb, var(--st) 55%, transparent) 0, transparent 60%),
    radial-gradient(50% 80% at 88% 10%, color-mix(in srgb, color-mix(in srgb, var(--st) 45%, #7c3aed) 45%, transparent) 0, transparent 62%),
    radial-gradient(70% 90% at 70% 110%, color-mix(in srgb, color-mix(in srgb, var(--st) 45%, #06b6d4) 40%, transparent) 0, transparent 60%),
    linear-gradient(135deg, #fff 0%, #eef1f8 100%); }
/* the light drifts across the cover — inside it (inset 0: nothing reaches past the page edge) */
.st-mesh::after { content: ''; position: absolute; inset: 0; opacity: .55; background-size: 220% 220%;
  background-image: radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--st) 30%, transparent) 0, transparent 70%), radial-gradient(30% 40% at 75% 65%, rgba(255,255,255,.6) 0, transparent 70%);
  animation: st-drift 22s ease-in-out infinite alternate; }
.st-mesh::before { content: ''; position: absolute; inset: 0; z-index: 1; opacity: .18;
  background-image: radial-gradient(rgba(13,19,36,.35) 1px, transparent 1.2px); background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
@keyframes st-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .st-mesh::after { animation: none; } }

/* the cover lies under the head (absolute): the head floats over its lower part without overlapping it in the flow */
.st-hero { position: relative; padding-top: 152px; }
.st-cover { position: absolute; top: 0; left: 0; right: 0; height: 240px; overflow: hidden; background: #f6f7fb; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-hero.has-banner .st-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,32,0) 40%, rgba(11,19,32,.55) 100%); }

/* ---------- the floating head ---------- */
.st-head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 24px !important; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); max-width: 1200px !important; width: calc(100% - 40px); }
.st-id { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 420px; }
.st-logo { flex: none; position: relative; display: grid; place-items: center; border-radius: 28%; overflow: hidden; background: var(--st);
  box-shadow: 0 0 0 4px #fff, 0 12px 28px -10px color-mix(in srgb, var(--st) 70%, #000); }
.st-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.st-initials { color: #fff; font-weight: 800; font-size: 2.1em; letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.st-head .st-logo { margin-top: -54px; }
.st-title { min-width: 0; }
.st-title h1 { margin: 6px 0 2px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.st-tag { margin: 0; color: var(--text-2); font-size: 15.5px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.st-meta span { display: inline-flex; align-items: center; gap: 6px; }
.st-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px var(--danger-50); }
.st-open.is-open { color: var(--green); font-weight: 600; }
.st-open.is-open i { background: var(--green); box-shadow: 0 0 0 4px var(--green-50); animation: st-pulse 2s ease-in-out infinite; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.st-actions .btn-primary { background: var(--st); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--st) 80%, transparent); }
.st-actions .btn-primary:hover { background: color-mix(in srgb, var(--st) 85%, #000); }

.st-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.st-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .01em;
  background: var(--soft); color: var(--text-2); }
.st-badge-official { background: #e8f1ff; color: #1d4ed8; }
.st-badge-company { background: var(--green-50); color: var(--green); }
.st-badge-pro { color: #fff; background: linear-gradient(120deg, #f59e0b, #ef4444 45%, #8b5cf6); box-shadow: 0 4px 12px -4px rgba(239,68,68,.6); }

.st-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; }
.st-stats li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; color: var(--text-2); }
.st-stats strong { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.st-links { gap: 12px !important; }
.st-links a { color: var(--st-text); font-weight: 600; text-decoration: none; }
.st-links a:hover { text-decoration: underline; }
.st-notice { margin: 16px 0 0; }

/* ---------- tabs ---------- */
.st-tabs { display: flex; gap: 4px; margin-top: 22px !important; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st-tabs a { position: relative; flex: none; padding: 12px 16px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.st-tabs a span { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--st-soft); color: color-mix(in srgb, var(--st) 70%, #000); font-size: 12px; }
.st-tabs a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--st); }
.st-tabs a:hover { color: var(--text); }

/* ---------- featured rail ---------- */
.st-featured { margin-top: 24px !important; }
.st-featured h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 19px; }
.st-featured h2 .ic { color: var(--st); }
.st-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.st-rail .st-tile { scroll-snap-align: start; }
.st-rail .st-tile::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, var(--st), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- body: filters + items ---------- */
.st-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px !important; }
.st-side { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; scrollbar-width: thin; }
.st-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-filters > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.st-filters > summary::-webkit-details-marker { display: none; }
.st-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--st); color: #fff; font-size: 12px; }
.st-filter-body { padding: 0 8px 12px; }
.st-fgroup { padding: 10px 8px; border-top: 1px solid var(--line); }
.st-fgroup h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.st-cats, .st-subs { list-style: none; margin: 0; padding: 0; }
.st-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.st-cats a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cats a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-cats a .ic { color: var(--muted); }
.st-cats a:hover { background: var(--soft); }
.st-cats a[aria-current] { background: var(--st-soft); color: var(--st-text); font-weight: 700; }
.st-cats a[aria-current] .ic { color: var(--st); }
.st-cats a[aria-current] small { color: var(--st-text); }
.st-subs { margin: 2px 0 6px 26px; border-left: 2px solid var(--st-line); padding-left: 6px; }
.st-subs a { padding: 6px 10px; font-size: 13.5px; }
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: border-color .15s, background .15s; }
.st-pill small { color: var(--muted); }
.st-pill:hover { border-color: var(--st); }
.st-pill.is-on { background: var(--st); border-color: var(--st); color: #fff; }
.st-pill.is-on small { color: rgba(255,255,255,.8); }
.st-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-price label { flex: 1 1 70px; }
.st-price input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.st-price input:focus { border-color: var(--st); outline: none; box-shadow: 0 0 0 3px var(--st-soft); }
.st-price .btn { flex: 1 0 100%; }

.st-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-search { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.st-search > .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.st-search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); font-size: 15px;
  transition: border-color .15s, box-shadow .15s; }
.st-search input:focus { border-color: var(--st); outline: none; box-shadow: 0 0 0 4px var(--st-soft); }
.st-sort select { height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); min-width: 170px; }
.st-view { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.st-view a { display: grid; place-items: center; width: 38px; height: 36px; border-radius: 10px; color: var(--muted); }
.st-view a[aria-current] { background: var(--st); color: #fff; }
.st-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.st-result-head h2 { margin: 0; font-size: 18px; }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--st-soft); color: color-mix(in srgb, var(--st) 75%, #000);
  font-size: 13px; font-weight: 600; text-decoration: none; }
.st-chip span { font-size: 16px; line-height: 1; }
.st-chip-clear { background: transparent; color: var(--muted); text-decoration: underline; }

/* ---------- tiles ---------- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.st-tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  color: var(--text); text-decoration: none; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s; }
.st-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--st-line); }
.st-tile-img { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--soft), #e9edf3); }
.st-tile-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #b7c1cf; }
.st-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .35s; }
.st-tile:hover .st-tile-img img { transform: scale(1.04); }
.st-cond { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); color: var(--text-2); box-shadow: var(--shadow-sm); }
.st-cond-new { color: var(--green); }
.st-cond-used { color: var(--warn); }
.st-tile-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.st-tile-cat { font-size: 12px; color: var(--st-text); font-weight: 600; }
.st-tile-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.st-tile-car { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tile-price { margin-top: auto; padding-top: 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.st-layout-list .st-grid { grid-template-columns: 1fr; gap: 10px; }
.st-layout-list .st-grid .st-tile { flex-direction: row; align-items: stretch; }
.st-layout-list .st-grid .st-tile-img { flex: none; width: 168px; aspect-ratio: auto; min-height: 120px; }
.st-layout-list .st-grid .st-tile-body { flex-direction: column; justify-content: center; padding: 14px 18px; }
.st-layout-list .st-grid .st-tile-price { margin-top: 6px; }

.st-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.st-empty h2, .st-empty h3 { margin: 0; font-size: 17px; }
.st-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--st-soft); color: var(--st); }

/* ---------- about ---------- */
.st-about { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 40px !important; scroll-margin-top: calc(var(--header-h) + 16px); }
.st-about-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.st-about-main h2 { margin: 0 0 10px; }
.st-about-text p { margin: 0 0 12px; color: var(--text-2); overflow-wrap: anywhere; }
.st-about-side { display: grid; gap: 16px; align-content: start; }
.st-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.st-box h3 { margin: 0 0 10px; font-size: 16px; }
.st-box p { margin: 6px 0; }
.st-box a:not(.btn) { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.st-box a:not(.btn) .ic { color: var(--st); }
.st-box a:not(.btn):hover { color: var(--st-text); }
.st-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-hours th { text-align: left; font-weight: 500; color: var(--text-2); padding: 5px 0; }
.st-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.st-hours tr.is-today th, .st-hours tr.is-today td { color: var(--st-text); font-weight: 700; }
.st-claim { background: linear-gradient(160deg, var(--st-soft), var(--surface) 60%); border-color: var(--st-line); }
.st-claim textarea { width: 100%; margin: 6px 0 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; resize: vertical; }

/* ---------- directory ---------- */
.st-dir-hero { position: relative; overflow: hidden; color: var(--text); padding: 48px 0 40px; }
.st-dir-hero .wrap { position: relative; z-index: 2; }
.st-dir-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.st-dir-hero p { margin: 8px 0 20px; max-width: 620px; color: var(--text-2); font-size: 16px; }
.st-dir-search { max-width: 620px; gap: 8px; }
.st-dir-search input { height: 52px; border: 1.5px solid var(--violet, #7c3aed); border-radius: 16px; box-shadow: 0 0 0 4px rgba(124,58,237,.1), 0 18px 40px -20px rgba(40,30,90,.4); }
.st-dir-search .btn { position: absolute; right: 7px; }
.st-dir-kinds { margin-top: 16px; align-items: center; }
.st-dir-kinds .st-pill { background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.9); color: var(--text); backdrop-filter: blur(8px); }
.st-dir-kinds .st-pill.is-on { background: var(--ink, #0d1324); color: #fff; border-color: var(--ink, #0d1324); }
.st-city select { height: 34px; border-radius: 99px; padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--text); }
.st-city .combo-input { height: 34px; border-radius: 99px; }
.st-dir-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 14px; }
.st-dir-head p { margin: 0; }
.st-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.st-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  color: var(--text); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.st-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.st-card-cover { position: relative; height: 92px; overflow: hidden;
  background: radial-gradient(80% 140% at 10% 0%, color-mix(in srgb, var(--st) 60%, transparent) 0, transparent 70%), radial-gradient(80% 140% at 100% 100%, color-mix(in srgb, color-mix(in srgb, var(--st) 50%, #7c3aed) 45%, transparent) 0, transparent 70%), #f1f3f8; }
.st-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-card.is-pro::after { content: 'PRO'; position: absolute; right: 12px; top: 12px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, #f59e0b, #ef4444 45%, #8b5cf6); }
.st-card-body { display: flex; flex-direction: column; gap: 6px; padding: 0 18px 18px; }
.st-card-body .st-logo { margin-top: -32px; box-shadow: 0 0 0 4px #fff, var(--shadow); }
.st-card-body .st-initials { font-size: 1.3em; }
.st-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-card-badges .st-badge-pro { display: none; }
.st-card-name { margin: 2px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; overflow-wrap: anywhere; }
.st-card-tag { color: var(--text-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card-meta { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.st-card-meta strong { color: color-mix(in srgb, var(--st) 70%, #000); font-size: 15px; }   /* the store's colour, dark enough to read (4.5:1) */

/* ---------- the owner's editor ---------- */
.st-editor { padding-bottom: 60px; }
.st-ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.st-ed-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.st-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.st-ed-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px; }
.st-ed-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; }
.st-ed-card > p.small { margin: 0 0 14px; }
.st-ed-card .field { margin-bottom: 14px; }
.st-ed-card label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.st-ed-card input[type=text], .st-ed-card input[type=tel], .st-ed-card input[type=url], .st-ed-card textarea, .st-ed-card select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.st-ed-card input:focus, .st-ed-card textarea:focus { border-color: var(--st); outline: none; box-shadow: 0 0 0 4px var(--st-soft); }
.st-ed-card .field-error { color: var(--danger); font-size: 13px; }
.st-ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.st-slug { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.st-slug span { padding: 0 10px; color: var(--muted); font-size: 13px; white-space: nowrap; background: var(--soft); align-self: stretch; display: flex; align-items: center; }
.st-slug input { min-width: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.st-photo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-photo-banner { display: block; width: 100%; height: 120px; border-radius: 14px; overflow: hidden; position: relative; background: #f1f3f8; }
.st-photo-banner img { width: 100%; height: 100%; object-fit: cover; }
.st-photo-banner .st-mesh { position: absolute; }
.st-photo input[type=file] { max-width: 100%; font-size: 13.5px; }
.st-flag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--warn-50); color: var(--warn); }
.st-flag.is-bad { background: var(--danger-50); color: var(--danger); }
.st-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.st-swatch input { position: absolute; opacity: 0; }
.st-swatch > span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); cursor: pointer; transition: transform .15s; }
.st-swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); transform: scale(1.06); }
.st-swatch input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 4px; }
.st-swatch input:disabled + span { opacity: .4; cursor: not-allowed; }
.st-seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; gap: 4px; }
.st-seg label { margin: 0; }
.st-seg input { position: absolute; opacity: 0; }
.st-seg span { display: inline-block; padding: 8px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.st-seg input:checked + span { background: var(--st); color: #fff; }
.st-seg input:disabled + span { opacity: .5; cursor: not-allowed; }
.st-hours-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.st-hours-ed label { font-weight: 500; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.st-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.st-pick label { position: relative; display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; font-weight: 500; }
.st-pick input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--st); }
.st-pick img, .st-pick .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--soft); display: grid; place-items: center; color: #b7c1cf; }
.st-pick small { padding: 6px 8px; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-pick label:has(input:checked) { border-color: var(--st); box-shadow: 0 0 0 2px var(--st-soft); }
.st-locked { position: relative; }
.st-locked::after { content: attr(data-locked); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 700;
  background: rgba(255,255,255,.72); backdrop-filter: blur(2px); border-radius: inherit; color: var(--text-2); }
.st-ed-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.st-pro-card { position: relative; overflow: hidden; color: #fff; border: 0; background: var(--navy); }
.st-pro-card .st-mesh { display: none; }   /* the PRO card is the ink panel with the aurora glow (design A) */
.st-pro-card { background: radial-gradient(60% 90% at 100% 0%, rgba(124,58,237,.6), transparent), radial-gradient(50% 80% at 0% 100%, rgba(255,106,19,.4), transparent), #0d1324; }
.st-pro-card > * { position: relative; z-index: 2; }
.st-pro-card h2 { color: #fff; }
.st-pro-card ul { margin: 10px 0 16px; padding-left: 20px; color: rgba(255,255,255,.88); font-size: 14px; }
.st-pro-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.st-pro-price small { font-size: 14px; font-weight: 500; opacity: .8; }
.st-pro-card .btn { width: 100%; background: #fff; color: var(--navy); }
.st-pro-card .btn:hover { background: #f1f4f8; }
.st-preview { padding: 0; overflow: hidden; }
.st-preview .st-card { border: 0; border-radius: 0; box-shadow: none; transform: none; }
.st-ed-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.st-ed-save .btn-primary { background: var(--st); min-width: 180px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .st-ed-grid { grid-template-columns: minmax(0, 1fr); }
  .st-ed-side { position: static; }
}
@media (max-width: 900px) {
  .st-hero { padding-top: 106px; }
  .st-cover { height: 170px; }
  .st-head { padding: 18px !important; width: calc(100% - 32px); }
  .st-head .st-logo { margin-top: -48px; width: 88px !important; height: 88px !important; }
  .st-body { grid-template-columns: 1fr; gap: 14px; }
  .st-side { position: static; max-height: none; overflow: visible; }
  .st-filters:not([open]) { border-radius: 14px; }
  .st-about { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .st-hero { padding-top: 84px; }
  .st-cover { height: 132px; }
  .st-head { gap: 14px; }
  .st-id { gap: 14px; flex-basis: 100%; align-items: flex-start; }
  .st-head .st-logo { margin-top: -44px; width: 76px !important; height: 76px !important; }
  .st-initials { font-size: 1.6em; }
  .st-actions { width: 100%; }
  .st-actions .btn { flex: 1 1 auto; }
  .st-actions .st-share > span, .st-actions .btn-dark > span { display: none; }
  .st-actions .st-share, .st-actions .btn-dark { flex: 0 0 48px; padding: 0; }
  .st-stats li { padding: 6px 12px; }
  .st-sort { flex: 1; }
  .st-sort select { width: 100%; min-width: 0; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-tile-body { padding: 10px; }
  .st-tile-price { font-size: 16.5px; }
  .st-layout-list .st-grid { grid-template-columns: 1fr; }
  .st-layout-list .st-grid .st-tile-img { width: 112px; min-height: 100px; }
  .st-dir-hero { padding: 32px 0 28px; }
  .st-dir-grid { grid-template-columns: 1fr; }
  .st-ed-two { grid-template-columns: 1fr; }
  .st-ed-card { padding: 16px; }
  .st-dir-head .btn span { display: inline; }
}
@media (max-width: 380px) {
  .st-grid { gap: 8px; }
  .st-tile-title { font-size: 13.5px; }
  .st-cond { left: 6px; top: 6px; }
}
@media (max-width: 420px) {
  .st-slug { flex-wrap: wrap; }
  .st-slug span { flex: 1 0 100%; padding: 6px 10px; }
}
.st-ed-card [data-copy-hours] { display: flex; margin-top: 8px; white-space: normal; height: auto; min-height: 36px; padding: 6px 12px; text-align: left; max-width: 100%; }
@media (max-width: 600px) {
  .st-search { flex-basis: 100%; }
}

/* services the store marked (lib/stores.php STORE_SERVICES — the seller's statement) */
.st-card .st-services { margin: 2px 0 0; }
.st-card .st-svc { height: 22px; font-size: 11.5px; padding: 0 8px; }
.st-svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.st-svc-pick label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.st-svc-pick input { width: 18px; height: 18px; accent-color: var(--st); }
.st-svc-pick label:has(input:checked) { border-color: var(--st); background: var(--st-soft); }

/* the services strip: its own row across the whole head (store.php). Never squeezed (owner 2026-10-27: „თუ არ ეტევა ჩამოვიდეს ქვევით, ნუ
   ჩაჭყლიტავ“): each service keeps its one-line width and grows to fill its row; what does not fit goes to the next row */
.st-svc-strip { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); }
.st-svc-strip li { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: var(--st-soft); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.st-svc-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--st); color: #fff;
  box-shadow: 0 6px 14px -8px var(--st); }

/* phones (owner 2026-10-27: „ხატულა შუაში … დასახელება და ნაწერები დაბლა ჩამოიტანე“): the logo in the middle, everything under it, centred */
@media (max-width: 600px) {
  .st-head { flex-direction: column; align-items: stretch; text-align: center; }
  .st-id { flex-direction: column; align-items: center; gap: 10px; flex-basis: auto; }
  .st-head .st-logo { margin-top: -62px; width: 96px !important; height: 96px !important; }
  .st-title { width: 100%; }
  .st-title h1 { font-size: 26px; }
  .st-badges, .st-meta { justify-content: center; }
  .st-tag { font-size: 15px; }
  .st-actions { justify-content: center; }
  .st-stats { justify-content: center; }
  .st-svc-strip { gap: 8px; padding-top: 12px; }
  .st-svc-strip li { padding: 8px 12px 8px 8px; font-size: 13px; }
  .st-svc-ic { width: 30px; height: 30px; border-radius: 9px; }
  .st-hero { padding-top: 96px; }
}
