.radishka-category-chips,
.rm-subcategory-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rm-chip-scroller {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.rm-chip-scroller[hidden],
.rm-chip-scroller__meta[hidden],
.rm-chip-scroll-hint[hidden] {
  display: none !important;
}

.rm-chip-scroller__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  margin: 0 0 5px;
}

.rm-chip-scroller__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.rm-chip-scroll-hint,
.rm-chip-scroll-hint:hover,
.rm-chip-scroll-hint:focus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  border: 1px solid #d7c39d !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: #fff4dd !important;
  box-shadow: 0 3px 10px rgba(43, 29, 20, .08) !important;
  color: #2c1a10 !important;
  font: 700 20px/1 sans-serif !important;
  cursor: pointer;
}

.rm-chip-scroll-hint:hover {
  border-color: #2c1a10 !important;
  background: #2c1a10 !important;
  color: #fff4dd !important;
}

.radishka-category-chips button,
.rm-subcategory-chips button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid #d7c39d;
  border-radius: 999px;
  padding: 7px 16px;
  background: #fff4dd;
  color: #2c1a10;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.radishka-category-chips button:hover,
.radishka-category-chips button.is-active,
.rm-subcategory-chips button:hover,
.rm-subcategory-chips button.is-active {
  border-color: #2c1a10;
  background: #2c1a10;
  color: #fff4dd;
}

.rm-subcategory-chips {
  margin-top: 5px;
  padding-top: 9px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(117, 84, 61, .18);
}

.rm-subcategory-chips[hidden],
.rm-product-section[hidden] {
  display: none !important;
}

/* Astra задава display:grid !important на картите. Това правило позволява
   на филтрите да скриват само неподходящите продукти. */
.elementor-233 ul.products li.product[style*="display: none"] {
  display: none !important;
}

.rm-product-section {
  margin: 30px 0 48px;
}

.rm-product-section__title {
  margin: 0 0 22px;
  color: #2c1a10;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.rm-empty-result {
  display: none;
  margin: 30px 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff4dd;
  color: #2c1a10;
  text-align: center;
  font-weight: 700;
}

.rm-empty-result.is-visible {
  display: block;
}

.rm-menu-phones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.rm-menu-phones a,
.rm-menu-phones a:hover,
.rm-menu-phones a:focus {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.rm-menu-phones__divider {
  opacity: .55;
}

/* Elementor беше задал три еднакво високи реда и отваряше огромна празнина
   между търсачката и категориите. Всички редове следват реалното си съдържание. */
.elementor-233 .elementor-element.elementor-element-834d5c4 {
  --e-con-grid-template-rows: auto !important;
  grid-template-rows: auto !important;
  grid-auto-rows: auto !important;
  align-content: start !important;
  row-gap: 0 !important;
}

@media (min-width: 768px) {
  /* Картата има само две реални колони. Цената е позиционирана горе вдясно,
     за да не създава тясна трета колона и да не накъсва имената. */
  .elementor-233 .woocommerce ul.products li.product {
    position: relative !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    column-gap: 14px !important;
  }

  .elementor-233 .woocommerce ul.products li.product .ast-loop-product__link {
    grid-column: 2 !important;
    min-width: 0;
    width: 100% !important;
    padding-right: 72px !important;
    box-sizing: border-box !important;
    text-wrap: wrap;
    overflow-wrap: normal;
    hyphens: none;
  }

  .elementor-233 .woocommerce ul.products li.product .woocommerce-loop-product__title {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .elementor-233 .woocommerce ul.products li.product .price {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2;
    grid-column: auto !important;
    grid-row: auto !important;
    white-space: nowrap;
  }

  .elementor-233 .woocommerce ul.products li.product .radishka-short-description {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  .elementor-233 .woocommerce ul.products li.product .button {
    grid-area: 3 / 2 / 4 / 3 !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .rm-menu-phones {
    justify-content: center;
    gap: 4px 7px;
    flex-wrap: nowrap;
    font-size: clamp(16px, 4.7vw, 20px) !important;
  }

  .rm-menu-phones__divider {
    display: inline-block;
    flex: 0 0 auto;
    opacity: .65;
  }

  .rm-chip-scroller {
    margin-right: -20px;
    padding-right: 0;
    padding-left: 0;
  }

  .rm-chip-scroller__meta {
    padding-right: 20px;
  }

  .radishka-category-chips,
  .rm-subcategory-chips {
    margin-right: 0;
    padding-right: 22px;
  }

  .radishka-category-chips button,
  .rm-subcategory-chips button {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .rm-product-section {
    margin: 10px 0 38px;
  }

  .rm-product-section__title {
    margin-bottom: 18px;
  }

  /* Компактна връзка между филтрите и заглавието на менюто. */
  .elementor-233 .elementor-element.elementor-element-44817e8 {
    margin-bottom: 0 !important;
  }

  .elementor-233 .elementor-element.elementor-element-9328644 {
    --margin-top: 0 !important;
    --margin-bottom: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }

  /* Elementor издърпваше продуктовата мрежа с 62 px нагоре и тя покриваше
     заглавието „Основно меню/Напитки“. Оставяме само леко компактно застъпване. */
  .elementor-233 .elementor-element.elementor-element-7ba08ed {
    --margin-top: -18px !important;
    margin-top: -18px !important;
  }

  /* Компактна мобилна количка, която не закрива съдържанието на картите. */
  .radishka-floating-cart {
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .radishka-floating-cart .radishka-cart-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .radishka-floating-cart .radishka-cart-icon {
    font-size: 19px;
    line-height: 1;
  }

  .radishka-floating-cart .radishka-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 21px;
    width: 21px;
    height: 21px;
    border: 2px solid #2b1d14;
    font-size: 11px;
  }
}
