/* ==========================================================================
   EM Farm - Recipe Slider Elementor Widget
   ========================================================================== */

.em-recipe-slider {
  --em-rs-bg: #0b4f73;
  --em-rs-text: #ffffff;
  --em-rs-accent: #d9cdbf;
  --em-rs-button-bg: #ffffff;
  --em-rs-button-color: #0b4f73;
  --em-rs-font-body: var(--em-font-body, "Urbanist", system-ui, sans-serif);
  --em-rs-font-heading: Georgia, "Times New Roman", serif;

  position: relative;
  width: min(100%, var(--em-container, 1520px));
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border-radius: 25px;
  background: var(--em-rs-bg);
  color: var(--em-rs-text);
  font-family: var(--em-rs-font-body);
}

.em-recipe-slider,
.em-recipe-slider * {
  box-sizing: border-box;
}

.em-recipe-slider__viewport {
  position: relative;
  overflow: hidden;
}

.em-recipe-slider__slide {
  display: none;
  grid-template-columns: minmax(260px, 35%) minmax(0, 70%);
  width: 100%;
  min-height: 640px;
}

.em-recipe-slider__slide.is-active {
  display: grid;
}

.em-recipe-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: inherit;
  padding: clamp(34px, 4vw, 64px) clamp(22px, 3vw, 70px);
}

.em-recipe-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(38px, 8vw, 120px);
}

.em-recipe-slider__dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.em-recipe-slider__dot:hover,
.em-recipe-slider__dot:focus-visible,
.em-recipe-slider__dot.is-active {
  background: #ffffff;
  opacity: 1;
  transform: scale(1.28);
}

.em-recipe-slider__dot:focus-visible {
  outline: 2px solid var(--em-rs-accent);
  outline-offset: 4px;
}

.em-recipe-slider__copy {
  max-width: 450px;
}

.em-recipe-slider__title {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--em-rs-text);
font-family: "Montserrat", Sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.em-recipe-slider__text {
  max-width: 390px;
  margin: 0 0 28px;
  color: #000;
  font-size: clamp(15px, 0.95vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.em-recipe-slider__text p {
  margin: 0 0 0.8em;
}

.em-recipe-slider__text p:last-child {
  margin-bottom: 0;
}

.em-recipe-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid var(--em-rs-button-bg);
  border-radius: 999px;
  background: var(--em-rs-button-bg);
  color: #fff;
  font-family: var(--em-rs-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.em-recipe-slider__button:hover,
.em-recipe-slider__button:focus {
  background: #145f35;
  color: #fff !important;
  border-color: #145f35;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.em-recipe-slider__button:focus-visible {
  outline: 2px solid var(--em-rs-accent);
  outline-offset: 4px;
}

.em-recipe-slider__product {
  margin-top: auto;
  padding-top: 38px;
}

.em-recipe-slider__product-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--em-rs-text) !important;
  text-decoration: none !important;
}

.em-recipe-slider__product-link:hover .em-recipe-slider__product-title,
.em-recipe-slider__product-link:focus .em-recipe-slider__product-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.em-recipe-slider__product-image,
.em-recipe-slider__product-image-placeholder {
  display: block;
  width: 64px;
  height: 96px;
  object-fit: contain;
}

.em-recipe-slider__product-image-placeholder {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
}

.em-recipe-slider__product-body {
  display: block;
  min-width: 0;
}

.em-recipe-slider__product-badge {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.em-recipe-slider__product-title {
  display: block;
  color: #145f35;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.em-recipe-slider__product-price {
  display: block;
  margin-top: 5px;
  color: #145f35;
  font-size: 14px;
  font-weight: 700;
}

.em-recipe-slider__media {
  min-width: 0;
  padding: clamp(24px, 3.6vw, 56px) clamp(18px, 3vw, 42px) clamp(24px, 3.6vw, 56px) 0;
}

.em-recipe-slider__image-wrap {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--em-rs-accent);
  text-decoration: none !important;
}

.em-recipe-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.elementor img.em-recipe-slider__image  {
  height: 100%;
}

.em-recipe-slider__image-wrap:hover .em-recipe-slider__image,
.em-recipe-slider__image-wrap:focus .em-recipe-slider__image {
  transform: scale(1.025);
}

.em-recipe-slider__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 32px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.45), transparent 0 16%, transparent 17%),
    linear-gradient(135deg, #efe7df 0%, #d9cdbf 100%);
  color: #07261d;
  text-align: center;
}

.em-recipe-slider__image-placeholder span {
  max-width: 520px;
  font-family: var(--em-rs-font-heading);
  font-size: clamp(34px, 4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.em-recipe-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(7, 38, 29, 0.28);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border-radius: 100%!important;
  border-color: var(--global--color-primary);
  border: none;
}

.em-recipe-slider__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.em-recipe-slider__arrow--prev {
  left: 10px;
}

.em-recipe-slider__arrow--next {
  right: 10px;
}

.em-recipe-slider__arrow:hover,
.em-recipe-slider__arrow:focus-visible {
  background: rgba(7, 38, 29, 0.62);
  border-color: rgba(7, 38, 29, 0.62);
}

.em-recipe-slider__arrow:focus-visible {
  outline: 2px solid var(--em-rs-accent);
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .em-recipe-slider__slide {
    grid-template-columns: minmax(260px, 36%) minmax(0, 64%);
  }

  .em-recipe-slider__title {
    font-size: clamp(28px, 4.4vw, 28px);
  }
  
  .em-recipe-slider__content {
    padding: clamp(40px, 4vw, 64px) clamp(50px, 3vw, 70px);
  }
}

@media (max-width: 900px) {
  .em-recipe-slider {
    border-radius: 0 0 18px 18px;
  }

  .em-recipe-slider__slide,
  .em-recipe-slider__slide.is-active {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .em-recipe-slider__content {
    min-height: auto;
    padding: 34px 24px 28px;
  }

  .em-recipe-slider__dots {
    margin-bottom: 34px;
  }

  .em-recipe-slider__copy {
    max-width: 100%;
  }

  .em-recipe-slider__title,
  .em-recipe-slider__text {
    max-width: 100%;
  }

  .em-recipe-slider__product {
    padding-top: 32px;
  }

  .em-recipe-slider__media {
    padding: 0 18px 22px;
  }

  .em-recipe-slider__image-wrap,
  .em-recipe-slider__image,
  .em-recipe-slider__image-placeholder {
    min-height: clamp(280px, 55vw, 430px);
  }

  .em-recipe-slider__arrow {
    top: auto;
    bottom: 32px;
    transform: none;
  }

  .em-recipe-slider__arrow--prev {
    left: auto;
    right: 70px;
  }

  .em-recipe-slider__arrow--next {
    right: 22px;
  }

  .em-recipe-slider__arrow:hover,
  .em-recipe-slider__arrow:focus-visible {
    transform: scale(1.04);
  }
}

@media (max-width: 575px) {
  
  .em-recipe-slider__arrow {bottom: 45px;}
  
  .em-recipe-slider__arrow--next {
    right: 30px;
  }
  
  .em-recipe-slider__content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .em-recipe-slider__title {
    font-size: 22px;
  }

  .em-recipe-slider__button {
    width: auto;
  }

  .em-recipe-slider__product-link {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .em-recipe-slider__product-image,
  .em-recipe-slider__product-image-placeholder {
    width: 52px;
    height: 78px;
  }
}
