/* ==========================================================================
   SECRET PLACE — CANONICAL STYLESHEET
   ========================================================================== */

:root {
  --bg: #ffffff;
  --text: #09090b;
  --muted: #71717a;
  --line: #e4e4e7;
  --panel-bg: #f8fafc;
  --overlay: rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --header-h: 72px;
  --menu-w: 380px;
  --gap: 16px;
  --thumb-zoom: 1;
  --preview-zoom: 1.65;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: url("/assets/bubbles-bg.svg");
  background-repeat: no-repeat;
  background-size: 1300px 910px;
  background-position: center 120px;
  background-attachment: fixed;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  transition: background .15s ease, border-color .15s ease;
}

.left-actions, .right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.left-actions { justify-content: flex-start; }
.right-actions { justify-content: flex-end; gap: 8px; }

.brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: var(--text) !important;
  justify-self: center !important;
  text-align: center !important;
  gap: 3px !important;
}
.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.burger {
  width: 18px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}
.menu-label {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
}

.icon-btn {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  height: 48px;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  user-select: none;
  white-space: nowrap;
  position: relative;
}
.account-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#wishlistBtn, #cartBtn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#wishlistBtn svg, #cartBtn svg {
  display: block;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu-btn:hover, .icon-btn:hover, .close-btn:hover {
  background: #000;
  color: #fff;
}

/* ---------- Container & Layout ---------- */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 28px 0 16px;
  font-size: 18px;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 10px;
}
.container > .section-title:first-of-type { margin-top: 0; }

/* ---------- Tiles (Разделы каталога) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-bottom: 24px;
}
.tile {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all .15s ease;
  background: #fff;
  min-height: 56px;
  color: var(--text);
}
.tile .name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 14px;
}
.tile .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease;
}
.tile:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.tile:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Catalog Wrap & Filters ---------- */
.catalog-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.panel-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 14px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
}

.field {
  margin-bottom: 14px;
}
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
}
.field select, .field input[type="text"], .field input[type="number"], .search-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
}
.field select:focus, .field input:focus, .search-input:focus {
  border-color: #000;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.head-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0;
}

/* ---------- Grid & Product Cards ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: #a1a1aa;
}

.thumb {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center;
  transition: transform .18s ease;
}

/* ПРЕВЬЮ ПРИ НАВЕДЕНИИ */
.preview {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(var(--preview-zoom));
  transform-origin: center;
}
.card.show-preview .preview {
  opacity: 1;
  pointer-events: auto;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.card-body .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.card-body .meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  margin: 0;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  gap: 10px;
}
.price {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.add {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.add:active { transform: scale(.97); }
.add:hover { opacity: .9; }

.card-qty {
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.card-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-qty span {
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.wishlist-toggle-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}
.wishlist-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}
.qty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

/* ---------- Drawer & Menu ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 100;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(var(--menu-w), 90vw);
  background: var(--bg);
  border-right: 1.5px solid var(--line);
  transform: translateX(-102%);
  transition: transform .22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 110;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1.5px solid var(--line);
}
.drawer-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 16px;
}
.close-btn {
  border: 1.5px solid var(--line);
  background: transparent;
  height: 40px;
  width: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  transition: all .15s ease;
}
.drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 13.5px;
  transition: all .15s ease;
}
.nav-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ---------- Modals ---------- */
.modal-overlay, .wishlist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}
.modal-overlay.open, .wishlist-modal-backdrop.open {
  display: flex;
}
.modal, .wishlist-modal {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close, .wishlist-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Dark Theme ---------- */
body.theme-dark {
  --bg: #09090b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272a;
  --panel-bg: #18181b;
}
body.theme-dark .header,
body.theme-dark .panel,
body.theme-dark .card,
body.theme-dark .tile,
body.theme-dark .drawer,
body.theme-dark .modal,
body.theme-dark .wishlist-modal {
  background: #18181b;
  border-color: #27272a;
  color: #f4f4f5;
}
body.theme-dark .tile .name,
body.theme-dark .card-body .name,
body.theme-dark .brand-title {
  color: #f4f4f5;
}
body.theme-dark .tile:hover {
  background: #27272a;
  color: #fff;
  border-color: #3f3f46;
}
body.theme-dark .add {
  background: #f4f4f5;
  color: #09090b;
}
body.theme-dark .badge {
  background: #f4f4f5;
  color: #09090b;
}
body.theme-dark .menu-btn,
body.theme-dark .icon-btn,
body.theme-dark .close-btn {
  border-color: #27272a;
  color: #f4f4f5;
}
body.theme-dark .menu-btn:hover,
body.theme-dark .icon-btn:hover,
body.theme-dark .close-btn:hover,
body.theme-dark .nav-link:hover {
  background: #27272a;
  color: #fff;
  border-color: #3f3f46;
}


/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {

  html, body {
    zoom: 1 !important;
    overflow-x: hidden !important;
  }
  body {
    padding-top: 66px !important;
  }

  /* Шапка фиксирована, логотип строго по центру стекла экрана */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 62px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 90 !important;
    background: var(--bg) !important;
    border-bottom: 1.5px solid var(--line) !important;
  }
  .left-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 2 !important;
  }
  .right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    z-index: 2 !important;
  }

  .menu-btn {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .menu-label {
    display: none !important;
  }
  .burger {
    margin: 0 !important;
  }

  /* Логотип строго по центру */
  .brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    padding: 0 !important;
    gap: 2px !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }
  .brand-title {
    font-size: 15px !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
  }
  .brand-sub {
    font-size: 6.8px !important;
    letter-spacing: .08em !important;
    white-space: nowrap !important;
  }

  .icon-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    font-size: 16px !important;
    gap: 0 !important;
  }
  #accountBtn .account-label, #adminHeaderBtn .account-label, .account-label {
    display: none !important;
  }
  .badge {
    font-size: 10px !important;
    min-width: 17px !important;
    height: 17px !important;
    top: -4px !important;
    right: -4px !important;
    padding: 0 3px !important;
  }

  /* Главный контейнер */
  .container {
    padding: 10px 10px 80px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .section-title {
    font-size: 15px !important;
    margin: 16px 0 10px !important;
  }

  /* КНОПКИ СЕКЦИЙ КАТАЛОГА: АККУРАТНЫЕ, КОМПАКТНЫЕ, ТЕКСТ В ЦЕНТРЕ, СТРЕЛКА ВЫРОВНЕНА */
  .tiles {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .tile {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  .tile .name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: .03em !important;
    margin: 0 !important;
  }
  .tile .arrow {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.6 !important;
  }

  /* Каталог и фильтры */
  .catalog-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .catalog-head {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .head-left {
    display: none !important;
  }
  .head-right {
    width: 100% !important;
  }
  .head-title {
    font-size: 15px !important;
  }
  .panel {
    width: 100% !important;
    position: static !important;
    padding: 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .field {
    margin-bottom: 10px !important;
  }
  .field label {
    font-size: 11.5px !important;
    margin-bottom: 4px !important;
  }
  .field select, .accordion-toggle {
    width: 100% !important;
    height: 42px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  .search-box, .search-wrap {
    width: 100% !important;
  }
  .search-input {
    width: 100% !important;
    height: 42px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }
  .type-chips {
    padding: 8px !important;
    gap: 6px !important;
  }
  .type-chip {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  /* Сетка товаров: ЧЕТКИЕ 2 КОЛОНКИ НА ТЕЛЕФОНЕ */
  .grid-products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Карточка товара на телефоне */
  .card {
    border-radius: 12px !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .thumb {
    height: 135px !important;
    border-radius: 12px 12px 0 0 !important;
    background: #000 !important;
    position: relative !important;
    overflow: hidden !important;
  }
  /* На мобильных устройствах скрываем preview по ховеру, чтобы не ломать скролл */
  .preview {
    display: none !important;
  }
  .card-body {
    padding: 10px 8px 12px !important;
    gap: 5px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  .card-body .name {
    font-size: 12px !important;
    min-height: 30px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }
  .card-body .meta {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .price-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 4px !important;
    box-sizing: border-box !important;
  }
  .price {
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: left !important;
  }
  .add {
    width: 100% !important;
    height: 38px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .card-qty {
    width: 100% !important;
    height: 38px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  .card-qty button {
    width: 32px !important;
    height: 100% !important;
    font-size: 16px !important;
  }
  .card-qty span {
    font-size: 13.5px !important;
    min-width: 24px !important;
  }
  .wishlist-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    top: 8px !important;
    left: 8px !important;
  }
  .wishlist-toggle-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .qty-badge {
    font-size: 10px !important;
    padding: 4px 7px !important;
    top: 8px !important;
    right: 8px !important;
  }
  .out-of-stock-badge {
    font-size: 9px !important;
    padding: 3px 6px !important;
    top: 8px !important;
    left: 8px !important;
  }

  /* Меню-шторка */
  .drawer {
    width: min(300px, 86vw) !important;
  }
  .nav-link {
    font-size: 14px !important;
    padding: 12px 16px !important;
  }

  /* Модалка быстрого просмотра */
  .modal {
    width: calc(100vw - 20px) !important;
    max-width: 420px !important;
    padding: 14px !important;
    max-height: 88vh !important;
  }
  .modal-img-wrap {
    height: 180px !important;
  }

  /* Модалка избранного */
  .wishlist-modal {
    width: calc(100vw - 20px) !important;
    max-width: 440px !important;
    padding: 14px !important;
    max-height: 88vh !important;
  }
  .wishlist-item-row {
    gap: 8px !important;
    padding: 8px 0 !important;
  }
  .wishlist-item-thumb {
    width: 48px !important;
    height: 48px !important;
  }
  .wishlist-item-name {
    font-size: 12px !important;
  }
  .wishlist-item-price {
    font-size: 13px !important;
  }
  .wishlist-add-cart-btn {
    padding: 5px 8px !important;
    font-size: 10.5px !important;
  }
  .wishlist-modal-footer {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .wishlist-clear-btn, .wishlist-add-all-btn {
    width: 100% !important;
    height: 40px !important;
  }

  /* Чат и кнопка "Наверх" */
  .sp-chat-widget {
    bottom: 14px !important;
    right: 14px !important;
  }
  .sp-chat-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
  .sp-chat-window {
    bottom: 60px !important;
    right: 0 !important;
    width: calc(100vw - 28px) !important;
    height: 420px !important;
    max-height: 72vh !important;
  }
  .to-top {
    right: 14px !important;
    bottom: 70px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 350px) {
  .grid-products {
    grid-template-columns: 1fr !important;
  }
  .thumb {
    height: 180px !important;
  }
}
