
  :root {
    --header-bg: #FCE9EE;
    --header-text: #16221E;
    --accent: #2E7DD1;
    --accent-dark: #2160A3;
    --accent-soft: #E6F0FB;
    --bg: #FAFAF8;
    --card: #FFFFFF;
    --ink: #16221E;
    --ink-soft: #5B6B64;
    --ink-faint: #94A39C;
    --line: #E6E8E4;
    --sage: #B8863B;
    --shadow-sm: 0 1px 2px rgba(22,34,30,0.06);
    --shadow-md: 0 8px 20px rgba(22,34,30,0.10);
    --shadow-lg: 0 20px 40px rgba(22,34,30,0.16);
    --grad-accent: linear-gradient(135deg, #4A96E0 0%, var(--accent-dark) 100%);
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    line-height: 1.5;
  }
  h1, h2, h3 { margin: 0; font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-weight: 800; }
  button { font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; cursor: pointer; }
  a { text-decoration: none; color: inherit; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* ---------- Top dark header ---------- */
  .site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .logo { font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-size: 22px; font-weight: 900; color: var(--ink); white-space: nowrap; }
  .logo span { color: #C89666; }
  .logo-wrap { display: flex; align-items: center; gap: 9px; }
  .logo-mascot { width: 34px; height: 34px; flex-shrink: 0; }
  .logo-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .mascot-char {
    transform-box: fill-box;
    transform-origin: center;
    animation: mascotBounce 3.8s cubic-bezier(.34,1.56,.64,1) 2; /* двічі при завантаженні, далі — лише при наведенні */
  }
  .mascot-blink {
    transform-box: fill-box;
    transform-origin: center;
    animation: mascotBlink 3.8s ease-in-out infinite;
  }
  @keyframes mascotBounce {
    0%   { transform: translateY(0) scale(1, 1); }
    15%  { transform: translateY(0) scale(1.05, 0.92); }
    35%  { transform: translateY(-6px) scale(0.96, 1.05); }
    55%  { transform: translateY(0) scale(1.05, 0.92); }
    70%  { transform: translateY(0) scale(1, 1); }
    100% { transform: translateY(0) scale(1, 1); }
  }
  @keyframes mascotBlink {
    0%, 88%, 100% { transform: scaleY(1); }
    91%, 95%      { transform: scaleY(0.1); }
  }
  .header-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
  .nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    background: none;
    border: none;
    color: var(--ink-soft);
    padding: 6px 10px;
    border-radius: 8px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .nav-icon-item:hover { background: var(--accent-soft); color: var(--accent-dark); }
  .nav-icon { display: flex; align-items: center; justify-content: center; line-height: 1; }
  .nav-icon svg { width: 19px; height: 19px; display: block; }
  .nav-avatar-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; }
  .nav-icon-label { font-size: 10.5px; font-weight: 600; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .nav-badge {
    display: none;
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: white; font-size: 9.5px; font-weight: 800;
    border-radius: 999px; min-width: 15px; height: 15px; padding: 0 3px;
    align-items: center; justify-content: center; line-height: 1;
  }
  .lang-switch { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
  .lang-switch button {
    background: none; border: none; color: var(--ink-faint);
    font-size: 12px; font-weight: 700; padding: 4px 2px;
  }
  .lang-switch button.active { color: var(--accent-dark); text-decoration: underline; }
  .lang-switch .sep { color: var(--line); font-size: 12px; }
  .header-spacer { flex: 1; }
  .btn-header-post {
    background: var(--grad-accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  }
  .btn-header-post:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

  /* ---------- Search band ---------- */
  .search-band { background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 20px; }
.hero-banner { position: relative; margin: 16px 20px 0; border-radius: 18px; overflow: hidden; background: #FBF3EC url('/img/hero-1200.webp') right bottom / cover no-repeat; min-height: 380px; text-align: left; word-spacing: normal; display: flex; align-items: center; }
.hero-banner-text { position: relative; max-width: 540px; padding: 32px 40px; }
.hero-banner h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.1; font-weight: 900; color: var(--accent-dark); }
.hero-banner p { margin: 0 0 20px; font-size: 17px; font-weight: 700; color: #A8672F; }
.hero-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-banner-actions button, .hero-banner-actions a { white-space: nowrap; font: inherit; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; border: 2px solid var(--accent); }
.hero-btn-main { background: var(--accent); color: #fff; }
.hero-btn-main:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero-btn-alt { background: rgba(255,255,255,.85); color: var(--accent-dark); }
@media (max-width: 720px) {
  .hero-banner { margin: 12px 14px 0; min-height: 300px; align-items: flex-start; background-image: url('/img/hero-720.webp'); background-size: cover; background-position: 72% bottom; }
  .hero-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,243,236,.94) 0%, rgba(251,243,236,.8) 48%, rgba(251,243,236,0) 78%); }
  .hero-banner-text { max-width: 68%; padding: 18px 16px; }
  .hero-banner h1 { font-size: 23px; }
  .hero-banner p { font-size: 14px; margin-bottom: 12px; }
  .hero-banner-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-banner-actions button, .hero-banner-actions a { font-size: 14px; padding: 9px 16px; }
}
  .search-form {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }
  .search-field { flex: 1; display: flex; align-items: center; padding: 0 16px; gap: 8px; }
  .search-field input {
    border: none; outline: none; font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 14.5px; width: 100%; padding: 13px 0; color: var(--ink);
  }
  .search-divider { width: 1px; background: var(--line); }
  .search-field-city { flex: 0 0 220px; }
  .search-icon { color: var(--ink-faint); font-size: 15px; flex-shrink: 0; }
  .city-autocomplete {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
  }
  .city-autocomplete li {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    cursor: pointer;
  }
  .city-autocomplete li:hover { background: var(--bg); }
  .btn-search {
    background: var(--grad-accent);
    color: white;
    border: none;
    padding: 0 26px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  }
  .btn-search:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  @media (max-width: 680px) {
    .search-form { flex-direction: column; }
    .search-divider { width: auto; height: 1px; }
    .search-field-city { flex: none; }
    .btn-search { padding: 13px; justify-content: center; }
  }

  /* ---------- Video listings strip ---------- */
  .video-strip-section { background: white; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .video-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .video-strip-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
  .video-thumb-item { flex-shrink: 0; width: 84px; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .video-thumb-circle {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden; position: relative;
    background: var(--bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
  }
  .video-thumb-circle img { width: 100%; height: 100%; object-fit: cover; }
  .video-play-badge {
    position: absolute; bottom: 2px; right: 2px; background: var(--accent); color: white;
    width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px;
  }
  .video-thumb-label { font-size: 10.5px; text-align: center; color: var(--ink); line-height: 1.2; }

  /* ---------- Advertising ---------- */
  .ad-skyscraper-left {
    display: none;
    position: fixed;
    left: 20px; top: 50%; transform: translateY(-50%);
    z-index: 40;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 10px 8px;
  }
  .ad-skyscraper-left img { display: block; max-width: 120px; height: auto; border-radius: 4px; }
  .ad-skyscraper-tag { display: block; text-align: center; margin-bottom: 6px; }
  /* ---------- Persistent desktop category sidebar ---------- */
  .main-layout { max-width: 1240px; margin: 0 auto; }
  .sidebar-categories { display: none; }
  .main-content { min-width: 0; }
  @media (min-width: 1024px) {
    .main-layout { display: flex; align-items: flex-start; gap: 22px; padding: 0 20px; }
    .sidebar-categories {
      display: block; flex: 0 0 224px;
      position: sticky; top: 76px;
      background: var(--card); border: 1px solid var(--line); border-radius: 12px;
      padding: 10px; box-shadow: var(--shadow-sm);
    }
    .sidebar-cat-item {
      display: flex; align-items: center; gap: 10px;
      width: 100%; background: none; border: none; border-radius: 8px;
      padding: 10px 10px; text-align: left; color: var(--ink); font-size: 13.5px; font-weight: 600;
      transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
    }
    .sidebar-cat-item:hover { background: var(--accent-soft); }
    .sidebar-cat-item.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
    .sidebar-cat-icon { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; }
    .main-content { flex: 1; }
    .categories-section { display: none; }
  }

  @media (min-width: 1500px) {
    .ad-skyscraper-left { display: block; }
  }
  .ad-banner-slot { max-width: 1200px; margin: 14px auto 0; padding: 0 20px; }
  .ad-image-banner-wrap { position: relative; display: flex; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
  .ad-image-banner-tag { position: absolute; top: 6px; left: 10px; background: var(--card); }
  .ad-image-banner-img { max-width: 100%; height: auto; display: block; }
  .ad-label-tag {
    font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
  }
  .ad-grid-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--card); border: 1.5px dashed var(--line); border-radius: 8px;
    padding: 20px 12px; text-decoration: none; gap: 8px; text-align: center; min-height: 100%;
  }
  .ad-grid-card:hover { border-color: var(--accent); }
  .ad-grid-card .ad-grid-title { font-size: 13px; font-weight: 700; color: var(--ink); }
  .ad-grid-card .ad-grid-cta { font-size: 11.5px; color: var(--accent-dark); font-weight: 700; }

  /* ---------- Decorative strip ---------- */
  .stats-strip {
    max-width: 1200px; margin: 0 auto; padding: 14px 20px 0;
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  }
  .stats-strip .stat-item { text-align: center; }
  .stats-strip .stat-num { font-size: 20px; font-weight: 800; color: var(--ink); }
  .stats-strip .stat-label { font-size: 11px; color: var(--ink-soft); }

  /* ---------- Mobile hamburger menu ---------- */
  .hamburger-btn {
    display: none;
    position: fixed;
    top: 12px; right: 14px;
    z-index: 90;
    background: var(--accent-soft);
    border: none;
    width: 38px; height: 38px;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .hamburger-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

  .mobile-menu-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 95;
  }
  .mobile-menu-backdrop.open { display: block; }

  .mobile-nav-dropdown {
    display: none;
    position: fixed;
    top: 58px; right: 14px;
    width: 230px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 8px;
    z-index: 96;
    flex-direction: column;
  }
  .mobile-nav-dropdown.open { display: flex; }
  .mobile-menu-item {
    display: flex; align-items: center; gap: 12px;
    background: none; border: none; width: 100%;
    padding: 11px 10px; border-radius: 8px;
    color: var(--ink); text-align: left;
  }
  .mobile-menu-item:active { background: var(--bg); }
  .mobile-menu-item .nav-icon svg { width: 19px; height: 19px; }
  .mobile-menu-label { font-size: 14px; font-weight: 600; }
  .mobile-nav-dropdown .nav-badge {
    position: absolute; top: -4px; right: -6px;
  }
  .mobile-nav-dropdown #mobileAuthArea .nav-icon-item {
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    width: 100%; padding: 11px 10px; border-radius: 8px; color: var(--ink); text-align: left;
  }
  .mobile-nav-dropdown #mobileAuthArea .nav-icon-item:active { background: var(--bg); }
  .mobile-nav-dropdown #mobileAuthArea .nav-icon-label { font-size: 14px; font-weight: 600; max-width: none; }
  .mobile-menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }
  .mobile-menu-lang-row { display: flex; justify-content: center; gap: 8px; padding: 6px 0 4px; }
  .mobile-menu-lang-row button { background: none; border: none; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; padding: 4px; }
  .mobile-menu-lang-row button.active { color: var(--accent-dark); text-decoration: underline; }
  .mobile-menu-lang-row .sep { color: var(--line); font-size: 12px; }

  @media (max-width: 680px) {
    .hamburger-btn { display: flex; }
  }

  /* ---------- Category icon grid ---------- */
  .categories-section { max-width: 1200px; margin: 0 auto; padding: 34px 20px 14px; }
  .categories-toggle-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
    width: 100%; margin-bottom: 12px; text-align: left;
  }
  .categories-toggle-btn:hover { border-color: var(--accent); }
  .categories-toggle-icon { font-size: 16px; }
  .categories-toggle-current { color: var(--accent-dark); font-weight: 700; }
  .categories-toggle-arrow { margin-left: auto; color: var(--ink-faint); transition: transform 0.15s ease; }
  .categories-toggle-arrow.open { transform: rotate(180deg); }
  .cat-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
  .cat-grid.open { display: grid; }
  .cat-tile {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  }
  .cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .cat-tile.active { box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow-sm); }
  .cat-tile-icon {
    width: 42px; height: 42px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .cat-tile-label { font-size: 10.5px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }


  /* ---------- Filters / special view banner ---------- */
  .filters-bar {
    max-width: 1200px; margin: 0 auto; padding: 18px 20px 0;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .price-sort-bar { justify-content: space-between; }
  .price-range-group { display: flex; align-items: center; gap: 6px; }
  .price-range-input {
    width: 72px; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 8px;
    font-size: 13px; font-family: inherit; text-align: center;
  }
  .price-range-input:focus { outline: none; border-color: var(--accent); }
  .price-range-dash { color: var(--ink-faint); }
  .price-range-currency { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; margin-right: 4px; }
  .price-range-apply-btn {
    background: var(--header-bg); color: white; border: none; padding: 7px 14px;
    border-radius: 8px; font-weight: 700; font-size: 12.5px;
  }
  .price-range-apply-btn:hover { background: var(--accent-dark); }
  .sort-select {
    padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--ink); font-family: inherit; background: white;
  }
  .mode-chip {
    background: white; border: 1.5px solid var(--line); color: var(--ink);
    padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
    transition: all 0.25s var(--ease-smooth);
  }
  .mode-chip.active { background: var(--grad-accent); border-color: transparent; color: white; box-shadow: var(--shadow-sm); }
  .result-count { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); }
  .result-count b { color: var(--ink); }
  .special-view-banner {
    display: none; align-items: center; justify-content: space-between;
    background: #FFF3EE; border: 1px solid #FFD9CC; border-radius: 8px;
    padding: 10px 16px; margin: 14px 0 0; font-size: 13.5px; font-weight: 700; color: var(--accent-dark);
  }
  .special-view-banner button {
    background: none; border: none; color: var(--accent-dark); font-weight: 800; text-decoration: underline; font-size: 13px;
  }

  /* ---------- Listings grid ---------- */
  .grid-section { max-width: 1200px; margin: 0 auto; padding: 20px 20px 72px; }
  #loadMoreContainer { display: flex; justify-content: center; margin-top: 24px; }
  .load-more-btn {
    background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
    font-weight: 700; font-size: 13.5px; padding: 12px 28px; border-radius: 999px;
    box-shadow: var(--shadow-sm); transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  }
  .load-more-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .load-more-status { font-size: 13px; color: var(--ink-faint); }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
  .listing-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  }
  .listing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
  @keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .listing-card { animation: cardFadeIn 0.4s var(--ease-smooth) backwards; }
  .card-media {
    height: 160px; background: #F0F1F2; position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .card-emoji-icon { font-size: 44px; line-height: 1; }
  .card-type-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 4px;
  }
  .card-type-badge.sale { background: var(--ink); color: white; }
  .card-type-badge.exchange { background: var(--sage); color: white; }
  .card-type-badge.free { background: #2F9E6E; color: white; }
  .card-heart-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255,255,255,0.92); border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft); transition: transform 0.15s ease;
  }
  .card-heart-btn svg { width: 16px; height: 16px; }
  .card-heart-btn:hover { transform: scale(1.12); }
  .card-heart-btn.active { background: white; color: #E0345C; }
  .card-video-badge {
    position: absolute; bottom: 8px; left: 8px; z-index: 2;
    background: var(--accent); color: white; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 9px;
  }
  .card-photo-count {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: white; font-size: 10.5px; font-weight: 700;
    padding: 3px 7px; border-radius: 999px;
  }
  .card-body { padding: 11px 13px 13px; }
  .card-price { font-weight: 800; font-size: 16.5px; color: var(--ink); margin-bottom: 3px; }
  .card-price.free { color: #2F9E6E; }
  .card-title {
    font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-bottom { display: flex; justify-content: space-between; align-items: center; }
  .badge-condition { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F3E8EE; color: #8A5A72; }
  .card-city { font-size: 11px; color: var(--ink-faint); }
  .card-meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
  .card-rating { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
  .card-rating-stars { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
  .card-rating-count { font-size: 11px; color: var(--ink-faint); }
  .card-seller { font-size: 10.5px; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
  .card-date { font-size: 10px; color: var(--ink-faint); flex-shrink: 0; }

  .empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; }
  .empty-state .emoji { font-size: 40px; margin-bottom: 10px; }
  .empty-state p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
  .empty-state button { background: none; border: none; color: var(--accent-dark); font-weight: 700; text-decoration: underline; font-size: 14px; }

  /* ---------- How it works ---------- */
  .how { background: white; border-top: 1px solid var(--line); padding: 64px 20px; }
  .how-inner { max-width: 1200px; margin: 0 auto; }
  .how-head { margin-bottom: 30px; position: relative; display: inline-block; }
  .how-head h2 { font-size: 24px; }
  .how-head::after {
    content: '';
    display: block;
    width: 84px; height: 10px; margin-top: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10'%3E%3Cpath d='M2 6c8-8 16 6 24-2s16 6 24-2 16 6 22 0' stroke='%23F0875C' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  }
  .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .how-card { background: var(--bg); border-radius: 10px; padding: 22px; position: relative; }
  .how-card .icon { font-size: 26px; margin-bottom: 10px; display: block; }
  .how-card h3 { font-size: 16px; margin-bottom: 6px; font-weight: 800; }
  .how-card p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin: 0; }

  /* ---------- FAQ ---------- */
  .faq-section { background: var(--bg); padding: 64px 20px; }
  .faq-inner { max-width: 780px; margin: 0 auto; }
  .faq-head { margin-bottom: 24px; position: relative; display: inline-block; }
  .faq-head h2 { font-size: 24px; }
  .faq-head::after {
    content: '';
    display: block;
    width: 84px; height: 10px; margin-top: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10'%3E%3Cpath d='M2 6c8-8 16 6 24-2s16 6 24-2 16 6 22 0' stroke='%23F0875C' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  }
  .faq-item { background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
  .faq-item summary {
    padding: 15px 18px; font-weight: 700; font-size: 14.5px; cursor: pointer;
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: '+'; font-size: 18px; color: var(--accent); flex-shrink: 0; }
  .faq-item[open] summary::after { content: '−'; }
  .faq-item p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

  /* ---------- CTA banner (image-only, responsive) ---------- */
  .cta-banner-image { padding: 24px 20px; background: var(--bg); }
  .cta-banner-image-btn {
    display: block; width: 100%; max-width: 1100px; margin: 0 auto;
    border: none; background: none; padding: 0; cursor: pointer;
    border-radius: 14px; overflow: hidden; line-height: 0;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  }
  .cta-banner-image-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
  .cta-banner-image-img { width: 100%; height: auto; display: block; }

  /* ---------- Footer ---------- */
  .site-footer { background: #0A1F21; padding: 40px 20px 20px; }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  .footer-logo { color: white; font-size: 19px; font-weight: 800; }
  .footer-desc { color: rgba(255,255,255,0.45); font-size: 13px; max-width: 320px; margin-top: 8px; line-height: 1.6; }
  .footer-columns { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  .footer-col { display: flex; flex-direction: column; gap: 5px; }
  @media (max-width: 680px) {
    .footer-columns { grid-template-columns: 1fr; gap: 22px; }
  }
  .footer-support-title { color: #FFFFFF; font-size: 11.5px; font-weight: 700; margin: 0 0 3px; text-transform: uppercase; letter-spacing: 0.05em; }
  .footer-col a { color: rgba(255,255,255,0.85); font-size: 13px; }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 28px; padding-top: 16px; text-align: center; }
  .footer-bottom p { color: rgba(255,255,255,0.3); font-size: 11.5px; margin: 0; }
  .footer-bottom .footer-legal { color: rgba(255,255,255,0.5); margin-bottom: 8px; line-height: 1.6; }
  .footer-legal a { color: rgba(255,255,255,0.75); text-decoration: underline; }
  .footer-legal a:hover { color: var(--accent); }

  /* ---------- Modals (kept functional, restyled minimal) ---------- */
  .overlay {
    display: none; position: fixed; inset: 0; background: rgba(15,43,46,0.55);
    align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 100;
  }
  .overlay.open { display: flex; }
  .modal { background: white; border-radius: 14px; width: 100%; max-width: 520px; padding: 26px; position: relative; box-shadow: var(--shadow-lg); }
  @keyframes modalPopIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .overlay.open .modal { animation: modalPopIn 0.3s var(--ease-smooth); }
  .modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 5;
    background: rgba(255,255,255,0.9); border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .modal h2 { font-size: 20px; margin-bottom: 18px; padding-right: 20px; }
  .field { margin-bottom: 13px; }
  .field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
  .field input, .field select, .field textarea {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px;
    font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-size: 14px; background: white; color: var(--ink);
  }
  .field textarea { resize: vertical; min-height: 70px; }
  .price-input-wrap { position: relative; display: flex; gap: 8px; }
  .price-input-wrap input { flex: 1; min-width: 0; }
  .price-input-wrap .price-currency-select { flex: none; width: 84px; font-weight: 800; }
  .price-currency-suffix {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--ink-soft); font-weight: 700; font-size: 13px; pointer-events: none;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .submit-btn {
    width: 100%; background: var(--grad-accent); color: white; border: none; padding: 13px; border-radius: 10px;
    font-weight: 800; font-size: 15px; margin-top: 6px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s var(--ease-smooth), transform 0.25s var(--ease-smooth);
  }
  .submit-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
  .submit-btn:disabled { opacity: 0.6; }
  .form-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; text-align: center; }
  .avatar-preview-wrap {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px;
    background: var(--bg); border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .avatar-preview { width: 100%; height: 100%; object-fit: cover; }
  .avatar-preview-fallback { color: var(--ink-faint); }
  .avatar-preview-fallback svg { width: 38px; height: 38px; }
  .avatar-upload-btn {
    display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-dark);
    text-decoration: underline; cursor: pointer;
  }
  .profile-signout-btn {
    display: block; width: 100%; background: none; border: none;
    color: var(--ink-soft); font-weight: 700; font-size: 13px;
    text-decoration: underline; margin-top: 16px; text-align: center;
  }
  .profile-signout-btn:hover { color: var(--accent-dark); }

  .ratings-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
  .ratings-tab { flex: 1; background: none; border: none; padding: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-faint); border-bottom: 2px solid transparent; }
  .ratings-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
  .admin-stats-row { display: flex; gap: 10px; margin-bottom: 16px; }
  .admin-stat { flex: 1; background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }
  .admin-stat-num { font-size: 22px; font-weight: 800; color: var(--ink); }
  .admin-stat-label { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
  .admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .admin-row-title { font-weight: 700; font-size: 13.5px; }
  .admin-row-main { flex: 1; min-width: 0; }
  .admin-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .admin-action-btn { background: none; border: 1.5px solid var(--line); color: var(--ink); padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; display: inline-block; }
  .admin-action-btn:hover { border-color: var(--accent); }
  .admin-action-btn.danger { border-color: #DC2626; color: #DC2626; }
  .admin-action-btn.danger:hover { background: #DC2626; color: white; }
  .admin-report-reason { display: inline-block; background: #FDECEC; color: #B91C1C; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
  .admin-report-comment { font-size: 13px; color: var(--ink); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
  .admin-blocked-tag { color: #DC2626; font-weight: 800; }
  /* ---------- Report (complaint) ---------- */
  #reportOverlay { z-index: 110; }
  .report-link-btn { display: block; margin: 14px auto 0; background: none; border: none; color: var(--ink-faint); font-size: 12.5px; font-weight: 700; text-decoration: underline; }
  .report-link-btn:hover { color: #DC2626; }
  .fb-topics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  .fb-topic { flex: 1 1 auto; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; }
  .fb-topic.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .fb-moods { display: flex; gap: 8px; }
  .fb-mood { font-size: 24px; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; width: 52px; height: 44px; cursor: pointer; filter: grayscale(0.6); opacity: .7; }
  .fb-mood.active { border-color: var(--accent); filter: none; opacity: 1; background: var(--accent-soft); }
  .fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .fb-thanks { text-align: center; padding: 18px 4px 6px; }
  .fb-thanks .fb-big { font-size: 46px; }
  .fb-link { cursor: pointer; }
  .ai-fill { margin-top: 10px; }
  .ai-fill-btn { border: none; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #8B5CF6 0%, #2E7DD1 100%); box-shadow: 0 4px 12px rgba(139,92,246,.25); cursor: pointer; }
  .ai-fill-btn:disabled { opacity: .6; cursor: default; }
  .ai-fill-note { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
  .ai-fill-note.ok { color: #16A34A; font-weight: 700; }
  .ai-fill-note.err { color: #DC2626; font-weight: 700; }
  .detail-support-link { display: block; margin: 8px auto 0; text-align: center; color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
  .detail-support-link:hover { text-decoration: underline; }
  .tg-support-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 80;
    display: flex; align-items: center; gap: 8px;
    background: #229ED9; color: #fff; text-decoration: none;
    border-radius: 999px; padding: 10px 16px 10px 12px;
    font-weight: 800; font-size: 13.5px;
    box-shadow: 0 6px 18px rgba(34,158,217,0.35);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .tg-support-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(34,158,217,0.45); }
  .tg-support-fab i { font-size: 26px; line-height: 1; flex: none; }
  .tg-support-link i, .detail-support-link i { color: #229ED9; margin-right: 4px; }
  @media (max-width: 640px) {
    .tg-support-fab { right: 14px; bottom: 14px; padding: 12px; }
    .tg-support-fab span { display: none; }
  }
  .report-reason { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
  .report-reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .report-reason input { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
  .terms-note a { color: var(--accent-dark); text-decoration: underline; }
  .admin-row-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
  .admin-delete-btn { flex-shrink: 0; background: none; border: 1.5px solid #DC2626; color: #DC2626; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
  .admin-delete-btn:hover { background: #DC2626; color: white; }

  .detail-emoji { font-size: 52px; text-align: center; margin-bottom: 8px; }
  .detail-price { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
  .detail-price.free { color: #2F9E6E; }
  .detail-tag { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
  .detail-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .detail-row span:first-child { color: var(--ink-soft); }
  .detail-desc { margin: 14px 0; font-size: 14px; }
  .contact-box { background: var(--bg); border: 1.5px solid var(--accent); border-radius: 8px; padding: 15px; margin-top: 14px; text-align: center; }
  .contact-box .label { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 4px; }
  .contact-box .value { font-size: 16.5px; font-weight: 800; color: var(--accent-dark); }
  .detail-view-count { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
  .share-btn {
    display: block; margin: 10px auto 4px; background: none; border: 1.5px solid var(--line); color: var(--ink);
    padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 12.5px;
  }
  .share-btn:hover { border-color: var(--accent); }
  .share-option {
    display: flex; align-items: center; gap: 10px; width: 100%; background: none;
    border: 1.5px solid var(--line); color: var(--ink); padding: 12px 16px; border-radius: 8px;
    font-weight: 700; font-size: 14px; margin-bottom: 8px; text-align: left; text-decoration: none;
  }
  .share-option:hover { border-color: var(--accent); }

  .btn-google {
    width: 100%; background: white; color: var(--ink); border: 1.5px solid var(--line); padding: 12px;
    border-radius: 6px; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px;
  }
  .btn-google:hover { border-color: var(--accent); }
  .auth-divider { text-align: center; font-size: 12px; color: var(--ink-faint); margin-bottom: 14px; position: relative; }
  .auth-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; cursor: pointer; }
  .auth-checkbox-row input { width: 16px; height: 16px; accent-color: var(--accent); }
  .auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line); }
  .auth-divider::before { left: 0; }
  .auth-divider::after { right: 0; }
  .auth-toggle { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
  .auth-toggle button { background: none; border: none; color: var(--accent-dark); font-weight: 700; text-decoration: underline; margin-left: 4px; }
  .detail-delete-btn {
    width: 100%; background: transparent; border: 1.5px solid #DC2626; color: #DC2626; padding: 11px;
    border-radius: 6px; font-weight: 700; font-size: 13.5px; margin-top: 12px;
  }
  .detail-delete-btn:hover { background: #DC2626; color: white; }

  .photo-carousel { position: relative; width: 100%; height: 250px; border-radius: 8px; overflow: hidden; background: #F0F1F2; margin-bottom: 14px; }
  .photo-carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 150;
    align-items: center;
    justify-content: center;
  }
  .lightbox-overlay.open { display: flex; }
  .lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
  }
  .lightbox-close {
    position: fixed; top: 16px; right: 16px;
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 38px; height: 38px; border-radius: 50%;
    font-size: 18px; display: flex; align-items: center; justify-content: center;
    z-index: 151;
  }
  .lightbox-close:hover { background: rgba(255,255,255,0.25); }
  .lightbox-nav { position: fixed; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; }
  .lightbox-nav button {
    pointer-events: auto;
    background: rgba(255,255,255,0.15); border: none; color: white;
    width: 44px; height: 44px; border-radius: 50%; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
  }
  .lightbox-nav button:hover { background: rgba(255,255,255,0.25); }
  @media (max-width: 680px) {
    .lightbox-nav button { width: 38px; height: 38px; font-size: 22px; }
  }
  .carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none;
    color: var(--ink); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
  .carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); }
  .carousel-dot.active { background: white; }

  .seller-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .seller-name { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
  .seller-rating { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
  .seller-rating .stars { color: var(--accent); letter-spacing: 1px; }
  .seller-rating-empty { font-style: italic; }
  .review-item { border-top: 1px solid var(--line); padding: 9px 0; }
  .review-stars { color: var(--accent); letter-spacing: 1px; font-size: 13.5px; }
  .review-comment { font-size: 13px; margin: 4px 0; color: var(--ink); }
  .review-date { font-size: 11px; color: var(--ink-faint); }
  .review-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
  .review-form-label { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
  .review-form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; font-style: italic; }
  .star-picker { display: flex; gap: 4px; }
  .star-picker button { background: none; border: none; font-size: 22px; color: var(--line); padding: 0; line-height: 1; }
  .star-picker button.active { color: var(--accent); }

  .chat-with-seller-btn {
    width: 100%; background: var(--grad-accent); color: white; border: none; padding: 12px; border-radius: 8px;
    font-weight: 800; font-size: 14px; margin-top: 14px;
    box-shadow: var(--shadow-sm);
  }
  .chat-with-seller-btn:hover { opacity: 0.9; }

  .toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
    background: var(--ink); color: white; padding: 12px 20px; border-radius: 8px;
    font-weight: 700; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 200;
  }
  .toast.show { opacity: 1; }

  /* ---------- Full-screen chat "page" ---------- */
  #chatOverlay, #adminOverlay { padding: 0; align-items: stretch; background: white; }
  #chatOverlay .modal, #adminOverlay .modal { max-width: 720px; width: 100%; height: 100%; margin: 0 auto; padding: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: none; }
  .chat-page-header { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: white; flex-shrink: 0; }
  .chat-page-back { background: none; border: none; font-size: 22px; color: var(--ink); padding: 2px 4px; line-height: 1; flex-shrink: 0; }
  .chat-page-header h2 { font-size: 16.5px; margin: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .chat-listing-tag { display: inline-block; background: var(--bg); color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 3px; }
  .chat-page-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
  .chat-page-footer { flex-shrink: 0; padding: 12px 20px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }
  .push-opt-in-banner {
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  }
  .push-opt-in-actions { display: flex; gap: 8px; flex-shrink: 0; }
  .push-opt-in-actions button {
    padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 12.5px; border: none;
  }
  .push-opt-in-actions button:first-child { background: var(--accent); color: white; }
  .push-opt-in-dismiss { background: none !important; color: var(--ink-faint) !important; }
  .conversation-list { display: flex; flex-direction: column; gap: 8px; }
  .conversation-item { border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
  .conversation-item:hover { border-color: var(--accent); }
  .conversation-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
  .conversation-name { font-weight: 700; font-size: 14px; }
  .conversation-badge { background: var(--accent); color: white; font-size: 10.5px; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; }
  .conversation-listing { font-size: 11.5px; color: var(--accent-dark); font-weight: 700; margin-bottom: 3px; }
  .conversation-preview { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-messages { display: flex; flex-direction: column; gap: 8px; }
  .chat-bubble { max-width: 78%; padding: 9px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; word-wrap: break-word; }
  .chat-bubble.mine { align-self: flex-end; background: var(--accent); color: white; border-bottom-right-radius: 4px; }
  .chat-bubble.theirs { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 4px; }
  .chat-input-row { display: flex; gap: 8px; }
  .chat-input-row input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-size: 13.5px; }
  .chat-input-row input:focus { outline: none; border-color: var(--accent); }

  @media (min-width: 681px) and (max-width: 1024px) {
    .header-inner { gap: 14px; padding: 0 16px; }
    .nav-icon-label { max-width: 64px; }
    .btn-header-post { padding: 9px 14px; font-size: 12.5px; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .footer-columns { grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
  }

  @media (max-width: 680px) {
    #chatOverlay .modal, #adminOverlay .modal { max-width: 100%; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 14px; gap: 8px; }
    .logo { font-size: 17px; }
    .logo-mascot { width: 28px; height: 28px; }
    #headerNavIcons { display: none; }
    .header-spacer { display: none; }
    .lang-switch { display: none; }
    .btn-header-post { padding: 6px 10px; font-size: 11px; }

    .modal-close {
      position: fixed;
      top: 12px;
      right: 12px;
      background: rgba(255,255,255,0.95);
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      z-index: 110;
      color: var(--ink);
    }

    .search-band { padding: 12px 14px; }
    .search-form { flex-direction: column; }
    .search-divider { width: auto; height: 1px; }
    .search-field { padding: 0 14px; }
    .search-field-city { flex: none; }
    .btn-search { padding: 13px; justify-content: center; }
    .city-autocomplete { max-height: 180px; }


    .categories-section { padding: 20px 14px 6px; }
    .categories-toggle-btn { font-size: 13px; padding: 11px 14px; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cat-tile-icon { width: 38px; height: 38px; font-size: 18px; }
    .cat-tile-label { font-size: 9.5px; }

    .filters-bar { padding: 14px 14px 0; gap: 8px; }
    .mode-chip { padding: 7px 14px; font-size: 12.5px; }
    .result-count { width: 100%; margin-left: 0; order: 3; margin-top: 2px; }
    .special-view-banner { font-size: 12.5px; padding: 9px 12px; }

    .grid-section { padding: 12px 14px 40px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .card-media { height: 130px; }

    .how { padding: 36px 14px; }
    .how-head h2 { font-size: 20px; }
    .how-grid { grid-template-columns: 1fr; }
    .faq-section { padding: 36px 14px; }
    .faq-head h2 { font-size: 20px; }
    .cta-banner-image { padding: 16px 14px; }
    .site-footer { padding: 32px 14px 16px; }

    .row2 { grid-template-columns: 1fr; }
    .overlay { padding: 16px 10px; align-items: flex-start; }
    .modal { padding: 20px; border-radius: 10px; }
    .photo-carousel { height: 200px; }
    .detail-price { font-size: 21px; }

    .chat-page-header { padding: 12px 14px; }
    .chat-page-body { padding: 14px; }
    .chat-page-footer { padding: 10px 14px; }
    .chat-bubble { max-width: 85%; }
  }
/* Топ продавці */
.top-sellers { max-width: 1200px; margin: 0 auto; padding: 28px 20px 8px; }
.top-sellers-head h2 { margin: 0 0 4px; font-size: 24px; font-weight: 900; color: var(--ink); }
.top-sellers-head p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.top-sellers-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ts-card { position: relative; background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px 14px; text-align: center; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; min-width: 0; }
.ts-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.ts-rank { position: absolute; top: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); }
.ts-rank.r1 { background: #F6C343; color: #5A3E00; }
.ts-rank.r2 { background: #D5DBE3; color: #38424F; }
.ts-rank.r3 { background: #E7B48A; color: #5A3212; }
.ts-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff; }
.ts-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-stars { color: #F5A623; font-size: 13px; margin-top: 4px; letter-spacing: 1px; }
.ts-stars small { color: var(--ink-soft); letter-spacing: 0; font-weight: 700; }
.ts-meta { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 900px) { .top-sellers-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .ts-card { flex: 0 0 150px; scroll-snap-align: start; } }
@media (max-width: 680px) { .top-sellers { padding: 20px 14px 4px; } .top-sellers-head h2 { font-size: 20px; } .btn-header-post { margin-left: auto; margin-right: 46px; } }
/* Більші значки в шапці */
@media (min-width: 1025px) { .nav-icon svg { width: 23px; height: 23px; } .nav-avatar-img { width: 23px; height: 23px; } .nav-icon-label { font-size: 12px; font-weight: 700; max-width: 110px; } .nav-icon-item { padding: 6px 8px; gap: 3px; } .header-inner { height: 68px; } }
@media (min-width: 1200px) { .header-inner { height: 72px; } .header-nav { gap: 6px; } .nav-icon-item { padding: 7px 11px; gap: 4px; } .nav-icon svg { width: 27px; height: 27px; } .nav-avatar-img { width: 27px; height: 27px; } .nav-icon-label { font-size: 13px; max-width: 130px; } .nav-badge { top: 3px; right: 6px; min-width: 17px; height: 17px; font-size: 10.5px; } .lang-switch button { font-size: 14px; } .logo { font-size: 24px; } }
/* Чат з підтримкою */
.sc-fab { background: var(--accent); box-shadow: 0 6px 18px rgba(46,125,209,.35); border: none; cursor: pointer; font-family: inherit; }
.sc-fab:hover { box-shadow: 0 10px 22px rgba(46,125,209,.45); }
.sc-fab svg { width: 26px; height: 26px; flex: none; }
.sc-badge { display: none; position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11.5px; font-weight: 900; align-items: center; justify-content: center; border: 2px solid #fff; }
.sc-badge.on { display: flex; }
.sc-panel { position: fixed; right: 18px; bottom: 84px; z-index: 95; width: 370px; height: 540px; max-height: calc(100vh - 110px); background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(15,43,46,.25); display: none; flex-direction: column; overflow: hidden; }
.sc-panel.open { display: flex; }
.sc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #2E7DD1, #2160A3); color: #fff; }
.sc-head-ava { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.sc-head-ava svg { width: 22px; height: 22px; }
.sc-title { font-weight: 900; font-size: 15px; }
.sc-sub { font-size: 12px; opacity: .85; font-weight: 600; margin-top: 1px; }
.sc-close { margin-left: auto; background: rgba(255,255,255,.18); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; flex: none; }
.sc-body { flex: 1; overflow-y: auto; padding: 14px; background: #F5F7FA; display: flex; flex-direction: column; gap: 8px; }
.sc-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-msg.admin { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sc-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.sc-msg .sc-who { display: block; font-size: 11px; font-weight: 800; color: var(--accent-dark); margin-bottom: 2px; }
.sc-msg .sc-time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; text-align: right; }
.sc-form { position: relative; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 8px; }
.sc-form input[type=text] { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; }
.sc-row { display: flex; gap: 8px; align-items: flex-end; }
.sc-row textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; max-height: 110px; min-height: 40px; }
.sc-form input:focus, .sc-row textarea:focus { outline: none; border-color: var(--accent); }
.sc-send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sc-send:disabled { opacity: .5; }
.sc-send svg { width: 20px; height: 20px; }
.sc-alt { display: block; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent-dark); padding: 6px 12px 10px; background: #fff; text-decoration: none; }
.sc-alt:hover { text-decoration: underline; }
.sc-tabs { display: flex; gap: 6px; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.sc-tab { flex: 1; border: none; background: #F1F4F8; color: #3d4a45; font: inherit; font-size: 13.5px; font-weight: 800; padding: 9px 8px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sc-tab.active { background: var(--accent); color: #fff; }
.sc-tab .sc-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.sc-tab .sc-dot.on { display: inline-block; }
.sc-pane { display: none; flex: 1; flex-direction: column; min-height: 0; }
.sc-pane.active { display: flex; }
.sc-msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sc-msg.ai .sc-who { color: #7A4FD6; }
.ai-show { align-self: flex-start; border: 1.5px solid var(--accent); background: #EAF3FC; color: var(--accent-dark); font: inherit; font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.ai-show:hover { background: var(--accent); color: #fff; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { border: 1px solid var(--line); background: #fff; color: #16221E; font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; text-align: left; }
.ai-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.ai-typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; gap: 4px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA8A3; animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-note { text-align: center; font-size: 11px; color: #7b8884; padding: 2px 12px 8px; background: #fff; }
@media (max-width: 640px) {
  .sc-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: auto; top: 70px; max-height: none; }
  .sc-fab span:not(.sc-badge) { display: none; }
}
/* Редагування оголошення */
.detail-edit-btn { width: 100%; background: var(--accent); border: 1.5px solid var(--accent); color: #fff; padding: 11px; border-radius: 6px; font-weight: 800; font-size: 13.5px; margin-top: 12px; cursor: pointer; }
.detail-edit-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.edit-media-note { display: none; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
/* Категорії в підвалі */
.footer-cats { margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cats .footer-support-title { margin-bottom: 12px; }
.footer-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.footer-cat { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; color: #fff; text-align: left; cursor: pointer; font: inherit; min-width: 0; transition: background .15s, transform .15s; }
.footer-cat:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.footer-cat-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.footer-cat-text { min-width: 0; }
.footer-cat-name { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-cat-count { display: block; font-size: 11.5px; font-weight: 600; opacity: .65; margin-top: 1px; }
@media (max-width: 900px) { .footer-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Підвал: посилання-віконця */
.footer-columns { grid-template-columns: 1.1fr 2fr 1fr; }
.footer-col:not(:first-child) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.footer-col:last-child { grid-template-columns: 1fr; }
.footer-col .footer-support-title { grid-column: 1 / -1; margin-bottom: 4px; }
.footer-col a { display: flex; align-items: center; gap: 8px; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.9); text-decoration: none; overflow-wrap: anywhere; transition: background .15s, transform .15s, border-color .15s; }
.footer-col a:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.25); color: #fff; transform: translateY(-1px); }
.footer-col a i { font-size: 17px; }
.footer-col a[href^="mailto:"], .footer-col a.fb-link { grid-column: 1 / -1; }
.footer-social-title { margin-top: 18px !important; }
.footer-col a.social-link { align-self: flex-start; }
.footer-col a.social-link + a.social-link { margin-top: 8px; }
.footer-col a.social-link i { font-size: 18px; }
@media (min-width: 681px) and (max-width: 1024px) { .footer-columns { grid-template-columns: 1fr 1fr; } .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 680px) { .footer-columns { grid-template-columns: 1fr; } .footer-col:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .footer-col:not(:first-child) { grid-template-columns: 1fr; } }
.partner-logo { width: 24px; height: 24px; border-radius: 6px; background: #fff; flex: none; object-fit: contain; }
.hero-banner p { margin-bottom: 0; }
/* ===== Комп'ютерна версія: новий дизайн головної ===== */
.hdr-search, .filters-wrap-row:empty, .grid-title { display: none; }
@media (min-width: 1025px) {
  .site-header { position: sticky; top: 0; z-index: 60; }
  .header-inner { height: auto !important; flex-wrap: wrap; row-gap: 0; padding-top: 12px; padding-bottom: 0; position: relative; }
  .logo-wrap { order: 1; }
  .hdr-search { display: block; order: 2; flex: 1; min-width: 0; margin: 0 8px; }
  .hdr-search .search-form { max-width: none; margin: 0; box-shadow: none; border: 1.5px solid #E7D4DA; border-radius: 14px; overflow: hidden; background: #fff; }
  .btn-header-post { order: 3 !important; background: linear-gradient(135deg, #FF8A3D, #F2663A) !important; box-shadow: 0 6px 16px rgba(242,102,58,.35) !important; font-size: 15px !important; padding: 12px 22px !important; border-radius: 12px !important; }
  #authArea { order: 4 !important; gap: 4px; margin-left: 8px !important; }
  #authArea .nav-icon-item { width: 48px; height: 48px; padding: 0 !important; border-radius: 12px; justify-content: center; color: #3E4B47; flex-direction: row !important; }
  #authArea .nav-icon-item:hover { background: rgba(255,255,255,.7); color: var(--accent-dark); }
  #authArea .nav-icon-label { display: none; }
  #authArea .nav-icon svg { width: 28px !important; height: 28px !important; }
  #authArea .nav-avatar-img { width: 30px !important; height: 30px !important; }
  .header-spacer { display: none; }
  .header-nav { order: 5 !important; flex-basis: 100%; margin: 8px 0 0 !important; padding: 4px 0 6px; border-top: 1px solid rgba(0,0,0,.06); gap: 4px !important; }
  .header-nav .nav-icon-item { flex-direction: row !important; gap: 7px !important; padding: 6px 12px !important; }
  .header-nav .nav-icon svg { width: 20px !important; height: 20px !important; }
  .header-nav .nav-icon-label { font-size: 13.5px !important; max-width: none !important; }
  .lang-switch { order: 6 !important; position: absolute; right: 20px; bottom: 10px; }
  .search-band, .hero-banner, .stats-strip { display: none !important; }
  .main-layout { margin-top: 18px; }
  .grid-title { display: block; font-size: 22px; font-weight: 900; margin: 4px 0 12px; color: var(--ink); }
  .filters-wrap-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
  .filters-wrap-row .filters-bar { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
  #grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; }
  .listing-card .card-media { height: auto !important; aspect-ratio: 1 / 1; }
  .listing-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 1400px) { #grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (max-width: 420px) { .header-inner { flex-wrap: nowrap !important; } .logo { font-size: 15.5px !important; } .logo-mascot { width: 24px !important; height: 24px !important; } .btn-header-post { margin-right: 44px !important; padding: 7px 9px !important; font-size: 11px !important; white-space: nowrap; } }
/* Фон усього сайту: ілюстрація з банера */
body { background: #FBF3EC; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url('/img/hero-1200.webp') 70% bottom / cover no-repeat; opacity: .6; }
.search-band, .how, .faq-section, .cta-banner-image, .video-strip-section { background: transparent; }
.how-card { background: rgba(255,255,255,.85); }
.hero-banner { background: rgba(255,255,255,.6); min-height: 0; }
.hero-banner::before { display: none; }
@media (max-width: 720px) { .hero-banner { background: rgba(255,255,255,.6); min-height: 0; } .hero-banner-text { max-width: none; } .hero-banner-actions { flex-direction: row; flex-wrap: wrap; } }
/* ================= Мобільна версія: спокійний фон і керування однією рукою ================= */
.m-tabbar, .m-filters-chip, .m-count { display: none; }
@media (max-width: 680px) {
  :root { --m-bg: #F4F2EF; --m-nav-h: 64px; }
  /* Спокійний однотонний фон без ілюстрації — фокус на оголошеннях */
  body { background: var(--m-bg) !important; padding-bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 12px); }
  body::before { display: none !important; }
  .site-header { background: #FFFFFF !important; border-bottom: 1px solid #ECE9E4; box-shadow: 0 1px 0 rgba(22,34,30,.02); }
  .header-inner { padding: 10px 16px !important; }
  .hamburger-btn, .btn-header-post { display: none !important; }
  .hero-banner, .stats-strip { display: none !important; }

  /* Пошук — компактний, без зайвої кнопки (шукає під час введення) */
  .search-band { padding: 10px 12px 0 !important; background: transparent !important; }
  .search-form { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; background: none !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
  .search-form .search-field { flex: 1 1 100%; background: #fff; border: 1px solid #E6E2DC; border-radius: 14px; min-height: 48px; padding: 0 14px; }
  .search-form .search-field-city { flex: 1 1 100%; }
  .search-form .search-field input { font-size: 16px; }
  .search-divider, .search-form .btn-search { display: none !important; }

  /* Категорії — горизонтальна стрічка, яку зручно гортати великим пальцем */
  .categories-section { padding: 12px 0 2px !important; }
  .categories-toggle-btn { display: none !important; }
  .cat-grid { display: flex !important; overflow-x: auto; gap: 8px !important; padding: 2px 12px 6px; margin: 0 !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 76px; min-height: 76px; padding: 8px 4px !important; border-color: #ECE9E4 !important; scroll-snap-align: start; }
  .cat-tile-icon { width: 36px !important; height: 36px !important; font-size: 18px !important; }
  .cat-tile-label { font-size: 10.5px !important; }

  /* Фільтри: тип угоди — стрічкою; ціна й сортування сховані під кнопкою «Фільтри» */
  .grid-title { padding: 10px 16px 0 !important; font-size: 18px !important; }
  #modeFilterBar { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding: 10px 12px 0 !important; gap: 8px !important; }
  #modeFilterBar::-webkit-scrollbar { display: none; }
  #modeFilterBar .mode-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 16px !important; font-size: 14px !important; background: #fff; border-color: #E6E2DC; }
  #modeFilterBar .mode-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  #modeFilterBar .result-count { display: none; }
  .m-filters-chip { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #E6E2DC; background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); }
  .m-filters-chip svg { width: 16px; height: 16px; }
  .m-filters-chip.on { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
  #priceSortBar { display: none !important; }
  body.m-show-filters #priceSortBar { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0 !important; }
  body.m-show-filters #priceSortBar .price-range-input, body.m-show-filters #priceSortBar .sort-select { min-height: 44px; font-size: 16px; }
  .m-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 0 16px; font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

  /* Картки оголошень: більше фото, чітка ціна, менше «шуму» */
  .grid-section { padding: 10px 10px 0 !important; }
  #grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .listing-card { border-radius: 16px !important; border: 1px solid #ECE9E4 !important; box-shadow: none !important; background: #fff; }
  .listing-card .card-media { height: auto !important; aspect-ratio: 1 / 1; background: #EFEDEA; }
  .card-type-badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 8px; border-radius: 8px; }
  .card-type-badge.sale { background: rgba(22,34,30,.78); }
  .card-heart-btn { width: 38px !important; height: 38px !important; top: 6px !important; right: 6px !important; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
  .card-heart-btn svg { width: 19px !important; height: 19px !important; }
  .card-photo-count { font-size: 10.5px; padding: 2px 7px; }
  .card-body { padding: 10px 11px 12px !important; }
  .card-price { font-size: 17px !important; font-weight: 900 !important; margin-bottom: 2px !important; }
  .card-title { font-size: 14px !important; line-height: 1.3 !important; color: #3A4541 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-bottom: 6px !important; }
  .card-rating { display: none !important; }
  .card-bottom { flex-direction: column; align-items: flex-start !important; gap: 3px; }
  .badge-condition { background: none !important; padding: 0 !important; color: var(--ink-soft) !important; font-size: 12px !important; font-weight: 700 !important; }
  .card-city { font-size: 12px !important; color: var(--ink-faint); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-meta-row { display: none !important; }

  /* Нижня панель навігації — у зоні великого пальця */
  .m-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; height: calc(var(--m-nav-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid #ECE9E4; box-shadow: 0 -4px 18px rgba(22,34,30,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .m-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; color: #6B7773; font: inherit; font-size: 11px; font-weight: 800; position: relative; -webkit-tap-highlight-color: transparent; min-width: 0; }
  .m-tab svg { width: 24px; height: 24px; }
  .m-tab.active { color: var(--accent-dark); }
  .m-tab:active { transform: scale(.94); }
  .m-tab-post .m-plus { width: 50px; height: 50px; margin-top: -22px; border-radius: 18px; background: var(--grad-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(46,125,209,.35); border: 3px solid #fff; }
  .m-tab-post .m-plus svg { width: 26px; height: 26px; }
  .m-tab-post { color: var(--accent-dark); }
  .m-tab .m-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 900; display: none; align-items: center; justify-content: center; border: 2px solid #fff; }
  .m-tab .m-badge.on { display: flex; }

  /* Меню — знизу, над панеллю, великі пункти */
  .mobile-nav-dropdown { top: auto !important; left: 10px !important; right: 10px !important; width: auto !important; bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 10px) !important; border-radius: 18px !important; padding: 10px !important; max-height: 70vh; overflow-y: auto; }
  .mobile-menu-item { min-height: 50px; font-size: 15.5px; }

  /* Кнопка допомоги — над панеллю, праворуч, під великим пальцем */
  .tg-support-fab { bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 12px) !important; right: 12px !important; width: 50px; height: 50px; padding: 0 !important; justify-content: center; }
  .sc-panel { bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 8px) !important; top: 12px !important; z-index: 96; }
  .sc-row textarea, .sc-form input[type=text] { font-size: 16px !important; }
}
@media (max-width: 360px) {
  .m-tab { font-size: 10px; }
  .card-price { font-size: 16px !important; }
}
/* ---------- Коротке опитування на телефоні ---------- */
.m-survey { display: none; }
@media (max-width: 680px) {
  .m-survey { position: fixed; left: 10px; right: 10px; bottom: calc(var(--m-nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 84; background: #fff; border: 1px solid #ECE9E4; border-radius: 18px; box-shadow: 0 12px 34px rgba(22,34,30,.16); padding: 14px 14px 12px; animation: svIn .35s var(--ease-smooth); }
  .m-survey.on { display: block; }
  body.m-survey-on .tg-support-fab { display: none !important; }
  .sv-head { display: flex; align-items: flex-start; gap: 10px; }
  .sv-q { flex: 1; font-size: 15.5px; font-weight: 900; color: var(--ink); line-height: 1.3; }
  .sv-x { width: 34px; height: 34px; margin: -6px -6px 0 0; border: none; background: #F2F0EC; color: var(--ink-soft); border-radius: 50%; font-size: 14px; flex: none; }
  .sv-moods { display: flex; gap: 8px; margin-top: 12px; }
  .sv-mood { flex: 1; min-height: 64px; border: 1.5px solid #E6E2DC; background: #FAF9F7; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--ink); }
  .sv-mood b { font-size: 24px; line-height: 1; font-weight: 400; }
  .sv-mood.active { border-color: var(--accent); background: var(--accent-soft); }
  .sv-more textarea { width: 100%; margin-top: 10px; border: 1.5px solid #E6E2DC; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; resize: none; min-height: 72px; }
  .sv-more textarea:focus { outline: none; border-color: var(--accent); }
  .sv-actions { display: flex; gap: 8px; margin-top: 10px; }
  .sv-send { flex: 1; min-height: 46px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 900; }
  .sv-skip { min-height: 46px; padding: 0 16px; border: 1px solid #E6E2DC; border-radius: 12px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 800; }
  .sv-thanks { font-size: 15px; font-weight: 800; color: var(--ink); text-align: center; padding: 8px 4px; }
}
/* ---------- Реферальна програма ---------- */
.ref-promo { display: flex; align-items: center; gap: 12px; margin: 14px 20px 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, #FFF4E0, #FCE9EE); border: 1px solid #F6DCC4; cursor: pointer; font: inherit; text-align: left; width: calc(100% - 40px); color: var(--ink); }
.ref-promo .ref-gift { font-size: 28px; line-height: 1; flex: none; }
.ref-promo b { display: block; font-size: 15px; font-weight: 900; }
.ref-promo span { display: block; font-size: 12.5px; color: var(--ink-soft); font-weight: 700; margin-top: 1px; }
.ref-promo .ref-go { margin-left: auto; flex: none; font-size: 13px; font-weight: 900; color: var(--accent-dark); white-space: nowrap; }
@media (max-width: 680px) { .ref-promo { margin: 12px 12px 0; width: calc(100% - 24px); padding: 10px 14px; } .ref-promo .ref-go { display: none; } .ref-promo b { font-size: 14.5px; } }
.ref-modal { max-width: 480px !important; }
.ref-modal h2 { margin-bottom: 6px !important; }
.ref-lead { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.ref-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.ref-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.ref-steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff !important; font-style: normal; font-weight: 900; font-size: 12.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.ref-box { background: #F6F8FB; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.ref-link { display: flex; gap: 8px; }
.ref-link input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
.ref-btn { border: none; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; font-size: 14px; padding: 10px 14px; cursor: pointer; white-space: nowrap; }
.ref-btn.alt { background: #fff; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.ref-share { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ref-share .ref-btn { flex: 1; min-height: 42px; }
.ref-progress { margin-top: 14px; }
.ref-progress-top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 800; }
.ref-bar { height: 10px; border-radius: 999px; background: #E6E8E4; margin-top: 6px; overflow: hidden; }
.ref-bar div { height: 100%; background: linear-gradient(90deg, #4A96E0, #1F9D55); border-radius: 999px; }
.ref-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.ref-top h3 { font-size: 15px; margin: 4px 0 8px; }
.ref-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ref-row .ref-place { width: 26px; font-weight: 900; color: var(--ink-soft); text-align: center; }
.ref-row .ref-name { flex: 1; font-weight: 700; }
.ref-row .ref-n { font-weight: 900; }
.ref-row.me { background: var(--accent-soft); border-radius: 8px; }
.ref-empty { font-size: 13.5px; color: var(--ink-soft); padding: 6px 0; }
.ref-prize { border-radius: 14px; padding: 14px; margin-bottom: 14px; background: linear-gradient(135deg, #FFF4E0, #FCE9EE); border: 1px solid #F6DCC4; }
.ref-prize b { display: block; font-size: 15px; font-weight: 900; }
.ref-prize p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.ref-prize .ref-bar div { background: linear-gradient(90deg, #F2A541, #E7708F); }
.ref-fine { font-size: 11.5px; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }
@keyframes svIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Мобільна версія без реклами: банер над оголошеннями, рекламні картки в сітці та бокова реклама */
@media (max-width: 680px) { #adBannerSlot, .ad-grid-card, .ad-skyscraper-left { display: none !important; } }
/* ================= Новий м'який дизайн (жовтень 2026) ================= */
:root {
  --accent: #F4845F; --accent-dark: #E56E48; --accent-soft: #FFE9E0;
  --grad-accent: linear-gradient(135deg, #F79A78 0%, #F4845F 100%);
  --bg: #FFF9F3; --card: #FFFFFF;
  --ink: #2E2A3D; --ink-soft: #6B667A; --ink-faint: #A39FB0; --line: #EEE6DC;
  --violet: #8E7CF0; --mint: #3BB08A;
  --shadow-sm: 0 6px 20px rgba(60,40,30,.06); --shadow-md: 0 8px 24px rgba(60,40,30,.09); --shadow-lg: 0 14px 34px rgba(60,40,30,.12);
  --r-card: 22px;
}
body, button, input, select, textarea { font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
body { background: var(--bg) !important; color: var(--ink); }
body::before { display: none !important; }
h1, h2, h3, .grid-title, .card-price, .detail-price, .modal h2, .how-head h2, .faq-head h2, .top-sellers-head h2 { font-family: 'Onest', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif !important; font-weight: 700 !important; letter-spacing: -.2px; }
.logo, .footer-logo { font-family: 'Onest', sans-serif !important; }

/* Шапка і логотип (той самий, трохи більший) */
.site-header { background: var(--bg) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.logo { font-size: 28px !important; color: #16221E; }
.logo-mascot { width: 46px !important; height: 46px !important; }
.btn-header-post { background: var(--accent) !important; box-shadow: 0 8px 18px rgba(244,132,95,.32) !important; border-radius: 16px !important; font-weight: 700 !important; }
.btn-header-post:hover { background: var(--accent-dark) !important; }
.nav-icon-item { color: var(--ink-soft); border-radius: 12px; }
.nav-icon-item:hover { background: #fff; color: var(--ink); }
.nav-badge { background: var(--accent) !important; }
.lang-switch button.active { color: var(--ink); }

/* Головний блок: заголовок + пошук */
.hero-banner { background: none !important; min-height: 0 !important; border-radius: 0; margin: 0 !important; overflow: visible; }
.hero-banner::before { display: none !important; }
.hero-banner h1 { color: var(--ink) !important; }
.hero-banner p { color: var(--ink-soft) !important; font-weight: 500 !important; }
.hero-art, .hero-search { display: none; }
.search-form { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: var(--shadow-sm) !important; }
.search-field input { font-family: 'Onest', sans-serif; font-weight: 500; }
.search-icon { font-size: 0 !important; width: 22px; height: 22px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2A3D' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.search-field-city .search-icon { width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2A3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.btn-search { background: var(--accent) !important; border-radius: 14px !important; font-size: 0 !important; font-weight: 700; box-shadow: none !important; }
.btn-search span { font-size: 15px; }
.btn-search:hover { background: var(--accent-dark) !important; }
.city-autocomplete { border-radius: 14px !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-md) !important; }

/* Категорії — плитки з іконками */
.cat-tile { background: none !important; border: none !important; box-shadow: none !important; gap: 8px; }
.cat-tile-icon { border-radius: 22px !important; display: flex !important; align-items: center; justify-content: center; transition: box-shadow .2s ease, transform .2s ease; }
.cat-tile-icon svg { width: 58%; height: 58%; display: block; }
.cat-tile.active .cat-tile-icon { box-shadow: 0 0 0 2.5px var(--accent); }
.cat-tile:hover .cat-tile-icon { transform: translateY(-2px); }
.cat-tile-label { font-weight: 600 !important; color: var(--ink) !important; }
.cat-tile.active .cat-tile-label { font-weight: 800 !important; }
.sidebar-cat-icon svg { width: 22px; height: 22px; display: block; }

/* Запроси друзів */
.ref-promo { background: var(--violet) !important; border: none !important; border-radius: 24px !important; color: #fff !important; box-shadow: 0 10px 24px rgba(142,124,240,.28) !important; padding: 16px 18px !important; }
.ref-promo b { font-family: 'Onest', sans-serif; font-weight: 700 !important; color: #fff; }
.ref-promo span { color: rgba(255,255,255,.85) !important; }
.ref-promo .ref-gift { order: 2; margin-left: auto; width: 58px; height: 58px; border-radius: 18px; background: #FFC83D; display: flex !important; align-items: center; justify-content: center; font-size: 30px !important; transform: rotate(-8deg); }
.ref-promo .ref-go { color: #fff !important; order: 3; }

/* Фільтри */
.grid-title { color: var(--ink) !important; }
.mode-chip { border-radius: 999px !important; border: 1px solid var(--line) !important; background: #fff !important; color: var(--ink) !important; font-weight: 700 !important; }
.mode-chip.active, #modeFilterBar .mode-chip.active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.filters-wrap-row { background: none !important; border: none !important; padding: 0 !important; }
.price-range-input, .sort-select { border-radius: 12px !important; border: 1px solid var(--line) !important; }
.price-range-apply-btn { background: var(--accent) !important; color: #fff !important; border-radius: 12px !important; }
.m-filters-chip { border-color: var(--line) !important; }
.m-filters-chip.on { border-color: var(--accent) !important; color: var(--accent-dark) !important; background: var(--accent-soft) !important; }

/* Картки оголошень */
.listing-card { border: 1px solid var(--line) !important; border-radius: var(--r-card) !important; box-shadow: var(--shadow-sm) !important; background: #fff !important; }
.listing-card:hover { box-shadow: var(--shadow-lg) !important; }
.card-media { background: #FFF1E8 !important; }
.card-type-badge { border-radius: 8px !important; font-weight: 700 !important; padding: 4px 9px !important; }
.card-type-badge.sale { display: none !important; }
.card-type-badge.free { background: #D9F6EA !important; color: #11724F !important; }
.card-type-badge.exchange { background: #ECE6FF !important; color: #4B2FD0 !important; }
.card-heart-btn { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(60,40,30,.12) !important; color: var(--ink) !important; }
.card-heart-btn.active { color: var(--accent) !important; }
.card-price { color: var(--ink) !important; font-size: 18px !important; }
.card-price.free { color: var(--mint) !important; }
.card-title { color: var(--ink) !important; font-weight: 600; }
.badge-condition { background: #F6F1EA !important; color: var(--ink-soft) !important; border-radius: 8px !important; }
.card-city { color: var(--ink-soft) !important; }
.load-more-btn { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 16px !important; color: var(--ink) !important; box-shadow: var(--shadow-sm); }

/* Як це працює, питання, банери */
.how { background: transparent !important; border-top: none !important; }
.how-card { background: #fff !important; border: 1px solid var(--line); border-radius: var(--r-card) !important; box-shadow: var(--shadow-sm); }
.faq-item { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; }
.faq-item summary::after { color: var(--accent) !important; }

/* Вікна, форми, кнопки */
.modal { border-radius: 24px !important; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line) !important; border-radius: 16px !important; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
.submit-btn, .chat-with-seller-btn { background: var(--accent) !important; border-radius: 18px !important; box-shadow: 0 8px 18px rgba(244,132,95,.3) !important; font-weight: 700 !important; }
.submit-btn:hover, .chat-with-seller-btn:hover { background: var(--accent-dark) !important; }
.ai-fill-btn { background: var(--violet) !important; color: #fff !important; border: none !important; border-radius: 16px !important; box-shadow: 0 8px 18px rgba(142,124,240,.3) !important; }
.detail-price { color: var(--accent) !important; }
.detail-price.free { color: var(--mint) !important; }
.detail-tag { border-radius: 8px !important; }
.contact-box, .seller-box { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 20px !important; }
.carousel-dot.active { background: var(--ink) !important; }
.chat-bubble.mine { background: var(--accent) !important; }
.sc-fab, .tg-support-fab { background: var(--violet) !important; box-shadow: 0 10px 22px rgba(142,124,240,.38) !important; border-radius: 20px !important; }
.toast { border-radius: 14px !important; }

.site-footer { background: #2E2A3D !important; }
.print-promo { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm) !important; text-decoration: none; display: flex; }
.print-promo b { color: var(--ink) !important; }
.print-promo span { color: var(--ink-soft) !important; }
.print-promo .ref-gift { background: #FFE3D8 !important; transform: rotate(6deg) !important; }
.print-promo .ref-go { color: var(--accent-dark) !important; }

/* ---------- Комп'ютер ---------- */
@media (min-width: 1025px) {
  .hdr-search { display: none !important; }
  .header-inner { max-width: 1312px !important; padding: 12px 24px 0 !important; }
  .main-layout { display: block !important; max-width: 1312px !important; padding: 0 24px !important; }
  .sidebar-categories { display: none !important; }
  .hero-banner { display: grid !important; grid-template-columns: 1fr auto; align-items: center; margin: 28px 0 0 !important; padding: 44px 48px !important; background: var(--accent) !important; border-radius: 36px !important; box-shadow: 0 16px 40px rgba(244,132,95,.25) !important; overflow: hidden; }
  .hero-banner-text { max-width: 620px !important; padding: 0 !important; }
  .hero-banner h1 { color: #fff !important; font-size: 54px !important; line-height: 1.05 !important; letter-spacing: -1px !important; margin-bottom: 14px !important; }
  .hero-banner p { color: rgba(255,255,255,.95) !important; font-size: 18px !important; margin-bottom: 26px !important; }
  .hero-search { display: block; max-width: 600px; }
  .hero-search .search-form { margin: 0 !important; max-width: none !important; border: none !important; box-shadow: 0 10px 26px rgba(120,50,20,.18) !important; padding: 6px !important; display: flex; align-items: center; gap: 6px; }
  .hero-search .search-field { min-height: 54px; }
  .hero-search .search-field-city { flex: 0 0 160px; background: var(--bg); border-radius: 12px; min-height: 44px; }
  .hero-search .search-divider { display: none; }
  .hero-search .btn-search { min-height: 48px; padding: 0 24px !important; }
  .hero-art { display: block; position: relative; width: 300px; height: 280px; }
  .hero-art i { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 34px; box-shadow: 0 12px 26px rgba(120,50,20,.18); }
  .hero-art svg { width: 80%; height: 80%; }
  .hero-art i:nth-child(1) { left: 20px; top: 0; width: 150px; height: 150px; background: #FFC83D; transform: rotate(-8deg); }
  .hero-art i:nth-child(2) { left: 150px; top: 72px; width: 140px; height: 140px; background: #DDEFFF; transform: rotate(7deg); }
  .hero-art i:nth-child(3) { left: 30px; top: 158px; width: 124px; height: 124px; background: #FFE0EA; transform: rotate(4deg); }
  .categories-section { display: block !important; padding: 34px 0 0 !important; }
  .categories-toggle-btn { display: none !important; }
  .cat-grid { display: flex !important; justify-content: space-between; gap: 8px !important; margin: 0 !important; }
  .cat-tile { flex: 0 0 96px; padding: 0 !important; min-height: 0 !important; }
  .cat-tile-icon { width: 84px !important; height: 84px !important; border-radius: 26px !important; }
  .cat-tile-label { font-size: 14px !important; }
  .ref-promo { margin: 30px 0 0 !important; width: 100% !important; }
  .grid-title { display: block !important; font-size: 26px !important; margin: 36px 0 14px !important; }
  #grid { gap: 20px !important; }
  .grid-section { padding: 0 !important; }
  #modeFilterBar, #priceSortBar, #subcategoryFilterBar { padding-left: 0 !important; padding-right: 0 !important; }
  .ref-promo.print-promo { margin-top: 14px !important; }
}

/* ---------- Телефон ---------- */
@media (max-width: 680px) {
  body { background: var(--bg) !important; padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .site-header { background: var(--bg) !important; border-bottom: none !important; }
  .header-inner { padding: 12px 16px 4px !important; }
  .logo { font-size: 21px !important; }
  .logo-mascot { width: 38px !important; height: 38px !important; }
  .hero-banner { display: block !important; margin: 0 !important; }
  .hero-banner-text { max-width: none !important; padding: 14px 16px 2px !important; }
  .hero-banner h1 { font-size: 29px !important; line-height: 1.1 !important; letter-spacing: -.6px !important; margin-bottom: 6px !important; }
  .hero-banner p { font-size: 15px !important; margin: 0 !important; }
  .search-band { padding: 14px 16px 0 !important; }
  .search-form { flex-wrap: nowrap !important; align-items: center; gap: 6px !important; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 18px !important; box-shadow: var(--shadow-sm) !important; padding: 5px 5px 5px 14px !important; }
  .search-form .search-field { flex: 1 1 auto !important; border: none !important; background: none !important; min-height: 44px !important; padding: 0 !important; gap: 8px; }
  .search-form .search-field-city { flex: 0 0 128px !important; background: var(--bg) !important; border-radius: 12px !important; padding: 0 10px !important; min-height: 40px !important; }
  .search-form .search-field-city input { font-size: 14px !important; font-weight: 600; }
  .city-autocomplete { left: auto !important; right: 0 !important; width: 260px !important; }
  .categories-section { padding: 16px 0 0 !important; }
  .cat-grid { gap: 10px !important; padding: 2px 16px 8px !important; }
  .cat-tile { flex: 0 0 72px !important; min-height: 0 !important; padding: 0 !important; }
  .cat-tile-icon { width: 68px !important; height: 68px !important; border-radius: 22px !important; }
  .cat-tile-label { font-size: 12px !important; }
  .ref-promo { margin: 14px 16px 0 !important; width: calc(100% - 32px) !important; padding: 14px 14px 14px 16px !important; }
  .ref-promo b { font-size: 15px !important; }
  .ref-promo .ref-gift { width: 52px; height: 52px; font-size: 26px !important; }
  .ref-promo.print-promo { margin-top: 10px !important; }
  .grid-title { display: block !important; padding: 20px 16px 0 !important; font-size: 20px !important; }
  #modeFilterBar { padding: 12px 16px 0 !important; }
  .m-count { padding: 12px 16px 0 !important; }
  .grid-section { padding: 12px 16px 0 !important; }
  #grid { gap: 14px !important; }
  .listing-card { border-radius: 20px !important; box-shadow: var(--shadow-sm) !important; }
  .card-title { color: var(--ink) !important; }
  .m-tabbar { left: 12px !important; right: 12px !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; height: 70px !important; padding: 0 6px !important; border-radius: 26px !important; border: none !important; background: #fff !important; box-shadow: 0 10px 30px rgba(60,40,30,.14) !important; }
  .m-tab { color: var(--ink-faint) !important; font-weight: 700 !important; }
  .m-tab.active { color: var(--accent) !important; }
  .m-tab-post { color: var(--accent) !important; }
  .m-tab-post .m-plus { background: var(--accent) !important; border-radius: 20px !important; box-shadow: 0 8px 18px rgba(244,132,95,.45) !important; border-color: #fff !important; }
  .m-tab .m-badge { background: var(--accent) !important; }
  .tg-support-fab { bottom: calc(96px + env(safe-area-inset-bottom)) !important; right: 16px !important; width: 54px !important; height: 54px !important; }
  .mobile-nav-dropdown { bottom: calc(92px + env(safe-area-inset-bottom)) !important; border-radius: 22px !important; }
  .sc-panel { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .m-survey { bottom: calc(92px + env(safe-area-inset-bottom)) !important; border-radius: 22px !important; }
}
@media (max-width: 420px) {
  .logo { font-size: 21px !important; }
  .logo-mascot { width: 38px !important; height: 38px !important; }
}
@media (max-width: 360px) {
  .logo { font-size: 19px !important; }
  .logo-mascot { width: 34px !important; height: 34px !important; }
  .search-form .search-field-city { flex-basis: 112px !important; }
}
/* ===== Замовлення з оголошення ===== */
.oo-field{background:#FFF6F1;border:1px solid #F8D9CB;border-radius:18px;padding:12px 14px}
.field .oo-toggle{display:flex;gap:10px;align-items:flex-start;cursor:pointer;margin:0 !important;color:var(--ink) !important;font-size:14px !important}
.field .oo-toggle input{width:20px !important;height:20px !important;min-height:0 !important;padding:0 !important;border-radius:5px !important;flex:none;margin-top:2px;accent-color:var(--accent)}
.field .oo-toggle small{display:block;font-weight:500;color:var(--ink-soft);font-size:12.5px;margin-top:2px}
#orderOptsBox{margin-top:12px}
#orderOptsBox > label{margin-top:12px}
.oo-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.oo-presets button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font:600 12.5px 'Onest',sans-serif;color:var(--ink);cursor:pointer}
.oo-q{display:grid;grid-template-columns:1fr 110px;gap:8px;margin-bottom:8px}
.oo-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.field .oo-row2 label{display:block;font-size:12px;font-weight:700;color:var(--ink-soft);margin:12px 0 5px}
.card-order-badge{position:absolute;left:8px;bottom:8px;z-index:2;background:#fff;color:var(--accent-dark);border-radius:999px;padding:4px 10px;font:700 11.5px 'Onest','Apple Color Emoji','Noto Color Emoji',sans-serif;box-shadow:0 4px 12px rgba(60,40,30,.14)}
.order-box{margin:14px 0;background:#FFF6F1;border:1px solid #F8D9CB;border-radius:18px;padding:14px}
.order-box .ob-row{display:flex;justify-content:space-between;gap:10px;font-size:14px;padding:4px 0}
.order-box .ob-row span:first-child{color:var(--ink-soft)}
.order-box .ob-row b{text-align:right}
.order-box .ob-chart{white-space:pre-line;font-size:13px;color:var(--ink-soft);background:#fff;border-radius:12px;padding:8px 10px;margin-top:6px}
.order-box details summary{cursor:pointer;font-weight:700;font-size:14px;margin-top:6px;color:var(--accent-dark)}
.order-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;margin-top:10px;border-radius:16px;background:var(--accent);color:#fff !important;text-decoration:none;font:700 16px 'Onest','Apple Color Emoji','Noto Color Emoji',sans-serif;box-shadow:0 8px 18px rgba(244,132,95,.3)}
.order-btn:hover{background:var(--accent-dark)}
.order-note{font-size:12px;color:var(--ink-soft);text-align:center;margin-top:8px}
/* ===== Профіль малюка ===== */
.kids-section{max-width:1240px;margin:14px auto 4px;padding:0 16px}
.kids-cta{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:1px solid #DCEBFF;background:linear-gradient(135deg,#EAF4FF,#F3EEFF);border-radius:22px;padding:14px 16px;cursor:pointer;font:inherit;color:var(--ink);box-shadow:0 6px 18px rgba(60,40,30,.06)}
.kids-cta .kc-ico{width:52px;height:52px;border-radius:16px;background:#fff;display:grid;place-items:center;font-size:28px;flex:none;font-family:'Apple Color Emoji','Noto Color Emoji',sans-serif}
.kids-cta b{display:block;font:700 16px 'Onest','Onest',sans-serif}
.kids-cta small{display:block;color:var(--ink-soft);font-size:13px;margin-top:2px}
.kids-cta .kc-go{margin-left:auto;font-weight:700;color:var(--violet);white-space:nowrap;font-size:14px}
.kids-box{background:#fff;border:1px solid var(--line);border-radius:22px;padding:14px 14px 12px;box-shadow:0 6px 18px rgba(60,40,30,.06)}
.kids-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kids-head h3{margin:0;font:700 18px 'Onest','Onest',sans-serif}
.kids-head .kh-meta{color:var(--ink-soft);font-size:13px}
.kids-head .kh-edit{margin-left:auto;border:none;background:none;color:var(--violet);font:700 14px 'Onest',sans-serif;cursor:pointer;padding:4px}
.kids-tabs{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.kids-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font:600 13px 'Onest',sans-serif;cursor:pointer;color:var(--ink)}
.kids-tabs button.on{background:#F3EEFF;border-color:#CFC4FA;color:#5B48C9}
.kids-row{display:flex;gap:10px;overflow-x:auto;padding:10px 2px 4px;scrollbar-width:none}
.kids-row::-webkit-scrollbar{display:none}
.kid-mini{flex:none;width:132px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:0;overflow:hidden;cursor:pointer;text-align:left;font:inherit;color:var(--ink)}
.kid-mini .km-img{height:110px;background:#F6F1EB;display:grid;place-items:center;font-size:40px}
.kid-mini .km-img img{width:100%;height:100%;object-fit:cover}
.kid-mini .km-b{padding:7px 9px 9px}
.kid-mini .km-p{font-weight:800;font-size:14px;color:var(--accent-dark)}
.kid-mini .km-t{font-size:12.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kids-empty{color:var(--ink-soft);font-size:13.5px;padding:10px 2px 4px}
.kids-all{display:inline-block;margin-top:6px;border:none;background:#F3EEFF;color:#5B48C9;border-radius:12px;padding:8px 14px;font:700 13.5px 'Onest',sans-serif;cursor:pointer}
.kid-chip{background:#F3EEFF !important;color:#5B48C9 !important;border-color:#CFC4FA !important}
.kid-chip.active{background:#8E7CF0 !important;color:#fff !important}
.card-kid-badge{position:absolute;left:8px;top:8px;z-index:2;background:#8E7CF0;color:#fff;border-radius:999px;padding:4px 10px;font:700 11.5px 'Onest','Apple Color Emoji','Noto Color Emoji',sans-serif;box-shadow:0 4px 12px rgba(91,72,201,.25);max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fit-box{margin:12px 0;border:1px solid var(--line);border-radius:16px;padding:8px 12px}
.fit-box .detail-row{border:none !important}
.fit-ok{display:inline-flex;align-items:center;gap:6px;background:#F3EEFF;color:#5B48C9;border-radius:999px;padding:5px 12px;font-weight:700;font-size:13px;margin:6px 0 2px}
.fit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kids-modal{max-width:500px !important}
.kids-modal h2{margin:0 0 4px}
.kids-sub{color:var(--ink-soft);font-size:14px;margin:0 0 12px}
.kid-item{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:10px 12px;margin-bottom:8px}
.kid-item .ki-ava{width:44px;height:44px;border-radius:14px;background:#F3EEFF;display:grid;place-items:center;font-size:24px;flex:none;font-family:'Apple Color Emoji','Noto Color Emoji',sans-serif}
.kid-item b{display:block}
.kid-item small{display:block;color:var(--ink-soft);font-size:12.5px}
.kid-item .ki-act{margin-left:auto;display:flex;gap:4px}
.kid-item .ki-act button{border:1px solid var(--line);background:#fff;border-radius:10px;width:36px;height:36px;cursor:pointer;font-size:15px}
.kid-form .field label{margin-top:2px}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0;inset:0;cursor:pointer}
.seg span{display:inline-block;border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;font-weight:600;font-size:14px;background:#fff}
.seg input:checked + span{border-color:var(--violet);background:#F3EEFF;color:#5B48C9}
.kid-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:600;margin:10px 0 4px;cursor:pointer}
.kid-check input{width:20px;height:20px;accent-color:var(--violet);flex:none;margin-top:1px}
.kid-check small{display:block;font-weight:500;color:var(--ink-soft);font-size:12.5px}
.kid-btns{display:flex;gap:8px;margin-top:12px}
.kid-btns button{flex:1;height:48px;border-radius:14px;font:700 15px 'Onest',sans-serif;cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink)}
.kid-btns .kb-main{background:var(--violet);border-color:var(--violet);color:#fff}
.kid-add{width:100%;height:48px;border-radius:14px;border:1.5px dashed #CFC4FA;background:#FBFAFF;color:#5B48C9;font:700 15px 'Onest',sans-serif;cursor:pointer;margin-top:4px}
.kids-note{font-size:12.5px;color:var(--ink-faint);margin-top:12px;line-height:1.45}
@media (max-width:680px){.kids-section{padding:0 16px}.kids-cta .kc-go{display:none}}
.ref-promo .ref-gift svg{width:68%;height:68%;display:block}
.kids-ico{width:34px;height:34px;border-radius:11px;background:#F3EEFF;display:inline-grid;place-items:center;flex:none}
.kids-ico svg{width:82%;height:82%}
.kids-head h3{display:flex;align-items:center;gap:8px}
.kids-cta .kc-ico{background:#fff}
.kids-cta .kc-ico svg{width:80%;height:80%}
.kid-chip svg{width:18px;height:18px;vertical-align:-4px;margin-right:5px}
.card-kid-badge svg{width:15px;height:15px;vertical-align:-3px;margin-right:4px}
.kid-mini .km-img svg{width:58px;height:58px}
.kid-item .ki-ava svg{width:80%;height:80%}
.kids-modal h2{display:flex;align-items:center;gap:10px}
@media (min-width:1025px){
  .promo-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:30px}
  .promo-row .ref-promo{margin:0 !important;width:auto !important}
  .promo-row .shop-promo{grid-column:1/-1}
  .ref-promo .ref-go{margin-left:14px !important}
  .kids-section{max-width:none;margin:16px 0 0;padding:0}
  .kids-cta{padding:16px 18px;border-radius:24px}
}
@media (max-width:1024px){.promo-row{display:contents}}

/* ===== Новий дизайн (жовтень 2026): кольори робочої версії (корал + темний), Unbounded — як у відео ===== */
html:root{--mm-green:#2E2A3D;--mm-green-2:#45405A;--mm-orange:#F4845F;--mm-orange-d:#E56E48;--mm-cream:#FFF1E8;--mm-yellow:#4B2FD0;--mm-free:#3BB08A;--mm-ink:#2E2A3D;--mm-soft:#6B667A;--mm-line:#EEE6DC;--mm-disp:'Unbounded','Onest',system-ui,sans-serif;
  --accent:var(--mm-orange);--accent-dark:#E56E48;--accent-soft:#FFE9E0;--bg:#FFF9F3;--ink:var(--mm-ink);--ink-soft:var(--mm-soft);--line:var(--mm-line);--grad-accent:var(--mm-orange);--header-bg:#FFF9F3;--header-text:var(--mm-ink)}
html body{background:var(--bg)!important;color:var(--mm-ink);font-family:'Onest',system-ui,-apple-system,'Segoe UI',Arial,sans-serif,'Noto Color Emoji'!important}
html body::before{display:none!important}
html body h1,html body h2,html body .grid-title,html body .how-head h2,html body .faq-head h2,html body .top-sellers-head h2{font-family:var(--mm-disp)!important;color:var(--mm-green)!important;letter-spacing:-.01em}
/* шапка */
html body .site-header{background:rgba(255,249,243,.96)!important;backdrop-filter:blur(8px);border-bottom:1px solid var(--mm-line)!important;box-shadow:none!important}
html body .logo,html body .footer-logo{font-family:var(--mm-disp)!important;font-weight:800!important;color:var(--mm-green)!important;letter-spacing:-.02em}
html body .logo span,html body .footer-logo span{color:var(--mm-orange)!important;background:none!important;-webkit-text-fill-color:currentColor!important}
html body .btn-header-post,html body .mm-cta-btn{background:var(--mm-orange)!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:700!important;box-shadow:0 6px 16px rgba(244,132,95,.28)!important;font-family:'Onest',sans-serif!important}
html body .btn-header-post:hover,html body .mm-cta-btn:hover{background:var(--mm-orange-d)!important;transform:translateY(-1px)}
html body .btn-header-post::before{content:'+ ';font-weight:800}
html body .nav-icon-item{color:var(--mm-ink)!important;background:none!important}
html body .nav-icon-item:hover{color:var(--mm-orange)!important}
html body .nav-icon-label{font-weight:500!important;color:var(--mm-soft)}
html body .lang-switch{gap:2px!important}
html body .lang-switch .sep{display:none!important}
html body .lang-switch button{border-radius:999px!important;padding:5px 9px!important;font-size:11.5px!important;font-weight:700!important;color:var(--mm-soft)!important;text-decoration:none!important;background:none!important}
html body .lang-switch button.active{background:var(--mm-green)!important;color:#fff!important}
/* герой */
html body .mm-hero{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:48px;align-items:center;max-width:1240px;margin:0 auto!important;padding:48px 20px 24px!important;background:none!important;border-radius:0!important;min-height:0!important;overflow:visible!important;box-shadow:none!important}
html body .mm-hero::before,html body .mm-hero::after{display:none!important}
html body .mm-hero .hero-banner-text{max-width:none!important;padding:0!important;background:none!important}
.mm-eyebrow{display:block;font-family:'Onest',sans-serif;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--mm-orange);margin:0 0 12px}
html body .mm-hero h1{font-size:clamp(34px,4.6vw,60px)!important;line-height:1.04!important;font-weight:800!important;margin:0 0 18px!important;-webkit-text-fill-color:currentColor!important;background:none!important;text-shadow:none!important}
html body .mm-hero p{font-size:16px!important;font-weight:400!important;line-height:1.6!important;color:var(--mm-soft)!important;margin:0 0 26px!important;max-width:520px;text-shadow:none!important}
html body .mm-hero .hero-search{display:block!important;margin:0 0 14px}
html body .mm-hero .search-form{background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:14px!important;box-shadow:0 10px 30px rgba(60,40,30,.08)!important;padding:6px!important;max-width:560px}
html body .btn-search{background:var(--mm-orange)!important;border-radius:10px!important;color:#fff!important;box-shadow:none!important}
html body .btn-search:hover{background:var(--mm-orange-d)!important}
html body .mm-check-note{display:flex;align-items:center;gap:8px;font-size:13px!important;color:var(--mm-soft)!important;margin:0!important;font-weight:400!important}
html body .mm-check-note svg{width:15px;height:15px;color:var(--mm-free);flex:none}
.mm-hero-photo{position:relative;border-radius:24px;overflow:visible;aspect-ratio:4/3}
.mm-hero-photo img{width:100%;height:100%;object-fit:cover;border-radius:24px;display:block}
.mm-photo-tag{position:absolute;left:18px;bottom:-14px;transform:rotate(-4deg);background:var(--mm-orange);color:#fff;font-family:var(--mm-disp);font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:9px 14px;border-radius:8px;box-shadow:0 8px 20px rgba(244,132,95,.35)}
/* статистика */
html body .mm-stats{display:flex!important;justify-content:space-around;gap:20px;max-width:1240px;margin:28px auto 36px!important;padding:26px 20px!important;background:none!important;border:0!important;border-top:1px solid var(--mm-line)!important;border-bottom:1px solid var(--mm-line)!important;border-radius:0!important;box-shadow:none!important}
html body .mm-stats .stat-item{display:flex!important;align-items:center;gap:14px;text-align:left!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.mm-stat-ic{width:44px;height:44px;border-radius:12px;background:#FFE9E0;color:var(--mm-orange);display:flex;align-items:center;justify-content:center;flex:none}
.mm-stat-ic svg{width:22px;height:22px}
html body .mm-stats .stat-num{font-family:var(--mm-disp)!important;font-size:28px!important;font-weight:700!important;color:var(--mm-green)!important;-webkit-text-fill-color:currentColor!important;background:none!important;line-height:1.1}
html body .mm-stats .stat-label{font-size:12.5px!important;color:var(--mm-soft)!important}
/* сайдбар */
html body .sidebar-categories{background:none!important;border:0!important;box-shadow:none!important}
html body .sidebar-cat-item{border-radius:10px!important;font-weight:500!important;color:var(--mm-ink)!important;background:none!important}
html body .sidebar-cat-item:hover{background:#FFE9E0!important;color:var(--mm-orange)!important}
html body .sidebar-cat-item.active{background:none!important;color:var(--mm-orange)!important;font-weight:700!important;position:relative}
html body .sidebar-cat-item.active::after{content:'✓';margin-left:auto;color:var(--mm-orange);font-weight:700}
/* стрічка */
.mm-feed-eyebrow{padding:0 20px;margin-top:8px}
html body .grid-title{font-size:30px!important;font-weight:800!important;position:relative;display:inline-block;padding-bottom:12px;margin-bottom:18px!important}
html body .grid-title::after{content:'';position:absolute;left:20px;bottom:0;width:58px;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 8'%3E%3Cpath d='M1 5c5-4 9-4 14 0s9 4 14 0 9-4 14 0 9 4 14 0' fill='none' stroke='%23F4845F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat}
html body .how-head::after,html body .faq-head::after{content:''!important;display:block!important;position:static!important;margin:12px auto 0!important;width:58px!important;height:8px!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 8'%3E%3Cpath d='M1 5c5-4 9-4 14 0s9 4 14 0 9-4 14 0 9 4 14 0' fill='none' stroke='%23F4845F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat!important;border:0!important}
html body .mode-chip{background:#fff!important;border:1.5px solid transparent!important;color:var(--mm-soft)!important;border-radius:999px!important;box-shadow:none!important;font-weight:500!important}
html body .mode-chip.active{border-color:var(--mm-orange)!important;color:var(--mm-orange)!important;background:#fff!important;font-weight:700!important}
html body .price-range-apply-btn{background:none!important;color:var(--mm-orange)!important;border:0!important;font-weight:700!important;box-shadow:none!important}
html body .price-range-input,html body .sort-select{border-radius:10px!important;border:1px solid var(--mm-line)!important;background:#fff!important}
html body .categories-heading{font-family:var(--mm-disp)!important;color:var(--mm-green)!important;font-weight:700!important}
html body .video-thumb-circle{border:2.5px solid var(--mm-orange)!important}
html body .video-play-badge{background:var(--mm-orange)!important}
/* картки */
html body .listing-card{background:#fff!important;border:0!important;border-radius:14px!important;box-shadow:none!important;overflow:visible!important}
html body .listing-card:hover{transform:translateY(-3px)!important;box-shadow:0 14px 30px rgba(60,40,30,.10)!important}
html body .card-media{background:var(--mm-cream)!important;border-radius:14px!important;overflow:hidden}
html body .card-type-badge{border-radius:6px!important;font-size:10px!important;font-weight:800!important;letter-spacing:.06em;text-transform:uppercase;padding:4px 8px!important;box-shadow:none!important}
html body .card-type-badge.sale{background:var(--mm-green)!important;color:#fff!important}
html body .card-type-badge.free{background:#D9F6EA!important;color:#11724F!important}
html body .card-type-badge.exchange{background:#ECE6FF!important;color:#4B2FD0!important}
html body .card-heart-btn{background:rgba(255,255,255,.9)!important;color:var(--mm-soft)!important;box-shadow:none!important}
html body .card-body{padding:12px 4px 4px!important}
html body .card-price{font-family:var(--mm-disp)!important;font-weight:600!important;font-size:18px!important;color:var(--mm-ink)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html body .card-price.free{color:var(--mm-free)!important}
html body .card-title{font-weight:500!important;color:var(--mm-ink)!important}
html body .badge-condition{background:none!important;color:var(--mm-soft)!important;padding:0!important;font-weight:400!important;font-size:11px!important;border:0!important}
html body .card-meta-row{border-top:0!important}
html body .ad-grid-card{border-radius:14px!important}
/* як це працює / FAQ */
html body .how{background:#fff!important;border:0!important;padding:72px 20px!important}
html body .how-head,html body .faq-head{display:block!important;text-align:center;margin:0 auto 36px!important}
html body .how-head h2,html body .faq-head h2{font-size:clamp(24px,3vw,34px)!important;font-weight:800!important}
html body .how-sub{color:var(--mm-soft)!important;margin-top:10px}
html body .how-card{background:none!important;border:0!important;box-shadow:none!important;text-align:center;padding:10px 16px!important}
html body .how-card h3{font-family:var(--mm-disp)!important;font-size:16px!important;color:var(--mm-green)!important;font-weight:700!important}
.mm-line-icon{width:60px;height:60px;margin:0 auto 14px!important;border-radius:50%;background:#FFE9E0;color:var(--mm-orange);display:flex!important;align-items:center;justify-content:center}
.mm-line-icon svg{width:26px;height:26px}
html body .faq-section{background:var(--bg)!important;padding:40px 20px 72px!important}
html body .faq-item{background:#fff!important;border:0!important;border-bottom:1px solid var(--mm-line)!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
html body .faq-item summary{font-weight:500!important;color:var(--mm-ink)!important;padding:18px 6px!important}
html body .faq-item summary::after{color:var(--mm-orange)!important;font-size:20px!important;transition:transform .2s}
html body .faq-item[open] summary::after{content:'+'!important;transform:rotate(45deg)}
html body .faq-item p{padding:0 6px 18px!important}
/* CTA */
html body .mm-cta{background:var(--bg)!important;padding:40px 20px 80px!important;color:var(--mm-ink)!important;border-radius:0!important;margin:0!important}
html body .mm-cta-inner{max-width:1100px!important;margin:0 auto;display:grid;grid-template-columns:1fr 1.05fr;gap:48px;align-items:center;text-align:left!important;background:none!important;padding:0!important}
html body .mm-cta h2{font-size:clamp(26px,3.2vw,38px)!important;font-weight:800!important;line-height:1.12!important;margin:0 0 6px!important;padding-bottom:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 8'%3E%3Cpath d='M1 5c5-4 9-4 14 0s9 4 14 0 9-4 14 0 9 4 14 0' fill='none' stroke='%23F4845F' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") left bottom/58px 8px no-repeat!important;-webkit-text-fill-color:currentColor!important}
html body .mm-cta p{color:var(--mm-soft)!important;font-size:15px!important;line-height:1.65;margin:12px 0 24px!important;opacity:1!important}
.mm-cta-actions{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:18px}
html body .mm-cta-btn{padding:14px 26px!important;font-size:15px!important}
.mm-cta-link{color:var(--mm-green);font-weight:700;font-size:15px;text-decoration:none;padding-left:14px}
.mm-cta-link:hover{color:var(--mm-orange)}
.mm-cta-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:24px;display:block}
/* футер */
html body .site-footer{background:var(--mm-green)!important}
html body .footer-support-title{color:rgba(255,255,255,.55)!important;letter-spacing:.12em!important}
html body .footer-col a:hover{color:var(--mm-orange)!important}
html body .tg-support-fab,html body .sc-fab{background:var(--mm-green)!important;box-shadow:0 8px 22px rgba(60,40,30,.35)!important;border-radius:999px!important}
/* реклама зліва */
html body .ad-skyscraper-left{background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:12px!important;box-shadow:0 6px 18px rgba(60,40,30,.06)!important}
html body .ad-skyscraper-tag,html body .ad-tag{background:var(--mm-green)!important;color:#fff!important;border-radius:5px!important;font-size:9.5px!important;font-weight:800!important;letter-spacing:.08em;padding:3px 7px!important}
html body .mm-hero h1{color:var(--mm-green)!important}
@media (min-width:1025px){
  html body .header-inner{flex-wrap:nowrap!important;padding:10px 20px!important;max-width:1280px;margin:0 auto;gap:6px!important}
  html body .logo{font-size:21px!important}
  html body .header-nav{order:2!important;flex-basis:auto!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;gap:0!important}
  html body .header-nav .nav-icon-item,html body #authArea .nav-icon-item{flex-direction:column!important;gap:3px!important;padding:4px 8px!important;width:auto!important;height:auto!important}
  html body .header-nav .nav-icon svg,html body #authArea .nav-icon svg{width:20px!important;height:20px!important}
  html body .header-nav .nav-icon-label,html body #authArea .nav-icon-label{display:block!important;font-size:11px!important;font-weight:500!important}
  html body #authArea{order:3!important;margin:0!important}
  html body .lang-switch{order:4!important;position:static!important;margin:0 6px!important}
  html body .btn-header-post{order:5!important;padding:10px 16px!important;font-size:13.5px!important;border-radius:10px!important;white-space:nowrap}
}
@media (max-width:1024px){
  html body .mm-hero{gap:28px;padding:28px 16px 12px!important}
}
@media (max-width:760px){
  html body .mm-hero{grid-template-columns:1fr!important;padding:20px 16px 8px!important;gap:22px}
  html body .mm-hero h1{font-size:32px!important}
  html body .mm-hero p{font-size:15px!important;margin-bottom:16px!important}
  .mm-hero-photo{aspect-ratio:16/10}
  html body .mm-stats{margin:22px 16px 18px!important;padding:16px 0!important;justify-content:space-between}
  html body .mm-stats .stat-num{font-size:22px!important}
  .mm-stat-ic{width:36px;height:36px}
  html body .mm-cta-inner{grid-template-columns:1fr;gap:26px}
  .mm-cta-photo{order:-1}
  html body .grid-title{font-size:24px!important}
  .mm-feed-eyebrow{padding:0 14px}
}
html body #modeFilterBar .mode-chip.active,html body .filters-wrap-row .mode-chip.active{border-color:var(--mm-orange)!important;color:var(--mm-orange)!important;background:#fff!important}
html body .footer-logo{color:#fff!important}
html body .footer-col a{background:none!important;border:0!important;padding:4px 0!important;border-radius:0!important;font-weight:500!important;color:rgba(255,255,255,.85)!important}
html body .footer-col a:hover{color:var(--mm-orange)!important;transform:none!important}
html body .footer-cat{background:rgba(255,255,255,.06)!important}
html body .mm-cta-photo img{height:auto!important;max-height:440px}
html body .mm-cta-inner{align-items:center!important}
html body .mm-feed-eyebrow{margin:28px 0 6px!important;padding:0!important}
html body .grid-title{margin-top:0!important}
html body .grid-title::after{left:0}
@media (min-width:1200px){
  html body .main-layout{display:flex!important;align-items:flex-start;gap:32px}
  html body .sidebar-categories{display:block!important;flex:0 0 220px;position:sticky;top:88px;padding:0!important;max-height:calc(100vh - 100px);overflow:auto}
  html body .sidebar-categories::before{content:attr(data-title);display:block;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mm-soft);padding:6px 10px 10px}
  html body .main-content{flex:1;min-width:0}
  html body .categories-section{display:none!important}
  html body .main-content .grid,html body #grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:1024px){html body .mm-feed-eyebrow{padding:0 16px!important}html body .grid-title::after{left:16px}}
html body .faq-item{background:transparent!important}
html body .site-footer .footer-col{display:flex!important;flex-direction:column!important;gap:2px!important}
/* мобільний пошук, логотип, анімація прокручування */
.m-search-close,.m-search-backdrop{display:none}
@media (max-width:1024px){
  body.m-search-open .search-band{position:fixed!important;top:0;left:0;right:0;z-index:300;display:flex!important;align-items:flex-start;gap:8px;background:var(--bg)!important;padding:12px 12px 14px!important;box-shadow:0 12px 30px rgba(60,40,30,.18);border-radius:0 0 18px 18px;animation:mmSheet .22s ease-out}
  body.m-search-open .search-band .search-form{flex:1;min-width:0;margin:0!important;display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;gap:8px!important;overflow:visible!important}
  body.m-search-open .search-band .search-field{flex:1 1 100%!important;min-width:0}
  body.m-search-open .search-band .search-divider{display:none!important}
  body.m-search-open .search-band .btn-search{flex:1 1 100%!important;display:flex!important;justify-content:center;min-height:46px}
  body.m-search-open .m-search-close{display:flex;flex:none;width:40px;height:40px;margin-top:4px;border:0;border-radius:12px;background:#fff;color:var(--ink);align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(60,40,30,.08)}
  body.m-search-open .m-search-close svg{width:20px;height:20px}
  body.m-search-open .m-search-backdrop{display:block;position:fixed;inset:0;z-index:290;background:rgba(46,42,61,.35);animation:mmFade .2s ease-out}
}
@keyframes mmSheet{from{transform:translateY(-100%)}to{transform:none}}
@keyframes mmFade{from{opacity:0}to{opacity:1}}
html body .mm-reveal{opacity:0;transform:translate3d(0,14px,0);animation:none!important;will-change:opacity,transform;transition:opacity .4s ease-out var(--mm-d,0ms),transform .4s cubic-bezier(.22,1,.36,1) var(--mm-d,0ms)}
html body .mm-shown{animation:none!important}
html body .site-header,html body .m-tabbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html body .mm-reveal.mm-in{opacity:1;transform:none}
html body .listing-card.mm-reveal.mm-in:hover{transform:translateY(-3px)!important}
@media (prefers-reduced-motion:reduce){html body .mm-reveal{opacity:1;transform:none;transition:none}}
/* 10/10: кнопки героя, ціннісні пропозиції, порядок стрічки, реклама лише для великого каталогу */
.mm-hero-ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.mm-hero-ctas button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;font:700 15px 'Onest',system-ui,sans-serif;cursor:pointer;transition:transform .15s,background .15s}
.mm-hero-ctas button svg{width:18px;height:18px}
.mm-shop{max-width:1240px;margin:22px auto 6px;padding:22px 20px 18px;background:#fff;border:1px solid var(--mm-line);border-radius:24px;box-shadow:0 10px 30px rgba(244,132,95,.10)}
.mm-shop[hidden]{display:none!important}
.mm-shop-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.mm-shop-eyebrow{display:inline-block;font:700 12px 'Onest',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--mm-orange)}
html body .mm-shop h2{font-family:var(--mm-disp);font-size:26px;font-weight:700;margin:4px 0 2px;color:var(--mm-ink);line-height:1.15}
.mm-shop-sub{margin:0;color:var(--mm-soft);font-size:14px}
html body .mm-shop-all{flex:none;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 18px;border-radius:12px;background:var(--mm-orange);color:#fff!important;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.mm-shop-all:hover{background:var(--mm-orange-d)}
.mm-shop-row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 60px)/6);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
.mm-shop-card{scroll-snap-align:start;display:flex;flex-direction:column;text-decoration:none;color:var(--mm-ink)!important;background:#FFF9F3;border-radius:16px;overflow:hidden;border:1px solid var(--mm-line);transition:transform .2s}
.mm-shop-card:hover{transform:translateY(-2px)}
.mm-shop-card img{width:100%;aspect-ratio:1;object-fit:cover;background:#F4F1EC;display:block}
.mm-shop-card span{padding:8px 10px 0;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.mm-shop-card b{padding:4px 10px 10px;font-family:var(--mm-disp);font-size:16px;font-weight:600}
html body .nav-icon-item.nav-shop,html body .mobile-menu-item.nav-shop{color:var(--mm-orange)!important}
@media (max-width:1024px){.mm-shop{margin:16px 16px 4px}.mm-shop-row{grid-auto-columns:28%}}
@media (max-width:760px){.mm-shop{margin:14px 12px 4px;padding:16px 14px 14px;border-radius:20px}html body .mm-shop h2{font-size:21px}.mm-shop-head{flex-direction:column;align-items:flex-start}html body .mm-shop-all{height:40px;font-size:14px}.mm-shop-row{grid-auto-columns:42%}}
.mm-hero-ctas button:active{transform:scale(.97)}
.mm-hero-find{background:var(--mm-orange);color:#fff;border:0;box-shadow:0 6px 16px rgba(244,132,95,.3)}
.mm-hero-sell{background:#fff;color:var(--mm-green);border:1.5px solid var(--mm-line)}
.mm-hero-sell:hover{border-color:var(--mm-orange);color:var(--mm-orange)}
html body .mm-hero-shop{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;font:700 15px 'Onest',system-ui,sans-serif;text-decoration:none;background:#FFE9E0;color:var(--mm-orange-d)!important;border:1.5px solid #FFD3C2}
html body .mm-hero-shop:hover{background:var(--mm-orange);color:#fff!important;border-color:var(--mm-orange)}
.mm-hero-shop svg{width:18px;height:18px}
@media (max-width:760px){html body .mm-hero-shop{flex:1 1 100%;justify-content:center;font-size:14px}}
@media (min-width:1025px){.mm-hero-find{display:none!important}.mm-hero-sell{background:var(--mm-green);color:#fff;border-color:var(--mm-green)}.mm-hero-sell:hover{background:var(--mm-orange);border-color:var(--mm-orange);color:#fff}}
@media (max-width:760px){.mm-hero-ctas button{flex:1 1 0;justify-content:center;padding:0 12px;font-size:14px}}
html body .mm-stats .stat-num{white-space:nowrap}
@media (max-width:760px){html body .mm-stats{flex-wrap:wrap;gap:14px 10px}html body .mm-stats .stat-item{flex:1 1 30%;flex-direction:column;align-items:flex-start!important;gap:8px!important}html body .mm-stats .stat-num{font-size:17px!important}html body .mm-stats .stat-label{font-size:11.5px!important;line-height:1.3}}
body:not(.mm-ads-on) #adBannerSlot,body:not(.mm-ads-on) .ad-skyscraper-left,body:not(.mm-ads-on) .ad-grid-card,body:not(.mm-ads-on) #topSellersSection{display:none!important}
html body .main-content>.grid-section,html body .main-content>.filters-bar,html body .main-content>.search-band{width:100%}
html body .main-content{display:flex;flex-direction:column}
html body .main-content{min-width:0;max-width:100%}html body .main-content>*{min-width:0;max-width:100%}
html body .main-content>.promo-row,html body .main-content>.promo-row>*,html body .main-content>.kids-section{order:5}
html body .main-content>.mm-feed-eyebrow,html body .main-content>.grid-title{align-self:flex-start}
/* екран повідомлень + поле «Усі міста» + кнопки */
html body #chatOverlay{background:var(--bg)!important}
html body #chatOverlay .modal{background:var(--bg)!important}
html body .chat-page-header{background:#fff!important;border-bottom:1px solid var(--mm-line)!important;padding:12px 16px!important;gap:10px!important;box-shadow:0 4px 14px rgba(60,40,30,.04)}
html body .chat-page-back{width:40px;height:40px;border-radius:12px!important;background:var(--bg)!important;display:flex;align-items:center;justify-content:center;font-size:20px!important;color:var(--mm-ink)!important;transition:background .15s}
html body .chat-page-back:hover{background:#FFE9E0!important;color:var(--mm-orange)!important}
html body .chat-page-header h2{font-family:var(--mm-disp)!important;font-size:18px!important;font-weight:700!important}
html body .chat-page-body{padding:18px 16px 28px!important}
html body .conversation-list{display:flex;flex-direction:column;gap:10px}
html body .conversation-item{position:relative;display:grid;grid-template-columns:44px 1fr;column-gap:12px;row-gap:2px;align-items:center;background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:16px!important;padding:12px 14px!important;box-shadow:0 2px 10px rgba(60,40,30,.04);transition:transform .15s,box-shadow .15s,border-color .15s}
html body .conversation-item:hover{border-color:var(--mm-orange)!important;transform:translateY(-1px);box-shadow:0 8px 20px rgba(60,40,30,.08)}
html body .conversation-item>*:not(.conversation-ava){grid-column:2}
.conversation-ava{grid-row:1 / span 3;width:44px;height:44px;border-radius:50%;background:#FFE9E0;color:var(--mm-orange);display:flex;align-items:center;justify-content:center;font:700 17px var(--mm-disp)}
html body .conversation-name{font-weight:700!important;color:var(--mm-ink)}
html body .conversation-listing{color:var(--mm-orange)!important;font-size:12.5px!important;font-weight:600}
html body .conversation-preview{color:var(--mm-soft)!important;font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .conversation-badge{background:var(--mm-orange)!important}
.mm-empty{max-width:420px;margin:28px auto 0;background:#fff;border:1px solid var(--mm-line);border-radius:24px;padding:34px 24px 28px;text-align:center;box-shadow:0 10px 30px rgba(60,40,30,.06)}
.mm-empty-ic{width:72px;height:72px;margin:0 auto 16px;border-radius:50%;background:#FFE9E0;color:var(--mm-orange);display:flex;align-items:center;justify-content:center}
.mm-empty-ic svg{width:34px;height:34px}
.mm-empty h3{margin:0 0 8px;font-family:var(--mm-disp);font-size:18px;font-weight:700;color:var(--mm-ink)}
.mm-empty p{margin:0 0 22px;color:var(--mm-soft);font-size:14px;line-height:1.55}
.mm-empty-actions{display:flex;flex-direction:column;gap:10px}
.mm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;font:700 15px 'Onest',system-ui,sans-serif;cursor:pointer;transition:transform .15s,background .15s,border-color .15s,color .15s}
.mm-btn:active{transform:scale(.97)}
.mm-btn-primary{background:var(--mm-orange);color:#fff;border:0;box-shadow:0 6px 16px rgba(244,132,95,.3)}
.mm-btn-primary:hover{background:var(--mm-orange-d)}
.mm-btn-ghost{background:#fff;color:var(--mm-ink);border:1.5px solid var(--mm-line)}
.mm-btn-ghost:hover{border-color:var(--mm-orange);color:var(--mm-orange)}
html body .push-opt-in-banner{background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:16px!important}
html body .push-opt-in-banner button:not(.push-opt-in-dismiss){background:var(--mm-orange)!important;color:#fff!important;border:0!important;border-radius:10px!important}
/* пошук: поле «Усі міста» — суцільний сегмент */
html body .search-form .search-field-city{flex:0 0 190px!important;display:flex!important;align-items:center;gap:8px;min-height:48px!important;padding:0 14px!important;margin:0!important;background:var(--bg)!important;border:1px solid var(--mm-line)!important;border-radius:10px!important;cursor:pointer;transition:border-color .15s,background .15s}
html body .search-form .search-field-city:hover,html body .search-form .search-field-city:focus-within{border-color:var(--mm-orange)!important;background:#fff!important}
html body .search-form .search-field-city input{flex:1;min-width:0;width:100%;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;font-weight:600;color:var(--mm-ink);cursor:pointer}
html body .search-form .search-field-city input::placeholder{color:var(--mm-ink);opacity:.85}
html body .search-form .search-field-city .search-icon{color:var(--mm-orange)!important;margin:0!important}
html body .search-form .search-field-city::after{content:'';flex:none;width:8px;height:8px;margin-left:2px;border-right:2px solid var(--mm-soft);border-bottom:2px solid var(--mm-soft);transform:translateY(-2px) rotate(45deg)}
html body .search-form .search-divider{display:none!important}
html body .search-form .search-field:not(.search-field-city){min-height:48px}
html body .search-form .btn-search{min-height:48px!important;padding:0 24px!important;border-radius:10px!important;font-weight:700!important}
html body .search-form{align-items:center!important;gap:6px!important}
@media (max-width:1024px){
  html body .search-band .search-form{display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;padding:6px!important;gap:6px!important;background:#fff!important;border:1px solid var(--mm-line)!important;border-radius:14px!important}
  html body .search-band .search-field:not(.search-field-city){flex:1 1 100%!important}
  html body .search-band .search-form .search-field-city{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
  html body .search-band .search-field:not(.search-field-city){padding:0 10px!important}
  html body .search-band .search-form .btn-search{flex:0 0 auto!important;display:flex!important;justify-content:center}
}
html body .search-form{overflow:visible!important}
html body .search-field-city{position:relative!important}
html body .city-autocomplete{z-index:400!important;left:0!important;right:auto!important;min-width:100%;width:max-content;max-width:300px;top:calc(100% + 6px)!important;background:#fff!important;border-radius:14px!important;border:1px solid var(--mm-line)!important;box-shadow:0 14px 30px rgba(60,40,30,.12)!important;overflow:hidden}
/* профіль користувача */
html body #profileOverlay .pf-modal{max-width:560px!important;padding:26px 26px 22px!important;background:var(--bg)!important}
html body .pf-title{font-family:var(--mm-disp)!important;font-size:22px!important;margin:0 0 16px!important}
.pf-hero{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--mm-line);border-radius:20px;padding:16px;box-shadow:0 6px 18px rgba(60,40,30,.05)}
.pf-ava{position:relative;flex:none}
html body .pf-ava .avatar-preview-wrap{width:76px!important;height:76px!important;margin:0!important;border-radius:50%!important;background:#FFE9E0!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #FFE9E0;display:flex;align-items:center;justify-content:center;overflow:hidden}
html body .pf-ava .avatar-preview-fallback{color:var(--mm-orange)!important}
.pf-ava-btn{position:absolute;right:-4px;bottom:-4px;width:30px;height:30px;border-radius:50%;background:var(--mm-orange);color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #fff;cursor:pointer;box-shadow:0 4px 10px rgba(244,132,95,.35)}
.pf-ava-btn svg{width:15px;height:15px}
.pf-who{min-width:0;flex:1}
.pf-name{font-family:var(--mm-disp);font-weight:700;font-size:19px;color:var(--mm-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-name.pf-empty{color:var(--mm-orange);font-size:16px}
.pf-sub{font-size:13px;color:var(--mm-soft);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .pf-who .avatar-upload-btn{display:inline-block;margin-top:8px!important;font-size:13px!important;font-weight:600!important;color:var(--mm-orange)!important;text-decoration:none!important}
.pf-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.pf-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px 12px;background:#fff;border:1px solid var(--mm-line);border-radius:16px;font:600 12.5px 'Onest',system-ui,sans-serif;color:var(--mm-ink);cursor:pointer;text-align:center;line-height:1.2;transition:transform .15s,border-color .15s,box-shadow .15s}
.pf-tile:hover{border-color:var(--mm-orange);transform:translateY(-2px);box-shadow:0 8px 18px rgba(60,40,30,.07)}
.pf-tile-ic{width:40px;height:40px;border-radius:12px;background:#FFE9E0;color:var(--mm-orange);display:flex;align-items:center;justify-content:center}
.pf-tile-ic svg{width:21px;height:21px}
.pf-invite{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:0 18px;border:0;border-radius:16px;background:var(--mm-green);color:#fff;font:700 14.5px 'Onest',system-ui,sans-serif;cursor:pointer;transition:background .15s}
.pf-invite:hover{background:var(--mm-orange)}
.pf-sec{margin:22px 0 10px;font-family:'Onest',sans-serif;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--mm-soft)}
html body #profileForm{background:#fff;border:1px solid var(--mm-line);border-radius:20px;padding:16px 16px 14px}
html body #profileForm .field label{font-size:12.5px!important;color:var(--mm-soft)!important;font-weight:600!important}
html body #profileForm input{border-radius:12px!important;border:1px solid var(--mm-line)!important;background:var(--bg)!important;min-height:46px}
html body #profileForm input:focus{border-color:var(--mm-orange)!important;background:#fff!important;outline:none;box-shadow:0 0 0 3px rgba(244,132,95,.15)}
html body #profileForm .submit-btn{border-radius:12px!important;min-height:48px;background:var(--mm-orange)!important}
html body .pf-logout{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px!important;min-height:46px;border-radius:12px!important;border:1.5px solid var(--mm-line)!important;background:#fff!important;color:#C2410C!important;text-decoration:none!important;font-weight:700!important}
html body .pf-logout:hover{border-color:#F3B4A0!important;background:#FFF4EF!important}
html body .pf-logout svg{width:18px;height:18px}
@media (max-width:680px){
  html body #profileOverlay{padding:0!important;align-items:stretch!important}
  html body #profileOverlay .pf-modal{max-width:100%!important;width:100%;min-height:100%;border-radius:0!important;padding:18px 16px 96px!important;overflow-y:auto}
  .pf-tiles{grid-template-columns:repeat(2,1fr)}
  .pf-tile{flex-direction:row;justify-content:flex-start;padding:12px;font-size:13.5px;text-align:left}
}
/* шапка: замість окремої кнопки «Вийти» — ім'я під аватаром */
@media (min-width:1025px){html body #authArea .nav-icon-item[onclick="signOut()"]{display:none!important}html body #authArea .nav-icon-label{max-width:84px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
/* єдиний набір лінійних іконок замість емодзі та ілюстрацій */
.mm-ic{width:1.05em;height:1.05em;flex:none;vertical-align:-.16em;margin-right:.35em}
html body .card-city{display:inline-flex;align-items:center;gap:3px}
html body .card-city .mm-ic{margin:0;width:12px;height:12px;color:var(--mm-orange)}
html body .card-photo-count,html body .card-order-badge{display:inline-flex;align-items:center;gap:4px}
html body .card-photo-count .mm-ic,html body .card-order-badge .mm-ic{margin:0;width:13px;height:13px}
html body .card-emoji-icon,html body .detail-emoji{display:flex;align-items:center;justify-content:center;color:var(--mm-orange);opacity:.55}
html body .card-emoji-icon svg{width:46px;height:46px}
html body .detail-emoji svg{width:84px;height:84px}
html body .search-icon{display:inline-flex;align-items:center;color:var(--mm-soft)}
html body .search-icon svg{width:18px;height:18px}
html body .search-field-city .search-icon{color:var(--mm-orange)!important}
html body .categories-toggle-icon svg{width:18px;height:18px;vertical-align:-3px}
/* категорії: однакові білі плитки з кораловою лінійною іконкою */
html body .cat-tile-icon{background:#fff!important;border:1px solid var(--mm-line)!important;color:var(--mm-orange)!important;box-shadow:0 2px 8px rgba(60,40,30,.04)!important;display:flex!important;align-items:center;justify-content:center}
html body .cat-tile-icon svg{width:46%!important;height:46%!important}
html body .cat-tile.active .cat-tile-icon,html body .cat-tile:hover .cat-tile-icon{background:var(--mm-orange)!important;border-color:var(--mm-orange)!important;color:#fff!important}
html body .sidebar-cat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:30px!important;height:30px;border-radius:9px;background:#FFE9E0;color:var(--mm-orange)}
html body .sidebar-cat-icon svg{width:17px;height:17px}
html body .sidebar-cat-item.active .sidebar-cat-icon{background:var(--mm-orange);color:#fff}
html body .footer-cat-icon{background:rgba(255,255,255,.1)!important;color:#fff;display:inline-flex;align-items:center;justify-content:center}
html body .footer-cat-icon svg{width:60%;height:60%}
html body .video-thumb-circle svg{width:44%;height:44%;color:var(--mm-orange)}
html body .ref-gift{background:rgba(255,255,255,.18)!important;color:#fff;display:flex;align-items:center;justify-content:center}
html body .print-promo .ref-gift{background:#FFE9E0!important;color:var(--mm-orange)}
html body .ref-gift svg{width:55%;height:55%}
html body .kid-chip svg,html body .ki-ava svg,html body .card-kid-badge svg,html body .kids-section svg{color:var(--mm-orange)}
html body .empty-state .mm-empty-ic{font-size:0}
html body .empty-state .mm-empty-ic svg{width:34px;height:34px}
.fb-big svg{width:44px;height:44px;color:var(--mm-orange)}
.sv-mood svg,.fb-mood svg{width:30px;height:30px;color:var(--mm-orange)}
/* ===== /Новий дизайн ===== */


/* ---------- Підкатегорії при наведенні (комп'ютер) ---------- */
.cat-flyout{position:fixed;z-index:1200;min-width:240px;max-width:320px;max-height:calc(100vh - 24px);overflow:auto;background:#fff;border:1px solid #EEE6DC;border-radius:14px;box-shadow:0 18px 40px rgba(46,42,61,.16);padding:8px;display:none}
.cat-flyout.on{display:block;animation:catFlyIn .12s ease-out}
@keyframes catFlyIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.cat-flyout-title{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#6B667A;padding:6px 10px 8px}
.cat-flyout button{display:flex;align-items:center;width:100%;background:none;border:0;border-radius:9px;padding:9px 10px;text-align:left;font:inherit;font-size:14px;font-weight:500;color:#2E2A3D;cursor:pointer}
.cat-flyout button:hover,.cat-flyout button:focus-visible{background:#FFE9E0;color:#F4845F;outline:none}
.cat-flyout button.on{color:#F4845F;font-weight:700}
.cat-flyout button.all{font-weight:700;margin-bottom:4px;border-bottom:1px solid #EEE6DC;border-radius:9px 9px 0 0}
html body .sidebar-cat-item .sb-arrow{margin-left:auto;color:#B9B3C4;font-size:18px;line-height:1;transition:transform .15s ease,color .15s ease}
html body .sidebar-cat-item:hover .sb-arrow{color:#F4845F;transform:translateX(2px)}
html body .sidebar-cat-item.active .sb-arrow{display:none}
/* Товари магазину у відповідях AI-помічника */
.ai-prods{align-self:stretch;display:flex;flex-direction:column;gap:6px}
.ai-prod{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1.5px solid #FFD9CB;border-radius:12px;padding:9px 12px;color:#2E2A3D;text-decoration:none;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer;text-align:left;font-family:inherit;width:100%}
.ai-prod:hover{border-color:#F4845F;background:#FFF5F0}
.ai-prod-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ai-prod b{white-space:nowrap;color:#E56E48;font-weight:800}

/* ===== Магазин: картка товару, кошик, оформлення ===== */
  .btns { display: grid; grid-template-columns: 1fr 54px 54px; gap: 10px; }
  .share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .share-row a, .share-row button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 13.5px 'Onest', sans-serif; text-decoration: none; cursor: pointer; }
  .share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent-dark); }
  .share-row svg { width: 16px; height: 16px; }
  .btn2 { height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .btn2 svg { width: 24px; height: 24px; }
  .cartv { padding: 20px 16px 22px; }
  @media (min-width: 760px) { .cartv { padding: 26px 28px; } }
  .cartv h2 { font-size: 22px; padding-right: 44px; margin-bottom: 10px; }
  .crow { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .crow img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .cnm { all: unset; cursor: pointer; font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cpr { font: 700 16px 'Onest', sans-serif; margin-top: 4px; }
  .cctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
  .qty.sm button { width: 38px; height: 38px; font-size: 20px; }
  .qty button:disabled { opacity: .35; cursor: default; }
  .crm { background: none; border: none; color: var(--ink-soft); font-weight: 600; font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 6px 0; }
  .cempty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 30px 10px; color: var(--ink-soft); }
  .cempty svg { width: 52px; height: 52px; color: var(--accent); margin-bottom: 4px; }
  .cempty b { color: var(--ink); font-size: 17px; }
  .cempty .btn { margin-top: 12px; }
  .osum { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin: 12px 0 4px; }
  .orow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
  .orow:last-child { border-bottom: none; }
  .orow b { white-space: nowrap; }
  .s-toast { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 80; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 16px; box-shadow: 0 12px 30px rgba(46,42,61,.3); font-weight: 600; font-size: 14.5px; transition: transform .25s; width: max-content; max-width: calc(100% - 32px); }
  .s-toast.on { transform: translate(-50%, 0); }
  .s-toast span { white-space: nowrap; }
  .s-toast button { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 8px 14px; font: 700 14px 'Onest', sans-serif; cursor: pointer; white-space: nowrap; }
  .skel { aspect-ratio: .78; border-radius: 16px; background: linear-gradient(90deg, #F3EEE7 0%, #FBF7F2 50%, #F3EEE7 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
  @keyframes sk { to { background-position: -200% 0; } }
  .state { text-align: center; padding: 50px 16px; color: var(--ink-soft); }
  .state b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
  .fine { font-size: 12.5px; color: var(--ink-faint); text-align: center; margin-top: 28px; }
  .terms { margin: 26px 0 8px; padding: 22px 20px; background: #fff; border: 1px solid #EEE6DC; border-radius: 20px; }
  .terms h2 { font-size: 18px; margin: 0 0 12px; }
  .terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .terms h3 { font-size: 14.5px; margin: 0 0 6px; }
  .terms p { font-size: 13.5px; line-height: 1.5; color: #5E5970; margin: 0; }
  @media (max-width: 760px) { .terms-grid { grid-template-columns: 1fr; gap: 14px; } }
  .hide { display: none !important; }
  /* Картка товару */
  .ov { position: fixed; inset: 0; z-index: 50; background: rgba(46,42,61,.5); display: flex; align-items: flex-end; justify-content: center; }
  .sheet { position: relative; width: 100%; max-width: 920px; max-height: 94vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; animation: up .22s ease-out; }
  @media (min-width: 760px) { .ov { align-items: center; padding: 20px; } .sheet { border-radius: 24px; } }
  @keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
  .x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 12px; border: none; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--sh); }
  .pv { display: grid; gap: 18px; padding: 16px; }
  @media (min-width: 760px) { .pv { grid-template-columns: 1fr 1fr; padding: 22px; } }
  .gal .main { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 18px; border: 1px solid var(--line); display: block; }
  .thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
  .thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border-radius: 12px; border: 2px solid transparent; overflow: hidden; background: #fff; cursor: pointer; }
  .thumbs button.on { border-color: var(--accent); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .info h1, .info h2 { margin-block: .83em; font-size: 22px; line-height: 1.25; padding-right: 40px; }
  .info .price { font: 700 28px 'Onest', sans-serif; margin: 10px 0 2px; }
  .info .meta { font-size: 13.5px; color: var(--ink-soft); }
  .perks { display: grid; gap: 6px; margin: 14px 0; font-size: 14px; font-weight: 600; }
  .perks div { display: flex; gap: 8px; align-items: center; }
  .perks svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
  .btn { width: 100%; height: 54px; border: none; border-radius: 16px; background: var(--accent); color: #fff; font: 700 17px 'Onest', sans-serif; cursor: pointer; box-shadow: 0 8px 18px rgba(244,132,95,.28); }
  .btn:disabled { opacity: .6; cursor: default; }
  .desc { white-space: pre-line; font-size: 14.5px; color: var(--ink); margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
  .desc.short { max-height: 220px; overflow: hidden; position: relative; }
  .desc.short::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg)); }
  .more { background: none; border: none; color: var(--accent-dark); font-weight: 700; padding: 6px 0; cursor: pointer; }
  /* Форма замовлення */
  .ov form { display: grid; gap: 4px; }
  label.f { display: block; font-weight: 700; font-size: 14px; margin: 10px 0 6px; }
  .ov input[type=text], .ov input[type=tel], .ov textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; font: 500 16px 'Onest', sans-serif; background: #fff; color: var(--ink); }
  .ov textarea { padding: 12px 14px; min-height: 70px; resize: vertical; }
  .ov input:focus, .ov textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .s-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .s-seg label { position: relative; }
  .s-seg input { position: absolute; opacity: 0; inset: 0; }
  .s-seg span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; }
  .s-seg input:checked + span { border-color: var(--accent); background: #FFF4EE; box-shadow: 0 0 0 1px var(--accent); }
  .qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
  .qty button { width: 46px; height: 46px; border: none; background: none; font-size: 22px; cursor: pointer; color: var(--ink); }
  .qty output { min-width: 34px; text-align: center; font-weight: 700; }
  .sum { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin: 14px 0 4px; font-size: 16px; }
  .s-err { color: #C0392B; font-weight: 600; font-size: 14px; margin-top: 8px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .done { text-align: center; padding: 30px 10px; }
  .done svg { width: 64px; height: 64px; color: var(--mint); }
  .done h2 { margin: 10px 0 6px; }
  .small { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
  body.lock { overflow: hidden; }

/* ===== Магазин у дизайні головної ===== */
:root { --mint: #3BB08A; --sh: 0 1px 2px rgba(46,42,61,.04), 0 6px 18px rgba(46,42,61,.05); }
.svgw { display: inline-flex; }
.nav-icon-item.active .nav-icon, .nav-icon-item.active .nav-icon-label { color: var(--mm-orange, #F4845F) !important; }
.nav-icon-item { position: relative; }
.nav-icon-item .nav-badge.hide { display: none !important; }
a.nav-icon-item, a.btn-header-post { text-decoration: none; }
.shop-hero .mm-check-note { margin-top: 14px; }
.shop-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.shop-perks li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--mm-ink, #2E2A3D); }
.shop-perks svg { width: 18px; height: 18px; color: var(--mm-free, #3BB08A); flex: none; }
.shop-search { margin-top: 18px; }
.shop-search .search-form { max-width: 560px; }
.shop-cat-ic { display: inline-flex; }
.shop-cat-ic svg { width: 17px; height: 17px; }
.cat-tile .cat-tile-icon svg { width: 22px; height: 22px; }
.listing-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card .card-type-badge.new { background: var(--mm-orange, #F4845F); color: #fff; }
.listing-card .card-vendor { font-size: 12.5px; color: var(--mm-soft, #6B667A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card .card-add { margin-top: 10px; width: 100%; height: 40px; border-radius: 12px; border: 1.5px solid var(--mm-orange, #F4845F); background: #fff; color: var(--mm-orange-d, #E56E48); font: 700 14.5px 'Onest', sans-serif; cursor: pointer; transition: background .15s ease, color .15s ease; }
.listing-card .card-add:hover { background: #FFF1E8; }
.listing-card .card-add.in { background: var(--mm-orange, #F4845F); color: #fff; }
.shop-skel { aspect-ratio: .72; border-radius: 18px; background: linear-gradient(90deg, #F3EEE7 0%, #FBF7F2 50%, #F3EEE7 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.shop-result { margin-left: auto; color: var(--mm-soft, #6B667A); font-size: 14px; }
#subcategoryFilterBar { flex-wrap: wrap; margin-bottom: 22px !important; }
#subcategoryFilterBar .mode-chip small { opacity: .6; margin-left: 4px; font-weight: 500; }
#subcategoryFilterBar .mode-chip.lvl2 { font-weight: 500; }
.shop-state { text-align: center; padding: 50px 16px; color: var(--mm-soft, #6B667A); }
.shop-state b { display: block; color: var(--mm-ink, #2E2A3D); font-size: 17px; margin-bottom: 4px; }
.shop-fine { font-size: 12.5px; color: #A39FB0; text-align: center; margin: 8px auto 0; max-width: 900px; padding: 0 16px; }
.shop-terms { max-width: 1200px; margin: 26px auto 40px; padding: 22px 20px; background: #fff; border: 1px solid #EEE6DC; border-radius: 20px; }
.s-toast:not(.on) { opacity: 0; pointer-events: none; }
/* Мобільний: картка товару й кошик поверх нижньої панелі — щоб низ опису й «Показати повністю» не ховалися під нею */
@media (max-width: 680px) {
  .ov { z-index: 100; }
  .sheet { max-height: 92vh; max-height: 92dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .s-toast { z-index: 101; bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Картка товару не повинна «їздити» вбік: колонки не ширші за екран, довгі слова й ряд мініатюр переносяться/гортаються всередині */
.pv { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pv > * { min-width: 0; }
.sheet { overflow-x: hidden; overscroll-behavior: contain; }
.desc, .info h1, .info h2 { overflow-wrap: anywhere; }

/* ===== Каталог на телефоні: плитки розділів з фото, підрозділи списком; сортування й фільтр ===== */
.shop-tools { max-width: 1200px; margin: 10px auto 0; padding: 0 20px; display: flex; align-items: center; gap: 10px; }
.st-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.st-btn svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.st-btn b { display: block; font-size: 14px; font-weight: 700; }
.st-btn small { display: block; font-size: 12px; color: var(--ink-soft); }
.st-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.st-count { margin-left: auto; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.msheet-ov { position: fixed; inset: 0; z-index: 110; background: rgba(46,42,61,.45); display: flex; align-items: flex-end; justify-content: center; }
.msheet { width: 100%; max-width: 480px; max-height: 85vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 6px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@media (min-width: 681px) { .msheet-ov { align-items: center; } .msheet { border-radius: 20px; } }
.msheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; font-size: 17px; }
.msheet-x { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #F4F2EF; font-size: 22px; cursor: pointer; }
.msheet-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 15.5px; color: var(--ink); cursor: pointer; text-align: left; }
.msheet-opt.on { color: var(--accent-dark); font-weight: 700; }
.msheet-opt.on::after { content: '✓'; }
.msheet-row { display: flex; gap: 10px; margin: 6px 0 14px; }
.msheet-row label { flex: 1; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.msheet-row input { display: block; width: 100%; margin-top: 6px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font: 600 16px 'Onest', sans-serif; }
.msheet-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.msheet-quick button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.msheet-act { display: flex; gap: 10px; }
.msheet-act button { flex: 1; min-height: 50px; border-radius: 14px; font: 700 15.5px 'Onest', sans-serif; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.msheet-act .pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.m-cats[hidden] { display: none !important; }
@media (max-width: 680px) {
  html body #catRow { display: none !important; }
  html body #subcategoryFilterBar { display: none !important; }
  .m-cats { display: block; padding: 4px 12px 0; }
  .m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .m-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
  .m-tile .im { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #FBF8F4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .m-tile .im img { width: 100%; height: 100%; object-fit: contain; }
  .m-tile .im svg { width: 46%; height: 46%; color: var(--accent); }
  .m-tile b { font-size: 12.5px; line-height: 1.25; text-align: center; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
  .m-tile small { font-size: 11.5px; color: var(--ink-soft); }
  .m-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .m-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
  .m-row:first-child { border-top: 0; }
  .m-row span { flex: 1; min-width: 0; }
  .m-row small { color: var(--ink-faint, #A39FB0); font-size: 13px; }
  .m-row .ch { color: var(--ink-faint, #A39FB0); font-size: 20px; line-height: 1; }
  .m-row.back { color: var(--accent-dark); font-weight: 700; }
  .m-row.all { font-weight: 700; }
  .m-row.on { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); }
  .m-row.more { justify-content: center; color: var(--accent-dark); font-weight: 700; }
  .m-crumb { display: flex; align-items: center; gap: 8px; padding: 6px 2px 2px; font-size: 14px; }
  .m-crumb button { border: 0; background: none; color: var(--accent-dark); font: inherit; font-weight: 700; padding: 6px 0; cursor: pointer; }
  .shop-tools { padding: 8px 12px; margin-top: 4px; }
  #mCats, #gridTitle { scroll-margin-top: 84px; }
  .st-btn { flex: 1; min-width: 0; }
  .st-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-count { display: none; }
}

/* ---- Колаж товарів у героблоці магазину ---- */
.shop-collage{aspect-ratio:4/3}
.shop-collage .sc-board{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));grid-template-areas:"a a b" "a a c" "d e f";gap:12px;padding:14px;border-radius:24px;background:radial-gradient(120% 90% at 0% 0%,#FFE3D6 0%,#FFF1E8 55%,#FDF6EF 100%);box-shadow:inset 0 0 0 1px #F6DED2}
.shop-collage .sc-a{grid-area:a}.shop-collage .sc-b{grid-area:b}.shop-collage .sc-c{grid-area:c}.shop-collage .sc-d{grid-area:d}.shop-collage .sc-e{grid-area:e}.shop-collage .sc-f{grid-area:f}
.shop-collage .sc-tile{position:relative;display:block;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:18px;background:#fff;overflow:hidden;cursor:pointer;box-shadow:0 6px 18px rgba(46,42,61,.07);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s;animation:scPop .5s cubic-bezier(.2,.8,.2,1) backwards}
.shop-collage .sc-tile:hover{transform:translateY(-4px) rotate(-.6deg);box-shadow:0 14px 28px rgba(46,42,61,.13)}
.shop-collage .sc-b{animation-delay:.06s}.shop-collage .sc-c{animation-delay:.12s}.shop-collage .sc-d{animation-delay:.18s}.shop-collage .sc-e{animation-delay:.24s}.shop-collage .sc-f{animation-delay:.3s}
@keyframes scPop{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
html body .shop-collage .sc-tile img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;border-radius:0;background:none}
.shop-collage .sc-a img{inset:5% 6% 36% 6%!important;width:88%!important;height:59%!important}
.shop-collage .sc-tile:empty{background:linear-gradient(90deg,#FFF6F1 0%,#fff 50%,#FFF6F1 100%);background-size:200% 100%;animation:sk 1.2s linear infinite}
.shop-collage .sc-price{position:absolute;left:8px;bottom:8px;background:var(--mm-green,#2E2A3D);color:#fff;font:700 12px/1 'Onest',system-ui,sans-serif;padding:6px 8px;border-radius:999px;white-space:nowrap}
.shop-collage .sc-a .sc-price{left:14px;bottom:14px;font-size:15px;padding:8px 12px;background:var(--mm-orange,#F4845F)}
.shop-collage .sc-name{position:absolute;left:14px;right:14px;bottom:50px;font:600 13px/1.3 'Onest',system-ui,sans-serif;color:var(--mm-ink,#2E2A3D);text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shop-collage .sc-sticker{position:absolute;top:-12px;left:22px;transform:rotate(-6deg);background:#FFD84D;color:#2E2A3D;font:800 12px/1 'Unbounded','Onest',sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:9px 12px;border-radius:10px;box-shadow:0 8px 18px rgba(46,42,61,.15);z-index:2}
.shop-collage .mm-photo-tag{z-index:2;left:auto;right:18px;transform:rotate(3deg)}
@media (max-width:760px){
  .shop-collage{aspect-ratio:16/11}
  .shop-collage .sc-board{grid-template-areas:"a a b" "a a c";grid-template-rows:repeat(2,minmax(0,1fr));gap:9px;padding:10px}
  .shop-collage .sc-d,.shop-collage .sc-e,.shop-collage .sc-f{display:none}
  .shop-collage .sc-name{display:none}
}
.cat-flyout small { margin-left: auto; color: #A39FB0; font-weight: 500; padding-left: 10px; }
.cat-flyout button.grp { font-weight: 700; }
.cat-flyout button.lvl2 { padding-left: 24px; font-size: 13.5px; color: #6B667A; }
@media (max-width: 680px) { .shop-terms { margin: 18px 12px 30px; } }
/* Вибір розміру (дитячий одяг) */
.pv-sizes{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 4px}
.pv-sizes.hide{display:none}
.pv-sizes-t{width:100%;font-size:13px;font-weight:700;opacity:.7}
.pv-sizes button{min-width:48px;height:38px;padding:0 12px;border-radius:999px;border:1.5px solid rgba(0,0,0,.16);background:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer;color:inherit}
.pv-sizes button.on{border-color:#111;background:#111;color:#fff}

/* ===== Картки магазину: компактна кнопка кошика на фото, без позначки «Новинка» на кожному товарі ===== */
html body .listing-card .card-media .card-add { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; border: none; background: #fff; color: var(--mm-orange-d, #E56E48); box-shadow: 0 4px 14px rgba(46,42,61,.18); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--t-fast, .15s) ease, background var(--t-fast, .15s) ease, color var(--t-fast, .15s) ease; }
html body .listing-card .card-media .card-add svg { width: 21px; height: 21px; }
html body .listing-card .card-media .card-add:hover { transform: scale(1.08); background: var(--mm-orange, #F4845F); color: #fff; }
html body .listing-card .card-media .card-add:active { transform: scale(.94); }
html body .listing-card .card-media .card-add:focus:not(:focus-visible) { outline: none; box-shadow: 0 4px 14px rgba(46,42,61,.18); }
html body .listing-card .card-media .card-add.in { background: var(--mm-orange, #F4845F); color: #fff; }
html body .listing-card .card-media .card-add .qn { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--mm-ink, #2E2A3D); color: #fff; font: 800 11px/18px 'Onest', sans-serif; text-align: center; }
@media (max-width: 680px) { html body .listing-card .card-media .card-add { width: 38px; height: 38px; right: 8px; bottom: 8px; } }

/* Вікна товару й кошика — поверх шапки (шапка має z-index 60) */
.ov { z-index: 100; }
/* ===== Картка товару: дата отримання, схожі товари ===== */
.pv-eta { margin: 12px 0 2px; padding: 10px 12px; border-radius: 12px; background: #EEF8F2; color: #1F6B47; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pv-sim { grid-column: 1 / -1; padding: 6px 0 4px; }
.pv-sim h3 { font-size: 17px; margin: 8px 0 10px; }
.pv-sim-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.pv-sim-row::-webkit-scrollbar { display: none; }
.pv-sim-card { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 0 0 8px; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; font: inherit; color: inherit; transition: transform var(--t-fast, .15s) ease, box-shadow var(--t-fast, .15s) ease; }
.pv-sim-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,42,61,.12); }
.pv-sim-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.pv-sim-card .n { padding: 0 9px; font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px; }
.pv-sim-card b { padding: 0 9px; font-size: 14.5px; }

/* ===== Позначки «Хіт» / «Залишилось N», допродаж у кошику ===== */
html body .card-type-badge.hot { display: inline-block !important; background: #FFD84D !important; color: #2E2A3D !important; }
html body .card-type-badge.left { display: inline-block !important; background: #2E2A3D !important; color: #fff !important; }
.cart-up { margin: 14px 0 6px; }
.cart-up h3 { font-size: 16px; margin: 0 0 10px; }
.pv-sim-card.up { cursor: default; }
.pv-sim-card.up img { cursor: pointer; }
.up-f { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 9px; }
.up-add { width: 34px; height: 34px; border-radius: 50%; border: none; background: #FFF1E8; color: var(--mm-orange-d, #E56E48); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.up-add svg { width: 18px; height: 18px; }
.up-add:hover { background: var(--mm-orange, #F4845F); color: #fff; }
.up-add:active { transform: scale(.92); }

/* ===== Мобільна версія (жовтень 2026) ===== */
@media (max-width: 680px) {
  /* Кнопка «Додати в кошик» завжди під рукою, поки гортаєте картку товару */
  #pvView > .btns { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 3; margin: 0 -16px -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg, #FFFAF5); box-shadow: 0 -8px 20px rgba(46,42,61,.08); }
  #pvView .info h1, #pvView .info h2 { font-size: 19px; line-height: 1.3; }
  #pvView .price { font-size: 24px; }
  .pv-eta { font-size: 13px; }
  /* Компактніший колаж і плашка без переносу */
  .shop-collage { aspect-ratio: 16/10; }
  .shop-collage .mm-photo-tag { font-size: 11px !important; white-space: nowrap; right: 10px !important; padding: 7px 10px !important; }
  /* Сортування й фільтр — дві рівні кнопки без обрізаного тексту */
  .shop-tools .st-btn { flex: 1 1 0; min-width: 0; gap: 8px; padding: 6px 10px; }
  .shop-tools .st-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shop-tools .st-btn > span { min-width: 0; }
}


/* ===== Каталог на головному екрані (як у великих магазинах): список розділів + панель підрозділів ===== */
.mega, .mega-open { display: none; }
@media (min-width: 1025px) {
  html body .shop-hero { grid-template-columns: 252px minmax(0,1fr) minmax(0,.95fr) !important; gap: 28px !important; align-items: start !important; position: relative; }
  html body .shop-hero h1 { font-size: clamp(32px,3.4vw,46px) !important; }
  .mega { display: block; position: relative; z-index: 20; background: #fff; border: 1px solid var(--mm-line, #EADFD6); border-radius: 20px; padding: 10px 8px; box-shadow: 0 10px 30px rgba(60,40,30,.06); }
  .mega-title { font: 700 12px/1 'Onest', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-orange-d, #E56E48); padding: 8px 10px 10px; }
  .mega-list { list-style: none; margin: 0; padding: 0; }
  .mega-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font: 600 14px/1.25 'Onest', sans-serif; color: var(--mm-ink, #2E2A3D); text-align: left; cursor: pointer; transition: background .15s ease, color .15s ease; }
  .mega-item .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: #FFF1E8; color: var(--mm-orange-d, #E56E48); display: flex; align-items: center; justify-content: center; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
  .mega-item .ic svg { width: 18px; height: 18px; }
  .mega-item .nm { flex: 1; min-width: 0; }
  .mega-item .ar { opacity: .35; transition: transform .15s ease, opacity .15s ease; }
  .mega-item.on { background: #FFF1E8; color: var(--mm-orange-d, #E56E48); }
  .mega-item.on .ic { transform: scale(1.08); }
  .mega-item.on .ar { opacity: 1; transform: translateX(3px); }
  .mega-panel { position: absolute; left: calc(100% + 10px); top: 0; width: min(880px, calc(100vw - 340px)); min-height: 100%; background: #fff; border: 1px solid var(--mm-line, #EADFD6); border-radius: 20px; box-shadow: 0 24px 60px rgba(46,42,61,.16); padding: 22px 24px; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity .15s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
  .mega.open .mega-panel { opacity: 1; transform: none; pointer-events: auto; }
}
.mp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mp-head h3 { margin: 0; font-size: 20px; }
.mp-head small { color: var(--mm-soft, #7A7487); font-size: 13px; margin-left: 8px; font-weight: 500; }
.mp-all { border: 0; background: none; color: var(--mm-orange-d, #E56E48); font: 700 14px 'Onest', sans-serif; cursor: pointer; padding: 4px 0; white-space: nowrap; }
.mp-all:hover { text-decoration: underline; }
.mp-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; }
.mp-subs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 18px; align-content: start; }
.mp-sub { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font: 500 14px/1.3 'Onest', sans-serif; color: var(--mm-ink, #2E2A3D); cursor: pointer; transition: background .15s ease; }
.mp-sub:hover { background: #FFF6F1; color: var(--mm-orange-d, #E56E48); }
.mp-sub i { font-style: normal; color: var(--mm-soft, #7A7487); font-size: 12.5px; }
.mp-top { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-content: start; }
.mp-prod { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.mp-prod:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,42,61,.12); }
.mp-prod img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mp-prod span { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-prod b { font-size: 14px; }
.mp-label { font: 700 12px 'Onest', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-soft, #7A7487); margin: 0 0 8px; }
/* Телефон і планшет: кнопка «Каталог товарів» і шторка */
@media (max-width: 1024px) {
  .mega-open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 2px 0 14px; border: 0; border-radius: 14px; background: var(--mm-ink, #2E2A3D); color: #fff; font: 700 15.5px 'Onest', sans-serif; cursor: pointer; transition: transform .15s ease; }
  .mega-open svg { width: 20px; height: 20px; }
  .mega-open:active { transform: scale(.98); }
}
.mdrawer { position: fixed; inset: 0; z-index: 120; background: rgba(46,42,61,.45); display: flex; align-items: flex-end; animation: ovIn .2s ease-out; }
.mdrawer.hide { display: none; }
.mdrawer-box { width: 100%; max-height: 88vh; max-height: 88dvh; background: var(--bg, #FFFAF5); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up .25s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.mdrawer.closing { animation: ovOut .18s ease-in forwards; }
.mdrawer.closing .mdrawer-box { animation: sheetOut .18s ease-in forwards; }
.mdrawer-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(0,0,0,.06); }
.mdrawer-head b { flex: 1; font-size: 17px; }
.mdrawer-back, .mdrawer-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mm-ink, #2E2A3D); }
.mdrawer-back svg { width: 20px; height: 20px; }
.mdrawer-back.hide { display: none; }
.mdrawer-body { overflow: auto; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); }
.mdrawer-body .mega-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid rgba(0,0,0,.05); background: none; font: 600 15.5px 'Onest', sans-serif; color: var(--mm-ink, #2E2A3D); text-align: left; cursor: pointer; }
.mdrawer-body .mega-item .ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #FFF1E8; color: var(--mm-orange-d, #E56E48); display: flex; align-items: center; justify-content: center; }
.mdrawer-body .mega-item .ic svg { width: 20px; height: 20px; }
.mdrawer-body .mega-item .nm { flex: 1; }
.mdrawer-body .mega-item small { color: var(--mm-soft, #7A7487); font-weight: 500; }
.mdrawer-body .mp-subs { grid-template-columns: 1fr; }
.mdrawer-body .mp-grid { grid-template-columns: 1fr; gap: 6px; }
.mdrawer-body .mp-head h3 { display: none; }
.mdrawer-body .mp-head { margin: 4px 0 2px; }
.mdrawer-body .mp-all { padding: 10px 8px; font-size: 15px; }
.mdrawer-body .mp-sub { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,.05); border-radius: 0; }
.mdrawer-body .mp-top { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 14px; }
.md-slide { animation: mdIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes mdIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mega-panel, .mdrawer, .mdrawer-box, .md-slide { transition: none !important; animation: none !important; } }

/* ===== Анімації (жовтень 2026): єдині таймінги 0.15 / 0.25 / 0.35 с ===== */
:root { --t-fast: .15s; --t-mid: .25s; --t-slow: .35s; --ease-out: cubic-bezier(.2,.8,.2,1); --ease-in: cubic-bezier(.4,0,1,1); }
.logo:hover .mascot-char { animation: mascotHop 1s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes mascotHop { 0%,100% { transform: none; } 20% { transform: scale(1.05,.92); } 45% { transform: translateY(-6px) scale(.96,1.05); } 70% { transform: scale(1.04,.94); } }
.mascot-blink { animation-duration: 6s !important; }
/* Закриття вікон — зворотний рух замість миттєвого зникнення */
.ov:not(.hide), .msheet-ov:not(.hide) { animation: ovIn var(--t-mid) ease-out; }
.ov.closing, .msheet-ov.closing { animation: ovOut .18s var(--ease-in) forwards; pointer-events: none; }
.ov.closing .sheet, .msheet-ov.closing .msheet { animation: sheetOut .18s var(--ease-in) forwards; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovOut { to { opacity: 0; } }
@keyframes sheetOut { to { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) { @keyframes sheetOut { to { transform: translateY(16px) scale(.98); opacity: 0; } } }
/* Сердечко «Обране» — «стук» при натисканні */
.card-heart-btn.pop, #pvFav.pop { animation: heartPop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 100% { transform: scale(1); } }
/* Лічильник кошика підстрибує, коли товар «прилітає» */
.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.fly-img { position: fixed; z-index: 1000; pointer-events: none; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: 0 10px 30px rgba(46,42,61,.25); will-change: transform, opacity; }
/* Під час фільтрів картки не «випливають» заново — лише коротке перехрещування сітки */
.listing-card.no-anim { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ov.closing, .msheet-ov.closing, .ov.closing .sheet, .msheet-ov.closing .msheet, .ov:not(.hide), .msheet-ov:not(.hide) { animation: none !important; }
  .mascot-char, .mascot-blink, .bump, .card-heart-btn.pop, #pvFav.pop { animation: none !important; }
}

/* Головна без обраної категорії: каталог уже є в меню зліва вгорі, тож другий стовпчик категорій не дублюємо */
@media (min-width:1025px){
  html body:not(.mm-cat-on) .sidebar-categories,html body:not(.mm-cat-on) .categories-section{display:none!important}
  html body:not(.mm-cat-on) .main-content .grid,html body:not(.mm-cat-on) #grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (min-width:1025px) and (max-width:1199px){html body:not(.mm-cat-on) .main-content .grid,html body:not(.mm-cat-on) #grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* «Показати ще» — помітна кнопка; між каталогом і блоком «Як замовити» — повітря й чітка межа */
.more-btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 30px;border:1.5px solid var(--accent-dark,#E56E48);border-radius:999px;background:#fff;color:var(--accent-dark,#E56E48);font:700 15px 'Onest',sans-serif;cursor:pointer;box-shadow:0 6px 18px rgba(229,110,72,.18);transition:background .15s ease,color .15s ease,transform .15s ease}
.more-btn:hover{background:var(--accent-dark,#E56E48);color:#fff;transform:translateY(-1px)}
.more-btn:active{transform:scale(.98)}
html body .main-layout{padding-bottom:56px!important}
html body .shop-how{border-top:1px solid var(--mm-line,#EADFD6)}

/* Сортування й фільтр — чіткі кнопки, що не зливаються з кремовим фоном */
html body .st-btn{border:1.5px solid #E7D5C6;background:#fff;box-shadow:0 4px 14px rgba(229,110,72,.12);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
html body .st-btn:hover{border-color:var(--accent-dark,#E56E48);box-shadow:0 6px 18px rgba(229,110,72,.2);transform:translateY(-1px)}
html body .st-btn svg{color:var(--accent-dark,#E56E48)}
html body .st-btn small{color:#8A8296}
html body .st-btn.on{border-color:var(--accent-dark,#E56E48);background:var(--accent-soft,#FFE9E0)}
@media (min-width:1025px){html body .shop-tools{max-width:none;margin:14px 0 18px;padding:0}}

/* Оформлення: три способи доставки й підказки адреси */
.s-seg.s-seg3{grid-template-columns:repeat(3,1fr)}
.s-seg.s-seg3 span{flex-direction:column;height:auto;min-height:54px;padding:6px 4px;text-align:center;line-height:1.15;font-size:14px}
.s-seg.s-seg3 span small{font-weight:500;font-size:11.5px;color:#8A8296;margin-top:2px}
.ac{position:relative}
.ac-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;max-height:260px;overflow:auto;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #E7D5C6;border-radius:14px;box-shadow:0 16px 36px rgba(46,42,61,.16)}
.ac-list li{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:10px;font-size:14px;line-height:1.3;cursor:pointer;color:var(--ink)}
.ac-list li small{display:block;color:#8A8296;font-size:12px;margin-top:2px}
.ac-list li .tg{flex:none;font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:#FFE9E0;color:#C9562F;margin-top:1px}
.ac-list li .tg.lk{background:#E8F2FF;color:#2160A3}
.ac-list li.on,.ac-list li:hover{background:#FFF1E8}
.ac-list li.muted{cursor:default;color:#8A8296;background:none}

/* Лічильники на іконках «Кошик» і «Обране» (шапка й нижнє меню телефона) */
html body .nav-icon-item .nav-badge:not(.hide){display:inline-flex!important;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:800;color:#fff;background:var(--accent-dark,#E56E48)!important;border:2px solid #fff;border-radius:999px;top:0;right:4px;line-height:1;box-sizing:border-box}
html body .m-tab{position:relative}
html body .m-tab .m-badge.on{display:flex}
@keyframes badgePop{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
html body .nav-badge.pop,html body .m-badge.pop{animation:badgePop .35s ease-out}

/* Доступність: видимий фокус і зони натискання 44px на картках */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #2E7DD1;outline-offset:2px}
.listing-card .card-add{width:44px;height:44px}
.listing-card .card-heart-btn{width:44px!important;height:44px!important}
