/* Homepage bento promo grid — requires market-theme.css */

.mbackmart--home .home-bento {
  margin: 24px 0 28px;
}

.mbackmart--home .home-bento__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 0.86fr);
  grid-template-rows: minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 16px;
  min-height: 400px;
}

.mbackmart--home .bento-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 8px 24px rgba(7, 26, 49, 0.07);
}

.mbackmart--home .bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(7, 26, 49, 0.12);
}

/* —— hero (left tall) —— */
.mbackmart--home .bento-card--hero {
  grid-column: 1;
  grid-row: 1 / 3;
  align-items: center;
  background-color: #000b1e;
  background-image: url('../bento-plara-hero.png');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  padding: 28px 26px;
  min-height: 400px;
}

.mbackmart--home .bento-card--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0, 8, 22, 0.72) 0%,
    rgba(0, 8, 22, 0.38) 38%,
    rgba(0, 8, 22, 0.08) 58%,
    transparent 72%
  );
  pointer-events: none;
}

.mbackmart--home .bento-card__hero-text {
  position: relative;
  z-index: 1;
  max-width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mbackmart--home .bento-card--hero .bento-pill {
  padding: 7px 16px;
  font-size: 13px;
}

.mbackmart--home .bento-card--hero .bento-heading {
  margin-top: 16px;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  line-height: 1.16;
}

.mbackmart--home .bento-card--hero .bento-heading span {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

.mbackmart--home .bento-card--hero .bento-btn {
  margin-top: 22px;
  padding: 13px 28px;
  font-size: 16px;
}

.mbackmart--home .bento-card--hero .bento-btn i {
  font-size: 14px;
}

.mbackmart--home .bento-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(243, 196, 92, 0.16);
  border: 1px solid rgba(243, 196, 92, 0.35);
  color: #ffe9a8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mbackmart--home .bento-heading {
  margin: 14px 0 0;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.mbackmart--home .bento-heading span {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.mbackmart--home .bento-heading--dark {
  color: #071424;
}

.mbackmart--home .bento-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdc78, #d79a35);
  color: #1a1204;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mbackmart--home .bento-btn i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.mbackmart--home .bento-card--hero:hover .bento-btn i {
  transform: translateX(3px);
}

/* —— deal (top center) —— */
.mbackmart--home .bento-card--deal {
  grid-column: 2;
  grid-row: 1;
  background: url('../banner-coupon.png') center/cover no-repeat #0a2744;
  min-height: 190px;
}

.mbackmart--home .bento-card__deal-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mbackmart--home .bento-card--deal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 20, 36, 0.72) 0%, rgba(7, 20, 36, 0.38) 55%, rgba(7, 20, 36, 0.12) 100%);
}

.mbackmart--home .bento-card--deal .bento-heading--dark {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.mbackmart--home .bento-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: #ffe9a8;
  letter-spacing: 0.03em;
}

.mbackmart--home .bento-ghost-link {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.mbackmart--home .bento-sticker {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffdc78, #d79a35);
  color: #1a1204;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: rotate(-6deg);
}

/* —— duo tiles (bottom center) —— */
.mbackmart--home .bento-card__duo {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}

.mbackmart--home .bento-card--tile {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #e7edf4;
  box-shadow: 0 6px 18px rgba(7, 26, 49, 0.05);
}

.mbackmart--home .bento-card--seasoning,
.mbackmart--home .bento-card--freeship {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 16px;
  background-color: #000b1e;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  border: none;
  box-shadow: 0 8px 22px rgba(7, 26, 49, 0.14);
}

.mbackmart--home .bento-card--seasoning {
  background-image: url('../bento-seasoning-hero.png');
}

.mbackmart--home .bento-card--freeship {
  background-image: url('../bento-freeship-hero.png');
}

.mbackmart--home .bento-card--seasoning::before,
.mbackmart--home .bento-card--freeship::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0, 8, 22, 0.82) 0%,
    rgba(0, 8, 22, 0.52) 42%,
    rgba(0, 8, 22, 0.12) 68%,
    transparent 82%
  );
  pointer-events: none;
}

.mbackmart--home .bento-card--seasoning .bento-card__tile-text,
.mbackmart--home .bento-card--freeship .bento-card__tile-text {
  position: relative;
  z-index: 1;
}

.mbackmart--home .bento-card--seasoning .bento-tile-title,
.mbackmart--home .bento-card--freeship .bento-tile-title {
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.mbackmart--home .bento-card--seasoning .bento-tile-sub,
.mbackmart--home .bento-card--freeship .bento-tile-sub {
  color: rgba(255, 233, 168, 0.92);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  margin-top: 6px;
}

.mbackmart--home .bento-card--seasoning .bento-text-link,
.mbackmart--home .bento-card--freeship .bento-text-link {
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(243, 196, 92, 0.35);
  color: #ffe9a8;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.mbackmart--home .bento-card__tile-text {
  min-width: 0;
}

.mbackmart--home .bento-tile-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #071424;
  line-height: 1.25;
}

.mbackmart--home .bento-tile-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #667085;
  line-height: 1.35;
}

.mbackmart--home .bento-text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #0d52a8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mbackmart--home .bento-text-link--navy {
  color: #0f2744;
}

.mbackmart--home .bento-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mbackmart--home .bento-icon--warm {
  background: linear-gradient(145deg, #fff4d6, #fde6a8);
  color: #b45309;
}

.mbackmart--home .bento-icon--sky {
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
  color: #0369a1;
}

/* —— member (right tall) —— */
.mbackmart--home .bento-card--member {
  grid-column: 3;
  grid-row: 1 / 3;
  align-items: stretch;
  padding: 0;
  background-color: #000b1e;
  background-image: url('../bento-member-hero.png');
  background-repeat: no-repeat;
  background-position: 58% center;
  background-size: cover;
  border: none;
  box-shadow: 0 12px 32px rgba(7, 26, 49, 0.18);
  min-height: 400px;
}

.mbackmart--home .bento-card--member::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 8, 22, 0.55) 0%,
    rgba(0, 8, 22, 0.12) 38%,
    rgba(0, 8, 22, 0.28) 58%,
    rgba(0, 8, 22, 0.88) 100%
  );
  pointer-events: none;
}

.mbackmart--home .bento-card__member-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 28px 24px 26px;
  box-sizing: border-box;
}

.mbackmart--home .bento-pill--member {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.mbackmart--home .bento-card__member-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: auto;
  max-width: 100%;
}

.mbackmart--home .bento-heading--member {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.14;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.mbackmart--home .bento-heading--member span {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: #ffe9a8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.mbackmart--home .bento-member-lead {
  margin: 12px 0 0;
  font-size: clamp(0.82rem, 1.35vw, 0.95rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22ch;
}

.mbackmart--home .bento-btn--member {
  margin-top: 20px;
  padding: 13px 26px;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.mbackmart--home .bento-card--member:hover .bento-btn--member i {
  transform: translateX(3px);
}

.mbackmart--home .bento-card--member .bento-note {
  margin: 14px 0 0;
  font-size: clamp(0.68rem, 1vw, 0.75rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 1050px) {
  .mbackmart--home .home-bento__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .mbackmart--home .bento-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 280px;
  }

  .mbackmart--home .bento-card--deal {
    grid-column: 1;
    grid-row: auto;
    min-height: 180px;
  }

  .mbackmart--home .bento-card__duo {
    grid-column: 2;
    grid-row: auto;
  }

  .mbackmart--home .bento-card--member {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 300px;
  }

  .mbackmart--home .bento-card__member-inner {
    padding: 24px 22px;
  }
}

@media (max-width: 680px) {
  .mbackmart--home .home-bento__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mbackmart--home .bento-card--hero,
  .mbackmart--home .bento-card--deal,
  .mbackmart--home .bento-card__duo,
  .mbackmart--home .bento-card--member {
    grid-column: 1;
    grid-row: auto;
  }

  .mbackmart--home .bento-card--hero {
    min-height: 320px;
    background-position: 72% center;
    padding: 22px 20px;
  }

  .mbackmart--home .bento-card--hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 8, 22, 0.78) 0%,
      rgba(0, 8, 22, 0.42) 42%,
      rgba(0, 8, 22, 0.15) 100%
    );
  }

  .mbackmart--home .bento-card__hero-text {
    max-width: 100%;
  }

  .mbackmart--home .bento-card__duo {
    grid-template-columns: 1fr;
  }

  .mbackmart--home .bento-card--member {
    min-height: 320px;
    background-position: 70% center;
  }

  .mbackmart--home .bento-card__member-inner {
    padding: 22px 20px 20px;
  }

  .mbackmart--home .bento-heading--member {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .mbackmart--home .bento-heading--member span {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .mbackmart--home .bento-member-lead {
    max-width: none;
  }
}
