/* Shared compact layout for mobile browsers and Telegram iOS/Android Mini App. */
html.davr-mobile-layout #root header {
  position: sticky !important;
  top: 0 !important;
  z-index: 20;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px !important;
}

html.davr-mobile-layout #root header > .country { display: none !important; }

html.davr-mobile-layout .davr-category-toggle {
  display: inline-grid !important;
  min-height: 40px;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dcebe5;
  border-radius: 12px;
  background: #f4faf7;
  color: #087f68;
  -webkit-tap-highlight-color: transparent;
}

html.davr-mobile-layout .davr-category-toggle svg { width: 21px; height: 21px; }

html.davr-mobile-layout #root header > .brand {
  flex: 0 0 auto !important;
  width: auto !important;
  font-size: 27px !important;
}

html.davr-mobile-layout .header-actions {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin-left: auto !important;
  justify-content: flex-end !important;
  gap: 7px !important;
}

@media (max-width: 700px) {
  html.davr-mobile-layout .header-actions > button.desktop-icon,
  html.davr-mobile-layout .header-actions > .davr-header-shops,
  html.davr-mobile-layout .header-actions > .primary {
    display: none !important;
  }
}

html.davr-mobile-layout .city-picker {
  flex: 0 1 128px !important;
  min-width: 0 !important;
}

html.davr-mobile-layout .city-picker .picker {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html.davr-mobile-layout #davr-notification-button.davr-notification-button {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  margin-left: 0 !important;
  border-radius: 12px !important;
}

html.davr-mobile-layout .catalog-discovery-shell {
  min-height: 0 !important;
}

html.davr-mobile-layout .catalog-discovery {
  top: var(--davr-nav-header-height, 56px) !important;
  transition: none !important;
}

/* Categories live in the header menu on mobile; never render a duplicate rail
   below the search field. */
html.davr-mobile-layout .catalog-discovery [class*="_rail_"] {
  display: none !important;
}

html.davr-mobile-layout.davr-categories-open .catalog-discovery [class*="_rail_"] {
  position: fixed !important;
  z-index: 52 !important;
  top: calc(var(--davr-nav-header-height, 56px) + env(safe-area-inset-top) + 8px) !important;
  left: 10px !important;
  right: 10px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  max-height: min(62dvh, 500px) !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 1px solid #e2eee8 !important;
  border-radius: 18px !important;
  background: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  box-shadow: 0 18px 54px rgba(17, 43, 34, .2) !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"]::-webkit-scrollbar { display: none; }

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category] {
  min-width: 0 !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 7px 9px !important;
  border: 1px solid #edf2ef !important;
  border-radius: 12px !important;
  background: #fbfdfc !important;
  white-space: normal !important;
  color: #20332d !important;
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category]:active {
  transform: scale(.985) !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category][aria-pressed="true"] {
  border-color: #087f68 !important;
  background: #eef9f4 !important;
  color: #075b4c !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category] > span:first-child {
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category] > span:first-child svg {
  width: 18px !important;
  height: 18px !important;
}

html.davr-mobile-layout .catalog-discovery [class*="_rail_"] [data-category] > span:last-child {
  min-width: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: normal !important;
}

html.davr-mobile-layout .catalog-discovery.is-scrolled:not(.shop-discovery-mode) {
  top: var(--davr-nav-header-height, 56px) !important;
  left: 12px !important;
  transform: none !important;
  width: calc(100% - 24px) !important;
  padding: 3px 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 22px rgba(20, 45, 34, .08) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (max-width: 700px) {
  html.davr-mobile-layout .catalog-discovery.is-scrolled.search-expanded .search {
    min-height: 44px !important;
    background: #fff !important;
    border: 1px solid #94bdb4 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  html.davr-mobile-layout .catalog-discovery.is-scrolled.search-expanded .search input {
    display: block !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
  }

  html.davr-mobile-layout .catalog-discovery .search input,
  html.davr-mobile-layout .catalog-discovery .search input:focus,
  html.davr-mobile-layout .catalog-discovery .search input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
  }

  html.davr-mobile-layout .catalog-discovery .search:focus-within {
    outline: 0 !important;
    box-shadow: none !important;
  }

  html.davr-mobile-layout .catalog-discovery.is-scrolled.search-expanded .search .primary,
  html.davr-mobile-layout .catalog-discovery.is-scrolled.search-expanded .search .search-filter-trigger {
    display: none !important;
  }
}

html.davr-mobile-layout .davr-notification-panel {
  top: calc(env(safe-area-inset-top) + 58px) !important;
  right: 10px !important;
  left: 10px !important;
  width: auto !important;
}

html.davr-mobile-layout nav.bottom {
  justify-content: space-between !important;
  gap: 2px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
}

html.davr-mobile-layout nav.bottom > button {
  flex: 1 1 20% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 1px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

html.davr-mobile-layout .davr-pwa-sell {
  color: #008367 !important;
}

html.davr-mobile-layout .davr-pwa-sell-icon {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #008367;
  color: #fff;
}

html.davr-mobile-layout .davr-pwa-sell-label {
  font-weight: 650;
}

html.davr-mobile-layout .detail-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  gap: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  height: var(--tg-viewport-height, 100dvh) !important;
  max-height: var(--tg-viewport-height, 100dvh) !important;
  margin: 0 !important;
  padding: 0 16px max(22px, env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)) !important;
  transform: none !important;
  translate: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html.davr-mobile-layout .detail-modal-top {
  position: sticky !important;
  z-index: 8 !important;
  top: 0 !important;
  flex: 0 0 auto !important;
  min-height: 48px;
  margin: 0 -16px !important;
  padding: max(8px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) 16px 8px !important;
  background: #fff !important;
  border-bottom: 1px solid #edf1ef !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.davr-mobile-layout .davr-pwa-related {
  width: 100%;
  margin: 18px 0 8px;
  padding-top: 6px;
}

html.davr-mobile-layout .davr-pwa-related-title {
  margin: 0 0 14px;
  color: #172c27;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
}

html.davr-mobile-layout .davr-pwa-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

html.davr-mobile-layout .davr-pwa-related-grid > .card {
  min-width: 0;
}

html.davr-mobile-layout .detail-layout {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html.davr-mobile-layout .detail-media-column,
html.davr-mobile-layout .detail-info,
html.davr-mobile-layout .detail-left-commerce,
html.davr-mobile-layout .detail-actions {
  display: contents !important;
}

html.davr-mobile-layout .detail-gallery-stage {
  order: 1 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-gallery-stage .detail-photo {
  width: 100% !important;
  aspect-ratio: 1.18 !important;
  min-height: 0 !important;
  max-height: 42dvh !important;
  object-fit: contain !important;
}

html.davr-mobile-layout .detail-thumbnails {
  order: 2 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-info > h2[data-davr-pwa-hidden="true"],
html.davr-mobile-layout .detail-info > .detail-favorite-top[data-davr-pwa-hidden="true"],
html.davr-mobile-layout .detail-left-commerce .detail-share[data-davr-pwa-hidden="true"] {
  display: none !important;
}

html.davr-mobile-layout .davr-pwa-detail-heading-row {
  order: 3 !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding-top: 5px;
}

html.davr-mobile-layout .davr-pwa-detail-heading-row > h2 {
  min-width: 0;
  margin: 0 !important;
  font-size: 25px !important;
  line-height: 1.22 !important;
  overflow-wrap: anywhere;
}

html.davr-mobile-layout .davr-pwa-detail-heading-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

html.davr-mobile-layout .davr-pwa-detail-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid #dce7e2 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #28483d !important;
  box-shadow: 0 3px 12px rgba(20, 45, 34, .08);
}

html.davr-mobile-layout .davr-pwa-detail-icon.is-active {
  color: #008367 !important;
  background: #eaf7f1 !important;
  border-color: #a9d9c7 !important;
}

html.davr-mobile-layout .davr-pwa-detail-share {
  color: #008367 !important;
}

html.davr-mobile-layout .davr-pwa-detail-share svg {
  width: 20px;
  height: 20px;
}

html.davr-mobile-layout .detail-info > .detail-price {
  order: 4 !important;
  align-self: flex-start;
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
}

html.davr-mobile-layout .detail-info > .detail-address {
  order: 5 !important;
  width: 100% !important;
  min-height: 46px;
  border: 1px solid #dceae3 !important;
  background: #f4faf7 !important;
  color: #315b4d !important;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

html.davr-mobile-layout .detail-info > p.muted:first-of-type {
  order: 6 !important;
  margin: 0 !important;
}

html.davr-mobile-layout .detail-info > p.muted:not(:first-of-type) {
  order: 7 !important;
  margin: 0 !important;
}

html.davr-mobile-layout .detail-info > .detail-section-title {
  order: 8 !important;
  margin: 12px 0 0 !important;
}

html.davr-mobile-layout .detail-info > .detail-specs {
  order: 9 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-info > .detail-description-inline {
  order: 10 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-info > .detail-sale-terms {
  order: 11 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-left-commerce > .seller {
  order: 12 !important;
  width: 100% !important;
  margin: 4px 0 0 !important;
}

html.davr-mobile-layout .detail-actions > .primary.detail-action {
  order: 13 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-actions > .seller-contact-hint,
html.davr-mobile-layout .detail-actions > .contact-note {
  order: 14 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-actions > a.detail-action,
html.davr-mobile-layout .detail-actions > button.outline.detail-action,
html.davr-mobile-layout .detail-actions > .detail-share {
  display: none !important;
}

html.davr-mobile-layout .detail-media-column .detail-safety-bottom {
  order: 15 !important;
  width: 100% !important;
}

html.davr-mobile-layout .detail-media-column .detail-report {
  order: 16 !important;
  width: 100% !important;
}

@media (max-width: 700px) {
  html.davr-mobile-layout .support-chat-modal {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    /* Radix's Tailwind dialog class uses the individual CSS `translate`
       property for centering; `transform: none` does not clear that offset. */
    translate: none !important;
    border-radius: 20px !important;
  }

  html.davr-mobile-layout .support-chat-modal > .modal-top {
    flex: 0 0 auto !important;
    padding-top: 12px !important;
  }

  html.davr-mobile-layout .support-chat-ui {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  html.davr-mobile-layout .support-chat-scroll {
    min-height: 0 !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  html.davr-mobile-layout .support-chat-composer {
    flex: 0 0 auto !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 380px) {
  html.davr-mobile-layout #root header {
    gap: 5px !important;
    padding-inline: 8px !important;
  }

  html.davr-mobile-layout #root header > .brand {
    font-size: 23px !important;
  }

  html.davr-mobile-layout .city-picker {
    flex-basis: 106px !important;
  }

  html.davr-mobile-layout .davr-category-toggle {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  html.davr-mobile-layout nav.bottom > button {
    font-size: 9px !important;
  }
}

/* Youla-inspired mobile shell. The native React controls remain mounted and
   own all application state; this layer only supplies compact proxy controls. */
html.davr-mobile-layout body { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
html.davr-mobile-layout body > #root { min-height: 100dvh; }
html.davr-mobile-layout .intro,
html.davr-mobile-layout .hero { display: none !important; }
html.davr-mobile-layout .catalog-discovery-shell { min-height: 0 !important; padding-top: 0 !important; }
html.davr-mobile-layout #root header {
  min-height: 54px !important;
  padding: calc(6px + env(safe-area-inset-top)) 12px 6px !important;
  flex-wrap: nowrap !important;
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: 0 !important;
}
html.davr-mobile-layout #root header > .brand { font-size: 21px !important; letter-spacing: -.5px; margin-right: auto !important; }
html.davr-mobile-layout #root header > .davr-category-toggle { display: none !important; }
html.davr-mobile-layout #root header > .davr-mobile-profile {
  order: 4; display: inline-flex; align-items: center; gap: 6px; height: 38px;
  padding: 0 10px 0 7px; border: 0; border-radius: 20px; background: #f2f4f5;
  color: #202326; font: 600 12px/1 system-ui, sans-serif; white-space: nowrap;
}
html.davr-mobile-layout .davr-mobile-profile svg {
  width: 27px; height: 27px; padding: 5px; border-radius: 50%; background: #fff;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}
html.davr-mobile-layout .header-actions { order: 3; flex: 0 0 auto !important; margin-left: 0 !important; }
html.davr-mobile-layout .header-actions > .city-picker,
html.davr-mobile-layout #root header > .city-picker { display: none !important; }
html.davr-mobile-layout .header-actions > .picker:not(#davr-notification-button) {
  display: inline-flex !important; min-width: 42px !important; height: 36px !important;
  padding: 0 7px !important; border-radius: 18px !important; background: #f2f4f5 !important;
  font-size: 11px !important; font-weight: 700 !important;
}
html.davr-mobile-layout.davr-mobile-city-open #root header .header-actions > .city-picker {
  position: fixed !important; z-index: 99 !important; top: var(--davr-mobile-city-top, 112px) !important;
  left: var(--davr-mobile-city-left, 12px) !important; right: auto !important;
  display: flex !important; width: var(--davr-mobile-city-width, calc(100% - 24px)) !important;
  opacity: 0 !important; pointer-events: none !important;
}
html.davr-mobile-layout.davr-mobile-city-open #root header .city-picker .picker { width: 100% !important; }
html.davr-mobile-layout #davr-notification-button.davr-notification-button {
  border: 0 !important; background: #f2f4f5 !important; border-radius: 50% !important;
}
html.davr-mobile-layout .catalog-discovery {
  position: relative !important; top: auto !important; left: auto !important; transform: none !important;
  width: 100% !important; padding: 5px 12px 8px !important; background: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.04) !important;
}
html.davr-mobile-layout .catalog-discovery.is-scrolled,
html.davr-mobile-layout .catalog-discovery.is-scrolled:not(.shop-discovery-mode) {
  position: relative !important; top: auto !important; left: auto !important; transform: none !important;
  width: 100% !important; padding: 5px 12px 8px !important;
}
html.davr-mobile-layout .catalog-discovery .search {
  min-height: 42px !important; gap: 8px !important; padding: 4px 8px 4px 10px !important;
  border-radius: 12px !important;
}
html.davr-mobile-layout .catalog-discovery .search > svg { width: 20px; height: 20px; flex: 0 0 20px; }
html.davr-mobile-layout .catalog-discovery .search input { padding: 7px 0 !important; font-size: 16px !important; }
html.davr-mobile-layout .catalog-discovery .search .primary { display: none !important; }
html.davr-mobile-layout .catalog-discovery .search .search-filter-trigger,
html.davr-mobile-layout .catalog-discovery.is-scrolled.search-expanded .search .search-filter-trigger {
  display: grid !important; min-width: 36px !important; width: 36px !important; height: 36px !important;
}
html.davr-mobile-layout .catalog-discovery [class*="_rail_"],
html.davr-mobile-layout.davr-categories-open .catalog-discovery [class*="_rail_"] { display: none !important; }
html.davr-mobile-layout .catalog-discovery + [class*="toolbar"],
html.davr-mobile-layout .catalog-discovery .filter-toolbar { display: none !important; }
html.davr-mobile-layout .davr-mobile-home-tools { padding: 5px 0 8px; background: #fff; }
html.davr-mobile-layout .davr-mobile-home-tools[hidden] { display: none !important; }

/* A shop is a browse view in React, but must not inherit the global mobile
   discovery/search UI or the homepage quick categories. */
html.davr-mobile-layout.davr-mobile-shop-open .catalog-discovery-shell,
html.davr-mobile-layout.davr-mobile-shop-open .davr-mobile-home-tools {
  display: none !important;
}
html.davr-mobile-layout #root main .shop-banner { margin-bottom: 12px; }
html.davr-mobile-layout .davr-mobile-shop-search {
  display: flex; align-items: center; gap: 10px; min-height: 46px;
  margin: 0 0 20px; padding: 5px 10px 5px 13px;
  border: 1px solid #e4e9e7; border-radius: 12px;
  background: #f3f6f4; color: #64766f;
}
html.davr-mobile-layout .davr-mobile-shop-search:focus-within {
  border-color: #61b39a;
}
html.davr-mobile-layout .davr-mobile-shop-search svg {
  width: 20px; height: 20px; flex: 0 0 20px; fill: none;
  stroke: currentColor; stroke-width: 1.8;
}
html.davr-mobile-layout .davr-mobile-shop-search input {
  width: 100%; min-width: 0; flex: 1; padding: 7px 0;
  border: 0; outline: none; background: transparent;
  color: #202326; font: 400 16px/1.3 system-ui, sans-serif;
}
html.davr-mobile-layout .davr-mobile-shop-search-clear {
  flex: 0 0 32px; height: 32px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: #64766f; font-size: 23px;
}
html.davr-mobile-layout .davr-mobile-shop-search-clear[hidden] { display: none !important; }

html.davr-mobile-layout .davr-mobile-shortcuts {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 12px 10px; scrollbar-width: none;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
html.davr-mobile-layout .davr-mobile-shortcuts::-webkit-scrollbar { display: none; }
html.davr-mobile-layout .davr-mobile-shortcuts > button {
  display: flex; flex: 0 0 76px; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start;
  padding: 0; border: 0; background: transparent; color: #303438; font: 500 11px/1.15 system-ui, sans-serif; text-align: center;
}
html.davr-mobile-layout .davr-mobile-shortcuts .davr-category-symbol { width: 54px; height: 54px; border-radius: 17px; }
html.davr-mobile-layout .davr-mobile-city-row {
  display: grid; grid-template-columns: 25px 1fr 18px; align-items: center; width: calc(100% - 24px); min-height: 38px;
  margin: 0 12px; padding: 6px 10px; border: 0; border-radius: 10px; background: #f7f8f8;
  color: #333; font: 500 13px/1.2 system-ui, sans-serif; text-align: left;
}
html.davr-mobile-layout .davr-mobile-city-pin { color: #00a67d; font-size: 20px; }
html.davr-mobile-layout nav.bottom { display: none !important; }

html.davr-mobile-layout .davr-mobile-tabbar {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start;
  padding: 6px 3px env(safe-area-inset-bottom); border-top: 1px solid #eceef0;
  background: rgba(255,255,255,.98); box-shadow: 0 -5px 18px rgba(0,0,0,.05);
}
html.davr-mobile-layout.davr-native-dialog-open .davr-mobile-tabbar { display: none; }
html.davr-mobile-layout.davr-categories-open { overflow: hidden; }
html.davr-mobile-layout .davr-mobile-tab {
  display: flex; min-width: 0; height: 56px; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0 1px; border: 0; background: transparent; color: #74787c;
  font: 500 10px/1.1 system-ui, sans-serif; white-space: nowrap;
}
html.davr-mobile-layout .davr-mobile-tab > svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html.davr-mobile-layout .davr-mobile-tab:active,
html.davr-mobile-layout .davr-mobile-tab.is-active { color: #00a67d; }
html.davr-mobile-layout .davr-mobile-tab.is-post { color: #222; transform: translateY(-7px); }
html.davr-mobile-layout .davr-mobile-post-icon {
  display: grid; width: 44px; height: 36px; place-items: center; border-radius: 12px; background: #00a67d; color: #fff;
  box-shadow: 0 5px 12px rgba(0,166,125,.22);
}
html.davr-mobile-layout .davr-mobile-post-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }

html.davr-mobile-layout .davr-mobile-categories {
  position: fixed; z-index: 80; inset: 0 0 calc(64px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: #fff;
  padding-top: env(safe-area-inset-top); color: #202326; transform: translateX(0); transition: transform .2s ease;
}
html.davr-mobile-layout .davr-mobile-categories[aria-hidden="true"] { display: none; }
html.davr-mobile-layout .davr-mobile-category-header {
  position: static !important; display: grid !important; grid-template-columns: 42px 1fr 42px; align-items: center !important;
  min-height: 54px !important; padding: 6px 10px !important; border-bottom: 1px solid #eceef0 !important;
}
html.davr-mobile-layout .davr-mobile-category-title { margin: 0; font: 700 18px/1.2 system-ui, sans-serif; text-align: center; }
html.davr-mobile-layout .davr-mobile-category-back,
html.davr-mobile-layout .davr-mobile-category-close { display: grid; width: 40px; height: 40px; place-items: center; border: 0; background: transparent; color: #222; font-size: 28px; }
html.davr-mobile-layout .davr-mobile-category-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
html.davr-mobile-layout .davr-mobile-category-back.is-root { visibility: hidden; }
html.davr-mobile-layout .davr-mobile-category-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
html.davr-mobile-layout .davr-mobile-category-search-wrap {
  display: flex; align-items: center; gap: 9px; height: 44px; margin-bottom: 10px; padding: 0 13px;
  border-radius: 12px; background: #f2f3f4; color: #777;
}
html.davr-mobile-layout .davr-mobile-category-search-wrap svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html.davr-mobile-layout .davr-mobile-category-search { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font: 400 16px/1 system-ui, sans-serif; }
html.davr-mobile-layout .davr-mobile-category-status { padding: 24px 8px; color: #777; text-align: center; }
html.davr-mobile-layout .davr-mobile-category-list { border-top: 1px solid #f0f1f2; }
html.davr-mobile-layout .davr-mobile-category-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 11px;
  width: 100%; min-height: 62px; padding: 8px 2px; border: 0; border-bottom: 1px solid #f0f1f2;
  background: #fff; color: #202326; font: 500 16px/1.3 system-ui, sans-serif; text-align: left;
}
html.davr-mobile-layout .davr-mobile-category-row > svg { width: 20px; height: 20px; fill: none; stroke: #a1a5a9; stroke-width: 1.8; }
html.davr-mobile-layout .davr-mobile-category-row > span:not(.davr-category-symbol) { min-width: 0; overflow-wrap: anywhere; }
html.davr-mobile-layout .davr-mobile-category-row:active { background: #f6faf8; }
html.davr-mobile-layout .davr-mobile-category-row:focus-visible { outline: 2px solid #00a67d; outline-offset: -2px; }
html.davr-mobile-layout .davr-category-symbol { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--davr-category-color) 13%, white); color: var(--davr-category-color); }
html.davr-mobile-layout .davr-category-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html.davr-mobile-layout.davr-mobile-city-open .picker-content,
html.davr-mobile-layout.davr-mobile-city-open [data-slot="select-content"] { z-index: 100 !important; }

@media (max-width: 370px) {
  html.davr-mobile-layout .davr-mobile-profile span { display: none; }
  html.davr-mobile-layout .davr-mobile-profile { width: 38px; padding: 5px; }
  html.davr-mobile-layout #root header > .brand { font-size: 19px !important; }
}

/* Native mobile taxonomy replaces the legacy unstyled React category panel.
   React remains mounted and continues to filter the selected listing node. */
html.davr-mobile-layout #davr-catalog-page-subcategories {
  display: none !important;
}
html.davr-mobile-layout.davr-mobile-category-results .davr-mobile-shortcuts {
  display: none !important;
}
html.davr-mobile-layout .davr-mobile-category-result {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 10px 12px 14px; padding: 12px 13px; border-radius: 14px;
  background: #f4f8f6; border: 1px solid #e3ede7; color: #183e32;
}
html.davr-mobile-layout .davr-mobile-category-result-label {
  display: grid; gap: 3px; min-width: 0;
}
html.davr-mobile-layout .davr-mobile-category-result-parent {
  color: #6d7c73; font: 500 12px/1.25 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
html.davr-mobile-layout .davr-mobile-category-result-parent:empty {
  display: none;
}
html.davr-mobile-layout .davr-mobile-category-result-name {
  font: 700 16px/1.3 system-ui, sans-serif; overflow-wrap: anywhere;
}
html.davr-mobile-layout .davr-mobile-category-result-change {
  flex: 0 0 auto; min-height: 38px; padding: 7px 10px;
  border: 1px solid #cce6da; border-radius: 10px; background: #fff;
  color: #087f5b; font: 600 13px/1.2 system-ui, sans-serif;
}
html.davr-mobile-layout .davr-mobile-category-result-change:focus-visible {
  outline: 2px solid #087f5b; outline-offset: 2px;
}

