/* ==========================================================================
   Zara Modern — design system for the Zara Osclass theme (Osclass 8.3.1)
   One stylesheet: tokens → base → layout → components → pages → responsive.
   Source of truth: "Zara Modern — UI Kit" canvas (Inter, white / ink / blue).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --blue-50: #EAF2FE;
  --blue-100: #D3E4FD;
  --blue-500: #2478F0;
  --blue-600: #0B62E4;
  --blue-700: #0A50BC;
  --blue-900: #093F94;

  --ink-900: #0F1115;
  --ink-800: #1B1F27;
  --ink-700: #333945;
  --ink-600: #4C5361;
  --ink-500: #6B7280;
  --ink-400: #98A0AC;
  --ink-300: #C4CAD3;

  --surface: #F3F4F6;
  --surface-2: #F8F9FA;
  --ph: #EDEFF2;
  --line: #E7E9ED;
  --border: #D8DCE2;
  --white: #FFFFFF;

  --green: #0E9F6E;  --green-bg: #E7F7F0;  --green-ink: #0A6B4A;
  --red: #D92D20;    --red-bg: #FEECEB;    --red-ink: #B4231A;
  --amber: #C2700A;  --amber-bg: #FEF4E6;  --amber-ink: #8A5B10;
  --prem-bg: #FDF6E3; --prem-ink: #8A5B10;

  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: var(--blue-50);
  --focus: 0 0 0 3px var(--blue-100);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-badge: 6px;
  --r-chip: 8px;
  --r-field: 12px;
  --r-panel: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .10);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .16);

  --container: 1240px;
  --gutter: 16px;
  --header-h: 68px;
  --bottom-nav-h: 0px; /* mobile bottom bar removed: navigation lives in the header menu */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--ink-900); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: 26px; letter-spacing: -0.02em; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
hr { height: 1px; border: 0; background: var(--line); margin: 20px 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue-100); }
.clear { clear: both; }
.hide, .is-hidden, [hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px;
  background: var(--ink-900); color: #fff; border-radius: var(--r-field); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-22 { width: 22px; height: 22px; }
.ic-24 { width: 24px; height: 24px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-500); }
.dot-sep { color: var(--ink-300); }

/* ---------- 3. Layout ---------- */
.z-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.z-page { padding-bottom: 48px; min-height: 50vh; }
.z-section { padding-top: 28px; }
.z-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.z-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.z-section-head .z-more { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.z-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- 4. Buttons ---------- */
.z-btn, .btn, .btn-primary,
#blue, #green, .button,
.z-content button[type="submit"]:not(.z-btn-reset),
.fw-supporting button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-field);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.z-btn:hover, .btn:hover, .btn-primary:hover, #blue:hover, #green:hover, .button:hover,
.z-content button[type="submit"]:not(.z-btn-reset):hover, .fw-supporting button[type="submit"]:hover { background: var(--accent-hover); color: #fff; }
.z-btn:focus-visible { box-shadow: var(--focus); outline: none; }
.z-btn:disabled, .z-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.z-btn .ic { width: 18px; height: 18px; }

.z-btn-secondary { background: var(--accent-soft); color: var(--accent-hover); }
.z-btn-secondary:hover { background: var(--blue-100); color: var(--accent-hover); }
.z-btn-outline { background: #fff; color: var(--ink-900); border-color: var(--border); }
.z-btn-outline:hover { background: var(--surface-2); color: var(--ink-900); border-color: var(--ink-300); }
.z-btn-ghost { background: transparent; color: var(--ink-700); }
.z-btn-ghost:hover { background: var(--surface); color: var(--ink-900); }
.z-btn-danger { background: var(--red-bg); color: var(--red-ink); }
.z-btn-danger:hover { background: #FDDCD9; color: var(--red-ink); }
.z-btn-success { background: var(--green); }
.z-btn-success:hover { background: #0B8A5F; }
.z-btn-sm { min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); font-size: 13px; }
.z-btn-lg { min-height: 50px; font-size: 16px; }
.z-btn-block { display: flex; width: 100%; }
.z-btn-icon { width: 44px; padding: 0; }
.z-btn-sm.z-btn-icon { width: 36px; }
.z-link-btn { border: 0; background: none; padding: 6px 8px; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 8px; }
.z-link-btn:hover { background: var(--accent-soft); }

.z-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-600); cursor: pointer; flex-shrink: 0;
}
.z-icon-btn:hover { background: var(--surface); color: var(--ink-900); }
.z-icon-btn .z-dot {
  position: absolute; top: 9px; right: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--red); border: 2px solid #fff;
}
.z-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}

/* ---------- 5. Forms ---------- */
.z-field { margin-bottom: 16px; }
.z-label, .z-content label.z-label {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700);
}
.z-req { color: var(--red); }
.z-hint { margin-top: 5px; font-size: 12px; color: var(--ink-500); }
.z-error-text { margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--red-ink); }

.z-input,
.z-content input[type="text"], .z-content input[type="email"], .z-content input[type="password"],
.z-content input[type="tel"], .z-content input[type="number"], .z-content input[type="url"],
.z-content input[type="search"], .z-content input[type="date"], .z-content select, .z-content textarea,
.fw-supporting input[type="text"], .fw-supporting input[type="email"], .fw-supporting input[type="password"],
.fw-supporting input[type="tel"], .fw-supporting select, .fw-supporting textarea {
  display: block; width: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-field);
  background: #fff; color: var(--ink-900);
  font-size: 16px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.z-content textarea, .fw-supporting textarea, textarea.z-input { min-height: 120px; padding: 11px 12px; resize: vertical; }
.z-content select, .fw-supporting select, select.z-input {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.z-content select[multiple], .fw-supporting select[multiple] { background-image: none; padding: 8px 12px; min-height: 120px; }
.z-input:focus,
.z-content input:focus, .z-content select:focus, .z-content textarea:focus,
.fw-supporting input:focus, .fw-supporting select:focus, .fw-supporting textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--focus);
}
.z-content input::placeholder, .z-content textarea::placeholder, .z-input::placeholder { color: var(--ink-400); }
.z-content input:disabled, .z-content select:disabled, .z-content textarea:disabled,
.z-content input[readonly].disabled { background-color: var(--surface-2); color: var(--ink-500); cursor: not-allowed; }
.z-content input.error, .z-content select.error, .z-content textarea.error,
.fw-supporting input.error, .fw-supporting textarea.error, .fw-supporting select.error { border-color: var(--red); }
.z-content label.error, .fw-supporting label.error, #error_list li, .z-content .error-list li {
  display: block; margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--red-ink);
}
#error_list, ul.error-list { list-style: none; padding: 0; margin: 0 0 12px; }
#error_list:not(:empty) { padding: 10px 14px; border-radius: var(--r-field); background: var(--red-bg); }

.z-content input[type="checkbox"], .z-content input[type="radio"],
.fw-supporting input[type="checkbox"], .fw-supporting input[type="radio"] {
  width: 19px; height: 19px; margin: 0; accent-color: var(--accent); vertical-align: middle; cursor: pointer;
}
.z-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--ink-700); cursor: pointer; }
.z-check input { flex-shrink: 0; }
.z-content input[type="file"] { font-size: 14px; }

.z-inline-fields { display: flex; align-items: center; gap: 8px; }
.z-inline-fields > * { flex: 1 1 0; min-width: 0; }
.z-inline-fields .z-dash { flex: 0 0 auto; color: var(--ink-400); }

.z-segment { display: flex; flex-wrap: wrap; gap: 8px; }
.z-segment label, .z-segment a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-800); cursor: pointer; user-select: none;
}
.z-segment input { position: absolute; opacity: 0; pointer-events: none; }
.z-segment input:checked + span, .z-segment .is-active { color: var(--accent); }
.z-segment label:has(input:checked), .z-segment a.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.z-segment label:has(input:focus-visible) { box-shadow: var(--focus); }

/* ---------- 6. Chips & badges ---------- */
.z-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
  border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-800);
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none;
}
.z-chip:hover { background: #E9EBEF; color: var(--ink-900); }
.z-chip.is-active { background: var(--accent); color: #fff; }
.z-chip.is-active:hover { background: var(--accent-hover); color: #fff; }
.z-chip .ic { width: 16px; height: 16px; }
.z-chip-outline { background: #fff; border: 1px solid var(--border); }

.z-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-badge);
  font-size: 11px; font-weight: 700; line-height: 1.45; letter-spacing: .02em; white-space: nowrap;
}
.z-badge-top { background: var(--prem-bg); color: var(--prem-ink); text-transform: uppercase; }
.z-badge-new { background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.z-badge-exp { background: var(--red-bg); color: var(--red-ink); font-weight: 600; }
.z-badge-info { background: var(--blue-50); color: var(--blue-900); font-weight: 600; }
.z-badge-muted { background: var(--surface); color: var(--ink-600); font-weight: 600; }

/* ---------- 7. Alerts / flash ---------- */
.z-alert, .flashmessage {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  margin: 12px 0; padding: 11px 44px 11px 14px; border-radius: var(--r-field);
  font-size: 14px; line-height: 1.5; background: var(--blue-50); color: var(--blue-900);
}
.z-alert .ic { margin-top: 1px; width: 18px; height: 18px; }
.z-alert-ok, .flashmessage-ok { background: var(--green-bg); color: var(--green-ink); }
.z-alert-error, .flashmessage-error { background: var(--red-bg); color: var(--red-ink); }
.z-alert-warn, .flashmessage-warning { background: var(--amber-bg); color: var(--amber-ink); }
.flashmessage-info { background: var(--blue-50); color: var(--blue-900); }
.flashmessage a { color: inherit; text-decoration: underline; font-weight: 600; }
.flashmessage .ico-close {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0; color: inherit; text-decoration: none;
}
.flashmessage .ico-close::before { content: "\00D7"; font-size: 20px; line-height: 1; }
.flashmessage .ico-close:hover { background: rgba(0, 0, 0, .06); }
.z-flash-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.z-flash-wrap:empty { display: none; }
.flashmessage-inline { width: auto !important; padding: 11px 14px !important; }

/* ---------- 8. Header ---------- */
.z-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.z-header-bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.z-logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--ink-900); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.z-logo:hover { color: var(--ink-900); }
.z-logo img { display: block; max-height: 40px; width: auto; }
.z-logo-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; flex-shrink: 0;
}
.z-logo-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.z-hsearch {
  flex: 1 1 auto; display: flex; align-items: stretch; max-width: 720px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.z-hsearch:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.z-hsearch-cell { position: relative; display: flex; align-items: center; min-width: 0; border-right: 1px solid var(--line); }
.z-hsearch-cell:last-of-type { border-right: 0; }
.z-hsearch-q { flex: 1 1 auto; }
.z-hsearch select, .z-hsearch input[type="search"], .z-hsearch input[type="text"] {
  height: 46px; min-height: 0; border: 0; background-color: transparent; box-shadow: none !important;
  font-size: 15px; color: var(--ink-900); padding: 0 16px; border-radius: 0;
}
.z-hsearch input[type="search"], .z-hsearch input[type="text"] { width: 100%; outline: none; }
.z-hsearch select {
  max-width: 190px; padding-right: 30px; cursor: pointer; -webkit-appearance: none; appearance: none; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398A0AC' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.z-hsearch-loc { padding-left: 14px; }
.z-hsearch-loc .ic { color: var(--ink-500); width: 17px; height: 17px; }
.z-hsearch-loc select { padding-left: 7px; max-width: 170px; }
.z-hsearch-submit {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; margin: 4px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
}
.z-hsearch-submit:hover { background: var(--accent-hover); }
.z-hsearch-submit .ic { width: 18px; height: 18px; stroke-width: 2; }

.z-header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.z-header-actions .z-btn { margin-left: 8px; }

.z-user-menu { position: relative; }
.z-user-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 6px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-700); font-size: 14px; font-weight: 600;
}
.z-user-trigger:hover { background: var(--surface); }
.z-user-trigger .ic { width: 16px; height: 16px; color: var(--ink-400); }

.z-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 250px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.z-dropdown.is-open, .z-user-menu:focus-within .z-dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.z-dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.z-dropdown-head strong { display: block; color: var(--ink-900); font-size: 15px; }
.z-dropdown-head span { font-size: 13px; color: var(--ink-500); }
.z-dropdown a, .z-dropdown button.z-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-700); font-size: 14px; font-weight: 500; text-align: left;
}
.z-dropdown a:hover { background: var(--surface); color: var(--ink-900); }
.z-dropdown a .ic { width: 18px; height: 18px; color: var(--ink-500); }
.z-dropdown hr { margin: 6px 0; }
.z-dropdown .z-danger { color: var(--red-ink); }

.z-lang { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 8px; }
.z-lang a { min-height: 32px; padding: 0 10px; width: auto; border-radius: 8px; font-size: 13px; }
.z-lang a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* mobile header */
.z-mheader { display: none; }
.z-msearch { display: none; }

/* category chips strip */
.z-catbar { border-bottom: 1px solid var(--line); background: #fff; }
.z-catbar-scroll { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.z-catbar-scroll::-webkit-scrollbar { display: none; }

/* breadcrumbs (core output: ul.breadcrumb li) */
.z-crumbs { padding: 14px 0; font-size: 13px; color: var(--ink-500); }
.z-crumbs ul.breadcrumb, .z-crumbs ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.z-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.z-crumbs a { color: var(--ink-500); }
.z-crumbs a:hover { color: var(--accent); }
.z-crumbs li:last-child, .z-crumbs li:last-child a, .z-crumbs li:last-child span { color: var(--ink-700); font-weight: 500; }
.z-crumbs .bread-arrow { display: inline-flex; color: var(--ink-300); }
.z-crumbs .bread-arrow svg { width: 14px; height: 14px; }

/* ---------- 9. Listing cards ---------- */
.z-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
.z-cards.z-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.z-card { position: relative; min-width: 0; }
.z-card-media {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-field); overflow: hidden;
  background: var(--ph);
}
.z-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.z-card:hover .z-card-media img { transform: scale(1.03); }
.z-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #B6BDC7; background: var(--ph); }
.z-noimg .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.z-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; }
.z-photo-count {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 6px; border-radius: var(--r-badge); background: rgba(15, 17, 21, .72); color: #fff;
  font-size: 11px; font-weight: 600;
}
.z-photo-count .ic { width: 12px; height: 12px; stroke-width: 2; }
.z-card-fav { position: absolute; top: 8px; right: 8px; z-index: 3; }
.z-card-fav > *, .z-card-fav a, .z-card-fav .fi_make_favorite, .z-card-fav span {
  display: inline-flex !important; align-items: center; justify-content: center;
}
.z-card-fav a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .93); color: var(--ink-600); box-shadow: var(--shadow-sm); }
.z-card-price { margin-top: 9px; font-size: 18px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.z-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--ink-700); overflow-wrap: anywhere;
}
.z-card-title:hover { color: var(--accent); }
.z-card-title::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.z-card-meta { margin-top: 6px; font-size: 12px; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.z-card-meta .z-meta-cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-card-hooks:empty { display: none; }
.z-card-hooks { position: relative; z-index: 2; font-size: 12px; }
.z-card.is-premium .z-card-media { box-shadow: 0 0 0 2px #F2DFA7; }

/* list rows */
.z-rows { border-top: 1px solid var(--line); }
.z-row {
  position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.z-row .z-card-media { width: 148px; height: 148px; aspect-ratio: auto; }
.z-row-body { min-width: 0; padding-right: 48px; display: flex; flex-direction: column; }
.z-row-price { font-size: 21px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.z-row-title { margin-top: 4px; font-size: 16px; line-height: 1.35; color: var(--ink-700); overflow-wrap: anywhere; }
.z-row-title:hover { color: var(--accent); }
.z-row-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.z-row-desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.z-row-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-500); }
.z-row-meta .z-views { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.z-row-meta .z-views .ic { width: 14px; height: 14px; }
.z-row-meta a { position: relative; z-index: 2; color: var(--ink-500); }
.z-row-meta a:hover { color: var(--accent); }
.z-row .z-card-fav { top: 14px; right: 0; left: auto; }
.z-row .z-card-fav a { background: transparent; box-shadow: none; width: 40px; height: 40px; }
.z-row.is-premium { background: linear-gradient(90deg, #FFFCF3, #fff 60%); }


/* ---------- 10. Home ---------- */
.z-hero { padding-top: 28px; }
.z-hero h1 { margin: 0 0 16px; }
.z-cattiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.z-cattile {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-field); color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.z-cattile:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); color: var(--ink-900); }
.z-cattile-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.z-cattile-ic .ic { width: 21px; height: 21px; }
.z-cattile-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.z-cattile-n { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.z-empty-block { padding: 40px 16px; text-align: center; color: var(--ink-500); border: 1px dashed var(--border); border-radius: var(--r-panel); }

.z-home-slot:empty { display: none; }
.z-home-slot { margin-top: 28px; }

/* ---------- 11. Search ---------- */
.z-search { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 32px; align-items: start; }
.z-filters-head { display: flex; align-items: center; margin-bottom: 4px; }
.z-filters-head h2 { margin: 0; font-size: 17px; }
.z-filters-head .z-link-btn { margin-left: auto; }
.z-fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
.z-fgroup:last-of-type { border-bottom: 0; }
.z-fgroup legend, .z-fgroup-title { display: block; padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
fieldset.z-fgroup { border: 0; border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
.z-subcats { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.z-subcats a { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--ink-700); }
.z-subcats a:hover, .z-subcats a.is-active { color: var(--accent); }
.z-subcats a.is-active { font-weight: 600; }
.z-subcats .n { margin-left: auto; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.z-filters .sidebar-hooks, .z-filters .z-plugin-fields { padding: 14px 0; }
.z-filters .sidebar-hooks h3, .z-filters .sidebar-hooks legend, .z-filters .sidebar-hooks .title { font-size: 14px; font-weight: 700; color: var(--ink-900); margin: 0 0 10px; }
.z-filters .sidebar-hooks .row, .z-filters .sidebar-hooks .meta, .z-filters .sidebar-hooks > div > div { margin-bottom: 12px; }
.z-filters .sidebar-hooks label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.z-filters .sidebar-hooks input[type="checkbox"] + label, .z-filters .sidebar-hooks input[type="radio"] + label { display: inline; margin-left: 6px; font-weight: 500; }
.z-fsubmit { margin-top: 8px; }
.z-auto-badge { padding: 2px 6px; border-radius: 5px; background: var(--blue-50); color: var(--blue-900); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.z-results-head h1 { margin: 0 0 6px; font-size: 24px; }
.z-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.z-toolbar .z-total { font-size: 14px; color: var(--ink-500); }
.z-toolbar .z-spacer { flex: 1 1 auto; }
.z-sort { display: flex; align-items: center; gap: 8px; }
.z-sort label { font-size: 14px; color: var(--ink-500); }
.z-sort select, select.z-pill-select {
  height: 38px; min-height: 0; padding: 0 30px 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background-color: #fff; font-size: 14px; font-weight: 600; color: var(--ink-900); width: auto; max-width: 100%; min-width: 0; text-overflow: ellipsis;
}
.z-view { display: flex; gap: 2px; }
.z-view a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink-500);
}
.z-view a.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.z-view .ic { width: 18px; height: 18px; }
.z-seller-type { margin: 12px 0 0; }
.z-active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 0; }
.z-active-filters:empty { display: none; }
.z-active-filters .z-chip .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.z-results { margin-top: 4px; }
.z-results .z-cards { margin-top: 16px; }
.z-empty { padding: 40px 18px; text-align: center; border: 1px solid var(--line); border-radius: 14px; margin-top: 16px; }
.z-empty-ic { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink-500); }
.z-empty-title { margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink-900); }
.z-empty-text { margin-top: 4px; font-size: 14px; color: var(--ink-500); }
.z-empty .z-btn { margin-top: 14px; }
.z-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.z-empty-actions .z-btn { margin-top: 0; }

.z-alert-box { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface-2); }
.z-alert-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; }
.z-alert-box p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-500); }
.z-alert-box form { display: flex; flex-wrap: wrap; gap: 8px; }
.z-alert-box form input[type="text"], .z-alert-box form input[type="email"] { flex: 1 1 220px; }
.z-alert-box .z-btn { flex: 0 0 auto; }

/* pagination (core: .paginate ul li a / span.searchPaginationSelected …) */
.z-pagination, .paginate, .pagination { margin: 28px 0; }
.z-pagination ul, .paginate ul, .pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.z-pagination a, .z-pagination span, .paginate a, .paginate span, .pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-chip); background: #fff; color: var(--ink-700);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.z-pagination a:hover, .paginate a:hover, .pagination a:hover { border-color: var(--accent); color: var(--accent); }
.z-pagination .searchPaginationSelected, .paginate .searchPaginationSelected, .pagination .searchPaginationSelected,
.z-pagination .is-current { border-color: var(--accent); background: var(--accent); color: #fff; }
.z-pagination .ellipsis, .paginate .list-dots { border: 0; min-width: 24px; color: var(--ink-400); }

/* ---------- 12. Item page ---------- */
.z-item { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.z-item-title { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.z-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 16px; font-size: 13px; color: var(--ink-500); }
.z-item-meta .ic { width: 14px; height: 14px; }
.z-item-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.z-item-block { margin-top: 32px; }
.z-item-block > h2 { margin: 0 0 12px; font-size: 20px; }
.z-item-block:empty { display: none; }

.z-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.z-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.z-gallery-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: min(480px, 60vh); overflow-y: auto; scrollbar-width: thin; }
.z-gallery-thumb {
  flex-shrink: 0; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  background: var(--ph); overflow: hidden; cursor: pointer;
}
.z-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.z-gallery-thumb.is-active { border-color: var(--accent); }
/* photo frame: 4:3 but never taller than the first screen; odd-shaped photos sit on a blurred copy of themselves */
.z-gallery-main { position: relative; aspect-ratio: 4 / 3; max-height: min(480px, 60vh); width: 100%; border-radius: var(--r-panel); background: #1d2127; overflow: hidden; }
.z-gallery-main.is-empty { aspect-ratio: auto; height: 200px; background: var(--ph); }
.z-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.z-gallery-track::-webkit-scrollbar { display: none; }
.z-gallery-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.z-gallery-slide::before { content: ""; position: absolute; inset: -24px; background: var(--zbg, none) center / cover no-repeat; filter: blur(22px) brightness(.8) saturate(1.1); }
.z-gallery-slide a { position: relative; z-index: 1; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.z-gallery-slide img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.z-gallery-slide img[data-zara-src] { visibility: hidden; } /* photo 2+ before zm.js gives it its src: blurred copy only */
.z-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-md);
  color: var(--ink-900); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.z-gallery-nav:hover { background: #fff; }
.z-gallery-nav .ic { width: 20px; height: 20px; stroke-width: 2; }
.z-gallery-prev { left: 12px; }
.z-gallery-next { right: 12px; }
.z-gallery-counter { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(15, 17, 21, .7); color: #fff; font-size: 12px; font-weight: 600; }
.z-gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.z-gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--ink-400); font-size: 14px; }
.z-gallery-empty .ic { width: 56px; height: 56px; stroke-width: 1.3; color: #B6BDC7; }

.z-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.z-spec { display: grid; grid-template-columns: 40% 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.z-spec dt { font-size: 14px; color: var(--ink-500); }
.z-spec dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-900); overflow-wrap: anywhere; }
.z-desc { max-width: 72ch; font-size: 15px; line-height: 1.65; color: var(--ink-700); overflow-wrap: anywhere; }
.z-desc img { border-radius: var(--r-field); }
.z-plugin-area:empty { display: none; }
.z-plugin-area h2, .z-plugin-area h3 { font-size: 18px; margin: 24px 0 10px; }
.z-plugin-area table { width: 100%; border-collapse: collapse; }
.z-plugin-area td, .z-plugin-area th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.z-location-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; color: var(--ink-700); }
.z-location-line .ic { color: var(--ink-500); }
.z-map { border-radius: var(--r-panel); overflow: hidden; }
.z-map:empty { display: none; }
.z-map iframe, .z-map > div { max-width: 100%; border-radius: var(--r-panel); }

.z-panel { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; background: #fff; }
.z-panel + .z-panel, .z-panel + .z-note, .z-note + .z-panel { margin-top: 12px; }
.z-price-big { font-size: 38px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.z-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.z-actions-row { display: flex; gap: 8px; }
.z-actions-row > * { flex: 1 1 auto; }
.z-actions-row > .z-btn-icon { flex: 0 0 44px; }
.z-phone-btn .z-phone-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.z-fav-slot:empty { display: none; }
.z-fav-slot a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-field); color: var(--ink-700); font-size: 14px; font-weight: 600; }
/* Favorite Items plugin forces its link to 22×22 with !important — only !important can size it back to a theme button */
.z-fav-slot .fi_make_favorite.fi_make { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100% !important; height: 44px !important; padding: 0 12px; overflow: hidden; text-align: center; }
.z-fav-slot .fi_make_favorite.fi_make span { font-size: 18px; line-height: 1; }
.z-fav-slot .fi_make_favorite.fi_make[title]::after { content: attr(title); font-family: var(--font, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-fav-slot .fi_make_favorite.fi_make:hover { background: var(--surface); }
.z-card-fav .fi_make_favorite.fi_make { width: 34px !important; height: 34px !important; }
.z-owner-tools { display: grid; gap: 8px; }
.z-owner-tools p { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-500); }

.z-seller { display: flex; align-items: center; gap: 12px; color: inherit; }
a.z-seller:hover .z-seller-name { color: var(--accent); }
.z-seller-body { min-width: 0; flex: 1 1 auto; }
.z-seller-name { display: block; font-size: 16px; font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-seller-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 12.5px; color: var(--ink-500); }
.z-seller > .ic { color: var(--ink-400); }
.z-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.z-stats.z-stats-3 { grid-template-columns: repeat(3, 1fr); }
.z-stat { padding: 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.z-stat b { display: block; font-size: 16px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.z-stat span { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-500); }
.z-verified { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: var(--blue-50); color: var(--blue-900); font-size: 12.5px; font-weight: 600; }
.z-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: var(--r-field); background: var(--amber-bg); color: var(--amber-ink); font-size: 12.5px; line-height: 1.5; }
.z-note .ic { width: 16px; height: 16px; margin-top: 1px; }
.z-report { position: relative; margin-top: 12px; }
.z-report summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; font-size: 13px; color: var(--ink-500); cursor: pointer; list-style: none; }
.z-report summary::-webkit-details-marker { display: none; }
.z-report summary:hover { color: var(--red-ink); }
.z-report-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
.z-report-list a, .z-report-list button { display: inline-flex; background: none; font: inherit; cursor: pointer; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; color: var(--ink-700); }
.z-report-list a:hover, .z-report-list button:hover { border-color: var(--red); color: var(--red-ink); }
.z-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.z-share a { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border-radius: var(--r-chip); background: var(--surface); color: var(--ink-700); font-size: 13px; font-weight: 600; }
.z-share a:hover { background: #E9EBEF; color: var(--ink-900); }
.z-expired-bar { margin: 0 0 16px; }

/* comments */
.z-comments-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.z-comments-head h2 { margin: 0; font-size: 20px; }
.z-comments-head .z-btn { margin-left: auto; }
.z-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.z-comment:first-child { border-top: 1px solid var(--line); }
.z-comment-body { min-width: 0; flex: 1; }
.z-comment-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.z-comment-head strong { color: var(--ink-900); }
.z-comment-head .muted { font-size: 12.5px; }
.z-comment-title { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.z-comment-text { margin-top: 4px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.z-comment .z-link-btn { padding-left: 0; color: var(--red-ink); }

/* mobile sticky contact bar (item page) */
.z-mbar { display: none; }

/* ---------- 13. Avatars & online status ---------- */
.z-avatar {
  position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue-50); color: var(--accent);
  font-size: 19px; font-weight: 700; line-height: 1; text-transform: uppercase;
}
.z-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.z-avatar-xs { width: 30px; height: 30px; font-size: 12px; }
.z-avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.z-avatar-lg { width: 96px; height: 96px; font-size: 34px; }
.z-avatar .z-online-dot { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; background: var(--green); }
.z-avatar-lg .z-online-dot { width: 20px; height: 20px; right: 4px; bottom: 4px; border-width: 3px; }
.z-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-500); }
.z-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); }
.z-status.is-online { color: var(--green); }
.z-status.is-online::before { background: var(--green); }

/* ---------- 14. Public profile ---------- */
.z-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; }
.z-profile-card { text-align: center; }
.z-profile-card .z-avatar { margin: 0 auto; }
.z-profile-name { margin: 12px 0 2px; font-size: 22px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.z-profile-card .z-status { justify-content: center; }
.z-profile-card .z-status::before { content: none; } /* plain "online" text, no dot (the avatar has the green dot) */
.z-profile-since { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.z-profile-card .z-stats { text-align: center; }
.z-profile-info { margin: 16px 0 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--line); }
.z-profile-info li { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.z-profile-info li span:first-child { color: var(--ink-500); }
.z-profile-info li span:last-child { color: var(--ink-900); font-weight: 500; overflow-wrap: anywhere; }
.z-profile-card .z-actions { margin-top: 16px; }
.z-profile-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.z-profile-head h1, .z-profile-head h2 { margin: 0; font-size: 22px; }
.z-profile-head .z-total { color: var(--ink-500); font-size: 14px; }
.z-profile-head .z-spacer { flex: 1; }

/* ---------- 15. Account (dashboard, items, alerts, profile forms) ---------- */
.z-account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; }
.z-account-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.z-account-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.z-account-user strong { display: block; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-account-user span { font-size: 12.5px; color: var(--ink-500); }
.z-account-nav ul, ul.user_menu { list-style: none; margin: 0; padding: 0; }
.z-account-nav li a, ul.user_menu li a {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-700); font-size: 14px; font-weight: 500;
}
.z-account-nav li a:hover, ul.user_menu li a:hover { background: var(--surface); color: var(--ink-900); }
.z-account-nav li.active a, .z-account-nav li.is-active a, ul.user_menu li.active a { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.z-account-nav li.opt_delete_account a, ul.user_menu li.opt_delete_account a, .z-account-nav li.opt_logout a { color: var(--red-ink); }
.z-account-main h1 { font-size: 24px; margin-bottom: 16px; }
.z-account-main .z-panel { margin-bottom: 16px; }
.z-account-tabs { display: none; }
.z-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.z-form-grid .z-span-2 { grid-column: 1 / -1; }
.z-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.z-my-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.z-my-item .z-card-media { width: 96px; height: 96px; aspect-ratio: auto; }
.z-my-item-title { font-size: 15px; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; }
.z-my-item-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-500); align-items: center; }
.z-my-item-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.z-my-item-price { font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }

.z-alerts-list .z-alert-item { padding: 16px; margin-bottom: 12px; }
.z-alert-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.z-alert-item-head strong { color: var(--ink-900); }

/* ---------- 16. Auth ---------- */
.z-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 32px auto 0; align-items: start; }
.z-auth.is-single { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.z-auth .z-panel { padding: 28px; }
.z-auth h1, .z-auth h2 { font-size: 22px; margin-bottom: 4px; }
.z-auth .z-sub { margin: 0 0 20px; font-size: 14px; color: var(--ink-500); }
.z-auth-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; font-size: 14px; }
.z-auth .z-check { min-height: 32px; font-size: 14px; }

/* ---------- 17. Publish / edit ---------- */
.z-publish { max-width: 820px; margin: 0 auto; padding-top: 24px; }
.z-publish-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.z-publish-head h1 { margin: 0; font-size: 26px; }
.z-publish-head .z-steps { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-500); }
.z-progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 20px; }
.z-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.z-pub-section { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-panel); margin-bottom: 16px; background: #fff; }
.z-pub-section > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; }
.z-pub-section > h2 .z-step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.z-pub-section > .z-sub { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-500); }
.z-pub-section .z-field:last-child { margin-bottom: 0; }
.z-pub-section #select_holder select, .z-pub-section .category-select select, .z-pub-section select[id^="select_"] { margin-bottom: 8px; }
.z-price-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.z-price-row input { font-variant-numeric: tabular-nums; }
.z-pub-section .title-desc-box .title, .z-pub-section .title-desc-box .description { margin-bottom: 14px; }
.z-pub-section .title-desc-box label, .z-pub-section .title-desc-box .title label, .z-pub-section .title-desc-box .description label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.z-pub-section ul.tabbernav { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
.z-pub-section ul.tabbernav li a { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-700); font-size: 13px; font-weight: 600; }
.z-pub-section ul.tabbernav li.tabberactive a { background: var(--accent); color: #fff; }
.z-pub-section .tabbertab { padding: 0; }
.z-pub-section .tabbertab h2 { display: none; }
.z-pub-section .meta_list .meta, .z-pub-section #plugin-hook .meta, .z-pub-section .plugin-hooks .meta { margin-bottom: 14px; }
.z-pub-section .meta label, .z-pub-section .plugin-hooks label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.z-pub-section .plugin-hooks:empty { display: none; }
.z-pub-actions { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; justify-content: flex-end; padding: 12px 0 16px; background: linear-gradient(transparent, #fff 30%); }
.z-pub-actions .z-btn { min-width: 180px; }

/* photos (fineuploader + legacy) */
.z-photos .qq-uploader, .z-photos .qq-uploader-selector { position: relative; min-height: 0; padding: 0; border: 0; background: none; max-height: none; overflow: visible; }
.z-photos .qq-upload-drop-area, .z-photos .qq-upload-drop-area-selector {
  position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 120px; width: 100%; margin-bottom: 12px;
  border: 2px dashed var(--border); border-radius: var(--r-panel); background: var(--surface-2); color: var(--ink-500); font-size: 14px;
}
.z-photos .qq-upload-drop-area-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.z-photos .qq-upload-button, .z-photos .qq-upload-button-selector {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-field); background: var(--accent-soft) !important; color: var(--accent-hover) !important; font-weight: 600; font-size: 15px;
  width: auto !important; border: 0 !important; box-shadow: none !important; text-shadow: none !important;
}
.z-photos .qq-upload-button:hover { background: var(--blue-100) !important; }
.z-photos .qq-upload-list, .z-photos ul.qq-upload-list-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; max-height: none; }
.z-photos .qq-upload-list li, .z-photos .qq-file-id-0, .z-photos li.qq-upload-success {
  position: relative; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-field); background: #fff; font-size: 12px; line-height: 1.3; min-height: 0; overflow: hidden;
}
.z-photos .qq-upload-list li img, .z-photos .qq-thumbnail-selector { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; max-width: none; }
.z-photos .qq-upload-file, .z-photos .qq-upload-size, .z-photos .qq-upload-spinner { display: none; }
.z-photos .qq-upload-delete, .z-photos .qq-upload-cancel, .z-photos .qq-upload-list a.delete, .z-photos .ajax_preview_img a {
  display: inline-block; margin-top: 6px; color: var(--red-ink); font-weight: 600; font-size: 12px;
}
.z-photos .qq-upload-status-text { display: block; color: var(--ink-500); }
.z-photos #restricted-fine-uploader, .z-photos .ajax_preview_img { margin-top: 10px; }
.z-photos .ajax_preview_img img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
/* Uppy gallery (Osclass 8.3 core image-uploader.css paints tiles green / red text — override to design tiles) */
.z-photos #uppy-gallery li { display: block; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: var(--r-field); background: var(--surface-2) !important; color: var(--ink-900); overflow: hidden; cursor: grab; }
.z-photos #uppy-gallery li .ajax_preview_img { display: block !important; width: 100% !important; height: auto !important; margin: 0; }
.z-photos #uppy-gallery li .ajax_preview_img img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; object-fit: contain; background: var(--ph); }
.z-photos #uppy-gallery .qq-upload-delete {
  position: absolute; top: 6px; right: 6px; z-index: 3; display: flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0;
  border-radius: 50%; background: rgba(15, 23, 42, .72); color: transparent !important; font-size: 0; overflow: hidden; text-decoration: none;
}
.z-photos #uppy-gallery .qq-upload-delete::before { content: "\00d7"; color: #fff; font-size: 20px; line-height: 1; font-weight: 400; }
.z-photos #uppy-gallery .qq-upload-delete:hover { background: var(--red-ink); }
.z-photos #uppy-gallery .qq-upload-move { top: auto !important; bottom: 6px; left: 6px !important; right: auto !important; width: 28px !important; height: 28px !important; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; border-radius: 8px; background: rgba(15, 23, 42, .6) !important; color: #fff; font-size: 13px; transform: none !important; margin: 0 !important; }
.z-photos #uppy-gallery li:first-child::after { content: attr(data-z-main); position: absolute; left: 40px; bottom: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.3; }
.z-photos #uppy-gallery li:first-child:not([data-z-main])::after { display: none; }
.z-photos #uppy-gallery li.qq-placeholder { min-height: 110px; border: 2px dashed var(--accent) !important; background: var(--accent-soft) !important; }
@media (hover: none) and (pointer: coarse) { .z-photos .qq-upload-drop-area { display: none !important; } }
.z-photos .photos_div .row, .z-photos #photos .row { margin-bottom: 8px; }
.z-photos .z-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.z-photos .z-photo-grid .z-ph { position: relative; border-radius: var(--r-field); overflow: hidden; aspect-ratio: 1; background: var(--ph); }
.z-photos .z-photo-grid .z-ph img { width: 100%; height: 100%; object-fit: cover; }
.z-photos .z-photo-grid .z-ph a { position: absolute; right: 6px; top: 6px; background: rgba(255,255,255,.95); border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: var(--red-ink); }

/* ---------- 18. Static / system pages ---------- */
.z-narrow { max-width: 820px; margin: 0 auto; padding-top: 24px; }
.z-static h1 { font-size: 28px; }
.z-static .z-desc { max-width: none; }
.z-404 { text-align: center; padding: 64px 0 32px; }
.z-404-code { font-size: 88px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--blue-100); }
.z-404 h1 { margin: 12px 0 6px; }
.z-404 p { color: var(--ink-500); }
.z-404 .z-hsearch { margin: 24px auto 0; max-width: 560px; }
.z-contact { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }

/* ---------- 19. Footer ---------- */
.z-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink-600); font-size: 14px; }
.z-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 28px; }
.z-footer h3 { margin: 0 0 12px; font-size: 14px; color: var(--ink-900); letter-spacing: 0; }
.z-footer ul { list-style: none; margin: 0; padding: 0; }
.z-footer li { margin-bottom: 8px; }
.z-footer a { color: var(--ink-600); }
.z-footer a:hover { color: var(--accent); }
.z-footer-about p { margin: 12px 0 0; max-width: 34ch; color: var(--ink-500); }
.z-footer-about p strong { color: var(--ink-900); font-weight: 600; }
.z-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 0 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-500); }
.z-footer-bottom .z-spacer { flex: 1 1 auto; }
.z-footer .mb-support-link { display: inline; }
.z-footer .mb-support-link a { color: var(--ink-500); }
.z-footer-hooks:empty, .z-widgets:empty { display: none; }

/* bottom navigation (mobile) */

/* drawer (mobile filters / menu) */
.z-drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 17, 21, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.z-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.z-drawer-close, .z-drawer-grip, .z-drawer-foot, .z-drawer-title { display: none; }
body.z-lock { overflow: hidden; }

.z-menu-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(360px, 88vw); background: #fff;
  box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.z-menu-drawer.is-open { transform: none; }
.z-menu-drawer-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.z-menu-drawer-head strong { font-size: 17px; color: var(--ink-900); }
.z-menu-drawer-head .z-icon-btn { margin-left: auto; }
.z-menu-drawer-body { flex: 1; overflow-y: auto; padding: 8px 12px 24px; }
.z-menu-drawer-body a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; border-radius: 10px; color: var(--ink-700); font-size: 15px; font-weight: 500; }
.z-menu-drawer-body a:hover { background: var(--surface); color: var(--ink-900); }
.z-menu-drawer-body a .ic { color: var(--ink-500); }
.z-menu-drawer-body h4 { margin: 16px 10px 6px; font-size: 12px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.z-menu-drawer-body hr { margin: 8px 0; }

/* ---------- 20. Popups (fancybox + iframe content item-send-friend.php) ---------- */
.fancybox-slide--iframe .fancybox-content { width: min(640px, calc(100vw - 32px)) !important; max-height: calc(100vh - 64px); border-radius: var(--r-panel); overflow: hidden; background: #fff; }
.fancybox-bg { background: #0F1115; }
.fancybox-is-open .fancybox-bg { opacity: .55; }
.quick-view .fancybox-content { width: min(960px, calc(100vw - 32px)) !important; height: min(720px, calc(100vh - 64px)) !important; }
.fancybox-button { border-radius: 50%; }

body.fw-supporting { background: #fff; padding: 0; }
.fw-supporting .z-popup { padding: 24px; }
.fw-supporting .z-popup-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.fw-supporting .z-popup-head h1, .fw-supporting .z-popup-head h2 { margin: 0; font-size: 20px; }
.fw-supporting .z-popup-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-500); }
.fw-supporting .z-popup-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-field); margin-bottom: 16px; }
.fw-supporting .z-popup-item img, .fw-supporting .z-popup-item .z-noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fw-supporting .z-popup-item b { display: block; color: var(--ink-900); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-supporting .z-popup-item span { font-size: 13px; color: var(--ink-500); }
.fw-supporting .z-field { margin-bottom: 12px; }
.fw-supporting .z-popup-actions { display: flex; gap: 8px; margin-top: 8px; }
.fw-supporting .z-popup-actions .z-btn { flex: 1; }
.fw-supporting .g-recaptcha { margin: 8px 0; max-width: 100%; overflow: hidden; }

/* ---------- 21. Banners & widgets ---------- */
.z-widgets { margin: 16px 0; }

/* old plugin-output helpers (keep plugin markup readable) */
.z-content table { max-width: 100%; }
.z-content .ui-datepicker { font-size: 13px; }
#show-email-form-content, #show-c-seller-content { display: none; }

/* ---------- 22. Utilities ---------- */
.u-mt-0 { margin-top: 0 !important; }
.u-mt-8 { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-flex { display: flex; }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-desktop { }
.u-mobile { display: none !important; }

/* ==========================================================================
   23. Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .z-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .z-cattiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .z-hsearch select { max-width: 150px; }
  .z-hsearch-loc select { max-width: 130px; }
  .z-header-actions .z-btn-label { display: none; }
  .z-header-actions .z-btn { padding: 0 12px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .z-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .z-cards.z-cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .z-cattiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .z-search { grid-template-columns: minmax(0, 1fr); }
  .z-item { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .z-profile, .z-account { grid-template-columns: minmax(0, 1fr); }
  .z-account-nav { position: static; }
  .z-account-nav ul, .z-account-nav ul.user_menu { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .z-account-nav li a, .z-account-nav ul.user_menu li a { white-space: nowrap; min-height: 38px; background: var(--surface); }
  .z-account-user { display: none; }
  .z-contact { grid-template-columns: minmax(0, 1fr); }
  .z-footer-top { grid-template-columns: 1fr 1fr; }

  /* filters become a bottom sheet */
  .z-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 88vh; display: flex; flex-direction: column;
    background: #fff; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
    transform: translateY(105%); transition: transform .28s ease; visibility: hidden;
  }
  .z-filters.is-open { transform: none; visibility: visible; }
  .z-filters form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .z-filters-scroll { overflow-y: auto; padding: 0 20px; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .z-filters .z-drawer-grip { display: block; width: 40px; height: 5px; margin: 8px auto 2px; border-radius: 99px; background: var(--border); }
  .z-filters-head { padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .z-filters .z-drawer-close { display: inline-flex; }
  .z-filters .z-fsubmit-desktop { display: none; }
  .z-filters .z-drawer-foot { display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .z-mfilter-bar { display: flex !important; }
}

@media (min-width: 1024px) {
  .z-mfilter-bar, .z-filters .z-drawer-close { display: none !important; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  body.z-has-mbar { padding-bottom: calc(var(--bottom-nav-h) + 76px + env(safe-area-inset-bottom)); }
  h1 { font-size: 22px; }
  .u-desktop { display: none !important; }
  .u-mobile { display: initial !important; }

  /* header */
  .z-header { position: sticky; }
  .z-header-bar { display: none; }
  .z-mheader { display: flex; align-items: center; gap: 8px; height: 56px; }
  .z-mheader .z-logo { font-size: 19px; gap: 7px; }
  .z-mheader .z-logo-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 17px; }
  .z-mheader .z-logo img { max-height: 32px; }
  .z-mheader .z-spacer { flex: 1; }
  .z-msearch { display: block; padding-bottom: 10px; }
  .z-msearch form { position: relative; display: flex; gap: 8px; align-items: center; }
  .z-msearch .z-msearch-field { position: relative; flex: 1; }
  .z-msearch .z-msearch-field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
  .z-msearch input[type="search"] {
    width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid transparent; border-radius: var(--r-pill);
    background: var(--surface); font-size: 16px; color: var(--ink-900); outline: none; -webkit-appearance: none;
  }
  .z-msearch input[type="search"]:focus { background: #fff; border-color: var(--accent); box-shadow: var(--focus); }
  .z-msearch .z-icon-btn { background: var(--surface); width: 46px; height: 46px; }
  .z-catbar-scroll { padding: 8px 0 10px; }

  /* cards: flat list on phones (design "Лента") */
  .z-cards, .z-cards.z-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .z-cards.z-as-list { display: block; border-top: 1px solid var(--line); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .z-cards.z-as-list .z-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 12px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
  .z-cards.z-as-list .z-card-media { width: 104px; height: 104px; aspect-ratio: auto; grid-row: 1 / span 4; }
  .z-cards.z-as-list .z-card-price { margin-top: 0; font-size: 19px; padding-right: 36px; }
  .z-cards.z-as-list .z-card-title { font-size: 15px; } /* design "Лента": title 15, meta 12.5 */
  .z-cards.z-as-list .z-card-meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; }
  .z-cards.z-as-list .z-card-fav { top: 10px; right: 10px; left: auto; }
  .z-cards.z-as-list .z-card-fav a { background: transparent; box-shadow: none; }
  .z-cards.z-as-list .z-card-badges { top: 18px; left: calc(var(--gutter) + 6px); }
  .z-cards.z-as-list .z-card-body { display: flex; flex-direction: column; min-width: 0; }
  .z-card-price { font-size: 17px; }

  .z-row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .z-row .z-card-media { width: 104px; height: 104px; }
  .z-row-body { padding-right: 36px; }
  .z-row-price { font-size: 19px; }
  .z-row-title { font-size: 15px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .z-row-desc { display: none; }
  .z-row-meta { font-size: 12.5px; padding-top: 8px; }
  .z-row-meta .z-seller-link, .z-row-meta .z-sep-seller { display: none; }
  .z-row .z-card-fav { top: 8px; }

  .z-hero { padding-top: 16px; }
  .z-cattiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .z-cattile { min-height: 56px; padding: 8px; gap: 10px; }
  .z-cattile-ic { width: 36px; height: 36px; }
  .z-section-head h2 { font-size: 19px; }

  /* search */
  .z-results-head h1 { font-size: 20px; }
  .z-toolbar { gap: 8px; }
  .z-sort label { display: none; }
  /* phones: the filter button sits next to the header search (header.php) → no second one in the toolbar;
     the count takes its own line, sort + view stay together below it */
  .z-mfilter-bar { display: none !important; }
  #search-sort .z-total { flex: 1 0 100%; }
  #search-sort .z-spacer { display: none; }

  /* item */
  .z-item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .z-item-title { font-size: 21px; }
  .z-gallery { grid-template-columns: minmax(0, 1fr); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .z-gallery-main { border-radius: 0; aspect-ratio: 4 / 3; max-height: 60vh; }
  .z-gallery-main.is-empty { height: 160px; }
  .z-gallery-thumbs { order: 2; flex-direction: row; overflow-x: auto; max-height: none; padding: 0 var(--gutter); }
  .z-gallery-thumb { width: 56px; height: 56px; }
  .z-gallery-nav { display: none; }
  .z-specs { grid-template-columns: minmax(0, 1fr); }
  .z-item-aside { margin-top: 24px; }
  .z-price-big { font-size: 30px; }
  .z-item-aside .z-actions { display: none; }
  .z-item-aside .z-actions + hr { display: none; } /* price + buttons live under the photo / in the bottom bar → no divider above the seller */
  .z-mbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 45;
    padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(16, 24, 40, .06);
  }
  .z-mbar .z-btn { flex: 1; min-height: 48px; }
  .z-mbar .z-btn-icon { flex: 0 0 48px; width: 48px; }
  .z-comments-head .z-btn { padding: 0 12px; }

  /* profile / account / auth / publish */
  .z-profile { padding-top: 16px; gap: 24px; }
  .z-auth { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .z-auth .z-panel { padding: 20px; }
  .z-form-grid { grid-template-columns: minmax(0, 1fr); }
  .z-my-item { grid-template-columns: 72px minmax(0, 1fr); }
  .z-my-item .z-card-media { width: 72px; height: 72px; }
  .z-my-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .z-publish { padding-top: 12px; }
  .z-publish-head h1 { font-size: 21px; }
  .z-pub-section { padding: 16px; border-radius: 14px; }
  .z-pub-actions { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding: 10px 0; }
  .z-pub-actions .z-btn { flex: 1; min-width: 0; }
  .z-404-code { font-size: 64px; }

  /* footer */
  .z-footer { margin-top: 32px; }
  .z-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 0 16px; }
  .z-footer-about { grid-column: 1 / -1; }


  .fw-supporting .z-popup { padding: 16px; }
}

@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .z-cards, .z-cards.z-cards-4 { grid-template-columns: minmax(0, 1fr); }
  .z-cards.z-as-list .z-card, .z-row { grid-template-columns: 88px minmax(0, 1fr); }
  .z-cards.z-as-list .z-card-media, .z-row .z-card-media { width: 88px; height: 88px; }
  .z-cattiles { grid-template-columns: minmax(0, 1fr); }
  .z-footer-top { grid-template-columns: 1fr; }
  .z-stats.z-stats-3 { grid-template-columns: repeat(2, 1fr); }
  .z-price-big { font-size: 26px; }
}

@media (min-width: 1440px) {
  .z-cards.z-cards-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

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

@media print {
  .z-header, .z-footer, .z-mbar, .z-item-aside .z-actions, .z-catbar { display: none !important; }
  body { padding: 0 !important; }
}

/* ---------- 24. Late additions: toast, footer extras ---------- */
.z-toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 24px); z-index: 200; transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px);
}
.z-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .z-toast { bottom: 32px; } }
.z-footer-sponsor { padding: 20px 0; border-top: 1px solid var(--line); }
.z-sponsors { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.z-sponsors img { height: 32px; width: auto; filter: grayscale(1); opacity: .7; }
.z-quickpub .z-input { min-height: 44px; }
.z-im-slot:empty { display: none; }
.z-im-slot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--r-pill); color: var(--ink-600); font-weight: 600; font-size: 14px; }
.z-im-slot a:hover { background: var(--surface); }
@media (max-width: 767px) {
  .z-cattile-name { font-size: 13.5px; }
  .z-cattile > span:nth-child(2) { min-width: 0; }
}
.z-comments-head { flex-wrap: wrap; }
@media (max-width: 400px) {
  .z-comments-head .z-btn { margin-left: 0; }
}

/* header menu (drawer): main navigation formerly in the mobile bottom bar */
.z-menu-drawer-body .z-menu-post { justify-content: center; margin: 8px 0 10px; min-height: 48px; color: #fff; font-weight: 600; }
.z-menu-drawer-body .z-menu-post:hover { background: var(--accent-hover); color: #fff; }
.z-menu-drawer-body .z-menu-post .ic { color: #fff; }
.z-menu-drawer-body a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.z-menu-drawer-body a[aria-current="page"] .ic { color: var(--accent); }

/* item price: right column on desktop, right under the title on phones (the sidebar copy is hidden there) */
.z-price-top { display: none; }
@media (max-width: 767px) {
  .z-price-top { display: block; margin: 14px 0 4px; }
  .z-item-aside .z-panel > .z-price-big { display: none; }
}
.z-stat-since span { margin: 0 0 2px; }

/* listing card: Avito-like hover preview (JS builds dots / "more" label; mouse devices only) */
.z-card-dots { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 3; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.z-card-dots span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 2px rgba(0, 0, 0, .35); }
.z-card-dots span.is-active { background: #fff; }
.z-card-more { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(15, 17, 21, .55); color: #fff; font-size: 15px; font-weight: 600; text-align: center; pointer-events: none; }
.z-card-media.is-more .z-card-more { display: flex; }
@media (hover: hover) and (pointer: fine) {
  .z-card-media.is-hover .z-card-dots { opacity: 1; }
  .z-card-media.is-hover .z-photo-count { opacity: 0; }
  .z-card-media[data-zara-hover] img { transform: none !important; }
}

/* compact photo uploader: no Uppy modal — one "add photos" bar + tiles (zm.js opens the native picker) */
.z-photos .qq-upload-drop-area, .z-photos .qq-upload-drop-area-selector { display: none !important; }
.z-photos #uppy-upload-button.qq-upload-button {
  display: flex !important; width: 100% !important; min-height: 56px; margin: 4px 0 0; padding: 0 16px; gap: 10px; justify-content: center; align-items: center;
  border: 1.5px dashed var(--border) !important; border-radius: var(--r-field); background: var(--surface-2) !important; color: var(--ink-700) !important;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.z-photos #uppy-upload-button.qq-upload-button:hover, .z-photos.is-drag #uppy-upload-button.qq-upload-button { border-color: var(--accent) !important; background: var(--accent-soft) !important; color: var(--accent-hover) !important; }
.z-photos #uppy-upload-button .ic { width: 20px; height: 20px; color: var(--accent); }
.z-photos #uppy-upload-button .z-up-count { padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--ink-500); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.z-photos #uppy-upload-button.is-full { display: none !important; }
.z-photos .qq-upload-list, .z-photos ul.qq-upload-list-selector { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.z-photos .qq-upload-list:empty { display: none; }
.z-photos #uppy-gallery li.z-up-pending { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; cursor: default; }
.z-photos #uppy-gallery li.z-up-pending::before { content: ""; width: 26px; height: 26px; border: 3px solid var(--blue-100); border-top-color: var(--accent); border-radius: 50%; animation: z-spin .8s linear infinite; }
@keyframes z-spin { to { transform: rotate(360deg); } }
.z-photos .qq-uploader, .z-photos .qq-uploader-selector { width: 100% !important; max-width: none !important; }
.z-photos .z-up-bar { display: flex; gap: 8px; margin-top: 4px; }
.z-photos .z-up-bar #uppy-upload-button.qq-upload-button { flex: 1 1 auto; margin: 0; }
.z-photos .z-up-bar:has(.is-full) { display: none; }
.z-photos .z-up-cam {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 18px;
  border: 1.5px dashed var(--border); border-radius: var(--r-field); background: var(--surface-2); color: var(--ink-700);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.z-photos .z-up-cam:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.z-photos .z-up-cam .ic { width: 20px; height: 20px; color: var(--accent); }
.z-up-cam.btn { display: inline-flex; align-items: center; gap: 6px; }
.z-up-cam.btn .ic { width: 16px; height: 16px; }
@media (max-width: 380px) { .z-photos .z-up-cam { padding: 0 12px; } .z-photos .z-up-bar #uppy-upload-button .z-up-count { display: none; } }
.z-avatar-actions { flex: 1 1 220px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.z-avatar-actions .btn { margin: 0 !important; min-height: 40px; padding: 0 14px; font-size: 14px; }
.z-avatar-actions .z-up-cam, .z-avatar-actions .remove-profile-picture { background: #fff !important; color: var(--ink-700) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.z-avatar-actions .z-up-cam:hover { border-color: var(--accent) !important; color: var(--accent-hover) !important; }
.z-avatar-actions .remove-profile-picture:hover { border-color: var(--red-ink) !important; color: var(--red-ink) !important; }
.z-avatar-actions .z-up-cam .ic { color: var(--accent); }
body:has(.z-pub-actions) .z-toast, body.z-has-mbar .z-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* horizontal strips: edge fade + arrow buttons appear only when there is more to scroll */
.z-hs { position: relative; min-width: 0; }
.z-hs::before, .z-hs::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 56px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.z-hs::before { left: 0; background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0)); }
.z-hs::after { right: 0; background: linear-gradient(270deg, #fff 35%, rgba(255, 255, 255, 0)); }
.z-hs.can-prev::before, .z-hs.can-next::after { opacity: 1; }
.z-hs-btn {
  position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink-700); box-shadow: 0 2px 8px rgba(16, 24, 40, .14); cursor: pointer; transform: translateY(-50%);
}
.z-hs-btn:hover { color: var(--accent); border-color: var(--accent); }
.z-hs-btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.z-hs-prev { left: 0; }
.z-hs-next { right: 0; animation: z-hs-nudge 1.2s ease-in-out 0.6s 2; }
.z-hs.can-prev .z-hs-prev, .z-hs.can-next .z-hs-next { display: flex; }
.z-account-nav .z-hs .z-hs-btn { margin-top: -2px; }
@keyframes z-hs-nudge { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(4px, -50%); } }
@media (prefers-reduced-motion: reduce) { .z-hs-next { animation: none; } }

/* home: category tile → subcategory panel under its row */
.z-cattile { position: relative; }
.z-cattile-chev { position: absolute; right: 8px; bottom: 8px; display: flex; color: var(--ink-400); transition: transform .2s, color .15s; }
.z-cattile-chev .ic { width: 16px; height: 16px; }
.z-cattile.is-open { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.z-cattile.is-open .z-cattile-chev { transform: rotate(180deg); color: var(--accent); }
.z-catblock .z-subcats { grid-column: 1 / -1; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-md); animation: z-subcats-in .18s ease-out; }
.z-catblock .z-subcats[hidden] { display: none; }
@keyframes z-subcats-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.z-subcats-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.z-subcats-close { margin-left: auto; width: 34px; height: 34px; }
.z-subcats-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.z-subcats-list a { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-800, var(--ink-900)); font-size: 14px; font-weight: 500; line-height: 1.25; transition: background .15s, color .15s; }
.z-subcats-list a:hover { background: var(--accent-soft); color: var(--accent-hover); }
.z-subcats-list a span { flex: 1; min-width: 0; }
.z-subcats-list a em { flex: 0 0 auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-500); }
@media (max-width: 767px) {
  .z-catblock .z-subcats { padding: 12px; }
  .z-subcats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z-subcats-list a { font-size: 13.5px; min-height: 44px; padding: 8px 10px; }
}
@media (max-width: 359px) { .z-subcats-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .z-subcats { animation: none; } }
.z-subcats-list a span { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.z-subcats-more { display: none; width: 100%; margin-top: 8px; min-height: 42px; border: 1px dashed var(--border); border-radius: 10px; background: #fff; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 767px) {
  .z-subcats-lv:not(.is-all) .z-subcats-list .is-extra { display: none; }
  .z-subcats-lv:not(.is-all) .z-subcats-more { display: block; }
}
/* panel levels: a subcategory with its own subcategories opens the next level in the same panel (main.php, zm.js) */
.z-subcats-lv[hidden] { display: none; }
.z-subcats-lv.is-in { animation: z-sublv-in .18s ease-out; }
.z-subcats-lv.is-in.is-back { animation-name: z-sublv-back; }
@keyframes z-sublv-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes z-sublv-back { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .z-subcats-lv.is-in { animation: none; } }
.z-subcats-list a .ic { flex: none; width: 16px; height: 16px; margin-right: -4px; color: var(--ink-400); transition: transform .15s, color .15s; }
.z-subcats-list a:hover .ic { color: var(--accent-hover); transform: translateX(2px); }
.z-subcats-back { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--ink-800, var(--ink-900)); }
.z-subcats-back:hover { background: var(--accent-soft); color: var(--accent-hover); }
.z-subcats-back .ic { width: 20px; height: 20px; }
@media (max-width: 767px) { .z-subcats-back { width: 46px; height: 46px; } }
.z-catblock .z-subcats { scroll-margin-top: 8px; }
@media (min-width: 768px) { .z-catblock .z-subcats { scroll-margin-top: calc(var(--header-h) + 12px); } }
.z-fsub[hidden] { display: none; }

/* home categories, compact modern layout: tinted icon squircle + short name; grid on desktop, 2-row swipe strip on phones */
.z-catblock .z-cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 4px 6px; }
.z-catblock .z-cattile {
  flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px; min-height: 0; padding: 10px 4px 8px;
  border: 0; border-radius: 14px; background: transparent; box-shadow: none; text-align: center; color: var(--ink-900);
}
.z-catblock .z-cattile:hover { background: var(--surface-2); box-shadow: none; transform: none; }
.z-catblock .z-cattile-ic {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 12%, #fff); color: var(--zc, #0B62E4);
  transition: transform .15s, background .15s, color .15s;
}
.z-catblock .z-cattile-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.z-catblock .z-cattile-ic .fa { font-size: 24px; }
.z-catblock .z-cattile:hover .z-cattile-ic { transform: translateY(-2px); }
.z-catblock .z-cattile-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%;
  font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: normal; word-break: normal;
}
.z-catblock .z-cattile.is-open { background: transparent; box-shadow: none; }
.z-catblock .z-cattile.is-open .z-cattile-ic { background: var(--zc, #0B62E4); color: #fff; }
.z-catblock .z-cattile.is-open .z-cattile-name { color: var(--accent); }
.z-catblock .z-subcats { grid-column: 1 / -1; }
.z-cattiles-panels:empty { display: none; }
.z-cattiles-panels .z-subcats { margin-top: 8px; }
@media (max-width: 767px) {
  .z-catblock .z-cattiles {
    grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 94px; gap: 2px 0;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
  }
  .z-catblock .z-cattiles::-webkit-scrollbar { display: none; }
  .z-catblock .z-cattile { padding: 8px 2px 6px; gap: 6px; scroll-snap-align: start; }
  .z-catblock .z-cattile-ic { width: 52px; height: 52px; border-radius: 16px; }
  .z-catblock .z-cattile-ic .ic { width: 24px; height: 24px; }
  .z-catblock .z-cattile-name { font-size: 11.5px; letter-spacing: -0.01em; overflow-wrap: normal; word-break: normal; }
}

/* messages plugin link in the header ("Сообщения 0 непрочитанные") → compact chat icon + red unread badge (zm.js) */
.z-header-actions .z-im-slot #im-link, .z-mheader .z-im-slot #im-link { position: relative; float: none; margin: 0; }
.z-header-actions .z-im-slot #im-link > a, .z-mheader .z-im-slot #im-link > a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; padding: 0;
  gap: 0; border-radius: 50%; font-size: 0; color: var(--ink-700);
}
.z-header-actions .z-im-slot #im-link > a::before, .z-mheader .z-im-slot #im-link > a::before {
  content: ""; flex: none; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8 8 0 0 1-8.6 8 9 9 0 0 1-3.3-.8L3 20.5l1.8-5.4A8 8 0 0 1 4 11.5a8 8 0 0 1 8-8 8 8 0 0 1 9 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8 8 0 0 1-8.6 8 9 9 0 0 1-3.3-.8L3 20.5l1.8-5.4A8 8 0 0 1 4 11.5a8 8 0 0 1 8-8 8 8 0 0 1 9 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.z-header-actions .z-im-slot #im-link > a:hover, .z-mheader .z-im-slot #im-link > a:hover { background: var(--surface); color: var(--accent); }
.z-im-slot #im-link .im-t-unread { display: none; margin: 0; }
.z-header-actions .z-im-slot #im-link .im-t-unread.has-unread, .z-mheader .z-im-slot #im-link .im-t-unread.has-unread {
  position: absolute; top: 3px; right: 1px; display: block; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 9px;
  background: var(--red, #DC2626); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 14px; text-align: center;
}
.z-header-actions .z-im-slot #im-thread-wrap, .z-mheader .z-im-slot #im-thread-wrap { right: 0; left: auto; top: 100%; z-index: 60; }

/* Favorite Items plugin quick messages (#fi_message) → theme toast look; top-right grey boxes covered the "Post" button */
#fi_message { top: auto; right: auto; left: 50%; bottom: calc(var(--bottom-nav-h) + 24px + env(safe-area-inset-bottom)); width: auto; max-width: calc(100vw - 32px); transform: translateX(-50%); z-index: 200; }
@media (min-width: 768px) { #fi_message { bottom: 32px; } }
body:has(.z-pub-actions) #fi_message, body.z-has-mbar #fi_message { bottom: calc(96px + env(safe-area-inset-bottom)); }
#fi_message .fi_simple { float: none; width: auto; margin: 8px 0 0; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; opacity: 1; box-shadow: var(--shadow-md, 0 8px 24px rgba(15,17,21,.18)); }
#fi_message .fi_simple a, #fi_message .fi_simple strong { color: #fff; }

/* Osclass Pay "highlight" (colour comes inline from the plugin settings) → frame the whole card instead of a flat strip under the photo */
.z-card.osp-item-is-highlight { padding: 8px; border-radius: var(--r-panel, 16px); }
.z-row.osp-item-is-highlight { border-radius: var(--r-field); padding-left: 10px; padding-right: 10px; }

/* Tablet 768–1023: header search had 3 cells + button in ~400px (labels cut, button over the region);
   listing page two columns were too narrow (specs label over value, action buttons cut) */
@media (min-width: 768px) and (max-width: 1023px) {
  .z-hsearch-submit { padding: 0 14px; }
  .z-hsearch-submit span { display: none; }
  .z-hsearch-loc select { max-width: 150px; }

  .z-item { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .z-gallery { grid-template-columns: minmax(0, 1fr); }
  .z-gallery-thumbs { order: 2; flex-direction: row; overflow-x: auto; max-height: none; }
  .z-gallery-thumb { width: 60px; height: 60px; flex: none; }
  .z-specs { grid-template-columns: minmax(0, 1fr); }
  .z-actions-row { flex-wrap: wrap; }
  .z-actions-row > .z-fav-slot { flex: 1 0 100%; }
}

/* very long unbroken search text (e.g. 120 letters) widened the page on phones via the last breadcrumb and the active-filter chip */
.z-crumbs li { min-width: 0; max-width: 100%; }
.z-crumbs li:last-child span:not(.bread-arrow) { min-width: 0; overflow-wrap: anywhere; }
.z-active-filters .z-chip { max-width: 100%; }
.z-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.z-chip .ic { flex: none; }
h1, h2, h3, .z-empty-text, .z-empty h2 { overflow-wrap: break-word; }

/* Instant Messenger counter in the account menu is position:absolute; inside the horizontally scrolling menu (phones/tablets)
   it escaped the scroller (x≈1440px) and mobile browsers zoomed the whole account area out → inline badge, hidden at 0 */
.z-account-nav li a, ul.user_menu li a { position: relative; }
.z-account-nav .im-user-account-count, ul.user_menu .im-user-account-count {
  position: static; display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 9px; background: var(--red, #DC2626); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.z-account-nav .im-user-account-count.im-count-0, ul.user_menu .im-user-account-count.im-count-0 { display: none; }

/* Favorite Items plugin: lists table (#fi_user_lists) has fixed 34px columns with long uppercase headers → scroll inside on narrow phones, theme colours */
#fi_user_lists { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#fi_user_lists .fi_list.fi_head { background: var(--surface); color: var(--ink-700); }
@media (max-width: 400px) { #fi_user_lists .fi_head > div { font-size: 10px; overflow-wrap: anywhere; } }

/* plugin back-links moved to the footer credit line (item.php → footer.php) */
.z-plugin-credits { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.z-plugin-credits > div { margin: 0; padding: 0; font-size: inherit; }
.z-plugin-credits a { color: inherit; }

/* Header search: long selected values ("Одежда, обувь аксессуары", "Khanty-Mansiyskiy…") were cut mid-word (Chrome has no ellipsis in <select>)
   → text fades out before the chevron; the chevron moves to the cell so the fade does not hide it */
.z-hsearch-loc { position: relative; }
.z-hsearch .z-hsearch-loc select {
  background-image: none; padding-right: 30px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent calc(100% - 28px));
          mask-image: linear-gradient(90deg, #000 calc(100% - 46px), transparent calc(100% - 28px));
}
.z-hsearch-loc::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398A0AC' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .z-hsearch .z-hsearch-loc select { max-width: 140px; }
  .z-hsearch-submit { padding: 0 16px; }
}

/* Search filters: category custom fields printed by the core (hook search_form: fieldset > .row > h6 + control).
   Were raw: fieldset border, 10px h6, vertical native radios separated by <br> → theme filter look, radios as pills like "Seller" */
.z-filters .sidebar-hooks fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.z-filters .sidebar-hooks .row { margin: 0 0 14px; }
.z-filters .sidebar-hooks .row:last-child { margin-bottom: 0; }
.z-filters .sidebar-hooks h6 { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-700); text-transform: none; letter-spacing: 0; }
.z-filters .sidebar-hooks .row select, .z-filters .sidebar-hooks .row input[type="text"], .z-filters .sidebar-hooks .row input[type="number"],
.z-filters .sidebar-hooks .row input[type="url"], .z-filters .sidebar-hooks .row input[type="date"], .z-filters .sidebar-hooks .row textarea { width: 100%; }
.z-filters .sidebar-hooks .row br { display: none; }
.z-filters .sidebar-hooks .row.radio, .z-filters .sidebar-hooks .row.checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.z-filters .sidebar-hooks .row.radio h6, .z-filters .sidebar-hooks .row.checkbox h6 { flex: 0 0 100%; margin-bottom: 0; }
.z-filters .sidebar-hooks .row.radio label {
  position: relative; display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 13px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-800); cursor: pointer; user-select: none;
}
.z-filters .sidebar-hooks .row.radio label input { position: absolute; opacity: 0; pointer-events: none; }
.z-filters .sidebar-hooks .row.radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.z-filters .sidebar-hooks .row.radio label:has(input:focus-visible) { box-shadow: var(--focus); }
.z-filters .sidebar-hooks .row.checkbox label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px; }
.z-filters .sidebar-hooks .row.checkbox input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.z-filters .sidebar-hooks .row.two_input, .z-filters .sidebar-hooks .row.date_interval { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.z-filters .sidebar-hooks .row.two_input h6, .z-filters .sidebar-hooks .row.date_interval h6 { grid-column: 1 / -1; margin-bottom: 0; }

/* Listing page seller card: "About me" as the seller's quote (caption + accent bar + quote mark), clamped to 4 lines, "Show more" */
.z-seller-about { position: relative; margin: 14px 0 0; padding: 10px 14px 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-field) var(--r-field) 0; background: var(--surface); }
.z-seller-about figcaption { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.z-seller-about::after { content: "\201D"; position: absolute; top: 2px; right: 12px; font: 700 34px/1 Georgia, serif; color: var(--blue-100, #D3E4FD); pointer-events: none; }
.z-seller-about blockquote { margin: 0; font-size: 14px; font-style: italic; line-height: 1.55; color: var(--ink-700); overflow-wrap: anywhere; }
.z-seller-about p { margin: 0; }
.z-seller-about.is-clamped p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.z-seller-about-more { margin: 4px 0 0 -8px; font-style: normal; }
.z-seller-about .z-seller-site { display: flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; font-style: normal; }

.z-seller-site span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-seller-site .ic { flex: none; color: var(--ink-500); }
.z-seller-about .z-seller-site.is-only { margin-top: 2px; padding-top: 0; border-top: 0; }
.z-profile-quote { margin-top: 16px; text-align: left; }

/* Android app interstitial (inc.app-promo.php; shown by zm.js on Android browsers only) */
.z-app-promo { position: fixed; inset: 0; z-index: 10000; overflow-y: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.z-app-promo[hidden] { display: none; }
.z-app-promo-inner { display: flex; flex-direction: column; align-items: center; min-height: 100%; max-width: 440px; margin: 0 auto; padding: 22px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.z-app-promo-logo { justify-content: center; pointer-events: none; }
.z-app-promo h2 { margin: 22px 0 0; font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); text-wrap: balance; }
.z-app-promo-art { position: relative; flex: 1 0 auto; width: calc(100% + 2 * var(--gutter)); min-height: 300px; max-height: 420px; margin: 20px calc(-1 * var(--gutter)) 22px; overflow: hidden; }
.z-app-promo-wave { position: absolute; left: -70%; right: -70%; top: 34%; height: 44%; background: linear-gradient(100deg, var(--blue-100), var(--accent) 70%, var(--blue-700)); border-radius: 50%; transform: rotate(-14deg); opacity: .9; }
.z-app-promo-phone {
  position: relative; width: 236px; margin: 0 auto; padding: 10px 10px 0; height: 100%; min-height: 300px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 34px 34px 0 0; background: #fff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .14); text-align: left;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
.z-app-promo-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 12px 6px; font-size: 10px; font-weight: 700; color: var(--ink-900); }
.z-app-promo-status i { width: 30px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--ink-900) 70%, var(--ink-300) 0); }
.z-app-promo-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.z-app-promo-bar .z-logo-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
.z-app-promo-bar .ic { width: 18px; height: 18px; color: var(--ink-500); }
.z-app-promo-banner { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px; border-radius: 12px; background: var(--amber-bg); }
.z-app-promo-banner b { display: block; font-size: 13px; color: var(--ink-900); }
.z-app-promo-banner small { display: block; font-size: 10px; color: var(--ink-700); }
.z-app-promo-banner .ic { flex: none; width: 34px; height: 34px; color: var(--amber); }
.z-app-promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.z-app-promo-card { overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.z-app-promo-card b { display: block; padding: 6px 8px 0; font-size: 12px; color: var(--ink-900); white-space: nowrap; }
.z-app-promo-card small { display: block; padding: 0 8px 7px; font-size: 10px; color: var(--ink-500); }
.z-app-promo-thumb { position: relative; display: grid; place-items: center; height: 78px; }
.z-app-promo-thumb > .ic { width: 38px; height: 38px; }
.z-app-promo-thumb.is-a { background: #FCE7DA; color: #B4542A; }
.z-app-promo-thumb.is-b { background: #E4E9F2; color: var(--ink-700); }
.z-app-promo-thumb.is-c { background: #DCF1E8; color: var(--green-ink); }
.z-app-promo-thumb.is-d { background: #F6DDE6; color: #A8385F; }
.z-app-promo-fav { position: absolute; top: 5px; right: 5px; color: #fff; }
.z-app-promo-fav .ic { width: 14px; height: 14px; }
.z-app-promo-get { flex: none; max-width: 360px; }
.z-app-promo-skip { flex: none; margin-top: 10px; padding: 12px 20px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--accent); cursor: pointer; }
.z-app-promo-skip:hover { color: var(--accent-hover); }
.z-app-promo-skip:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-field); }
@media (max-height: 640px) { .z-app-promo h2 { margin-top: 14px; font-size: 22px; } .z-app-promo-art { min-height: 220px; margin: 14px 0 16px; } .z-app-promo-phone { min-height: 220px; } }

/* Home subcategory panel: "All listings in «category»" as a real button + close (main.php) */
.z-subcats-head { gap: 10px; }
.z-subcats a.z-subcats-open, .z-subcats a.z-subcats-open:hover { flex: 0 1 auto; min-width: 0; min-height: 42px; padding: 8px 14px 8px 16px; gap: 8px; font-size: 15px; line-height: 1.3; color: #fff; text-align: left; white-space: normal; }
.z-subcats-open-t { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.z-subcats-open .ic { flex: none; width: 18px; height: 18px; transition: transform .15s; }
.z-subcats-open:hover .ic { transform: translateX(2px); }
.z-subcats-n { flex: none; min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.z-subcats-close { flex: none; margin-left: auto; }
@media (max-width: 767px) {
  .z-subcats a.z-subcats-open { flex: 1 1 auto; min-height: 46px; }
  .z-subcats-open-t { flex: 1; }
}

/* Listing cards: small round author avatar right after the price (inc.card.php) */
.z-price-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.z-price-line > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-price-line > span:first-child:empty { display: none; }
.z-avatar-card { width: 22px; height: 22px; font-size: 10px; font-weight: 700; letter-spacing: 0; box-shadow: 0 0 0 1px var(--line); }
.z-card-author { position: relative; z-index: 2; display: inline-flex; flex: none; border-radius: 50%; }
a.z-card-author:hover .z-avatar-card { box-shadow: 0 0 0 2px var(--accent); }
a.z-card-author:focus-visible { outline: none; box-shadow: var(--focus); }
.z-row-price .z-avatar-card { width: 24px; height: 24px; }

/* Ad slots (zara_banner(): theme settings > Banners). "Реклама" label + light frame; the slot is a full-width block
   so responsive AdSense units measure a width; unfilled AdSense units collapse the whole block. */
.z-ad { display: block; margin: 24px 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface-2); }
.z-ad-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.z-ad-slot { display: block; width: 100%; min-width: 0; overflow: hidden; text-align: center; }
.z-ad-slot > * { margin-left: auto; margin-right: auto; }
.z-ad-slot img, .z-ad-slot iframe, .z-ad-slot video { max-width: 100%; }
.z-ad-slot img { height: auto; border-radius: 10px; vertical-align: middle; }
.z-ad-slot ins.adsbygoogle { display: block; width: 100%; }
.z-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.z-ad-demo { display: grid; place-items: center; min-height: 90px; border: 1px dashed var(--border); border-radius: 10px; font-size: 13px; color: var(--ink-500); }

/* positions */
.z-ad-home_top { margin: 16px 0 8px; }
.z-ad-item_top { margin: 0 0 16px; }
.z-ad-item_description { margin: 20px 0 0; }
.z-ad-item_sidebar, .z-ad-search_sidebar { margin: 16px 0 0; }
.z-ad-search_top { margin: 16px 0 0; }
.z-list-ad { padding: 12px 0; border-bottom: 1px solid var(--line); }
.z-list-ad .z-ad { margin: 0; }
.z-grid-ad { grid-column: 1 / -1; min-width: 0; }
.z-grid-ad .z-ad { margin: 0; }
#gallery-view:has(> .z-grid-ad) { grid-auto-flow: row dense; }
@media (max-width: 767px) {
  .z-ad { margin: 20px 0; padding: 6px 8px 8px; border-radius: var(--r-field); }
}

/* Item page seller card: both stat tiles centered — big value on top, caption under it */
.z-stats-seller .z-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 10px 8px; text-align: center; }
.z-stats-seller .z-stat b { font-size: 17px; line-height: 1.25; }
.z-stats-seller .z-stat span { margin: 2px 0 0; }
.z-stats-seller .z-stat-since b { font-size: 15px; }
.z-stats-seller .z-stat-since span { margin: 0 0 2px; }

/* Item page seller card: online status above the name (stacked), type (Company / Private) below */
.z-seller-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.z-seller-top .z-seller-name { max-width: 100%; min-width: 0; }
.z-seller-top .z-status { flex: none; white-space: nowrap; font-size: 12px; line-height: 1.3; }
.z-seller-top .z-status::before { content: none; } /* plain text, no dot (the avatar already has the green online dot) */

/* TOP badge: golden pill with a star (cards, list rows, item page, cabinet). In list rows it sits on the photo,
   so the price / title are not pushed down. */
.z-badge-top {
  gap: 3px; padding: 2px 8px 2px 6px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FFC53D 0%, #F59E0B 55%, #EA7A0B 100%); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-shadow: 0 1px 1px rgba(146, 64, 14, .35);
  box-shadow: 0 1px 2px rgba(146, 64, 14, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.z-badge-top::before { content: "\2605"; font-size: 11px; line-height: 1; letter-spacing: 0; }
.z-row .z-card-badges { top: 6px; left: 6px; }
@media (max-width: 767px) {
  .z-row .z-card-badges { top: 5px; left: 5px; }
  .z-row .z-badge-top { padding: 1px 6px 1px 5px; font-size: 9.5px; }
}

/* List rows: views pinned to the far right corner (the body keeps its right padding only for the favorite star at the top);
   compact number (zara_compact_count) + nowrap/ellipsis so a big counter never leaves the card, it wraps to its own line instead */
.z-row-meta .z-views { margin-right: -48px; flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.z-row-meta .z-views .ic { flex: none; }
@media (max-width: 767px) { .z-row-meta .z-views { margin-right: -36px; } }

/* Favorite Items plugin → heart (cards + listing page button). The plugin draws a FontAwesome star in the <span>
   and toggles .is_favorite after its ajax call; zm.js adds .z-fav-busy on tap and .z-fav-pop when it becomes a favorite. */
.fi_make_favorite.fi_make { --heart: #FF3B5C; position: relative; transition: transform .15s ease, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.fi_make_favorite.fi_make span {
  position: relative; display: inline-block !important; width: 20px; height: 20px; font-size: 0 !important;
  background-color: var(--ink-700); color: transparent !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linejoin='round'%3E%3Cpath d='M12 20.3s-7.6-4.6-9.2-9.4C1.7 7.6 3.9 4.2 7.3 4.2c2 0 3.6 1.1 4.7 2.7 1.1-1.6 2.7-2.7 4.7-2.7 3.4 0 5.6 3.4 4.5 6.7-1.6 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linejoin='round'%3E%3Cpath d='M12 20.3s-7.6-4.6-9.2-9.4C1.7 7.6 3.9 4.2 7.3 4.2c2 0 3.6 1.1 4.7 2.7 1.1-1.6 2.7-2.7 4.7-2.7 3.4 0 5.6 3.4 4.5 6.7-1.6 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background-color .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.fi_make_favorite.fi_make span::before, .fi_make_favorite.fi_make span::after { content: none !important; }
.fi_make_favorite.fi_make:hover span { background-color: var(--heart); transform: scale(1.08); }
.fi_make_favorite.fi_make:active { transform: scale(.9); }
.fi_make_favorite.fi_make.is_favorite span {
  background-color: var(--heart);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2s-8.3-5-10.1-10.3C.6 7 3.2 3.2 7.2 3.2c2 0 3.7 1 4.8 2.5 1.1-1.5 2.8-2.5 4.8-2.5 4 0 6.6 3.8 5.3 7.7-1.8 5.3-10.1 10.3-10.1 10.3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2s-8.3-5-10.1-10.3C.6 7 3.2 3.2 7.2 3.2c2 0 3.7 1 4.8 2.5 1.1-1.5 2.8-2.5 4.8-2.5 4 0 6.6 3.8 5.3 7.7-1.8 5.3-10.1 10.3-10.1 10.3z'/%3E%3C/svg%3E");
}
.fi_make_favorite.fi_make.is_favorite:hover span { background-color: #E11D48; transform: none; }

/* waiting for the plugin's ajax: soft pulse */
.fi_make_favorite.fi_make.z-fav-busy span { animation: z-fav-busy .7s ease-in-out infinite; }
@keyframes z-fav-busy { 50% { transform: scale(.82); opacity: .65; } }

/* became a favorite: heart pop + ring burst */
.fi_make_favorite.fi_make.z-fav-pop span { animation: z-fav-pop .55s cubic-bezier(.2, 1.4, .4, 1); }
.z-card-fav .fi_make_favorite.fi_make.z-fav-pop::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; margin: -50% 0 0 -50%;
  border-radius: 50%; border: 2px solid var(--heart); pointer-events: none; animation: z-fav-ring .55s ease-out forwards;
}
@keyframes z-fav-pop { 0% { transform: scale(.4); } 45% { transform: scale(1.3); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes z-fav-ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

/* card button: round white chip on the photo */
.z-card-fav .fi_make_favorite.fi_make { width: 36px !important; height: 36px !important; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 3px rgba(16, 24, 40, .16); backdrop-filter: blur(4px); }
.z-card-fav .fi_make_favorite.fi_make:hover { background: #fff; box-shadow: 0 3px 10px rgba(16, 24, 40, .18); }
.z-card-fav .fi_make_favorite.fi_make.is_favorite { background: #fff; }
/* list rows / mobile list cards: bare heart next to the text */
.z-row .z-card-fav .fi_make_favorite.fi_make { background: transparent; box-shadow: none; backdrop-filter: none; }
@media (max-width: 767px) { .z-cards.z-as-list .z-card-fav .fi_make_favorite.fi_make { background: transparent; box-shadow: none; backdrop-filter: none; } }
.z-row .z-card-fav .fi_make_favorite.fi_make span { width: 22px; height: 22px; }
/* listing page button "Add to favorites" */
.z-fav-slot .fi_make_favorite.fi_make span { width: 18px; height: 18px; flex: none; }
.z-fav-slot .fi_make_favorite.fi_make.is_favorite { border-color: #FECDD3; background: #FFF1F3; color: #BE123C; }

@media (prefers-reduced-motion: reduce) {
  .fi_make_favorite.fi_make span, .fi_make_favorite.fi_make.z-fav-pop span, .fi_make_favorite.fi_make.z-fav-busy span { animation: none; transition: none; }
  .z-card-fav .fi_make_favorite.fi_make.z-fav-pop::after { content: none; }
}

/* Header favorites: red count bubble on the heart (header.php) + inline count in the menu drawer (footer.php); zm.js keeps it live */
.z-fav-link { position: relative; }
.z-fav-count {
  position: absolute; top: 3px; right: 1px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); border: 2px solid #fff; box-sizing: border-box;
  background: #FF3B5C; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none;
}
.z-fav-count[hidden] { display: none; }
.z-fav-count.is-bump { animation: z-fav-bump .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes z-fav-bump { 0% { transform: scale(.6); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.z-fav-count-inline { position: static; margin-left: auto; border: 0; min-width: 20px; height: 20px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .z-fav-count.is-bump { animation: none; } }

/* Phones: auto-hiding header like Youla (zm.js). State is in data attributes, never in classes (global .is-hidden etc.).
   The header is fixed; .z-hr-ph (height --zhr-h) keeps its place, so showing / hiding never shifts the page. */
.z-hr-ph { display: none; }
@media (max-width: 767px) {
  html[data-zhr="on"] .z-hr-ph { display: block; height: var(--zhr-h, 0px); }
  html[data-zhr="on"] .z-header {
    position: fixed; top: 0; left: 0; right: 0; transform: translate3d(0, 0, 0);
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out; will-change: transform; backface-visibility: hidden;
  }
  html[data-zhr="on"] .z-header[data-zhr-state="unpinned"] { transform: translate3d(0, -100%, 0); box-shadow: none; }
  html[data-zhr="on"] .z-header[data-zhr-scrolled="1"][data-zhr-state="pinned"] { box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
  html[data-zhr="on"] { scroll-padding-top: var(--zhr-h, 0px); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { html[data-zhr="on"] .z-header { transition: none; } }

/* Footer: "Get it on Google Play" badge (footer.php; app id from zara_android_app_id()) */
.z-gplay {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 16px 7px 12px; min-height: 48px;
  border: 1px solid #A6A6A6; border-radius: 10px; background: #000; color: #fff; line-height: 1.1; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.z-gplay:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, .2); }
.z-gplay:focus-visible { outline: none; box-shadow: var(--focus); }
.z-gplay-logo { flex: none; width: 24px; height: 26px; }
.z-gplay-text { display: flex; flex-direction: column; }
.z-footer .z-gplay-text small, .z-gplay-text small { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.z-footer .z-gplay-text b, .z-gplay-text b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: #fff; }

/* Footer link groups (footer.php .z-fcol): plain columns on desktop, accordion rows on phones (zm.js sets html[data-zf]). */
.z-fcol-btn {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-900); cursor: default; pointer-events: none;
}
.z-fcol-btn .ic { display: none; }

@media (max-width: 767px) {
  .z-footer { margin-top: 32px; }
  .z-footer-top { display: block; padding: 24px 0 0; }
  .z-footer-about { padding-bottom: 20px; }
  .z-footer-about p { max-width: none; font-size: 14px; line-height: 1.5; }
  .z-footer .z-gplay { display: flex; width: -moz-fit-content; width: fit-content; margin: 16px auto 0; } /* centered on phones */
  .z-quickpub { margin-top: 18px; }
  .z-quickpub .z-label { margin-bottom: 6px; }
  .z-quickpub .z-input, .z-quickpub .z-btn { min-height: 46px; }
  .z-quickpub .z-btn { padding: 0 18px; }

  .z-fcol { border-top: 1px solid var(--line); }
  .z-fcol:last-child { border-bottom: 1px solid var(--line); }
  .z-footer .z-fcol-h { margin: 0; }
  .z-fcol-btn {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px;
    font-size: 15px; font-weight: 600; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  }
  .z-fcol-btn .ic { display: block; width: 20px; height: 20px; color: var(--ink-400); transition: transform .2s ease; }
  .z-fcol-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .z-fcol-btn:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
  .z-fcol ul { padding: 0 0 10px; }
  .z-fcol li { margin: 0; }
  .z-fcol li a { display: block; padding: 10px 0; font-size: 15px; color: var(--ink-700); }
  html[data-zf="js"] .z-fcol:not([data-open="1"]) > ul { display: none; }

  .z-footer-sponsor { padding: 18px 0; border-top: 0; }
  .z-footer-sponsor h3 { margin-bottom: 10px; font-size: 13px; color: var(--ink-500); font-weight: 600; }
  .z-sponsors { flex-wrap: nowrap; gap: 18px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .z-sponsors::-webkit-scrollbar { display: none; }
  .z-sponsors img { flex: none; height: 22px; }

  .z-footer-bottom { flex-direction: column; justify-content: center; gap: 6px; padding: 16px 0 calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; }
  .z-footer-bottom .z-spacer { display: none; }
}

/* Listing page "More from this seller / shop" (item.php .z-cards-scroll): one horizontal scroll row with snap.
   Phones ≈2.3 cards (the cut card shows it scrolls), tablets ≈3.3, desktop 5 in a row. Arrows/fades: hsInit (.z-hs). */
.z-cards.z-cards-scroll {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.z-cards.z-cards-scroll::-webkit-scrollbar { display: none; }
.z-cards.z-cards-scroll > .z-card { flex: 0 0 calc((100% - 64px) / 5); min-width: 0; scroll-snap-align: start; }
.z-seller-items .z-hs-btn { top: 38%; }
@media (max-width: 1023px) {
  .z-cards.z-cards-scroll > .z-card { flex-basis: 30%; }
}
@media (max-width: 767px) {
  /* phones: free momentum swipe, no snapping to every card (it stopped the fling — owner, 2026-10-25, journal p.94) */
  .z-cards.z-cards-scroll { gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); scroll-snap-type: none; touch-action: pan-x pan-y; }
  .z-cards.z-cards-scroll > .z-card { flex-basis: 30%; scroll-snap-align: none; }
  .z-cards.z-cards-scroll .z-card:hover .z-card-media img { transform: none; } /* a tap must not leave the photo zoomed */
  .z-seller-items .z-hs-btn { display: none !important; } /* swipe on phones; the cut-off card and edge fade show there is more */
}
@media (max-width: 560px) { .z-cards.z-cards-scroll > .z-card { flex-basis: 42%; } } /* phones: ≈2.3 cards */
/* no white edge fade over photos in the seller row (it smeared the images); the cut-off card already shows it scrolls */
.z-seller-items .z-hs::before, .z-seller-items .z-hs::after { content: none; }

/* Listing page "Similar listings" (8 cards): desktop two rows of 4, tablets and phones one swipe row like the seller row */
.z-similar .z-hs-btn { top: 38%; }
.z-similar .z-hs::before, .z-similar .z-hs::after { content: none; }
@media (min-width: 1024px) {
  .z-similar .z-cards.z-cards-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; overflow: visible; padding-bottom: 0; }
  .z-similar .z-hs-btn { display: none !important; }
}
@media (max-width: 767px) { .z-similar .z-hs-btn { display: none !important; } }

/* Text logo in the theme style (zara_logo_html without a custom logo image): gradient rounded mark with 1–2 letter
   monogram + site name, last word in the accent colour. Sizes follow the header (desktop 36px, phone 30px). */
.z-logo { gap: 10px; font-size: 22px; letter-spacing: -0.03em; }
.z-logo-mark {
  width: 36px; height: 36px; border-radius: 10px; font-size: 20px; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(145deg, #3B92FF 0%, var(--accent) 55%, #0A4FB8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 6px rgba(11, 98, 228, .28);
}
.z-logo-mark.is-2 { font-size: 15px; letter-spacing: -0.04em; }
.z-logo-text { max-width: 240px; }
.z-logo-accent { color: var(--accent); font-weight: 700; }
@media (max-width: 767px) {
  .z-mheader .z-logo { font-size: 20px; gap: 8px; }
  .z-mheader .z-logo-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
  .z-mheader .z-logo-mark.is-2 { font-size: 13px; }
}
.z-app-promo-bar .z-logo-mark.is-2 { font-size: 10.5px; }
.z-app-promo-logo { font-size: 24px; }
/* 2026-10-14: logo without the "ДМ" mark — text only; small text logo in the phone mock-up of the app screen */
.z-app-promo-minilogo { font-size: 14px; gap: 0; letter-spacing: -0.02em; }
.z-app-promo-minilogo .z-logo-text { max-width: 150px; }

/* Category tiles without a lonely last row: desktop = 2 even rows (--zcat-cols = ceil(count / 2), main.php),
   tablet = 6 per row (auto-fill gave 8 → 17 categories left "Прочее" alone on the 3rd row) */
@media (min-width: 1024px) {
  .z-catblock .z-cattiles { grid-template-columns: repeat(var(--zcat-cols, 9), minmax(0, 1fr)); }
  .z-catblock .z-cattile-name { -webkit-line-clamp: 3; } /* narrow columns at 1024–1200px: long names wrap to a 3rd line instead of "…" */
}
@media (min-width: 768px) and (max-width: 1023px) {
  .z-catblock .z-cattiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* plugin hook wrappers in forms (anti-spam honeypot etc.): no empty gaps */
.z-form-hook:empty { display: none; }

/* Phones: no category chip strip under the search field (owner request) — categories stay in the filters and the menu */
@media (max-width: 767px) {
  .z-catbar { display: none; }
}

/* Phones: breadcrumbs in ONE line, swiped sideways with a finger (owner request); strip runs edge to edge */
@media (max-width: 767px) {
  .z-crumbs { margin: 0 calc(var(--gutter) * -1); padding: 12px 0; min-width: 0; }
  .z-crumbs ul.breadcrumb, .z-crumbs ul {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-padding: 0 var(--gutter);
  }
  .z-crumbs ul::-webkit-scrollbar { display: none; }
  .z-crumbs li { flex: 0 0 auto; max-width: none; white-space: nowrap; }
  .z-crumbs li:last-child span:not(.bread-arrow) { overflow-wrap: normal; }
  .z-crumbs ul > li:last-child { padding-right: var(--gutter); } /* room after the last crumb when scrolled to the end */
}

/* Item gallery, desktop: vertical thumbnail strip as tall as the photo, no scrollbars (they squeezed/cut the 76px thumbs),
   square rounded thumbs, dimmed until active, active = white gap + blue ring. zm.js keeps the active thumb in view. */
@media (min-width: 1024px) {
  .z-gallery { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .z-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
  .z-gallery-thumbs {
    contain: size; height: 100%; max-height: none; /* the photo sets the row height, the strip scrolls inside it */
    gap: 10px; padding: 4px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .z-gallery-thumbs::-webkit-scrollbar { display: none; }
  .z-gallery-thumb {
    width: 100%; height: auto; aspect-ratio: 1 / 1; border: 0; border-radius: 12px;
    opacity: .6; transition: opacity .15s, box-shadow .15s;
  }
  .z-gallery-thumb:hover { opacity: .9; }
  .z-gallery-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
  .z-gallery-thumb:focus-visible { outline: none; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
}

/* Item gallery, phones and tablets: the thumbnail row under the photo scrolls by swipe without a visible scrollbar */
@media (max-width: 1023px) {
  .z-gallery-thumbs { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
  .z-gallery-thumbs::-webkit-scrollbar { display: none; }
}

/* Osclass front admin toolbar (#header-admin, core functions.php osc_admin_toolbar_in_front_css): position:fixed, top:0,
   z-index 999999, 34px (46px on phones); the core only adds body margin-top, so fixed/sticky theme parts slid under it.
   Only for a logged-in admin with "admin toolbar in front" enabled — visitors never have #header-admin. */
body:has(#header-admin) { --zadm: 34px; }
body:has(#header-admin) .z-header { top: var(--zadm); }
body:has(#header-admin) .z-menu-drawer { top: var(--zadm); }
body:has(#header-admin) .z-account-nav { top: calc(var(--header-h) + 16px + var(--zadm)); }
body:has(#header-admin) .z-app-promo { top: var(--zadm); }
@media (max-width: 767px) {
  body:has(#header-admin) { --zadm: 46px; }
  html[data-zhr="on"] body:has(#header-admin) .z-header { top: var(--zadm); }
}

/* ---------- Seller awards (zara_awards_html in functions-modern.php) ----------
   Every level has its own look, not only its colour:
     bronze   — classic round medal, no ribbons;
     silver   — scalloped rosette, short ribbons;
     gold     — sunburst with sharp rays, long ribbons, twinkling sparks;
     platinum — hexagonal crystal with an iridescent running light, crown, ribbons, sparks;
     special  — round, brand blue (shop, recently active); not earned — matte grey circle, no motion.
   Core = bright gradient in the colour of the award (k-stage, k-listings…) with a white icon.
   Motion: pop-in on page load (staggered by --i), running light on the metal, halo, shine sweep, lift on hover.
   prefers-reduced-motion → static. Listing page: up to 3 chips with a mini medal of the same shape. */
@property --zspin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.z-awards { margin-top: 18px; }
.z-awards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px 4px; } /* up to 8 medals: 4–5 per row; a label word ≤ 11 letters fits without breaking */

.z-award {
  /* level metal */
  --m1: #eef0f3; --m2: #d7dbe1; --m3: #b9c0ca; --m4: #e6e9ee; --m5: #aab2bd; --rib: #cbd0d8; --glow: transparent;
  /* award colour */
  --c1: #c9ced6; --c2: #9aa3ae; --bar: linear-gradient(90deg, var(--c1), var(--c2));
  --shape: circle(50% at 50% 50%); --core-shape: circle(50% at 50% 50%); --core-inset: 5px;
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
  padding: 12px 2px 8px; border: 0; border-radius: 16px; background: none; color: var(--ink-700); font: inherit; cursor: pointer;
  transition: background .25s;
}
.z-award:hover, .z-award[aria-expanded="true"] { background: var(--surface-2); }
.z-award:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* halo behind an earned medal */
.z-award::before {
  content: ""; position: absolute; z-index: -1; top: 4px; left: 50%; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0, transparent 68%); opacity: 0; pointer-events: none;
}
.z-award:not(.is-none)::before { opacity: .9; }

.z-award-medal {
  position: relative; display: block; width: 58px; height: 58px;
  filter: drop-shadow(0 5px 7px var(--glow)) drop-shadow(0 1px 1.5px rgba(16, 24, 40, .22));
  transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), filter .35s;
}
/* the metal in the shape of the level */
.z-award-ring {
  position: absolute; inset: 0; clip-path: var(--shape);
  background: conic-gradient(from var(--zspin), var(--m1), var(--m2), var(--m3), var(--m4), var(--m5), var(--m1));
}
.z-award-ring::after { /* bevel: lighter inner edge */
  content: ""; position: absolute; inset: 2px; clip-path: var(--shape);
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%);
}
.z-award-core {
  position: absolute; inset: var(--core-inset); z-index: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  clip-path: var(--core-shape); border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, var(--c1) 0, var(--c2) 72%); color: #fff;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .2), inset 0 4px 8px rgba(255, 255, 255, .28);
}
.z-award-core .ic { position: relative; z-index: 1; width: 23px; height: 23px; stroke-width: 2; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.z-award-core::before { /* glossy dome */
  content: ""; position: absolute; top: 2px; left: 14%; width: 72%; height: 44%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none;
}
.z-award-core::after { /* light sweep */
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -70%; width: 45%; z-index: 2; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); opacity: 0; pointer-events: none;
}

/* ribbons (silver, gold, platinum, special) in the award colour */
.z-award-medal::before, .z-award-medal::after {
  content: ""; position: absolute; z-index: -1; bottom: -8px; width: 13px; height: 20px; display: none;
  background: linear-gradient(90deg, var(--c2), var(--c1) 50%, var(--c2));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}
.z-award-medal::before { left: 13px; transform: rotate(18deg); }
.z-award-medal::after { right: 13px; transform: rotate(-18deg); }

/* platinum crown */
.z-award-crown {
  position: absolute; z-index: 2; top: -11px; left: 50%; width: 22px; height: 13px; margin-left: -11px;
  background: linear-gradient(180deg, #fff7c2, #ffc83d 45%, #c98700);
  clip-path: polygon(0 100%, 0 25%, 25% 60%, 50% 0, 75% 60%, 100% 25%, 100% 100%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

.z-award-pips { display: flex; gap: 3px; height: 5px; margin-top: 11px; } /* below the ribbons */
.z-award-pips i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.z-award-pips i.on { background: var(--rib); box-shadow: 0 0 4px var(--glow); }
.z-award-pips.is-empty { visibility: hidden; }
.z-award-title { font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--ink-700); text-align: center; overflow-wrap: break-word; hyphens: manual; }
.z-award template { display: none; }

/* ---- levels: metal + shape ---- */
.is-bronze {
  --m1: #ffe3c8; --m2: #e0955a; --m3: #9c521f; --m4: #f6bd8a; --m5: #7c3a12; --rib: #d9874f; --glow: rgba(224, 149, 90, .45);
}
.is-silver {
  --m1: #ffffff; --m2: #d3d9e1; --m3: #8d97a5; --m4: #f5f7fa; --m5: #6c7582; --rib: #a6afbb; --glow: rgba(141, 151, 165, .5);
  --shape: polygon(50% 0%, 54.66% 2.73%, 58.78% 5.86%, 63.79% 4.55%, 69.13% 3.81%, 72.39% 8.11%, 75% 12.58%, 80.13% 13.28%, 85.36% 14.64%, 86.72% 19.87%, 87.42% 25%, 91.89% 27.61%, 96.19% 30.87%, 95.45% 36.21%, 94.14% 41.22%, 97.27% 45.34%, 100% 50%, 97.27% 54.66%, 94.14% 58.78%, 95.45% 63.79%, 96.19% 69.13%, 91.89% 72.39%, 87.42% 75%, 86.72% 80.13%, 85.36% 85.36%, 80.13% 86.72%, 75% 87.42%, 72.39% 91.89%, 69.13% 96.19%, 63.79% 95.45%, 58.78% 94.14%, 54.66% 97.27%, 50% 100%, 45.34% 97.27%, 41.22% 94.14%, 36.21% 95.45%, 30.87% 96.19%, 27.61% 91.89%, 25% 87.42%, 19.87% 86.72%, 14.64% 85.36%, 13.28% 80.13%, 12.58% 75%, 8.11% 72.39%, 3.81% 69.13%, 4.55% 63.79%, 5.86% 58.78%, 2.73% 54.66%, 0% 50%, 2.73% 45.34%, 5.86% 41.22%, 4.55% 36.21%, 3.81% 30.87%, 8.11% 27.61%, 12.58% 25%, 13.28% 19.87%, 14.64% 14.64%, 19.87% 13.28%, 25% 12.58%, 27.61% 8.11%, 30.87% 3.81%, 36.21% 4.55%, 41.22% 5.86%, 45.34% 2.73%);
  --core-inset: 7px;
}
.is-gold {
  --m1: #fff7cc; --m2: #ffcb3d; --m3: #c98700; --m4: #ffe89a; --m5: #a36700; --rib: #f0b12a; --glow: rgba(255, 190, 40, .65);
  --shape: polygon(50% 0%, 58% 9.79%, 69.13% 3.81%, 72.78% 15.91%, 85.36% 14.64%, 84.09% 27.22%, 96.19% 30.87%, 90.21% 42%, 100% 50%, 90.21% 58%, 96.19% 69.13%, 84.09% 72.78%, 85.36% 85.36%, 72.78% 84.09%, 69.13% 96.19%, 58% 90.21%, 50% 100%, 42% 90.21%, 30.87% 96.19%, 27.22% 84.09%, 14.64% 85.36%, 15.91% 72.78%, 3.81% 69.13%, 9.79% 58%, 0% 50%, 9.79% 42%, 3.81% 30.87%, 15.91% 27.22%, 14.64% 14.64%, 27.22% 15.91%, 30.87% 3.81%, 42% 9.79%);
  --core-inset: 9px;
}
.is-platinum {
  --m1: #f3f8ff; --m2: #9fc2ff; --m3: #6a7dff; --m4: #f0c8ff; --m5: #57d6ff; --rib: #7d8cff; --glow: rgba(120, 120, 255, .6);
  --shape: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --core-shape: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --core-inset: 6px;
}
.is-special {
  --m1: #cfe3ff; --m2: #5aa6ff; --m3: #0b62e4; --m4: #9cc8ff; --m5: #0a4fb8; --rib: #3b8cf5; --glow: rgba(11, 98, 228, .4);
}
.z-award.is-silver .z-award-medal::before, .z-award.is-silver .z-award-medal::after,
.z-award.is-special .z-award-medal::before, .z-award.is-special .z-award-medal::after { display: block; height: 15px; bottom: -5px; }
.z-award.is-gold .z-award-medal::before, .z-award.is-gold .z-award-medal::after,
.z-award.is-platinum .z-award-medal::before, .z-award.is-platinum .z-award-medal::after { display: block; }
.z-award.is-platinum .z-award-core { border-radius: 0; }
.z-award.is-gold .z-award-title, .z-award.is-platinum .z-award-title { color: var(--ink-900); }

/* ---- award colours ---- */
.k-stage    { --c1: #5ee7f5; --c2: #0891b2; }
.k-listings { --c1: #7cb6ff; --c2: #1d4ed8; }
.k-views    { --c1: #ffb35c; --c2: #e11d48; }
.k-clean    { --c1: #5eeaa8; --c2: #047857; }
.k-photo    { --c1: #ff8fd0; --c2: #be185d; }
.k-expert   { --c1: #b69cff; --c2: #6d28d9; }
.k-shop     { --c1: #97a2ff; --c2: #3730a3; }
.k-online   { --c1: #6ee7a0; --c2: #15803d; }

/* ---- not earned: matte grey circle ---- */
.z-award.is-none .z-award-medal { filter: none; }
.z-award.is-none .z-award-ring { background: linear-gradient(145deg, #f1f3f6, #d5dae1); }
.z-award.is-none .z-award-ring::after { opacity: .6; }
.z-award.is-none .z-award-core { background: radial-gradient(120% 120% at 30% 20%, #f8f9fb 0, #e3e6eb 75%); color: #a3abb6; box-shadow: inset 0 0 0 1px #d9dde3; }
.z-award.is-none .z-award-core .ic { filter: none; }
.z-award.is-none .z-award-core::before { opacity: .5; }
.z-award.is-none .z-award-title { color: var(--ink-400); font-weight: 500; }

/* ---- gold & platinum: twinkling sparks around ---- */
.z-award.is-gold::after, .z-award.is-platinum::after {
  content: ""; position: absolute; z-index: 3; top: 4px; left: 50%; width: 76px; height: 76px; margin-left: -38px; pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2.6px) 6px 12px / 12px 12px no-repeat,
    radial-gradient(circle, #fff 0 1.1px, transparent 2px) 60px 4px / 10px 10px no-repeat,
    radial-gradient(circle, #fff 0 1.3px, transparent 2.3px) 64px 52px / 11px 11px no-repeat,
    radial-gradient(circle, #fff 0 1px, transparent 1.8px) 2px 50px / 9px 9px no-repeat;
  filter: drop-shadow(0 0 3px var(--glow)); opacity: 0;
}

/* ---- details under the row ---- */
:where(.z-award-info) { --c1: #7cb6ff; --c2: var(--accent); }
.z-award-info {
  --bar: linear-gradient(90deg, var(--c1), var(--c2));
  display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); font-size: 13.5px; line-height: 1.45; text-align: left;
}
.z-award-info b { color: var(--ink-900); font-size: 14px; }
.z-award-desc, .z-award-next { color: var(--ink-500); }
.z-award-bar { position: relative; display: block; height: 8px; margin-top: 6px; border-radius: 8px; background: var(--line); overflow: hidden; }
.z-award-bar i { position: relative; display: block; height: 100%; border-radius: 8px; background: var(--bar, var(--accent)); overflow: hidden; transform-origin: left center; }
.z-award-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); }

/* ---- listing page: chips with a mini medal of the same shape ---- */
.z-award-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* defaults with zero specificity: the level (is-*) and award (k-*) classes above must win */
:where(.z-award-chip) {
  --m1: #eef0f3; --m2: #d7dbe1; --m3: #b9c0ca; --m4: #e6e9ee; --m5: #aab2bd; --c1: #c9ced6; --c2: #9aa3ae; --glow: transparent;
  --shape: circle(50% at 50% 50%); --core-shape: circle(50% at 50% 50%);
}
.z-award-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 12px 3px 3px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink-800); transition: transform .25s, box-shadow .25s;
}
.z-award-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px var(--glow), var(--shadow-sm); }
.z-award-mini {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 3px;
  clip-path: var(--shape);
  background: conic-gradient(from var(--zspin), var(--m1), var(--m2), var(--m3), var(--m4), var(--m5), var(--m1));
}
.z-award-chip.is-silver .z-award-mini { padding: 4px; }
.z-award-chip.is-gold .z-award-mini { padding: 5px; }
.z-award-mini .ic {
  width: 100%; height: 100%; padding: 3.5px; border-radius: 50%; stroke-width: 2.4; color: #fff; clip-path: var(--core-shape);
  background: radial-gradient(120% 120% at 30% 20%, var(--c1) 0, var(--c2) 75%);
}
.z-award-chip.is-platinum .z-award-mini .ic { border-radius: 0; }
.z-award-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- motion (only for visitors who did not ask the system to reduce it) ---- */
@media (prefers-reduced-motion: no-preference) {
  .z-award:not(.is-none) .z-award-ring, .z-award-chip .z-award-mini { animation: zAwardSpin 7s linear infinite; }
  .z-award.is-gold .z-award-ring, .z-award.is-platinum .z-award-ring { animation-duration: 4s; }
  .z-award:not(.is-none) { animation: zAwardPop .7s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .z-award.is-none { animation: zAwardFade .5s ease both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .z-award:not(.is-none)::before { animation: zAwardHalo 3.2s ease-in-out infinite; }
  .z-award.is-platinum::before { animation-duration: 2.4s; }
  .z-award:not(.is-none) .z-award-core::after { animation: zAwardSweep 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 400ms + 1.2s); }
  .z-award.is-gold::after, .z-award.is-platinum::after { animation: zAwardTwinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 300ms); }
  .z-award-crown { animation: zAwardCrown 3s ease-in-out infinite; }
  .z-award:not(.is-none):hover .z-award-medal { transform: translateY(-4px) scale(1.08) rotate(-4deg); filter: drop-shadow(0 9px 10px var(--glow)) drop-shadow(0 1px 1.5px rgba(16, 24, 40, .22)); }
  .z-award:not(.is-none):hover .z-award-core::after { animation: zAwardSweep .9s ease-out 1; }
  .z-award-bar i { animation: zAwardBar 1s cubic-bezier(.2, .8, .2, 1) both; }
  .z-award-bar i::after { animation: zAwardShimmer 2.2s ease-in-out 1s infinite; }
  .z-award-chip { animation: zAwardFade .5s ease both; }
  .z-award-chip:nth-child(2) { animation-delay: .08s; }
  .z-award-chip:nth-child(3) { animation-delay: .16s; }
}
@keyframes zAwardSpin { to { --zspin: 360deg; } }
@keyframes zAwardPop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes zAwardFade { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
@keyframes zAwardHalo { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes zAwardSweep { 0%, 70% { left: -70%; opacity: 0; } 72% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes zAwardTwinkle { 0%, 100% { opacity: 0; transform: scale(.8) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(8deg); } 60% { opacity: .2; } }
@keyframes zAwardCrown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes zAwardBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes zAwardShimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Share sheet (zm.js shareSheet: browsers without the system share dialog) ---------- */
.z-share-wrap { position: fixed; inset: 0; z-index: 10001; }
.z-share-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); opacity: 0; transition: opacity .2s; }
.z-share-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(16, 24, 40, .18);
  transform: translateY(100%); transition: transform .2s ease;
}
.z-share-wrap.is-open .z-share-backdrop { opacity: 1; }
.z-share-wrap.is-open .z-share-sheet { transform: none; }
.z-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.z-share-head strong { font-size: 17px; color: var(--ink-900); }
.z-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; }
.z-share-app { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 11.5px; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.25; color: var(--ink-700); text-align: center; cursor: pointer; }
.z-share-app > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 18px; }
.z-share-app > span .ic { width: 24px; height: 24px; }
.z-share-app:hover > span, .z-share-app:focus-visible > span { filter: brightness(1.08); box-shadow: 0 0 0 3px var(--blue-100); }
.z-share-app.is-tg > span { background: #229ED9; }
.z-share-app.is-wa > span { background: #25D366; }
.z-share-app.is-vb > span { background: #7360F2; }
.z-share-app.is-vk > span { background: #0077FF; }
.z-share-app.is-ok > span { background: #EE8208; }
.z-share-app.is-fb > span { background: #1877F2; font-size: 26px; font-family: Arial, sans-serif; }
.z-share-app.is-copy > span { background: var(--surface-2); color: var(--ink-700); }
@media (min-width: 768px) {
  .z-share-sheet { top: 50%; bottom: auto; border-radius: 18px; padding-bottom: 20px; transform: translateY(-40%); opacity: 0; transition: transform .2s ease, opacity .2s; }
  .z-share-wrap.is-open .z-share-sheet { transform: translateY(-50%); opacity: 1; }
}

/* ---------- Public profile: seller listings search in one row (user-public-profile.php .z-pp-search) ---------- */
.z-pp-search { flex-wrap: nowrap; gap: 8px; }
.z-pp-q { position: relative; flex: 1 1 auto; min-width: 0; }
.z-pp-q input[type="search"] { width: 100%; height: 40px; min-height: 40px; padding: 0 44px 0 14px; border-radius: var(--r-pill); }
.z-pp-search .z-pp-q button.z-pp-go {
  position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 34px; height: 34px;
  min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
}
.z-pp-search .z-pp-go .ic { width: 17px; height: 17px; }
.z-pp-search .z-pp-q button.z-pp-go:hover { filter: brightness(1.08); }
.z-pp-sel { position: relative; flex: 0 1 auto; min-width: 0; }
.z-pp-sel > .ic { display: none; }
.z-pp-sel select.z-pill-select { height: 40px; max-width: 240px; }
@media (max-width: 767px) {
  .z-pp-sel { flex: 0 0 40px; width: 40px; height: 40px; }
  .z-pp-sel > .ic {
    display: block; position: absolute; top: 50%; left: 50%; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px;
    color: var(--ink-700); pointer-events: none; z-index: 1;
  }
  /* the select covers the round button: invisible, but a tap opens the phone's own list */
  .z-pp-sel select.z-pill-select {
    position: absolute; inset: 0; width: 40px; max-width: none; height: 40px; padding: 0; border-radius: 50%;
    color: transparent; font-size: 16px; -webkit-appearance: none; appearance: none; background-image: none; cursor: pointer;
  }
  .z-pp-sel select.z-pill-select option { color: var(--ink-900); }
  .z-pp-sel.is-on select.z-pill-select { border-color: var(--accent); background-color: var(--accent-soft); }
  .z-pp-sel.is-on > .ic { color: var(--accent); }
  .z-pp-sel.is-on::after { content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--accent); z-index: 2; }
}

/* ---------- Seller awards on the listing page (zara_awards_html 'strip'): earned medals, as on the profile, smaller ---------- */
.z-awards-strip { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.z-awards-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-500); }
.z-awards-head b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; letter-spacing: 0; }
.z-awards-head a { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent); white-space: nowrap; }
.z-awards-head a:hover { text-decoration: underline; }
.z-awards-strip .z-awards-row { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 4px 2px; }
.z-awards-strip .z-award { padding: 10px 1px 6px; }
.z-awards-strip .z-award-medal { zoom: .8; }
.z-awards-strip .z-award::before, .z-awards-strip .z-award::after { zoom: .8; }
.z-awards-strip .z-award-pips { margin-top: 9px; }
.z-awards-strip .z-award-title { font-size: 10.5px; }
.z-awards-strip .z-award-info { margin-top: 8px; font-size: 13px; }

/* ---------- Awards on phones: one row, swiped sideways (profile and listing page) ----------
   ~4.4 medals in view (the cut one hints that the row scrolls), snap to a medal, no scrollbar, right edge fades out.
   Top padding keeps the crown, halo and pop-in inside the scroll box. */
@media (max-width: 767px) {
  .z-awards-row, .z-awards-strip .z-awards-row {
    display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 4px;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .z-awards-row::-webkit-scrollbar { display: none; }
  .z-awards-row > .z-award { flex: 0 0 calc((100% - 16px) / 4.4); min-width: 64px; scroll-snap-align: start; }
  .z-awards-row.is-end { -webkit-mask-image: none; mask-image: none; } /* scrolled to the end (zm.js) */
}

/* ---------- Listing page: calm awards (the listing is what the page is about) ----------
   Small medals in one row, no labels / level dots, no motion at all (no halo, running light, sparks, pop-in);
   name in the tooltip, tap → the same details panel. The public profile keeps the full, animated look. */
.z-awards-strip .z-awards-row,
.z-awards-strip .z-awards-row.is-end { display: flex; flex-wrap: wrap; gap: 2px; overflow: visible; padding: 2px 0 0; -webkit-mask-image: none; mask-image: none; }
.z-awards-strip .z-awards-row > .z-award { flex: 0 0 auto; min-width: 0; padding: 4px 2px 8px; border-radius: 10px; }
.z-awards-strip .z-award-medal { zoom: .55; filter: drop-shadow(0 1px 1.5px rgba(16, 24, 40, .2)); }
.z-awards-strip .z-award-title, .z-awards-strip .z-award-pips { display: none; }
.z-awards-strip .z-award::before, .z-awards-strip .z-award::after, .z-awards-strip .z-award-core::after { display: none; }
.z-awards-strip .z-award, .z-awards-strip .z-award *, .z-awards-strip .z-award *::before, .z-awards-strip .z-award *::after { animation: none !important; }
.z-awards-strip .z-award:hover .z-award-medal { transform: translateY(-2px); filter: drop-shadow(0 3px 4px rgba(16, 24, 40, .22)); }
.z-awards-strip .z-award:hover, .z-awards-strip .z-award[aria-expanded="true"] { background: var(--surface-2); }
.z-awards-strip .z-award[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--line); }
.z-awards-strip { margin-top: 12px; padding-top: 10px; }
.z-awards-strip .z-awards-head { margin-bottom: 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--ink-500); }
.z-awards-strip .z-awards-head b { min-width: 16px; height: 16px; background: var(--surface-2); color: var(--ink-500); font-weight: 600; }
.z-awards-strip .z-awards-head a { font-size: 12px; font-weight: 500; }

/* ---------- Listing page: awards in the site's own style (not the profile medals) ----------
   Round badges like the site's icon buttons: light surface, thin border, calm dark icon; the level is only a thin
   ring in a muted metal tone (special = brand blue). No metal, ribbons, crown or bright fill. */
.z-awards-strip { --tier: var(--line); }
.z-awards-strip .is-bronze   { --tier: #d6a47e; }
.z-awards-strip .is-silver   { --tier: #b3bcc8; }
.z-awards-strip .is-gold     { --tier: #e2b440; }
.z-awards-strip .is-platinum { --tier: #9aa6f5; }
.z-awards-strip .is-special  { --tier: var(--accent); }
.z-awards-strip .z-awards-row { gap: 6px; }
.z-awards-strip .z-awards-row > .z-award { padding: 0; border-radius: 50%; background: none; box-shadow: none; }
.z-awards-strip .z-award-medal { zoom: 1; width: 34px; height: 34px; filter: none; transition: transform .2s; }
.z-awards-strip .z-award-ring, .z-awards-strip .z-award-crown,
.z-awards-strip .z-award-medal::before, .z-awards-strip .z-award-medal::after, .z-awards-strip .z-award-core::before { display: none; }
.z-awards-strip .z-award-core {
  inset: 0; clip-path: none; border-radius: 50%; background: var(--surface-2); color: var(--ink-700);
  box-shadow: inset 0 0 0 2px var(--tier); transition: background .2s, color .2s;
}
.z-awards-strip .z-award-core .ic { width: 17px; height: 17px; stroke-width: 1.9; filter: none; }
.z-awards-strip .z-award:hover .z-award-medal { transform: translateY(-1px); filter: none; }
.z-awards-strip .z-award:hover .z-award-core { background: #fff; color: var(--ink-900); }
.z-awards-strip .z-award:hover, .z-awards-strip .z-award[aria-expanded="true"] { background: none; box-shadow: none; }
.z-awards-strip .z-award[aria-expanded="true"] .z-award-core { background: var(--accent-soft); color: var(--accent); }
.z-awards-strip .z-award:focus-visible { outline-offset: 1px; }
.z-awards-strip .z-award-info { --bar: var(--accent); }
/* the same divider under the awards when "About me" follows (as the one between the seller stats and the awards) */
.z-awards-strip:has(+ .z-seller-about) { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.z-awards-strip + .z-seller-about { margin-top: 12px; }

/* ---------- Listing page: awards, refined (replaces the flat site-style badges above) ----------
   The first award (clean reputation / highest level) is a white pill with a mini medal and its name;
   the others are small real medals: static metal ring in the level's shape, white glossy core, icon in the
   award colour. No motion, no glow — a soft shadow only. Tap → the same details panel. */
.z-awards-strip .z-awards-row { gap: 6px; align-items: center; }
.z-awards-strip .z-awards-row > .z-award { flex-direction: row; gap: 7px; padding: 0; border-radius: 999px; background: none; box-shadow: none; }
.z-awards-strip .z-awards-row > .z-award:first-child {
  padding: 3px 12px 3px 3px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.z-awards-strip .z-awards-row > .z-award:first-child .z-award-title {
  display: block; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--ink-800); text-align: left; white-space: nowrap;
}
.z-awards-strip .z-award-medal { width: 28px; height: 28px; zoom: 1; filter: drop-shadow(0 1px 1.5px rgba(16, 24, 40, .2)); transition: transform .2s; }
.z-awards-strip .z-award-ring { display: block; }
.z-awards-strip .z-award-ring::after { inset: 1px; }
.z-awards-strip .z-award-core {
  inset: 3px; clip-path: var(--core-shape); border-radius: 50%; color: var(--c2);
  background: #fff; background: radial-gradient(120% 120% at 30% 22%, #fff 0, color-mix(in srgb, var(--c1) 22%, #fff) 80%);
  box-shadow: inset 0 0 0 .5px rgba(16, 24, 40, .08), inset 0 -2px 3px rgba(16, 24, 40, .06);
}
.z-awards-strip .is-silver .z-award-core { inset: 4px; }
.z-awards-strip .is-gold .z-award-core { inset: 5px; }
.z-awards-strip .is-platinum .z-award-core { inset: 2.5px; border-radius: 0; }
.z-awards-strip .z-award-core .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.z-awards-strip .is-gold .z-award-core .ic { width: 12px; height: 12px; }
.z-awards-strip .z-award:hover .z-award-medal { transform: translateY(-1px); filter: drop-shadow(0 2px 3px rgba(16, 24, 40, .22)); }
.z-awards-strip .z-award:hover .z-award-core { background: #fff; color: var(--c2); }
.z-awards-strip .z-awards-row > .z-award:first-child:hover { border-color: var(--border); box-shadow: 0 2px 6px rgba(16, 24, 40, .08); }
.z-awards-strip .z-award[aria-expanded="true"] .z-award-core { background: #fff; color: var(--c2); }
.z-awards-strip .z-awards-row > .z-award[aria-expanded="true"] .z-award-medal { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 50%; }
.z-awards-strip .z-awards-row > .z-award:first-child[aria-expanded="true"] { border-color: var(--accent); }
.z-awards-strip .z-awards-row > .z-award:first-child[aria-expanded="true"] .z-award-medal { outline: 0; }
/* no ribbons at this size (the level rules above are more specific → .z-award in the selector) */
.z-awards-strip .z-award .z-award-medal::after { display: none; }
/* the other medals: an overlapping stack (like avatar groups) on a white disc → all in one line next to the pill */
.z-awards-strip .z-awards-row { gap: 0; flex-wrap: nowrap; }
.z-awards-strip .z-awards-row > .z-award:first-child { margin-right: 8px; padding-right: 11px; }
.z-awards-strip .z-awards-row > .z-award:first-child .z-award-title { font-size: 12px; }
.z-awards-strip .z-awards-row > .z-award:not(:first-child) { position: relative; z-index: calc(20 - var(--i, 0)); margin-left: -8px; }
.z-awards-strip .z-awards-row > .z-award:nth-child(2) { margin-left: 0; }
.z-awards-strip .z-awards-row > .z-award:not(:first-child):hover { z-index: 30; }
.z-awards-strip .z-award .z-award-medal::before {
  display: block; left: -2px; right: -2px; top: -2px; bottom: -2px; width: auto; height: auto; z-index: -1;
  border-radius: 50%; background: #fff; clip-path: none; transform: none;
}
/* fit: stack medals 26px with a deeper overlap; the pill gives way (its name gets "…"), medals always stay visible */
.z-awards-strip .z-awards-row, .z-awards-strip .z-awards-row.is-end { flex-wrap: nowrap; }
.z-awards-strip .z-awards-row > .z-award:first-child { flex: 0 1 auto; min-width: 0; }
.z-awards-strip .z-awards-row > .z-award:first-child .z-award-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.z-awards-strip .z-awards-row > .z-award:not(:first-child) { flex: none; margin-left: -11px; }
.z-awards-strip .z-awards-row > .z-award:nth-child(2) { margin-left: 0; }
.z-awards-strip .z-awards-row > .z-award:not(:first-child) .z-award-medal { width: 26px; height: 26px; }

/* Footer: social profiles (footer.php .z-social, links in zara_social_links()).
   Calm white tiles with the brand-coloured glyph; hover fills the tile with the brand colour. */
.z-social { margin-top: 18px; }
.z-social-h { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-900); }
.z-social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.z-footer a.z-social-a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--b, var(--ink-900));
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.z-social-a svg { width: 20px; height: 20px; fill: currentColor; }
.z-social-a.is-instagram { --b: #e4405f; }
.z-social-a.is-telegram { --b: #26a5e4; }
.z-social-a.is-tiktok { --b: #111111; }
.z-social-a.is-vk { --b: #0077ff; }
.z-footer a.z-social-a:hover, .z-footer a.z-social-a:focus-visible {
  background: var(--b); border-color: transparent; color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 16px -6px var(--b); outline: none;
}
.z-footer a.z-social-a.is-instagram:hover, .z-footer a.z-social-a.is-instagram:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.z-footer a.z-social-a.is-tiktok:hover svg, .z-footer a.z-social-a.is-tiktok:focus-visible svg { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
@media (max-width: 767px) {
  .z-social { margin-top: 18px; text-align: center; }
  .z-social-list { justify-content: center; gap: 12px; }
  .z-footer a.z-social-a { width: 46px; height: 46px; border-radius: 14px; }
  .z-social-a svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .z-footer a.z-social-a { transition: none; } .z-footer a.z-social-a:hover { transform: none; } }

/* Listing price in other currencies (PMR rouble / $ / € / lei at the PMR Republican Bank rate), under .z-price-big */
.z-fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--ink-600); overflow-wrap: normal; }
.z-fx-v { padding: 4px 9px; border-radius: var(--r-chip); background: var(--surface); white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-fx-note { flex-basis: 100%; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-400); }
@media (max-width: 767px) {
  .z-fx { margin-top: 10px; font-size: 13.5px; }
}

/* ---------- TOP strip: premium listings in one row (zara_top_strip, functions-modern.php; motion — zm.js "TOP strip") ----------
   Tile width = strip width / --top-k (the fraction shows a part of the next card → "there is more").
   Few listings: they stand in a row and the "Your listing here" tile takes the rest of the width.
   More than fit: zm.js adds .is-loop → endless row, one card every few seconds, arrows, pause, position bar. */
.z-top {
  --top-gap: 14px; --top-pad: 4px;
  position: relative; margin: 16px 0 20px; padding: 16px 16px 14px; border-radius: 20px;
  background: linear-gradient(135deg, #FFF3D6 0%, #FFF9EA 42%, #FFFDF8 100%);
  border: 1px solid #F1DEAE;
  box-shadow: 0 1px 2px rgba(146, 64, 14, .05), 0 10px 28px -16px rgba(146, 64, 14, .28);
  container-type: inline-size; overflow: hidden;
}
.z-top::before { /* soft golden glow in the corner */
  content: ""; position: absolute; top: -90px; right: -60px; width: 260px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 197, 61, .28), rgba(255, 197, 61, 0)); pointer-events: none;
}
.z-top-home { margin: 0; }
.z-top-head { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.z-top-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #FFC53D 0%, #F59E0B 55%, #EA7A0B 100%);
  box-shadow: 0 3px 8px -2px rgba(234, 122, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.z-top-mark .ic { width: 18px; height: 18px; stroke-width: 2; }
.z-top-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.z-top-ctrl { display: none; align-items: center; gap: 6px; margin-left: auto; }
.z-top.is-loop .z-top-ctrl { display: flex; }
.z-top-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid #EDD9A3; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink-700); cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.z-top-btn:hover { color: #B45309; border-color: #F0BF5C; box-shadow: 0 3px 10px -2px rgba(180, 83, 9, .25); }
.z-top-btn:active { transform: scale(.94); }
.z-top-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .35); }
.z-top-btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.z-top-pause .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.z-top-pause .z-top-i-play { display: none; }
.z-top.is-user-paused .z-top-pause .z-top-i-pause { display: none; }
.z-top.is-user-paused .z-top-pause .z-top-i-play { display: block; stroke-width: 2.2; }
.z-top.is-reduced .z-top-pause { display: none; }

.z-top-track {
  --top-k: 2.2;
  position: relative; display: flex; gap: var(--top-gap);
  margin: -6px calc(-1 * var(--top-pad)) -8px; padding: 6px var(--top-pad) 12px; /* room for the card shadow and lift */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--top-pad); scrollbar-width: none;
}
.z-top-track::-webkit-scrollbar { display: none; }
.z-top-track > * { flex: 0 0 calc((100% - (var(--top-k) - 1) * var(--top-gap)) / var(--top-k)); min-width: 0; scroll-snap-align: start; }
@container (min-width: 500px) { .z-top-track { --top-k: 3.25; } }
@container (min-width: 700px) { .z-top-track { --top-k: 4.25; } }
@container (min-width: 1000px) { .z-top-track { --top-k: 5.25; } }
@supports not (container-type: inline-size) {
  @media (min-width: 768px) { .z-top-track { --top-k: 4.25; } }
}

/* cards inside the strip: white tiles on the golden panel (Osclass Pay "highlight" colour does not apply here) */
.z-top .z-card {
  padding: 8px 8px 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 16px -8px rgba(146, 64, 14, .22);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}
.z-top .z-card.osp-item-is-highlight { padding: 8px 8px 12px; background: #fff !important; }
.z-top .z-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 28px -12px rgba(146, 64, 14, .38); }
.z-top .z-card.is-premium .z-card-media { border-radius: 11px; box-shadow: none; }
.z-top .z-card-badges { top: 14px; left: 14px; }
.z-top .z-card-fav { top: 14px; right: 14px; }
.z-top .z-card-body { padding: 0 3px; }
.z-top .z-card-price { font-size: 17px; }

/* "Your listing here" → Osclass Pay promotion; grows over the free width when the row is not full */
.z-top-track > .z-top-cta { flex-grow: 1; }
.z-top-cta {
  display: flex; container-type: inline-size; border-radius: 16px; text-decoration: none; color: var(--ink-700);
  border: 1.5px dashed #E8C267; background: rgba(255, 255, 255, .55);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.z-top-cta:hover { background: #fff; border-color: #F59E0B; box-shadow: 0 10px 24px -14px rgba(146, 64, 14, .4); color: var(--ink-700); }
.z-top-cta-in { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; width: 100%; padding: 18px 16px; }
.z-top-cta-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, #FFC53D 0%, #F59E0B 55%, #EA7A0B 100%); box-shadow: 0 6px 14px -6px rgba(234, 122, 11, .7);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1.4);
}
.z-top-cta:hover .z-top-cta-ic { transform: rotate(-8deg) scale(1.06); }
.z-top-cta-ic .ic { width: 22px; height: 22px; stroke-width: 2; }
.z-top-cta-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.z-top-cta-t { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.z-top-cta-s { font-size: 13px; line-height: 1.4; color: var(--ink-500); }
.z-top-cta-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #B45309; white-space: nowrap; }
.z-top-cta-go .ic { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s; }
.z-top-cta:hover .z-top-cta-go .ic { transform: translateX(3px); }
@container (min-width: 420px) {
  .z-top-cta-in { flex-direction: row; align-items: center; gap: 16px; padding: 18px 22px; }
  .z-top-cta-txt { flex: 1; }
  .z-top-cta-t { font-size: 17px; }
  .z-top-cta-go { padding: 10px 16px; border-radius: var(--r-pill); background: linear-gradient(135deg, #FFC53D 0%, #F59E0B 60%, #EA7A0B 100%); color: #fff; box-shadow: 0 6px 14px -6px rgba(234, 122, 11, .7); }
}

/* position of the visible part in the row (endless row only) */
.z-top-bar { display: none; position: relative; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(217, 119, 6, .14); overflow: hidden; }
.z-top.is-loop .z-top-bar { display: block; }
.z-top-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, #FFC53D, #EA7A0B); will-change: transform; }

/* phones: the strip goes edge to edge, cards snap under the thumb, no arrow buttons (swipe) */
@media (max-width: 767px) {
  .z-top { --top-gap: 12px; --top-pad: var(--gutter); margin: 12px calc(-1 * var(--gutter)) 16px; padding: 14px 0 12px; border-radius: 0; border-left: 0; border-right: 0; }
  .z-top-home { margin-top: 0; margin-bottom: 0; }
  .z-top-head { padding: 0 var(--gutter); margin-bottom: 10px; }
  .z-top-title { font-size: 18px; }
  .z-top-mark { width: 28px; height: 28px; border-radius: 9px; }
  .z-top-mark .ic { width: 16px; height: 16px; }
  /* free momentum swipe on phones (no snapping to every card: it stopped the fling — owner, 2026-10-25, journal p.93);
     the script still moves the row card by card on its own */
  .z-top-track { margin-left: 0; margin-right: 0; scroll-snap-type: none; touch-action: pan-x pan-y; }
  .z-top-track > * { scroll-snap-align: none; }
  .z-top-prev, .z-top-next { display: none; }
  .z-top-btn { width: 32px; height: 32px; }
  .z-top-bar { margin: 8px var(--gutter) 0; }
  .z-top .z-card { padding: 6px 6px 10px; border-radius: 14px; }
  .z-top .z-card-badges { top: 11px; left: 11px; }
  .z-top .z-card-fav { top: 11px; right: 11px; }
  .z-top .z-card-price { font-size: 15px; } /* "Договорная" + avatar fit the narrower strip card */
  .z-top .z-card:hover { transform: none; } /* a tap must not leave the card «lifted» */
}
@media (prefers-reduced-motion: reduce) {
  .z-top .z-card, .z-top-cta, .z-top-cta-ic, .z-top-btn { transition: none; }
  .z-top .z-card:hover { transform: none; }
}

/* Search filters, live refresh (zm.js): new category parameters / total are loading */
.z-filters .sidebar-hooks[hidden] { display: none; }
.z-filters .sidebar-hooks.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }
.z-filters [data-zara-ftotal].is-loading { opacity: .8; cursor: progress; }

/* ---------- Osclass 8.4: reports (report.php, item.php, public profile) ---------- */
.z-report-page h1 { margin: 0 0 6px; font-size: 24px; }
.z-report-target { margin: 0 0 20px; font-size: 14px; color: var(--ink-500); overflow-wrap: anywhere; }
.z-report-target a { font-weight: 600; }
.z-report-specs { margin: 0 0 4px; }
.z-report-specs .z-spec { grid-template-columns: 30% 1fr; }
.z-report-h2 { margin: 24px 0 8px; font-size: 18px; }
.z-report-thread .z-comment.is-admin .z-comment-head strong { color: var(--accent); }
.z-report-reply { margin-top: 20px; }
.z-report-note { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r-field); background: var(--surface-2); font-size: 14px; color: var(--ink-600); }
.z-report-aside h2 { margin: 0 0 10px; font-size: 17px; }
.z-report-steps { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-600); }
.z-report-steps li + li { margin-top: 6px; }
.z-report-aside p { font-size: 14px; line-height: 1.5; }
.z-report-login { flex-basis: 100%; margin: 0 0 2px; font-size: 13px; color: var(--ink-500); }
.z-report-list a .ic { width: 16px; height: 16px; margin-right: 6px; }
.z-report-user { color: var(--ink-500); }
.z-report-user:hover { color: var(--red-ink); }

/* ---------- Osclass 8.4: listing statistics in "My listings" (core user-stats.css, printed with the chart) ----------
   Zara has no dark theme → the core dark-mode colours are overridden (selectors are more specific than the core ones). */
.z-content .osc-stats { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; color: var(--ink-900); }
.z-content .osc-stats-kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.z-content .osc-stats-kpi { padding: 10px 12px; border: 0; border-radius: var(--r-field); background: var(--surface-2); }
.z-content .osc-stats-kpi-label { font-size: 12.5px; color: var(--ink-500); }
.z-content .osc-stats-kpi-value { font-size: 22px; font-weight: 600; color: var(--ink-900); }
.z-content .osc-stats .alert-frequency.stats-actions { gap: 6px; margin: 0 0 12px; }
.z-content .osc-stats .alert-frequency.stats-actions > button,
.z-content .osc-stats .alert-frequency.stats-actions > a { flex: 0 0 auto; margin: 0; padding: 0 14px; min-height: 34px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink-700); font-size: 13.5px; line-height: 32px; }
.z-content .osc-stats .alert-frequency.stats-actions > button:hover,
.z-content .osc-stats .alert-frequency.stats-actions > a:hover { background: var(--surface); }
.z-content .osc-stats .alert-frequency.stats-actions > button.active,
.z-content .osc-stats .alert-frequency.stats-actions > a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.z-content .osc-stats-chart { padding: 6px 4px 2px; border: 0; background: transparent; }
.z-content .osc-stats-axis { fill: var(--ink-500); }
.z-content .osc-stats-grid { stroke: var(--line); }
.z-content .osc-stats-legend { padding: 6px 4px 0; font-size: 12.5px; color: var(--ink-600); }
.z-content .osc-stats-empty { color: var(--ink-500); }
.z-content .osc-stats-tooltip { color: var(--ink-900); background: #fff; border-color: var(--border); box-shadow: var(--shadow-md); }
.z-content .osc-stats-table th, .z-content .osc-stats-table td { border-top-color: var(--line); }
.z-content .osc-stats-inline { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-500); }
@media (max-width: 560px) {
  .z-content .osc-stats { padding: 12px; }
  .z-content .osc-stats-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .z-content .osc-stats-kpi { padding: 8px 10px; }
  .z-content .osc-stats-kpi-label { font-size: 11.5px; line-height: 1.25; }
  .z-content .osc-stats-kpi-value { font-size: 18px; }
  .z-content .osc-stats .alert-frequency.stats-actions { flex-wrap: nowrap; gap: 4px; }
  .z-content .osc-stats .alert-frequency.stats-actions > button,
  .z-content .osc-stats .alert-frequency.stats-actions > a { flex: 1 1 auto; padding: 0 6px; font-size: 12.5px; white-space: nowrap; }
}
/* listing page: statistics for the owner (item_top), folded */
.z-item-stats { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.z-item-stats > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-900); cursor: pointer; list-style: none; }
.z-item-stats > summary::-webkit-details-marker { display: none; }
.z-item-stats > summary .muted { margin-left: auto; font-size: 12.5px; font-weight: 400; }
.z-item-stats[open] > summary { border-bottom: 1px solid var(--line); }
.z-content .z-item-stats .osc-stats { margin: 0; border: 0; border-radius: 0; }

/* Footer: "We accept payment" strip (footer.php .z-pay, under phone/e-mail in the "Account" column). Desktop only.
   Official logos (SVG / 128px PNG, transparent) on white tiles. */
.z-pay { margin-top: 20px; }
.z-pay-h { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.z-pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.z-pay-i { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); }
.z-pay-i img { display: block; width: 40px; height: 40px; object-fit: contain; }
.z-pay-i.is-tile img { width: 34px; height: 34px; }
@media (max-width: 767px) { .z-pay { display: none; } }

/* Account: "profile is not complete" notice on top of every section (functions-modern.php zara_profile_notice()). */
.z-profile-notice { align-items: center; flex-wrap: wrap; margin: 0 0 20px; padding-right: 14px; }
.z-profile-notice > .ic { margin-top: 0; flex: none; }
.z-profile-notice-text { flex: 1 1 260px; min-width: 0; }
.z-profile-notice-text strong { font-weight: 700; }
.z-profile-notice .z-btn { flex: none; margin-left: auto; }
@media (max-width: 767px) {
  .z-profile-notice { margin-bottom: 16px; }
  .z-profile-notice-text { flex-basis: calc(100% - 30px); }
  .z-profile-notice .z-btn { width: 100%; margin-left: 0; }
}

/* Full-width buttons (.z-btn-block: profile card, listing sidebar…) never run out of their box: a label longer than the
   button wraps onto a second line instead of overflowing (all .z-btn are nowrap). 2026-10-14 */
.z-btn-block { white-space: normal; text-align: center; line-height: 1.3; padding-top: 8px; padding-bottom: 8px; overflow-wrap: anywhere; }
.z-btn-block > .ic, .z-btn-block > svg { flex: none; }

/* Sign in with Google (plugin google_login) / Facebook above the e-mail forms — user-register.php, zara_oauth_buttons().
   Google branding: white button, multicolour G on the left, dark text. 2026-10-15 */
.z-oauth { display: grid; gap: 10px; }
.z-oauth .fb-box { margin: 0; }
.z-oauth-btn { gap: 12px; }
.z-oauth-btn .z-oauth-logo { width: 20px; height: 20px; flex: none; }
.z-oauth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--ink-500); }
.z-oauth-or::before, .z-oauth-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }
.z-oauth-or span { flex: none; }

/* messages plugin link in the mobile menu (footer.php drawer, im_messages()) had no icon and the header pill look
   (owner, 2026-10-21) → same row as the other drawer items: chat icon (same shape as i-chat) + red unread badge (zm.js) */
.z-menu-drawer-body .z-im-slot { display: block; }
.z-menu-drawer-body .z-im-slot #im-link { position: static; float: none; width: auto; margin: 0; }
.z-menu-drawer-body .z-im-slot #im-link > a, .z-menu-drawer-body .z-im-slot > a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; border-radius: 10px;
  background: none; color: var(--ink-700); font-size: 15px; font-weight: 500;
}
.z-menu-drawer-body .z-im-slot #im-link > a:hover, .z-menu-drawer-body .z-im-slot > a:hover { background: var(--surface); color: var(--ink-900); }
.z-menu-drawer-body .z-im-slot #im-link > a::before, .z-menu-drawer-body .z-im-slot > a::before {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--ink-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8 8 0 0 1-8.6 8 9 9 0 0 1-3.3-.8L3 20.5l1.8-5.4A8 8 0 0 1 4 11.5a8 8 0 0 1 8-8 8 8 0 0 1 9 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8 8 0 0 1-8.6 8 9 9 0 0 1-3.3-.8L3 20.5l1.8-5.4A8 8 0 0 1 4 11.5a8 8 0 0 1 8-8 8 8 0 0 1 9 8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.z-menu-drawer-body .z-im-slot #im-link .im-t-unread.has-unread {
  display: inline-flex; align-items: center; justify-content: center; margin: 0 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: #FF3B5C; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}

/* ---------- Osclass Pay: "Promote listing" block on the publish / edit form (#osp-promos) ----------
   Plugin markup floats (#osp-promos, .osp-block, .osp-line are float:left) and its widths are percent-based
   (.osp-options 65–90% by media query) → the block used to fall out of the "Additional details" card,
   the sticky "Publish" button sat on top of it and the footer overlapped it. Here: contain floats,
   full width, theme look (white card, line separators, round icons, chips), two columns of options on phones.
   Only CSS; the plugin's JS (collapse rows, prices by location, "More info") keeps working.
   The same look is used on the plugin page "Listing promotion" (.osp-body-itempay, /payments/itempay/{id}). */
.z-pub-section .plugin-hooks { display: flow-root; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos { float: none; clear: both; width: 100%; margin: 14px 0 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos:first-child { margin-top: 4px; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-promo-head { width: auto; padding: 0 0 10px; border-radius: 0; background: none; color: var(--ink-900); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-head-top { gap: 10px; color: var(--ink-900); font-size: 13px; line-height: 1.3; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-head-top > span { font-size: 15px; font-weight: 600; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-visbl-label { margin: 0; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink-600); font-size: 12px; font-weight: 600; }

:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-item-promos { float: none; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; overflow: hidden; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-promos { float: none; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options-wrap { float: none; width: 100%; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options { display: flow-root; position: static; float: none; width: 100% !important; max-width: none; margin: 0; padding: 0 16px; border: 0; border-radius: 0; box-shadow: none; background: #fff; color: var(--ink-900); font-family: var(--font); }

/* one promotion = header row (icon, name + description, caret) + its options */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row { float: none; position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 0; margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-900); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options > .osp-o-row:first-child { border-top: 0; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > i, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > svg { flex: 0 0 36px; float: none; width: 36px; height: 36px; margin: 0; border: 0; border-radius: 50%; box-shadow: none; font-size: 16px; line-height: 36px; text-align: center; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > svg { padding: 9px; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row .osp-o-title-box { flex: 1 1 auto; min-width: 0; max-width: none; gap: 3px; overflow-wrap: anywhere; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row .osp-o-title-box > span { font-size: 13.5px; line-height: 1.45; color: var(--ink-500); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row .osp-o-title-box a, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row a.osp-show-pinfo { color: var(--accent); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
/* collapsible rows: caret button sits in its own column, never under text */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-o-row { padding-right: 44px; margin: 0; cursor: pointer; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-o-row::after { top: 50%; right: 0; width: 32px; height: 32px; margin-top: -16px; border-radius: var(--r-chip); background: var(--surface); color: var(--ink-500); font-size: 16px; line-height: 32px; transition: background .15s, color .15s; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-o-row:hover::after { background: var(--accent-soft); color: var(--accent); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-o-row.osp-opened::after { background: var(--accent-soft); color: var(--accent); }

/* options of a promotion (periods / prices) */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block { float: none; width: auto; margin: 0 -8px 0 0; padding: 0 0 14px 48px; border: 0; font-size: 14px; line-height: 1.4; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-block { margin-top: 0; margin-bottom: 0; padding-bottom: 14px; border: 0; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block::after { content: ""; display: table; clear: both; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-small-title { width: auto; margin: 0 0 8px; padding: 0; border-radius: 0; background: none; color: var(--ink-500); font-size: 12.5px; font-weight: 600; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-small-title { display: block; } /* inline-block let the floated options jump up beside it */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-paid-label, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-free-msg { float: none; display: inline-block; margin: 0 0 10px; padding: 4px 10px; border: 0; border-radius: var(--r-badge); background: var(--green-bg); color: var(--green-ink); font-size: 12.5px; font-weight: 600; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-line { float: left; width: 33.333%; margin: 0 0 8px; padding: 0 8px 0 0; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block[data-type="101"] .osp-line, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block[data-type="501"] .osp-line, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block[data-type="801"] .osp-line { width: 100%; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label { display: block; width: 100%; margin: 0; padding: 0; font-weight: 500; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px 10px 42px !important; border: 1px solid var(--border); border-radius: var(--r-field); background: #fff; color: var(--ink-700); font-size: 14px; line-height: 1.35; transition: border-color .15s, background .15s; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div:hover { border-color: var(--ink-300); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div::before, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div:hover::before { top: 50%; left: 12px; width: 20px; height: 20px; margin-top: -10px; border: 1.5px solid var(--ink-300); border-radius: 6px; background: #fff; box-shadow: none; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div::after, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div:hover::after { top: 50%; left: 12px; width: 20px; height: 20px; margin-top: -10px; line-height: 20px; font-size: 12px; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > input[type="checkbox"]:checked + div { border-color: var(--accent); background: var(--accent-soft); color: var(--ink-900); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > input[type="checkbox"]:checked + div::before { border-color: var(--accent); background: var(--accent); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > input[type="checkbox"]:focus-visible + div { box-shadow: var(--focus); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div > em { margin-left: auto; color: var(--ink-900); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div > .osp-opt-fee-repeat { color: var(--ink-900); font-weight: 700; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div > b { margin: 0; padding: 1px 6px; border-radius: var(--r-badge); background: var(--ink-900); font-size: 12px; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block select { width: 100%; max-width: 100%; }

/* "More info" text */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-pinfo { float: none; width: auto; margin: 0 0 14px 48px; padding: 10px 12px 10px 38px; border: 0; border-radius: var(--r-field); background: var(--amber-bg); color: var(--amber-ink); font-size: 13.5px; font-style: normal; line-height: 1.45; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-pinfo[style*="inline"] { display: block !important; } /* plugin shows it with display:inline */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-pinfo::before { left: 12px; font-size: 18px; color: rgba(138, 91, 16, .45); }

/* cart buttons (when the plugin prints them) */
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line { flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-item-to-cart, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-view-cart { min-height: 44px; padding: 10px 16px; border-radius: var(--r-field); font-size: 14px; }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-item-to-cart { background: var(--accent); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-item-to-cart:not(.osp-in-cart):not(.osp-disabled):not(.osp-failed):not(.osp-loading):not(.osp-notin-cart):hover { background: var(--accent-hover); }
:is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-view-cart { background: var(--surface); color: var(--ink-700); }

/* the older publish form of the plugin (.osp-promote-form) — same containment */
.z-pub-section .osp-promote-form { float: none; display: block; }
.z-pub-section .osp-promote-form .osp-pb-line { border-radius: var(--r-field); }

@media (max-width: 767px) {
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options { padding: 0 12px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row { gap: 10px; padding: 12px 0; font-size: 14.5px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-options.osp-boxes-collapsed > .osp-o-row { padding-right: 40px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > i, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > svg { flex-basis: 32px; width: 32px; height: 32px; font-size: 14px; line-height: 32px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row > svg { padding: 8px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row .osp-o-title-box > span, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-o-row .osp-o-title-box a { font-size: 13px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block { padding-left: 0; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block { margin-right: -6px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-line { width: 50%; padding: 0 6px 0 0; margin-bottom: 6px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 8px 10px 8px 38px !important; font-size: 13.5px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div::before, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div:hover::before, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div::after, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div:hover::after { left: 10px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-block label > div > em { margin-left: 0; font-size: 13.5px; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-pinfo { margin-left: 0; }
  :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-item-to-cart, :is(.z-pub-section, .osp-body-itempay) #osp-promos .osp-b-line a.osp-view-cart { flex: 1 1 100%; margin: 0; justify-content: center; }
  .z-pub-section .osp-promote-form .osp-pb-line .osp-text, .z-pub-section .osp-promote-form .osp-pb-line .osp-select { float: none; width: 100%; }
  .z-pub-section .osp-promote-form .osp-pb-line .osp-select { padding: 0 10px 10px 60px; }
}

/* ---------- Osclass Pay: owner's "Promote listing" card (listing page) and button (My listings) ----------
   Printed by the theme (zara_promo_card / zara_promo_pills in functions-modern.php) only when the plugin is on
   and sells at least one service; the button opens the plugin page "Listing promotion" (/payments/itempay/{id}).
   With the card on the page the plugin's own wide box ("Promote your item", hook from its settings) is hidden. */
#body-item.z-promo-own #osp-promos { display: none !important; }

.z-promo-card {
  display: grid; gap: 12px; padding: 14px; border: 1px solid #F1E2B8; border-radius: 14px;
  background: linear-gradient(160deg, #FFF7E2 0%, #FFFCF4 45%, #FFFFFF 100%);
}
.z-promo-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.z-promo-mark {
  flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FFC53D 0%, #F59E0B 55%, #EA7A0B 100%); color: #fff;
  box-shadow: 0 2px 6px rgba(146, 64, 14, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.z-promo-mark .ic { width: 20px; height: 20px; }
.z-promo-text { min-width: 0; }
.z-promo-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.z-promo-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-500); }
.z-promo-btn { min-height: 46px; }
.z-promo-btn span { overflow: hidden; text-overflow: ellipsis; }

.z-promo-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.z-promo-pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid #F1E2B8; border-radius: var(--r-pill);
  background: #fff; font-size: 12.5px; line-height: 1.35; color: var(--ink-500); white-space: nowrap;
}
.z-promo-pill b { font-weight: 600; color: var(--prem-ink); }
.z-promo-pill.is-201 b::before { content: "\2605"; margin-right: 4px; color: #F59E0B; }       /* Premium */
.z-promo-pill.is-401 b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 5px 1px 0; border-radius: 50%; background: #F59E0B; } /* colour highlight */
.z-promo-pill.is-601 b::before { content: "\21BB"; margin-right: 4px; color: #F59E0B; }       /* auto bump */

/* listing page: right column on computers, under the price on phones (the sidebar drops below the comments there) */
.z-owner-tools.has-promo .z-promo-card { margin-bottom: 8px; }
.z-promo-main { display: none; }
@media (max-width: 767px) {
  .z-promo-main { display: grid; margin: 12px 0 4px; }
  .z-promo-aside { display: none; }
  .z-owner-tools.has-promo .z-promo-card { margin-bottom: 0; }
}

/* My listings: pills under the status badges, "Promote" first in the actions */
.z-promo-pills.is-row { margin-top: 8px; }
.z-promo-btn-sm .ic { width: 16px; height: 16px; }

/* ---------- Osclass Pay page "Listing promotion" (/payments/itempay/{id}) — where the "Promote" buttons lead ----------
   Plugin markup, theme look: the list of services is always open (no "≡" button, no "click to see services" line),
   the order and the payment choice below it as theme cards. Only CSS — the plugin's form, cart and payment JS are untouched. */
body#body-custom .z-plugin-area .osp-body.osp-body-itempay { display: block; max-width: 860px; margin: 8px auto 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--ink-900); font-family: var(--font); } /* plugin: body#body-custom .osp-body.osp-body-itempay = boxed inline-block */
.osp-body-itempay .osp-manage-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; margin: 0 0 18px; padding: 0; border: 0; }
.osp-body-itempay .osp-manage-top .osp-h1 { grid-column: 1; margin: 0; padding: 0; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.osp-body-itempay .osp-manage-top .osp-h2 { grid-column: 1; margin: 0; padding: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-500); }
.osp-body-itempay .osp-manage-top .osp-top-button {
  grid-column: 2; grid-row: 1 / span 2; position: static; float: none; display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto;
  min-height: 40px; margin: 0; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-field); background: #fff; color: var(--ink-900);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: none; text-decoration: none;
}
.osp-body-itempay .osp-manage-top .osp-top-button:hover { background: var(--surface-2); border-color: var(--ink-300); color: var(--ink-900); }
.osp-body-itempay .osp-manage-top .osp-top-button::before, .osp-body-itempay .osp-manage-top .osp-top-button::after { content: none; display: none; }
.osp-body-itempay .osp-manage-top .osp-top-button i { order: -1; position: static; width: auto; height: auto; margin: 0; padding: 0; background: none; color: var(--ink-500); font-size: 14px; line-height: 1; }

/* services: always open */
.osp-body-itempay #osp-promos { margin-top: 0; }
.osp-body-itempay #osp-promos .osp-promo-head { display: none; }
.osp-body-itempay #osp-promos .osp-options { display: block !important; padding-bottom: 0; }
.osp-body-itempay #osp-promos .osp-promo-btn { display: none !important; }
.osp-body-itempay #osp-promos .osp-promos { display: block; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.osp-body-itempay #osp-promos .osp-promos:has(.osp-elem.osp-empty) { display: none; }   /* nothing bought yet → no "not promoted" line */
.osp-body-itempay #osp-promos .osp-elems { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 0; }
.osp-body-itempay #osp-promos .osp-elem { float: none; width: auto; margin: 0; border-radius: var(--r-pill); }
.osp-body-itempay #osp-promos .osp-elem.osp-empty { border-radius: 0; color: var(--ink-500); font-style: normal; }
.osp-body-itempay #osp-promos .osp-b-line { display: flex; justify-content: flex-end; }
.osp-body-itempay #osp-promos .osp-b-line a.osp-item-to-cart { display: inline-flex; align-items: center; justify-content: center; border: 0; color: #fff; font-weight: 600; }

/* order */
.osp-body-itempay .osp-checkout-head { margin: 26px 0 10px; padding: 0; border: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink-900); }
.osp-body-itempay .osp-cart { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.osp-body-itempay .osp-cart-head-row .qty, .osp-body-itempay .osp-cart-row .qty { white-space: nowrap; }
.osp-body-itempay .osp-cart-head-row { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-500); font-size: 12.5px; font-weight: 600; }
.osp-body-itempay .osp-cart-row { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-900); }
.osp-body-itempay .osp-cart-head-row + .osp-cart-row { border-top: 0; }
.osp-body-itempay .osp-cart-row .p1 { border-radius: var(--r-badge); font-weight: 600; }
.osp-body-itempay .osp-cart-row .p2 { color: var(--ink-900); }
.osp-body-itempay .osp-cart-row .p2 a { color: var(--accent); text-decoration: none; }
.osp-body-itempay .osp-cart-row .p3 { color: var(--ink-500); }
.osp-body-itempay .osp-cart-row .delt a { color: var(--red); }
.osp-body-itempay .osp-cart-row.osp-cart-total { background: var(--surface-2); font-weight: 700; }
.osp-body-itempay .osp-cart-row.osp-cart-total .pric span { padding: 4px 10px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent-hover); font-size: 15px; }
.osp-body-itempay .osp-cart-row.osp-cart-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 14px; background: #fff; color: var(--ink-500); font-size: 14px; }
.osp-body-itempay .osp-cart-row.osp-cart-empty i { font-size: 16px; color: var(--ink-400); }

/* payment */
.osp-body-itempay .osp-pay-button { margin: 22px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.osp-body-itempay .osp-pay-button > label { margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink-900); }
.osp-body-itempay .osp-pay-button .osp-chk-pay-btn { border-radius: var(--r-field); }
.osp-body-itempay .osp-pay-button a.osp-submit-payment { border-radius: var(--r-field); background: var(--accent); }
.osp-body-itempay .osp-pay-button a.osp-submit-payment:hover { background: var(--accent-hover); }

@media (max-width: 767px) {
  .osp-body-itempay .osp-manage-top { grid-template-columns: minmax(0, 1fr); }
  .osp-body-itempay .osp-manage-top .osp-h1 { font-size: 19px; }
  .osp-body-itempay .osp-manage-top .osp-top-button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .osp-body-itempay #osp-promos .osp-b-line a.osp-item-to-cart { width: 100%; }
  .osp-body-itempay .osp-pay-button { padding: 12px; }
}

/* ---------- Publish: "characters left" counter right of the Title / Description label (log p.85) ---------- */
.z-pub-section .title-desc-box .z-count-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.z-pub-section .title-desc-box .z-count-row label { margin-bottom: 0; }
.z-charcount {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 24px; padding: 2px 10px 2px 8px;
  border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-hover); box-shadow: inset 0 0 0 1px var(--blue-100);
  font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.z-charcount::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.z-charcount.is-low { background: var(--amber-bg); color: var(--amber-ink); box-shadow: inset 0 0 0 1px #F8DDB4; }
.z-charcount.is-out { background: var(--red-bg); color: var(--red-ink); box-shadow: inset 0 0 0 1px #F9C9C5; }
.z-charcount.is-out::before { opacity: .9; }
.z-charcount.is-below { margin-top: 6px; }

/* Search filters: "Listing number" — field + "Find" in one row (search.php, form #z-idform) */
.z-fid-row { display: flex; gap: 8px; align-items: stretch; }
.z-fid-row input { flex: 1 1 auto; min-width: 0; }
.z-fid-row .z-btn { flex: 0 0 auto; min-height: 46px; padding: 0 16px; }

/* ==========================================================================
   Home categories (owner's choice 2026-10-24, journal p.89; zm.js «home categories»)
   Computers — «вариант 7»: cards 6 per row; a coloured panel opens right under the card's row, deeper levels inside it.
   Phones — cards of «7Б» (big tinted cards in two sideways rows) + the same panel as a bottom sheet («8Б», owner 2026-10-25).
   --zc = category colour (s_color or zara_category_tint); tints are mixed with white (fallback: light grey).
   ========================================================================== */
.z-c7 { position: relative; }
.z-c7-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.z-c7-card {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 84px; padding: 0 10px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink-900); text-decoration: none;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease, background .16s ease;
}
.z-c7-card:hover { color: var(--ink-900); box-shadow: 0 8px 20px rgba(16, 24, 40, .10); transform: translateY(-2px); }
.z-c7-card:focus-visible { outline: 2px solid var(--zc, var(--accent)); outline-offset: 2px; }
.z-c7-deco { display: none; }
.z-c7-ic {
  flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 15px;
  background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 12%, #fff); color: var(--zc, #0B62E4);
  transition: background .16s ease;
}
.z-c7-ic .ic { width: 26px; height: 26px; stroke-width: 1.7; }
.z-c7-ic .fa { font-size: 24px; }
.z-c7-txt { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.z-c7-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--ink-900); overflow-wrap: normal; word-break: normal;
}
.z-c7-hint { display: block; font-size: 12px; line-height: 1.35; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-c7-card.is-open { border-color: var(--zc, var(--accent)); background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 11%, #fff); box-shadow: inset 0 0 0 1px var(--zc, var(--accent)); transform: none; }
.z-c7-card.is-open .z-c7-ic { background: #fff; }
.z-c7-card.is-all { border-color: var(--accent); background: var(--accent); }
.z-c7-card.is-all:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.z-c7-card.is-all .z-c7-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.z-c7-card.is-all .z-c7-name { color: #fff; }
.z-c7-card.is-all .z-c7-hint { color: var(--blue-100); }
.z-c7-progress { display: none; }

/* the panel under the row */
.z-c7-drawer {
  grid-column: 1 / -1; position: relative; margin: 2px 0 4px; padding: 20px 24px 22px; border-radius: 24px;
  background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 11%, #fff);
  animation: z-c7-open .22s ease-out;
}
@keyframes z-c7-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.z-c7-arrow { position: absolute; top: -7px; left: 40px; width: 16px; height: 16px; border-radius: 3px; background: inherit; transform: rotate(45deg); transition: left .2s ease, opacity .15s; }
.z-c7-lv.is-in { animation: z-c7-lv .2s ease-out; }
.z-c7-lv.is-in.is-back { animation-name: z-c7-lv-back; }
@keyframes z-c7-lv { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes z-c7-lv-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.z-c7-dhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.z-c7-back, .z-c7-close {
  flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink-800, var(--ink-900)); cursor: pointer; transition: background .15s, color .15s;
}
.z-c7-close { background: rgba(255, 255, 255, .7); }
.z-c7-back:hover, .z-c7-close:hover { background: #fff; color: var(--accent); }
.z-c7-back .ic, .z-c7-close .ic { width: 19px; height: 19px; }
.z-c7-dic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--zc, var(--accent)); }
.z-c7-dic .ic { width: 24px; height: 24px; stroke-width: 1.7; }
.z-c7-dtitle { min-width: 0; display: flex; flex-direction: column; }
.z-c7-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--ink-600); }
.z-c7-crumbs button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.z-c7-crumbs button:hover { color: var(--accent); text-decoration: underline; }
.z-c7-dname { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink-900); overflow-wrap: anywhere; }
.z-c7-dname:hover { color: var(--ink-900); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.z-c7-dall {
  flex: none; display: flex; align-items: center; gap: 8px; height: 42px; margin-left: auto; padding: 0 16px; border-radius: 12px;
  background: #fff; color: var(--ink-900); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, box-shadow .15s;
}
.z-c7-dall:hover { color: var(--accent); box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.z-c7-dall .n { color: var(--ink-500); font-weight: 500; }
.z-c7-dall .ic { width: 16px; height: 16px; }
.z-c7-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.z-c7-item {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 12px 0 16px; border-radius: 16px; background: #fff; color: var(--ink-900);
  transition: transform .15s ease, box-shadow .15s ease;
}
.z-c7-item:hover { color: var(--ink-900); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .10); }
.z-c7-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.z-c7-item .n { font-size: 14.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-c7-item .s { font-size: 12.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-c7-go { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--surface); color: var(--ink-500); }
.z-c7-item.has-sub .z-c7-go { background: color-mix(in srgb, var(--zc, #0B62E4) 14%, #fff); color: var(--zc, var(--accent)); }
.z-c7-go .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.z-c7-lv:not(.is-all) .z-c7-items .is-extra { display: none; }
.z-c7-more {
  display: block; width: 100%; height: 44px; margin-top: 10px; border: 1px dashed rgba(15, 17, 21, .18); border-radius: 14px;
  background: rgba(255, 255, 255, .6); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.z-c7-more:hover { background: #fff; }
@media (max-width: 1199px) {
  .z-c7-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .z-c7-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .z-c7-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .z-c7-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .z-c7-dall .n { display: none; }
}

/* phones: big cards in two sideways rows */
@media (max-width: 767px) {
  .z-c7-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, 152px); grid-auto-columns: 150px; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
    /* free momentum scrolling (no scroll-snap: snapping ate the fling — «прокручивается мало и медленно», owner 2026-10-25) */
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
  }
  .z-c7-grid::-webkit-scrollbar { display: none; }
  .z-c7-card {
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0; height: auto; padding: 14px;
    border: 0; border-radius: 24px; background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 12%, #fff);
    -webkit-tap-highlight-color: transparent; transition: none;
  }
  .z-c7-card:hover, .z-c7-card:active { box-shadow: none; transform: none; }
  .z-c7-deco { display: block; position: absolute; right: -16px; bottom: -18px; color: var(--zc, var(--accent)); opacity: .14; pointer-events: none; }
  .z-c7-deco .ic { width: 104px; height: 104px; stroke-width: 1.5; }
  .z-c7-deco .fa { font-size: 90px; }
  .z-c7-ic { position: relative; width: 42px; height: 42px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .06); }
  .z-c7-ic .ic { width: 23px; height: 23px; }
  /* the text block takes the card's width (with align-items:flex-start it grew to the text's width and the card's edge cut it) */
  .z-c7-txt { align-self: stretch; width: 100%; }
  .z-c7-name { -webkit-line-clamp: 3; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .z-c7-hint { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; line-height: 1.3; color: var(--ink-600); white-space: normal; }
  .z-c7-card.is-all { background: var(--accent); }
  .z-c7-card.is-all .z-c7-ic { box-shadow: none; }
  .z-c7.is-scrollable .z-c7-progress { display: block; width: 52px; height: 4px; margin: 14px auto 0; border-radius: 999px; background: var(--line); overflow: hidden; }
  .z-c7-progress span { display: block; width: 35%; height: 100%; border-radius: 999px; background: var(--ink-900); will-change: transform; }
  .z-c7-card.is-open { border: 0; transform: none; background: var(--surface-2); background: color-mix(in srgb, var(--zc, #0B62E4) 12%, #fff); box-shadow: inset 0 0 0 2px var(--zc, var(--accent)); }
  /* the panel on phones (bottom sheet, below): 2 columns of white cards, «All listings» as a dark button of its own row */
  .z-c7-drawer { margin: 12px 0 0; padding: 16px 14px; border-radius: 26px; }
  .z-c7-dhead { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .z-c7-back, .z-c7-close, .z-c7-dic { width: 44px; height: 44px; }
  .z-c7-dtitle { flex: 1; }
  .z-c7-crumbs { font-size: 12px; }
  .z-c7-dname { font-size: 19px; }
  .z-c7-dall { order: 3; flex: 1 0 100%; justify-content: center; height: 46px; margin-left: 0; border-radius: 14px; background: var(--ink-900); color: #fff; font-size: 14.5px; white-space: normal; }
  .z-c7-dall:hover, .z-c7-dall:active { color: #fff; background: #000; box-shadow: none; }
  .z-c7-dall .n { display: inline; color: rgba(255, 255, 255, .7); }
  .z-c7-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .z-c7-item { height: 100%; min-height: 66px; padding: 10px 10px 10px 12px; gap: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); -webkit-tap-highlight-color: transparent; }
  .z-c7-item:hover { transform: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
  .z-c7-item:active { transform: scale(.98); }
  .z-c7-item .n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; white-space: normal; overflow-wrap: anywhere; }
  .z-c7-item .s { font-size: 11.5px; }
  .z-c7-go { width: 26px; height: 26px; }
  .z-c7-go .ic { width: 14px; height: 14px; stroke-width: 2.4; }
  .z-c7-more { height: 46px; }
}

/* phones: the panel as a bottom sheet («8Б») — the page under it never moves */
.z-c7-sheet-wrap { position: fixed; inset: 0; z-index: 120; }
.z-c7-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, .45); opacity: 0; transition: opacity .25s ease; }
.z-c7-drawer.z-c7-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; margin: 0;
  padding: 8px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(16, 24, 40, .22);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); animation: none;
}
.z-c7-sheet-wrap.is-open .z-c7-backdrop { opacity: 1; }
.z-c7-sheet-wrap.is-open .z-c7-sheet { transform: none; }
.z-c7-sheet .z-c7-arrow { display: none; }
.z-c7-handle { flex: none; display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: rgba(15, 17, 21, .18); }
.z-c7-sheet .z-c7-lv { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.z-c7-sheet .z-c7-dhead { flex: none; }
.z-c7-sheet .z-c7-handle, .z-c7-sheet .z-c7-dhead { touch-action: none; }
.z-c7-sheet .z-c7-body { min-height: 0; margin: 0 -14px; padding: 0 14px 4px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: reduce) {
  .z-c7-card, .z-c7-item, .z-c7-arrow, .z-c7-sheet, .z-c7-backdrop { transition: none; }
  .z-c7-drawer, .z-c7-lv.is-in { animation: none; }
}

/* ---------- Header: "All categories" button next to the logo + its window (journal p.98–99, «А. Колонки») ----------
   Computers: under the header, levels as columns to the right, path + ✕ on top; phones: full screen, «back» + ✕. */
.z-catmenu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; margin-left: -4px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent); transition: background-color .15s, color .15s;
}
.z-catmenu-btn:hover { background: var(--blue-100); color: var(--accent-hover); }
.z-catmenu-btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.z-catmenu-btn .ic { width: 22px; height: 22px; }
.z-catmenu-btn .z-cm-i-close, .z-catmenu-btn[aria-expanded="true"] .z-cm-i-open { display: none; }
.z-catmenu-btn[aria-expanded="true"] .z-cm-i-close { display: block; }
.z-catmenu-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }

.z-catmenu-dim { position: fixed; inset: 0; z-index: 49; background: rgba(15, 17, 21, .38); opacity: 0; transition: opacity .15s ease; }
.z-catmenu-dim.is-open { opacity: 1; }
.z-catmenu {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 51; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .16); opacity: 0; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease;
}
.z-catmenu.is-open { opacity: 1; transform: none; }
.z-cm-box { display: flex; flex-direction: column; height: var(--zcm-h, 520px); }

.z-cm-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.z-cm-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; color: var(--ink-600); font-size: 14px; }
.z-cm-title strong { flex-shrink: 0; color: var(--ink-900); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.z-cm-title a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-600); }
.z-cm-title a:last-child { color: var(--ink-900); font-weight: 600; }
.z-cm-title a:hover { color: var(--accent); }
.z-cm-title .z-cm-chev { flex-shrink: 0; color: var(--ink-300); }
.z-cm-x, .z-cm-back {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink-900); cursor: pointer; transition: background-color .15s;
}
.z-cm-back { background: transparent; }
.z-cm-x:hover, .z-cm-back:hover { background: var(--line); }
.z-cm-x:focus-visible, .z-cm-back:focus-visible { outline: 0; box-shadow: var(--focus); }

.z-cm-cols { flex: 1 1 auto; min-height: 0; display: flex; }
.z-cm-col {
  flex: 0 0 25%; min-width: 0; padding: 8px 8px 14px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent;
}
.z-cm-col:first-child { padding-left: 0; }
.z-cm-row, .z-cm-all { display: flex; align-items: center; gap: 10px; border-radius: 10px; line-height: 1.25; }
.z-cm-row { min-height: 40px; padding: 6px 10px; color: var(--ink-800); font-size: 14px; }
.z-cm-row:focus-visible, .z-cm-all:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--blue-100); }
.z-cm-row.is-on { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.z-cm-name { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.z-cm-n { flex-shrink: 0; min-width: 34px; color: var(--ink-400); font-size: 12px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.z-cm-chev { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-300); } /* an empty one on rows without subcategories */
.z-cm-row.is-on .z-cm-n, .z-cm-row.is-on .z-cm-chev { color: var(--accent); }
.z-cm-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
  background: var(--surface); background: color-mix(in srgb, var(--zc, var(--accent)) 12%, #fff); color: var(--zc, var(--accent));
}
.z-cm-ic .ic { width: 18px; height: 18px; }
.z-cm-all { margin: 0 0 6px; padding: 9px 10px 11px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.z-cm-all .z-cm-n { color: var(--accent); opacity: .7; }
.z-cm-wait { margin: 0; padding: 12px 10px; color: var(--ink-400); font-size: 14px; }
@media (hover: hover) {
  .z-cm-row:hover { background: var(--surface); }
  .z-cm-row.is-on:hover { background: var(--accent-soft); }
  .z-cm-all:hover { color: var(--accent-hover); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .z-cm-col { flex-basis: 33.333%; }
}

@media (max-width: 767px) {
  .z-mheader .z-catmenu-btn { width: 38px; height: 38px; border-radius: 11px; margin-left: 0; }
  .z-mheader .z-catmenu-btn .ic { width: 20px; height: 20px; }
  .z-catmenu-dim { display: none; }
  .z-catmenu { top: 0; bottom: 0; z-index: 130; border-top: 0; box-shadow: none; transform: translateY(10px); }
  .z-catmenu .z-cm-box { height: 100%; max-width: none; padding: 0; }
  .z-cm-bar { gap: 6px; min-height: 60px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px 16px; }
  .z-cm-back:not([hidden]) + .z-cm-title { margin-left: -2px; }
  .z-cm-bar .z-cm-back { margin-left: -8px; }
  .z-cm-title strong { overflow: hidden; text-overflow: ellipsis; font-size: 18px; }
  .z-cm-x, .z-cm-back { width: 44px; height: 44px; }
  .z-cm-cols { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 8px calc(16px + env(safe-area-inset-bottom)); }
  .z-cm-col { padding: 0; overflow: visible; border: 0; animation: zcm-in .2s ease; }
  .z-cm-row { min-height: 54px; padding: 8px 10px; font-size: 15.5px; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .z-cm-row:active { background: var(--surface); }
  .z-cm-ic { width: 34px; height: 34px; border-radius: 10px; }
  .z-cm-ic .ic { width: 20px; height: 20px; }
  .z-cm-chev { width: 18px; height: 18px; }
  .z-cm-all { min-height: 54px; margin-bottom: 4px; padding: 8px 10px; font-size: 15.5px; }
}
@media (max-width: 359px) {
  .z-mheader .z-catmenu-btn { width: 36px; height: 36px; }
}
@keyframes zcm-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .z-catmenu, .z-catmenu-dim { transition: none; }
  .z-cm-col { animation: none; }
}
