html,
body {
  font-family: "Montserrat", sans-serif;
  background: none;
}

/*.header.sticky-top .container-fluid {
    margin-top: 64px;
}*/

.deals-slider {
  margin-top: -170px;
  background: #161616;
}
.deals-slider img {
  width: 100%;
}
.deals-slider .carousel-indicators {
  bottom: 65px;
}
.deals-slider .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 8px;
  border-radius: 4px;
  background: #f0f0f0;
  opacity: 1;
  transition: background 0.6s ease;
  border: 0;
}
.deals-slider .carousel-indicators .active {
  background: #e87722;
}
.deals-slider .carousel-caption img {
  width: 24px;
  height: 24px;
}
.deals-slider .carousel-caption {
  left: 10%;
  width: 40%;
  text-align: left;
  top: 40%;
}
.deals-slider .carousel-caption .url-link {
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: #e87722;
  display: block;
}
.deals-slider .carousel-caption {
  h1,
  h2 {
    font-style: normal;
    font-weight: 700;
    font-size: 80px;
    line-height: 80%;
    color: #ffffff;
    display: block;
  }
}
.page-head {
  h1,
  h2 {
    color: #161616;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    margin: 0 0 16px 0;
  }
}
.page-head p {
  color: #676767;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}
.best-deals {
  padding: 64px 0 64px;
}
#deals-area-section{
  padding-top: 0;
}
#deals-area-section .deal-item{
  margin-top: 24px !important;
}
#deals-area-section .content{
  padding-bottom: 0 !important;
}
.best-deals .content {
  position: initial !important;
}
.best-deals .content h3 {
  color: #393939 !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  margin: 8px 0 0 0;
}
.best-deals .content p {
  color: #161616 !important;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px;
  margin: 0;
  text-align: left;
}
.new-deals {
  border-radius: 32px;
  background: #f0f0f0;
  padding: 48px;
}
.new-deals h3 {
  color: #161616;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
}
.new-deals p {
  color: #393939;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  text-align: center;
}
.counter .counter-item {
  margin-right: 30px;
  width: 132px;
}
.counter .counter-item.last {
  margin-right: 0;
}
.counter .counter-item .number {
  border-radius: 16px;
  background: rgba(162, 170, 173, 0.2);
  padding: 16px;
  color: #e87722;
  font-size: 80px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  width: 132px;
  text-align: center;
}
.counter .counter-item .metric {
  color: #161616;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}
.subscribe {
  display: flex;
  justify-content: center;
  align-items: center;
}
.subscribe form {
  display: flex;
  align-items: flex-start;
}
.subscribe input {
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  background: #fff;
  padding: 19px 20px 19px 16px;
  color: #a2aaad;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin-right: 16px;
  width: 328px;
}
.subscribe input::placeholder {
  color: #a2aaad;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}
.timeline {
  background: #000;
  padding: 128px 0 283px 0;
  overflow: hidden;
}
.timeline {
  h1,
  h2 {
    color: #fefefe;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
  }
}
.timeline p {
  color: #a2aaad;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  margin: 16px 0 64px 0;
}
.timeline .carousel-section {
  position: relative;
}
.timeline .carousel-section::before,
.carousel-section::after {
  position: absolute;
  background: #000000;
  transform: matrix(-1, 0, 0, 1, 0, 0);
  content: "";
  height: 800px;
  width: 483px;
  z-index: 2;
  pointer-events: none;
  top: -300px;
  filter: blur(100px);
}
.timeline .carousel-section::before {
  left: -250px;
}
.timeline .carousel-section::after {
  right: -250px;
}
/* the blurred side masks cover the heading text edges once the layout
   narrows — hide them below 992px (the ≤767 mobile block already did;
   this extends the same to tablet) */
@media (max-width: 991.98px) {
  .timeline .carousel-section::before,
  .timeline .carousel-section::after,
  .carousel-section::after {
    display: none !important;
  }
}
/* the 64px arrows (top: -310px) sit on the subtitle's line — on tablet the
   subtitle spans nearly the full width, so inset it clear of the arrow
   strips and let it wrap. (≤767px moves the arrows down to the cards.) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .timeline p {
    padding-left: 110px;
    padding-right: 110px;
  }
}
.timeline .carousel-control-prev-icon {
  width: 64px;
  height: 64px;
  background-image: url("../img/arrow-left-circle.svg");
}
.timeline .carousel-control-next-icon {
  width: 64px;
  height: 64px;
  background-image: url("../img/arrow-right-circle.svg");
}
.timeline .carousel-control-next,
.carousel-control-prev {
  z-index: 5;
  top: -310px;
}
/* side paddings mirror the header: 32px desktop, 24px ≤1200, 16px ≤991
   (.container-fluid already contributes 12px, .deals adds the rest) */
#deals-area-section .deals{
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 1200px) {
  #deals-area-section .deals{
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 991px) {
  #deals-area-section .deals{
    padding-left: 4px;
    padding-right: 4px;
  }
}
@media (max-width: 991px) {
  #deals-area-section{
    padding-bottom: 40px;
  }
#new-deals-timeline-section .subscribe form {
  align-items: center !important;
  gap: 0 !important;
}
  #new-deals-timeline-section .subscribe .custom-btn-wrapper,
  #new-deals-timeline-section .subscribe .deals-subscribe-btn,
  #new-deals-timeline-section .subscribe .custom-btn {
    width: 358px !important;
    min-width: 358px !important;
    max-width: 358px !important;
  }
  #deals-area-section .deals{
    margin-top: 0 !important;
  }
  #new-deals-timeline-section .new-deals {
    border-radius: 0;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
@media (max-width: 767px) {
  /* Deals reusable grey button mobile font */
  #deals-area-section .deal-item-grey-btn,
  #deals-area-section .deal-item-grey-btn .custom-btn,
  #deals-area-section .deal-item-grey-btn.custom-btn,
  #deals-area-section .deal-item-grey-btn span {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  /* New deals subscribe box */
  #new-deals-timeline-section .new-deals {
    padding: 16px !important;
  }

  /* Deals area spacing */
  #deals-area-section {
    padding-bottom: 32px;
  }

  /* Timeline mobile: keep carousel animation and slide one item */
  .timeline.no-gutters {
    overflow: hidden;
  }

  .timeline.no-gutters .carousel-section {
    position: relative;
    overflow: hidden;
  }

  .timeline.no-gutters .carousel-section::before,
  .timeline.no-gutters .carousel-section::after,
  .carousel-section::after {
    display: none !important;
  }

  .timeline.no-gutters #recipeCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .timeline.no-gutters .carousel-inner {
    width: 100%;
    overflow: hidden;
  }

  .timeline.no-gutters .carousel-inner .carousel-item.active,
  .timeline.no-gutters .carousel-inner .carousel-item-next,
  .timeline.no-gutters .carousel-inner .carousel-item-prev {
    display: flex !important;
    align-items: flex-end;
  }

  /* 5 visible month cards on mobile */
  .timeline.no-gutters .carousel-inner .carousel-item > div {
    display: block !important;
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    padding: 0 4px !important;
  }

  /* Mobile animation: slide by 1 item = 20% */
  .timeline.no-gutters .carousel-inner .carousel-item-end.active,
  .timeline.no-gutters .carousel-inner .carousel-item-next {
    transform: translateX(20%) !important;
  }

  .timeline.no-gutters .carousel-inner .carousel-item-start.active,
  .timeline.no-gutters .carousel-inner .carousel-item-prev {
    transform: translateX(-20%) !important;
  }

  .timeline.no-gutters .carousel-inner .carousel-item-end,
  .timeline.no-gutters .carousel-inner .carousel-item-start {
    transform: translateX(0) !important;
  }

  /* Keep card gaps clean */
  .timeline.no-gutters .card-box {
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .timeline.no-gutters .card {
    width: 90% !important;
    margin-right: 0 !important;
  }
  /* month labels keep the 20px desktop font while the cards shrink to
     ~20% of the viewport — scale the label down and ellipsize whatever
     still can't fit, so text never spills outside the card */
  .timeline.no-gutters .card span {
    display: block;
    max-width: 100%;
    padding: 0 4px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .timeline p{
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }
  /* Mobile arrows: visible and clickable */
  .timeline.no-gutters .carousel-control-prev,
  .timeline.no-gutters .carousel-control-next {
    display: flex !important;
    top: 10% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
    z-index: 20 !important;
    pointer-events: auto !important;
  }

  .timeline.no-gutters .carousel-control-prev {
    left: 8px !important;
  }

  .timeline.no-gutters .carousel-control-next {
    right: 8px !important;
  }

  .timeline.no-gutters .carousel-control-prev-icon,
  .timeline.no-gutters .carousel-control-next-icon {
    width: 32px !important;
    height: 32px !important;
    background-size: 32px 32px !important;
  }
}

.timeline .carousel-inner .carousel-item.active,
.timeline .carousel-inner .carousel-item-next,
.timeline .carousel-inner .carousel-item-prev {
  display: flex;
}

/* medium and up screens */
@media (min-width: 768px) {
  .timeline .carousel-inner .carousel-item-end.active,
  .timeline .carousel-inner .carousel-item-next {
    transform: translateX(25%);
  }

  .timeline .carousel-inner .carousel-item-start.active,
  .timeline .carousel-inner .carousel-item-prev {
    transform: translateX(-25%);
  }
}

.timeline .carousel-inner .carousel-item-end,
.timeline .carousel-inner .carousel-item-start {
  transform: translateX(0);
}
.card-box {
  position: relative;
  height: 160px;
}
.card {
  position: absolute;
  bottom: 0;
  border-radius: 8px;
  background: #f0f0f0;
  width: 80%;
  margin-right: 30px;
  text-align: center;
}
.card.current {
  background: #e87722;
}
.card span {
  color: #393939;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  margin: auto;
}
.card.current span {
  color: #fefefe;
}
.tooltip {
  padding-bottom: 20px;
}
.tooltip-inner {
  background-color: #393939;
  border-radius: 16px;
  gap: 4px;
  padding: 16px;
}
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #393939;
  top: -20px;
}
.footer {
  /*padding: 32px 16px;*/
  background: #000000;
  position: relative;
}
#deals-area-section .deals {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  grid-template-columns: unset !important;
}
/* Subscribe floating input */
#new-deals-timeline-section .subscribe form {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

#new-deals-timeline-section .subscribe_email-label {
  width: auto;
  padding-bottom: 10px;
  margin-bottom: 0;
}

#new-deals-timeline-section .deals-subscribe-floating-group {
  position: relative;
  width: 358px;
  padding: 0;
}

#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input {
  width: 100%;
  height: 64px;
  min-height: 64px;
  margin: 0;
  padding: 18px 16px;

  background: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 16px;

  color: #393939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;

  outline: none;
  box-shadow: none;
}

#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input::placeholder {
  color: #a2aaad;
}

#new-deals-timeline-section .deals-subscribe-floating-group > label {
  position: absolute;
  z-index: 2;

  left: 16px;
  right: 16px;
  top: 50%;

  margin: 0;
  padding: 0 !important;

  background: transparent !important;
  color: #676767;

  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;

  pointer-events: none;
  transform: translateY(-50%);
  transition: all 0.2s ease, background-color 0s;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input:focus {
  background: #ffffff;
  border-color: #000000;
  color: #393939;
}

#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input:not(:placeholder-shown) {
  background: #ffffff;
  border-color: #ffffff;
  color: #393939;
}

#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input:focus + label,
#new-deals-timeline-section .deals-subscribe-floating-group > .floating-input:not(:placeholder-shown) + label {
  top: 0;
  right: auto;
  max-width: calc(100% - 32px);

  padding: 0 8px !important;
  background: #ffffff !important;
  color: #000000;

  font-size: 14px;
  line-height: 20px;

  transform: translateY(-50%);
  display: inline-block;
}

/* Error state */
#new-deals-timeline-section .subscribe_email-label.error .deals-subscribe-floating-group > .floating-input {
  border-color: #e87722;
}

#new-deals-timeline-section .subscribe_email-label.error .deals-subscribe-floating-group > label {
  color: #e87722;
}

/* Reusable button in subscribe */
#new-deals-timeline-section .deals-subscribe-btn.custom-btn-wrapper {
  flex-shrink: 0;
}

#new-deals-timeline-section .deals-subscribe-btn .custom-btn {
  height: 64px;
}

/* Mobile */
@media (max-width: 767.98px) {
  #new-deals-timeline-section .subscribe form {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  #new-deals-timeline-section .subscribe_email-label,
  #new-deals-timeline-section .deals-subscribe-floating-group,
  #new-deals-timeline-section .subscribe .custom-btn-wrapper,
  #new-deals-timeline-section .subscribe .deals-subscribe-btn,
  #new-deals-timeline-section .subscribe .custom-btn {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
  
}