/* Smart filter overlay — shop only */
.eh-shop-sort,
.eh-shop-filters,
.eh-shop-entries,
.eh-shop-aside,
.eh-shop-layout > aside {
  display: none !important;
}

.eh-shop-layout {
  display: block !important;
  grid-template-columns: none !important;
}

.eh-shop-shelf,
.eh-shop-shelf .products,
.eh-shop-shelf ul.products {
  width: 100%;
  max-width: 100%;
}

.eh-smart-bar {
  position: sticky;
  top: 88px;
  z-index: 40;
  margin: 8px 0 22px;
}

.eh-smart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: #141414;
  color: #fff;
  font: 600 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.eh-smart-btn:hover { border-color: #e10600; }
.eh-smart-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e10600;
}
.eh-smart-n {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #e10600;
  font-size: 11px; line-height: 20px; text-align: center;
}

.eh-smart-layer {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 24px;
}
.eh-smart-layer[hidden] { display: none !important; }

.eh-smart-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 20px 22px 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.eh-smart-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.eh-smart-panel-title {
  margin: 0; font: 650 16px/1.2 Inter, system-ui, sans-serif; color: #fff;
}
.eh-smart-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #1c1c1c; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

.eh-smart-group { margin: 14px 0 4px; }
.eh-smart-label {
  margin: 0 0 8px;
  font: 650 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.eh-smart-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.eh-smart-chips[data-filter-group="type"],
.eh-smart-chips[data-filter-group="feat"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.eh-smart-chips .eh-chip {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #fff;
  font: 500 13px/40px Inter, system-ui, sans-serif;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-sizing: border-box;
}
.eh-smart-chips .eh-chip.is-active {
  background: #fff; color: #111; border-color: #fff;
}

.eh-smart-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px;
}
.eh-shop-reset, .eh-filter-apply {
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 600 14px/42px Inter, system-ui, sans-serif; cursor: pointer;
}
.eh-shop-reset {
  border: 1px solid rgba(255,255,255,.16);
  background: transparent; color: #fff;
}
.eh-filter-apply {
  border: 0; background: #e10600; color: #fff;
}

.eh-shop-count { margin: 0 0 16px; color: rgba(255,255,255,.55); font-size: 14px; }
.eh-shop-empty { color: rgba(255,255,255,.6); }

@media (max-width: 720px) {
  .eh-smart-bar { top: 96px; margin: 12px 0 18px; }
  .eh-smart-btn { width: 100%; justify-content: center; }
  .eh-smart-layer {
    padding: 96px 0 0;
    align-items: flex-end;
  }
  .eh-smart-panel {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 104px);
    border-radius: 20px 20px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }
  .eh-smart-panel-head { flex: 0 0 auto; }
  .eh-smart-group { margin: 12px 0 0; }
  .eh-smart-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eh-smart-chips[data-filter-group="area"],
  .eh-smart-chips[data-filter-group="budget"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .eh-smart-chips .eh-chip {
    height: 42px;
    line-height: 42px;
    font-size: 12px;
  }
  .eh-smart-actions {
    margin-top: auto;
    padding-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
  }
  .eh-shop-reset, .eh-filter-apply {
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0;
    text-align: center;
  }
}
