/* Offer content remains dynamic; this file only controls the presentation. */
#home-offer-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 6rem) 1.25rem !important;
  color: #3a170a;
  background: #fffdf7 url("./figma/offer-warm-cream-waves.png") center / cover no-repeat !important;
}

#home-offer-section:not(.hidden) { display: block; }

#home-offer-section > div:last-child {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 !important;
}

#home-offer-section > div:last-child > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem) !important;
}

/* Left content */
#home-offer-section > div:last-child > div > div:first-child {
  display: flex;
  flex-direction: column;
}

#home-offer-section #offer-title {
  order: 1;
  max-width: 780px;
  margin: 0 !important;
  color: #3a170a;
  font-family: "Alata", sans-serif;
  font-size: clamp(2.8rem, 5.2vw, 5.25rem) !important;
  font-weight: 400;
  line-height: 1.08 !important;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

#home-offer-section #offer-title::before {
  display: flex;
  width: fit-content;
  margin: 0 0 1.4rem;
  padding: .55rem 1rem;
  border: 1px solid #f2cd77;
  border-radius: 999px;
  color: #874507;
  background: #fff0c2;
  box-shadow: 0 5px 10px rgba(167, 100, 9, .12);
  content: "✦  A LITTLE EXTRA GOODNESS";
  font-family: "Poppins", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .025em;
}

#home-offer-section #offer-subtitle {
  order: 2;
  margin: .8rem 0 1.55rem;
  color: #76695f;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

#home-offer-section .offer-benefits {
  order: 3;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

#home-offer-section .offer-benefits > div {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #4d2912;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

#home-offer-section .offer-benefit-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  color: #a96309;
  background: #fff0c2;
  font-size: 1.55rem;
}

#home-offer-section .offer-benefit-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#home-offer-section .offer-benefit-divider {
  width: 1px;
  height: 3.3rem;
  background: #e5c18a;
}

/* Product selection details are kept in the DOM for the checkout flow, but the
   reference design presents one combined deal price rather than a product list. */
#home-offer-section #offer-products-wrapper,
#home-offer-section #offer-deal-wrapper h3,
#home-offer-section #offer-strike-price,
#home-offer-section #offer-strike-price + div,
#home-offer-section > div:last-child > div > div:last-child > div > div:last-child {
  display: none !important;
}

#home-offer-section .bg-white\/10 {
  order: 4;
  max-width: 800px;
  padding: 1.2rem 2rem !important;
  border: 1px solid #f1dfc1 !important;
  border-radius: 1.65rem !important;
  background: #fffefa !important;
  box-shadow: 0 12px 30px rgba(90, 51, 9, .07) !important;
}

#home-offer-section #offer-details-grid,
#home-offer-section #offer-deal-wrapper,
#home-offer-section #offer-deal-wrapper > div {
  display: block !important;
}

#home-offer-section #offer-deal-wrapper > div {
  position: relative;
  min-height: 5.6rem;
  padding-right: min(48%, 20rem);
}

#home-offer-section #offer-deal-wrapper > div::before {
  display: block;
  margin-bottom: .35rem;
  color: #8a7359;
  content: "DEAL PRICE";
  font-family: "Poppins", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
}

#home-offer-section #offer-deal-wrapper > div::after {
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  right: min(43%, 17.5rem);
  width: 1px;
  background: #dfbf8a;
  content: "";
}

#home-offer-section #offer-deal-price {
  display: block;
  color: #a95e05 !important;
  font-family: "Alata", sans-serif;
  font-size: clamp(2.7rem, 4vw, 4rem) !important;
  font-weight: 400 !important;
  line-height: 1;
}

#home-offer-section .home-offer-order-button {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  min-width: min(41%, 18rem);
  min-height: 4.2rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 1.25rem;
  color: #fff;
  background: #d97706;
  box-shadow: 0 9px 18px rgba(178, 96, 6, .22);
  font-family: "Poppins", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  cursor: pointer;
}

#home-offer-section .home-offer-order-button:hover { background: #c96704; }
#home-offer-section .home-offer-order-button i { font-size: 1.4rem; }

#home-offer-section #offer-expiry-date,
#home-offer-section #offer-card-expiry-date {
  order: 5;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 1rem 0 0 !important;
  padding: 0;
  border: 0;
  color: #76695f;
  background: transparent;
  font-size: 1rem !important;
  font-weight: 600;
}

#home-offer-section #offer-expiry-date::before,
#home-offer-section #offer-card-expiry-date::before {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  box-sizing: border-box;
  border: 2px solid #8a7359;
  border-radius: 50%;
  background:
    linear-gradient(#8a7359, #8a7359) 50% 27% / 2px .38rem no-repeat,
    linear-gradient(90deg, #8a7359, #8a7359) 62% 53% / .3rem 2px no-repeat;
  content: "";
}

/* Right visual */
#home-offer-section > div:last-child > div > div:last-child {
  position: relative;
  width: 100%;
  padding: 2rem 1rem;
}

#home-offer-section > div:last-child > div > div:last-child::before {
  position: absolute;
  inset: .5rem 0 1rem 1.5rem;
  z-index: 0;
  border-radius: 3.25rem;
  background: #fff0c2;
  content: "";
  transform: rotate(-5deg);
}

#home-offer-section > div:last-child > div > div:last-child > div {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #f1dfc1 !important;
  border-radius: 2rem !important;
  background: #fff8e7 !important;
  box-shadow: 0 18px 38px rgba(91, 50, 7, .1) !important;
}

#home-offer-section .offer-media {
  display: flex;
  aspect-ratio: 4 / 3;
  min-height: 0;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #f8e7b8;
}

#home-offer-section #offer-image {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 62%;
  filter: none;
  transition: transform .35s ease;
}

#home-offer-section .offer-media:hover #offer-image { transform: scale(1.025); }

#home-offer-section .home-offer-image-label { display: none; }

@media (max-width: 850px) {
  #home-offer-section > div:last-child > div { grid-template-columns: 1fr !important; }
  #home-offer-section > div:last-child > div > div:last-child { padding: 1rem 0 0; }
}

@media (max-width: 560px) {
  #home-offer-section { padding: 3rem 1rem !important; }
  #home-offer-section #offer-title { font-size: clamp(2.45rem, 12vw, 3.5rem) !important; }
  #home-offer-section .offer-benefits { gap: .85rem; }
  #home-offer-section .offer-benefit-icon { width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
  #home-offer-section .offer-benefits > div { gap: .5rem; font-size: .86rem; }
  #home-offer-section .offer-benefit-divider { height: 2.8rem; }
  #home-offer-section .bg-white\/10 { padding: 1.2rem !important; }
  #home-offer-section #offer-deal-wrapper > div { min-height: auto; padding-right: 0; }
  #home-offer-section #offer-deal-wrapper > div::after { display: none; }
  #home-offer-section .home-offer-order-button { position: static; width: 100%; min-width: 0; margin-top: 1.2rem; transform: none; }
  #home-offer-section .offer-media { aspect-ratio: 1 / 1; }
}
