/* =============================================================
   Homepage — Most Loved Products
   3-up card carousel (centered active card, green theme)
   ============================================================= */

.home-cafe .hp-loved {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, #ffffff 0%, #eaf6ea 46%, #dcefdd 100%);
}

.home-cafe .hp-loved .container {
  position: relative;
  z-index: 2;
}

/* ---- heading + subtitle ---- */
.home-cafe .hp-loved__head {
  text-align: center;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

.home-cafe .hp-loved__display {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--green);
}

.home-cafe .hp-loved__display-line {
  display: block;
}

.home-cafe .hp-loved__lead {
  margin: clamp(12px, 1.6vw, 18px) auto 0;
  max-width: 32ch;
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.5;
  color: rgba(var(--green-rgb), 0.78);
}

/* ---- nav arrows (right-aligned, above cards) ---- */
.home-cafe .hp-loved__nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 clamp(20px, 2.6vw, 34px);
}

.home-cafe .hp-loved__navbtn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(var(--green-rgb), 0.4);
  border-radius: 50%;
  background: #ffffff;
  color: var(--green);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-cafe .hp-loved__navbtn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--green-rgb), 0.28);
}

/* ---- carousel ---- */
.home-cafe .hp-loved .owl-carousel {
  width: 100%;
}

/* equal-height cards across the row */
.home-cafe .hp-loved .owl-carousel .owl-stage {
  display: flex;
}

.home-cafe .hp-loved .owl-carousel .owl-item {
  display: flex;
  flex: 0 0 auto;
}

.home-cafe .hp-loved__slide {
  display: flex;
  width: 100%;
  padding: clamp(10px, 1.4vw, 18px) 0;
}

/* ---- card ---- */
.home-cafe .hp-loved__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(var(--green-rgb), 0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease,
    border-color 0.4s ease;
}

.home-cafe .hp-loved__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 36px) clamp(16px, 2.4vw, 28px) clamp(6px, 1.4vw, 12px);
  min-height: clamp(200px, 22vw, 264px);
  text-decoration: none;
}

.home-cafe .hp-loved__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(190px, 22vw, 252px);
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(11, 40, 20, 0.16));
  transition: transform 0.4s ease;
}

/* ---- body ---- */
.home-cafe .hp-loved__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 28px) clamp(22px, 2.6vw, 30px);
  background: #ffffff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.home-cafe .hp-loved__name {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green);
}

.home-cafe .hp-loved__tagline {
  margin: 0;
  font-size: clamp(0.86rem, 1.05vw, 0.95rem);
  line-height: 1.45;
  color: rgba(var(--green-rgb), 0.7);
}

/* ---- shop-now button ---- */
.home-cafe .hp-loved__shop {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--green-rgb), 0.35);
  background: #ffffff;
  color: var(--green);
  font-family: var(--font-primary);
  font-size: clamp(0.68rem, 0.85vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease,
    transform 0.28s ease, box-shadow 0.28s ease;
}

.home-cafe .hp-loved__shop .bi {
  font-size: 0.9em;
}

.home-cafe .hp-loved__shop:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--green-rgb), 0.26);
}

/* ---- active (centered) card ---- */
.home-cafe .hp-loved .owl-item.center .hp-loved__card {
  background: #ffffff;
  border-color: rgba(var(--green-rgb), 0.42);
  box-shadow: 0 26px 54px rgba(11, 40, 20, 0.16);
  transform: translateY(-6px);
}

.home-cafe .hp-loved .owl-item.center .hp-loved__img {
  transform: translateY(-2px) scale(1.02);
}

.home-cafe .hp-loved .owl-item.center .hp-loved__shop {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(var(--green-rgb), 0.28);
}

/* ---- explore all products ---- */
.home-cafe .hp-loved__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(30px, 4vw, 52px);
}

.home-cafe .hp-loved__explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: clamp(0.74rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(var(--green-rgb), 0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.home-cafe .hp-loved__explore:hover {
  color: var(--white);
  background: #2a5214;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(var(--green-rgb), 0.36);
}

.home-cafe .hp-loved__explore .bi {
  font-size: 15px;
}

/* ---- responsive ---- */
@media screen and (max-width: 991px) {
  .home-cafe .hp-loved__nav {
    justify-content: center;
  }

  .home-cafe .hp-loved__display {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

@media screen and (max-width: 575px) {
  .home-cafe .hp-loved {
    padding: 40px 0 52px;
  }

  .home-cafe .hp-loved__media {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cafe .hp-loved__card,
  .home-cafe .hp-loved .owl-item.center .hp-loved__card,
  .home-cafe .hp-loved .owl-item.center .hp-loved__img,
  .home-cafe .hp-loved__navbtn:hover,
  .home-cafe .hp-loved__shop:hover,
  .home-cafe .hp-loved__explore:hover {
    transform: none;
  }
}
