﻿/* ---- Responsive ---- */
@media (min-width: 600px) {
  .cart-button .cart-label { display: inline; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero { padding: 36px var(--px); }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-img-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 16/7;
    margin: 0;
  }
  .modal-body { max-height: none; }
  #modal .modal-content { max-height: calc(100dvh - 16px); }
  .products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
  .products { grid-template-columns: 1fr 1fr; }
  .cart-button { padding: 9px 12px; }
  .modal-product-name { font-size: 19px; }
}

/* ================================================================
   Мобильный layout (< 720px)
   Используем единый вертикальный layout на всех устройствах.
   Горизонтальный слайдер отключён.
   ================================================================ */

/* Слайдер всегда скрыт */
.menu-mobile { display: none; }

@media (max-width: 719px) {
  :root { --nav-h: 52px; }
  /* Десктоп-версия видна и на мобильном */
  .menu-desktop { display: block; }
  .menu-body {
    padding: 16px 0 80px;
    overflow-x: hidden;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }