/* Телефон: шапка 52px, меню-шторка, компактный футер (eco-mobile.js ставит html.eym-on). */
@media (max-width: 767px) {
  .eym-on header, .eym-on .btn-mobile-menu, .eym-on .mobile-fix-menu, .eym-on .container.sticky.eym-hide { display: none !important; }

  .eym-on .container.sticky { top: 52px !important; z-index: 1020; }
  .eym-bar {
    position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 4px 0 2px;
    background: #fff; border-bottom: 1px solid #edf0ee;
  }
  .eym-bar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: .85;
    background: linear-gradient(90deg, #e52421, #f39200, #ffd500, #3aaa35, #009fe3);
  }
  .eym-ib {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 12px; background: none; color: #1f2a24 !important; text-decoration: none !important; cursor: pointer;
  }
  .eym-ib:active { background: #f1f5f2; }
  .eym-ib svg { width: 24px; height: 24px; }
  .eym-logo { display: flex; align-items: center; height: 44px; margin-left: 2px; }
  .eym-logo img { height: 40px; width: auto; display: block; }
  .eym-sp { flex: 1 1 auto; }
  .eym-badge {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #e52421; color: #fff; font: 700 11px/18px -apple-system, Arial, sans-serif; text-align: center;
  }
  .eym-search {
    position: absolute; left: 0; right: 0; top: 52px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #edf0ee;
    box-shadow: 0 10px 24px rgba(16, 40, 28, .10); display: none;
  }
  .eym-s-on .eym-search { display: block; }
  .eym-s-on .eym-sbtn { background: #eef6f1; color: #00753B !important; }
  .eym-search form { display: block !important; margin: 0 !important; padding: 0 !important; }
  .eym-search .input-group { display: flex; width: 100%; }
  .eym-search input[name="words"] {
    flex: 1 1 auto; height: 44px !important; border-radius: 12px 0 0 12px !important; font-size: 16px !important;
    border: 1px solid #dfe6e2 !important; box-shadow: none !important; padding: 0 12px !important;
  }
  .eym-search .input-group-btn .btn { height: 44px; border-radius: 0 12px 12px 0 !important; border: 1px solid #dfe6e2; border-left: 0; background: #f6f9f7; }

  /* меню-шторка */
  .eym-ov { position: fixed; inset: 0; z-index: 10060; background: rgba(15, 30, 22, .42); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .eym-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 10061; width: 88%; max-width: 380px; display: flex; flex-direction: column;
    background: #fff; box-shadow: 8px 0 30px rgba(0, 0, 0, .18); transform: translateX(calc(-100% - 48px)); transition: transform .24s cubic-bezier(.2, .8, .2, 1);
    will-change: transform; outline: none;
  }
  .eym-menu-on .eym-ov { opacity: 1; visibility: visible; }
  .eym-menu-on .eym-drawer { transform: none; }
  .eym-menu-on, .eym-menu-on body { overflow: hidden; }
  .eym-dh { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px 0 14px; border-bottom: 1px solid #f0f2f1; flex: 0 0 auto; }
  .eym-dh img { height: 40px; width: auto; }
  .eym-db { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px 28px; overscroll-behavior: contain; }
  .eym-h { margin: 16px 2px 8px; font: 700 12px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8a968f; }
  .eym-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .eym-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px; padding: 10px 6px;
    border: 1px solid #edf0ee; border-radius: 14px; background: #fff; color: #1f2a24 !important; text-decoration: none !important;
    font: 600 13.5px/1.2 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align: center; transition: border-color .15s, box-shadow .15s;
  }
  .eym-tile:active { border-color: #00753B; box-shadow: 0 4px 14px rgba(0, 117, 59, .12); }
  .eym-tile img { width: 56px; height: 56px; }
  .eym-tiles .eym-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; min-height: 72px; gap: 12px; }
  .eym-subs { margin-top: 10px; }
  .eym-subs-t { font-size: 12.5px; color: #6b7a72; margin: 0 2px 6px; }
  .eym-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .eym-chips a {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 17px; background: #f3f7f5;
    color: #1f2a24 !important; font-size: 13.5px; text-decoration: none !important;
  }
  .eym-ai {
    display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 10px 12px; border: 2px solid transparent; border-radius: 14px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #e52421, #f39200, #ffd500, #3aaa35, #009fe3) border-box;
    text-align: left; color: #1f2a24; cursor: pointer;
  }
  .eym-ai img { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
  .eym-ai span { display: flex; flex-direction: column; line-height: 1.25; }
  .eym-ai b { font-size: 15px; }
  .eym-ai i { font-style: normal; font-size: 12.5px; color: #6b7a72; }
  .eym-links a {
    display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px; border-bottom: 1px solid #f1f3f2;
    color: #1f2a24 !important; font-size: 15.5px; text-decoration: none !important;
  }
  .eym-links svg, .eym-acc summary svg { width: 18px; height: 18px; color: #b5beb9; flex: 0 0 18px; }
  .eym-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .eym-pill {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; border-radius: 14px;
    color: #fff !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important;
  }
  .eym-pill svg { width: 22px; height: 22px; }
  .eym-call { background: #00753B; }
  .eym-wa { background: #25d366; }
  .eym-tg { background: #229ed9; }
  .eym-phones { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.6; color: #6b7a72; }
  .eym-phones a { color: #1f2a24 !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
  .eym-cab { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f3f2; }
  .eym-cab a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #e3e8e5; border-radius: 18px;
    color: #1f2a24 !important; font-size: 13.5px; text-decoration: none !important;
  }

  /* футер */
  .eym-foot-on > .container > :not(.eym-foot) { display: none !important; }
  footer.eym-foot-on { padding: 18px 0 calc(70px + env(safe-area-inset-bottom)) !important; background: #f6f8f7; }
  .eym-foot { font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1f2a24; }
  .eym-f-contact { padding: 4px 2px 14px; }
  .eym-f-phone { display: block; font-size: 22px; font-weight: 700; color: #1f2a24 !important; text-decoration: none !important; }
  .eym-f-phone2 { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: #1f2a24 !important; text-decoration: none !important; }
  .eym-f-meta { margin-top: 4px; font-size: 13.5px; color: #6b7a72; }
  .eym-f-meta a { color: #6b7a72 !important; }
  .eym-f-soc { display: flex; gap: 8px; margin-top: 12px; }
  .eym-f-soc a {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #fff;
    border: 1px solid #e3e8e5; color: #1f2a24 !important; font-weight: 700; font-size: 13px; text-decoration: none !important;
  }
  .eym-f-soc svg { width: 22px; height: 22px; }
  .eym-f-soc .eym-wa { color: #25d366 !important; background: #fff; }
  .eym-f-soc .eym-tg { color: #229ed9 !important; background: #fff; }
  .eym-f-soc .eym-vk { color: #0077ff !important; }
  .eym-f-soc .eym-ok { color: #ee8208 !important; }
  .eym-f-soc .eym-yt { color: #e52421 !important; }
  .eym-acc { border-top: 1px solid #e6eae8; }
  .eym-acc summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 2px; list-style: none;
    font-weight: 700; font-size: 15.5px; cursor: pointer;
  }
  .eym-acc summary::-webkit-details-marker { display: none; }
  .eym-acc[open] summary svg { transform: rotate(90deg); }
  .eym-acc div { display: flex; flex-direction: column; padding: 0 2px 10px; }
  .eym-acc div a { display: flex; align-items: center; min-height: 40px; color: #334139 !important; text-decoration: none !important; }
  .eym-f-legal { border-top: 1px solid #e6eae8; padding: 14px 2px 0; font-size: 12.5px; color: #7d8a83; line-height: 1.55; }
  .eym-f-legal a { color: #7d8a83 !important; text-decoration: underline; }

  /* нижняя десктоп-панель PHPShop на телефоне не нужна (корзина в eym-bar) */
  .eym-on .navbar-fixed-bottom.bar-tab,
  .eym-on .bar-padding-fix { display: none !important; }

  /* карточка товара: одна нижняя панель — покупка; корзина в шапке */
  .eym-on.eyb-on .shop-panel { bottom: 0 !important; padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important; }
  .eym-on.eyb-on .ecc-btn { bottom: 84px; }
  .eym-on.eyb-on .ecc-tip { bottom: 92px; }
  .eym-on.eyb-on #chatWidget { bottom: 84px !important; }

  /* описание: justify из админки на узком экране рвёт строки дырами */
  .eym-on .main-tabs .tab-content p, .eym-on .main-tabs .tab-content [style*="justify"] { text-align: left !important; }

  /* мелкие цели нажатия (≥40px): чекбоксы доставки, сравнить/избранное, «В корзину» в похожих */
  .eym-on input[type="checkbox"][value="pvz"], .eym-on input[type="checkbox"][value="door"] { width: 20px; height: 20px; }
  .eym-on .addToCompareList, .eym-on .addToWishList { min-width: 40px; min-height: 40px; }
  .eym-on .addToCartList { min-height: 40px; }
  .eym-on .edl-ask, .eym-on .eyb-rate { display: inline-block; padding: 8px 0; }

  /* кнопка чата прячется, пока листают вниз (eco-chat.js ставит .ecc-away) */
  .ecc-btn { transition: transform .2s, opacity .2s; }
  .ecc-btn.ecc-away { transform: translateY(24px) scale(.8); opacity: 0; pointer-events: none; }
}
