/* EasyFind UI kit foundation.
 * Components are intentionally prefixed with ef-ui to keep the kit isolated
 * from legacy theme and HivePress selectors while the new homepage is built.
 */
:root {
  --ef-ui-color-primary: #0554f2;
  --ef-ui-color-primary-dark: #073fb0;
  --ef-ui-color-primary-soft: #edf4ff;
  --ef-ui-color-accent: #ff804d;
  --ef-ui-color-accent-soft: #fff1eb;
  --ef-ui-color-text: #172033;
  --ef-ui-color-muted: #687386;
  --ef-ui-color-border: #e4e9f0;
  --ef-ui-color-surface: #ffffff;
  --ef-ui-color-surface-muted: #f7f9fc;
  --ef-ui-color-success: #25a978;
  --ef-ui-radius-sm: 8px;
  --ef-ui-radius-md: 14px;
  --ef-ui-radius-lg: 20px;
  --ef-ui-heading-gap: 12px;
  --ef-ui-section-gap: 32px;
  --ef-ui-shadow-card: 0 8px 24px rgba(23, 32, 51, 0.08);
  --ef-ui-shadow-focus: 0 0 0 3px rgba(5, 84, 242, 0.18);
  --ef-ui-container: 1360px;
  --ef-ui-space-1: 4px;
  --ef-ui-space-2: 8px;
  --ef-ui-space-3: 12px;
  --ef-ui-space-4: 16px;
  --ef-ui-space-5: 20px;
  --ef-ui-space-6: 24px;
  --ef-ui-space-8: 32px;
  --ef-ui-space-10: 40px;
  --ef-ui-space-12: 48px;
}

.ef-ui-container {
  width: min(100% - 32px, var(--ef-ui-container));
  margin-inline: auto;
}

.ef-ui-stack {
  display: flex;
  flex-direction: column;
  gap: var(--ef-ui-space-4);
}

.ef-ui-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ef-ui-space-3);
}

.ef-ui-section {
  padding-block: clamp(32px, 5vw, 64px);
}

.ef-ui-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--ef-ui-space-4);
  margin-bottom: var(--ef-ui-space-6);
}

.ef-ui-section__title {
  margin: 0;
  color: var(--ef-ui-color-text);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  font-weight: 700;
}

.ef-ui-section__link {
  color: var(--ef-ui-color-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ef-ui-section__link:hover,
.ef-ui-section__link:focus-visible {
  text-decoration: underline;
}

.ef-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: var(--ef-ui-space-2);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--ef-ui-radius-sm);
  background: var(--ef-ui-color-primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ef-ui-button:hover,
.ef-ui-button:focus-visible {
  background: var(--ef-ui-color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.ef-ui-button:focus-visible,
.ef-ui-input:focus-visible,
.ef-ui-select:focus-visible {
  outline: none;
  box-shadow: var(--ef-ui-shadow-focus);
}

.ef-ui-button--accent {
  background: var(--ef-ui-color-accent);
}

.ef-ui-button--accent:hover,
.ef-ui-button--accent:focus-visible {
  background: #e86735;
}

.ef-ui-button--ghost {
  border-color: var(--ef-ui-color-border);
  background: var(--ef-ui-color-surface);
  color: var(--ef-ui-color-primary);
}

.ef-ui-button--ghost:hover,
.ef-ui-button--ghost:focus-visible {
  border-color: var(--ef-ui-color-primary);
  background: var(--ef-ui-color-primary-soft);
  color: var(--ef-ui-color-primary);
}

.ef-ui-input,
.ef-ui-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--ef-ui-color-border);
  border-radius: var(--ef-ui-radius-sm);
  background: var(--ef-ui-color-surface);
  color: var(--ef-ui-color-text);
  font: inherit;
  font-size: 14px;
}

.ef-ui-input::placeholder {
  color: var(--ef-ui-color-muted);
}

.ef-ui-card {
  overflow: hidden;
  border: 1px solid var(--ef-ui-color-border);
  border-radius: var(--ef-ui-radius-md);
  background: var(--ef-ui-color-surface);
  box-shadow: var(--ef-ui-shadow-card);
}

.ef-ui-card__body {
  padding: var(--ef-ui-space-5);
}

.ef-ui-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.ef-ui-card__title {
  margin: 0;
  color: var(--ef-ui-color-text);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.ef-ui-card__meta {
  margin-top: var(--ef-ui-space-2);
  color: var(--ef-ui-color-muted);
  font-size: 13px;
}

.ef-ui-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ef-ui-color-accent-soft);
  color: #d94d20;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.ef-ui-price {
  color: var(--ef-ui-color-primary);
  font-size: 18px;
  font-weight: 800;
}

.ef-ui-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ef-ui-space-4);
}

@media (max-width: 991px) {
  .ef-ui-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .ef-ui-container {
    width: min(100% - 24px, var(--ef-ui-container));
  }

  .ef-ui-section__header {
    align-items: start;
    flex-direction: column;
  }

  .ef-ui-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Homepage integration: the actual page is emitted by ACF blocks and
 * shortcodes, so these selectors are the public UI layer for that markup. */
:root {
  --ef-primary: #0554f2;
  --ef-primary-dark: #073fb0;
  --ef-accent: #ff804d;
  --ef-text: #172033;
  --ef-muted: #687386;
  --ef-border: #e4e9f0;
  --ef-surface: #fff;
  --ef-radius-md: 14px;
  --ef-radius-lg: 20px;
  --ef-shadow-card: 0 8px 24px rgba(23, 32, 51, .08);
  --ef-container: 1360px;
}

body .container,
body .container1,
body .hero {
  width: min(100% - 32px, var(--ef-container));
  margin-inline: auto;
  box-sizing: border-box;
}

body .title--01,
body .title--02,
body .title--03,
body .title--04,
body .products__home-header h3 {
  color: var(--ef-text);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}

body .ef-home-categories .title--02,
body .ef-home .products__home-header h3 {
  font-size: 20px;
  line-height: 1.25;
}

body .ef-home-categories .title--02 {
  margin: 0 0 var(--ef-ui-heading-gap);
}

body .ef-home-section > .container > h1,
body .ef-home-section > .container > h2,
body .ef-home-section > .container > h3,
body .ef-home-section > .container > h4,
body .ef-home-section > .container > .ef-ui-section__title {
  margin-bottom: var(--ef-ui-heading-gap);
}

body .btn {
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body .btn:hover,
body .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 84, 242, .18);
}

body .btn.blue {
  background: var(--ef-primary);
  border-color: var(--ef-primary);
}

body .btn.blue:hover,
body .btn.blue:focus-visible {
  background: var(--ef-primary-dark);
  border-color: var(--ef-primary-dark);
}

body .btn.orange {
  background: var(--ef-accent);
  border-color: var(--ef-accent);
}

/* Keep secondary registration actions outlined despite the generic color helper. */
body .auth__page .btn.btn--02.orange {
  background: var(--ef-surface);
  border-color: var(--ef-accent);
  color: var(--ef-accent);
  box-shadow: none;
}

body .auth__page .btn.btn--02.orange:hover,
body .auth__page .btn.btn--02.orange:focus-visible {
  background: var(--ef-surface);
  border-color: var(--ef-accent);
  color: var(--ef-accent);
  box-shadow: 0 6px 16px rgba(255, 128, 77, .18);
}

body .header .add-listing-btn:not(.add-listing-btn--disabled) {
  border-color: var(--ef-accent);
  background: var(--ef-surface);
  color: var(--ef-accent);
}

body .header .add-listing-btn:not(.add-listing-btn--disabled):hover,
body .header .add-listing-btn:not(.add-listing-btn--disabled):focus-visible {
  border-color: var(--ef-accent);
  background: var(--ef-accent);
  color: #fff;
}

body .header .header__login-btn,
body .header .header__login-btn:visited {
  border-color: var(--ef-primary);
  background: var(--ef-surface);
  color: var(--ef-primary);
}

body .header .header__login-btn:hover,
body .header .header__login-btn:focus-visible {
  border-color: var(--ef-primary);
  background: var(--ef-primary);
  color: #fff;
}

body .footer__socials .btn--02.blue,
body .footer__socials .btn--02.blue:hover,
body .footer__socials .btn--02.blue:focus-visible {
  border-color: var(--ef-primary);
  background: var(--ef-surface);
  color: var(--ef-primary);
}

body .hero,
body .hero__article,
body .hero-banners__coll,
body .hero-banners__item {
  border-radius: var(--ef-radius-lg);
  overflow: hidden;
}

body .categories {
  padding-block: 32px;
}

body .categories__slide,
body .products__item,
body .news-section__card {
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius-md);
  background: var(--ef-surface);
  box-shadow: var(--ef-shadow-card);
}

body .categories__slide-image,
body .products__item-image,
body .news-section__inner img {
  border-radius: var(--ef-radius-md) var(--ef-radius-md) 0 0;
}

body .products__home-section,
body .recommended__section,
body .news-section {
  padding-block: 0;
}

body .products__home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--ef-ui-heading-gap);
}

body .ef-home .products__home-header {
  margin-bottom: var(--ef-ui-heading-gap);
}

/* Shortcode-driven homepage sections. */
body .ef-home-section {
  width: min(100% - 32px, var(--ef-ui-container, 1360px));
  margin-inline: auto;
  margin-bottom: var(--ef-ui-section-gap, 32px);
  box-sizing: border-box;
  padding-inline: 8px;
  padding-block: 0;
}

@media (min-width: 600px) {
  body .ef-home-section {
    padding-inline: 32px;
  }
}

@media (min-width: 1440px) {
  :root {
    --ef-ui-container: 100%;
    --ef-container: 100%;
  }

  body .container,
  body .container1,
  body .hero,
  body .ef-home-section {
    width: 100%;
    padding-inline: 60px;
  }

}

/* Compact desktop header: keep the same layout while reducing its visual scale. */
@media (min-width: 1024px) {
  body .header {
    padding-block: 17px;
  }

  body .header__holder {
    gap: clamp(17px, 2.55vw, 43px);
  }

  body .header__logo {
    width: 170px;
    height: 51px;
  }

  body .header__categories-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    padding: 10px 21px;
    gap: 8px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  body .header__categories-btn::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    line-height: 0;
    background: url("../assets/dist/img/icons/menu.svg") center / 20px 20px no-repeat;
  }

  body .header__categories-btn.opened::before {
    content: "";
    background-image: url("../assets/dist/img/icons/cancel.svg");
  }

  body .add-listing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    padding: 10px 31px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  body .header .header__user-actions-btns > a.btn.blue.header__login-btn,
  body .header .header__user-actions-btns > a.btn.btn--01.blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    padding: 10px 21px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  body .ico-head {
    width: 43px;
    height: 43px;
  }

  body .ico-head img {
    max-width: 22px;
    max-height: 22px;
  }

  body .ico-head.user img {
    max-width: 26px;
    max-height: 26px;
  }

  body .header .search-input__input {
    height: 43px;
    padding: 12px 60px 12px 24px;
    font-size: 14px;
  }

  body .header .search-input__input::placeholder {
    font-size: 14px;
  }

  body .header .search-full-btn {
    top: 2px;
    right: 3px;
    width: 39px;
    height: 39px;
    padding: 8px;
  }

  body .header .search-full-btn i {
    font-size: 20px;
  }

  body .header__user-actions-btns {
    gap: 14px;
  }
}

body .ef-home > .ef-home-section,
body .ef-home > .products__home-section {
  padding-block: 0;
}

body .ef-home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--ef-ui-heading-gap);
}

body .ef-home-section__header h2 {
  margin: 0;
  color: var(--ef-ui-color-text, #172033);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

body .ef-home-section__wrapper {
  width: 100%;
}


body .ef-home-categories__row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

body .ef-home-category {
  display: flex;
  flex: 1 1 160px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 78px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ef-ui-color-border, #e4e9f0);
  border-radius: 12px;
  background: #fff;
  color: var(--ef-ui-color-text, #172033);
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(23, 32, 51, .05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body .ef-home-category:hover,
body .ef-home-category:focus-visible {
  color: var(--ef-ui-color-text, #172033);
  border-color: var(--ef-ui-color-primary, #0554f2);
  box-shadow: 0 8px 20px rgba(23, 32, 51, .1);
  transform: translateY(-2px);
}

body .ef-home-category__icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 10px;
  background: var(--ef-ui-color-primary-soft, #edf4ff);
  color: var(--ef-ui-color-primary, #0554f2);
  font-size: 22px;
}

body .ef-home-category__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

body .ef-home-category:nth-child(2) .ef-home-category__icon {
  background: #fff4e8;
  color: #f59b23;
}

body .ef-home-category:nth-child(3) .ef-home-category__icon {
  background: #fff0f0;
  color: #ee5b5b;
}

body .ef-home-category:nth-child(4) .ef-home-category__icon {
  background: #ebfaf3;
  color: #25a978;
}

body .ef-home-category:nth-child(5) .ef-home-category__icon {
  background: #eef0ff;
  color: #5865d8;
}

body .ef-home-category:nth-child(6) .ef-home-category__icon {
  background: #fff0f0;
  color: #ee5b5b;
}

body .ef-home-category__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

body .ef-home-category__name {
  overflow: hidden;
  color: var(--ef-ui-color-text, #172033);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .ef-home-category__count {
  color: var(--ef-ui-color-muted, #687386);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

body .ef-home-categories .ef-home-category__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: 0 0 20px;
  color: var(--ef-ui-color-primary, #0554f2);
}

body .ef-home-categories .ef-home-category__arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body .ef-home .products__home-section {
  width: min(100% - 32px, var(--ef-ui-container, 1360px));
  margin-inline: auto;
  padding-inline: 0;
}

body .ef-home .ef-home-carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body .ef-home .ef-home-carousel > * {
  flex: 0 0 clamp(220px, 23vw, 280px);
  scroll-snap-align: start;
}

body .ef-home-special-offers .ef-home-special-offers__header {
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin-bottom: var(--ef-ui-heading-gap);
}

body .ef-home-special-offers .ef-home-special-offers__header h3 {
  margin: 0;
  color: var(--ef-ui-color-text, #172033);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

body .ef-home-special-offers .ef-home-special-offers__action a {
  min-height: 42px;
  gap: 0;
  border: 2px solid var(--ef-ui-color-primary, #0554f2);
  border-radius: 24px;
  background: #fff;
  color: var(--ef-ui-color-primary, #0554f2);
  box-shadow: none;
  font-size: 12px;
  padding: 8px 16px;
}

body .ef-home-special-offers .ef-home-special-offers__action a:hover,
body .ef-home-special-offers .ef-home-special-offers__action a:focus-visible {
  background: var(--ef-ui-color-primary, #0554f2);
  color: #fff;
  box-shadow: none;
  padding-inline: 16px;
  text-shadow: none;
}

body .ef-home-special-offers .ef-home-special-offers__action a {
  font-size: 0;
}

body .ef-home-special-offers .ef-home-special-offers__action a::before {
  content: "Kõik eripakkumised";
  font-size: 12px;
}

body .ef-home-special-offers .ef-home-special-offers__action a i {
  margin-left: 0 !important;
  padding-left: 12px;
  font-size: 12px;
}

body .ef-home-special-offers .products__list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

body .ef-home-special-offers .products__list > .products__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  grid-template-rows: auto auto 1fr auto;
  flex: 1 0 calc(25% - 9px);
  min-width: 240px;
  min-height: 142px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ef-ui-color-border, #e4e9f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 32, 51, .06);
}

body .ef-home-special-offers .products__list > .products__item .link-hover {
  z-index: 3;
}

body .ef-home-special-offers .products__list > .products__item .products__item-description,
body .ef-home-special-offers .products__list > .products__item .products__item-line {
  pointer-events: none;
}

/* Isolated offer cards: no legacy listing-card selectors or inline styles. */
body .ef-home-special-offers__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--ef-ui-heading-gap);
}

body .ef-home-special-offers__header h2 {
  margin: 0;
  color: var(--ef-ui-color-text, #172033);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

body .ef-home-special-offers__action {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ef-ui-color-primary, #0554f2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

body .ef-home-special-offers__action svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body .ef-home-special-offers__action:hover,
body .ef-home-special-offers__action:focus-visible {
  background: transparent;
  color: var(--ef-ui-color-primary, #0554f2);
  box-shadow: none;
  text-shadow: 0 2px 8px rgba(5, 84, 242, .22);
}

body .ef-home-special-offers__list {
  position: relative;
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 0 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

body .ef-home-special-offers__list .swiper-wrapper {
  align-items: stretch;
}

body .ef-home-special-offers__list .ef-home-offer-card.swiper-slide {
  flex: 0 0 auto;
  height: 176px;
}

body .ef-home-special-offers__list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

body .ef-home-special-offers__wrapper {
  position: relative;
}

body .ef-home-carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(5, 84, 242, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--ef-ui-color-primary, #0554f2);
  box-shadow: 0 6px 16px rgba(23, 32, 51, .16);
  transform: translateY(-50%);
  cursor: pointer;
}

body .ef-home-carousel__button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body .ef-home-carousel__button:hover,
body .ef-home-carousel__button:focus-visible {
  border-color: var(--ef-ui-color-primary, #0554f2);
  background: var(--ef-ui-color-primary, #0554f2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 84, 242, .22);
  outline: none;
}

body .ef-home-carousel__button[hidden] {
  display: none;
}

body .ef-home-carousel__button--prev {
  left: -18px;
}

body .ef-home-carousel__button--next {
  right: -18px;
}

body .easyfind-related-listings .est-home-listings__swiper {
  padding-bottom: 8px;
}

body .easyfind-related-listings .est-home-listings__title {
  white-space: normal;
}

body .ef-home-special-offers__list::-webkit-scrollbar {
  display: none;
}

body .ef-home-offer-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  flex: 0 0 calc(25% - 9px);
  min-width: 240px;
  height: 176px;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--ef-ui-color-border, #e4e9f0);
  border-radius: 12px;
  background: #fff;
  color: var(--ef-ui-color-text, #172033);
  box-shadow: 0 4px 14px rgba(23, 32, 51, .06);
  text-decoration: none;
  scroll-snap-align: start;
}

body .ef-home-offer-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--ef-ui-color-accent, #ff804d);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

body .ef-home-offer-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 42px 12px 12px;
}

body .ef-home-offer-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .ef-home-offer-card__price {
  color: #ff0000;
  font-size: 14px;
  font-weight: 800;
}

body .ef-home-offer-card__details {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  line-height: 1.2;
}

body .ef-home-offer-card__rating {
  min-width: 0;
  color: #f29a19;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body .ef-home-offer-card__location {
  min-height: 24px;
  margin-top: 6px;
  overflow: hidden;
  color: #8b96a8;
  font-size: 10px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .ef-home-offer-card__media {
  position: relative;
  min-width: 0;
  min-height: 142px;
}

body .ef-home-offer-card__media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .92) 14%, rgba(255, 255, 255, 0) 58%);
  content: "";
  pointer-events: none;
}

body .ef-home-offer-card__media img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
}

body .ef-home-offer-card:hover,
body .ef-home-offer-card:focus-visible {
  color: var(--ef-ui-color-text, #172033);
  box-shadow: 0 8px 20px rgba(23, 32, 51, .12);
}

@media (max-width: 991px) {
  body .ef-home-offer-card {
    flex-basis: calc(50% - 6px);
  }
}

@media (max-width: 599px) {
  body .ef-home-section {
    width: min(100% - 24px, var(--ef-ui-container, 1360px));
  }

  body .ef-home-special-offers__header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  body .ef-home-special-offers__header h2 {
    min-width: 0;
    text-align: left;
  }

  body .ef-home-special-offers__action {
    margin-left: auto;
  }

  body .ef-home-offer-card {
    flex-basis: 84%;
  }
}

body .ef-home-special-offers .products__item::before {
  content: "Aktsioon";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--ef-ui-color-accent, #ff804d);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

body .ef-home-special-offers .products__item-like,
body .ef-home-special-offers .sale-badge {
  display: none !important;
}

body .ef-home-special-offers .products__item-image {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
}

body .ef-home-special-offers .products__item-description,
body .ef-home-special-offers .products__item-line {
  grid-column: 1;
  position: relative;
  z-index: 2;
  padding-inline: 12px;
}

body .ef-home-special-offers .products__item-description {
  grid-row: 2;
  padding-top: 8px;
}

body .ef-home-special-offers .products__item-description p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ef-ui-color-text, #172033);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .ef-home-special-offers .products__item .stars-city {
  display: none;
}

body .ef-home-special-offers .products__item-line:last-child {
  grid-row: 4;
  align-self: end;
  padding-bottom: 10px;
}

body .ef-home-special-offers .products__item-line:last-child .title--04 {
  color: var(--ef-ui-color-primary, #0554f2);
  font-size: 14px;
  font-weight: 800;
}

body .ef-home-special-offers .sale-badge {
  top: 10px;
  right: auto;
  left: 10px;
  bottom: auto;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--ef-ui-color-accent, #ff804d);
  font-size: 10px;
  font-weight: 700;
}

body .ef-home-special-offers .sale-badge.sale-days-left {
  font-size: 0;
}

body .ef-home-special-offers .sale-badge.sale-days-left::before {
  content: "Акция";
  font-size: 10px;
}

@media (max-width: 991px) {
  body .ef-home-special-offers .products__list > .products__item {
    flex-basis: calc(50% - 6px);
  }
}

@media (max-width: 599px) {
  body .ef-home .ef-home-special-offers {
    width: min(100% - 24px, var(--ef-ui-container, 1360px));
  }

  body .ef-home-special-offers .products__list > .products__item {
    flex-basis: 84%;
  }
}

@media (max-width: 991px) {
  body .ef-home-categories__row {
    gap: 16px;
  }

}

@media (max-width: 599px) {
  body .ef-home-categories__row {
    gap: 12px;
  }

  body .ef-home-categories .ef-home-category__arrow,
  body .ef-home-categories .ef-home-category__arrow svg {
    width: 14px;
    height: 14px;
  }

  body .ef-home-categories .ef-home-category__arrow {
    flex-basis: 14px;
  }

  body .ef-home-category {
    flex-basis: calc(50% - 6px);
  }

  body .ef-home .products__home-section {
    width: min(100% - 24px, var(--ef-ui-container, 1360px));
  }

}

body .products__list {
  gap: 16px;
}

body .products__item-name,
body .products__item-price,
body .marker-price {
  color: var(--ef-text);
}

body .products__item-price,
body .marker-price {
  color: var(--ef-primary);
  font-weight: 800;
}

body .location__home-section {
  background: #f7f9fc;
}

body .search-input__wrapper {
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius-md);
  background: var(--ef-surface);
  box-shadow: var(--ef-shadow-card);
}

body .header .search-input__wrapper {
  border-radius: 200px;
}

body .header .search-input__input,
body .header .search-input__input:focus,
body .header .search-input__input:focus-visible {
  border: 0;
  box-shadow: none;
}

body .header .search-input__wrapper:focus-within {
  border-color: var(--ef-primary);
  box-shadow: 0 0 0 3px rgba(5, 84, 242, .18);
}

body .search-input__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 84, 242, .18);
}

@media (max-width: 599px) {
  body .container,
  body .container1,
  body .hero {
    width: min(100% - 24px, var(--ef-container));
  }

  body .products__home-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 1440px) {
  body .ef-home-section__header h2,
  body .ef-home-special-offers .ef-home-special-offers__header h3,
  body .ef-home-categories .title--02,
  body .ef-home .products__home-header h3 {
    font-size: clamp(20px, 1.3vw, 26px);
  }

  body .ef-home-category {
    min-height: clamp(78px, 5vw, 92px);
    padding: clamp(12px, .9vw, 18px);
  }

  body .ef-home-category__icon {
    width: clamp(42px, 2.7vw, 52px);
    height: clamp(42px, 2.7vw, 52px);
    flex-basis: clamp(42px, 2.7vw, 52px);
  }

  body .ef-home-category__name {
    font-size: clamp(14px, .85vw, 17px);
  }

  body .ef-home-category__count {
    font-size: clamp(11px, .7vw, 13px);
  }
}
