/* Homepage flash sale + feature tabs */
section.hb-home-features {
  padding: 36px 0 40px;
  background: #fff;
}

/* Flash sale banner */
.hb-flash-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(90deg, #2a5259 0%, var(--brand-secondary) 38%, #6a9a28 78%, var(--brand-primary) 100%);
  border-radius: 18px;
  padding: 34px 42px;
  margin: 0 auto 58px;
  box-shadow: 0 18px 40px rgba(35, 68, 75, .26);
  position: relative;
  overflow: hidden;
  min-height: 118px;
}
.hb-flash-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.14), transparent 28%),
    radial-gradient(circle at 70% 110%, rgba(136,192,56,.25), transparent 40%);
  pointer-events: none;
}
.hb-flash-banner-copy,
.hb-flash-banner-cta {
  position: relative;
  z-index: 1;
}
.hb-flash-banner-copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.hb-flash-banner-copy p {
  margin: 0;
  color: rgba(255,255,255,.95);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.hb-flash-banner-cta {
  text-align: right;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hb-flash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f7c948;
  color: #14242a !important;
  text-decoration: none !important;
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.hb-flash-btn:hover,
.hb-flash-btn:focus {
  background: #ffd75a;
  color: #14242a !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.22);
  text-decoration: none !important;
}
.hb-flash-note {
  margin-top: 11px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hb-flash-note i {
  color: #d9f59a;
  margin-right: 5px;
}

/* Features head */
.hb-features-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}
.hb-features-head h2 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  line-height: 1.15;
}
.hb-features-head p {
  margin: 0 auto;
  max-width: 620px;
  color: #64748b;
  font-size: 15.5px;
  line-height: 1.7;
}

/* Tabs */
.hb-features-tabs-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 34px;
  width: 100%;
}
.hb-features-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5ecee;
  border-radius: 999px;
  padding: 6px;
  max-width: 100%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
  position: relative;
  z-index: 2;
}
.hb-features-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none;
  background: transparent;
  color: #334155;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer !important;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
  box-shadow: none;
}
.hb-features-tab:hover {
  color: #0f172a;
  background: #f3f7f8;
}
.hb-features-tab.is-active,
.hb-features-tab.is-active:hover {
  background: var(--brand-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(136, 192, 56, .28);
}

.hb-features-panel {
  display: none !important;
}
.hb-features-panel.is-active {
  display: block !important;
  animation: hbFeatFade .22s ease;
}
@keyframes hbFeatFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hb-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hb-feature-card {
  background: #fff;
  border: 1px solid #e8eef0;
  border-radius: 16px;
  padding: 26px 24px 24px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-height: 100%;
}
.hb-feature-card:hover {
  border-color: #cfe3b4;
  box-shadow: 0 16px 32px rgba(56, 104, 112, .08);
  transform: translateY(-2px);
}
.hb-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--brand-secondary-soft), #d8e6ea);
  color: var(--brand-secondary);
  font-size: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.hb-feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hb-feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.015em;
}
.hb-feature-card p {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .hb-flash-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
    gap: 18px;
  }
  .hb-flash-banner-cta {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  .hb-flash-note { white-space: normal; }
  .hb-flash-banner-copy h3 { font-size: 24px; }
  .hb-flash-banner-copy p { font-size: 18px; }
  .hb-features-head h2 { font-size: 28px; }
  .hb-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-features-tabs {
    border-radius: 18px;
    width: 100%;
  }
}
@media (max-width: 767px) {
  section.hb-home-features { padding: 24px 0 48px; }
  .hb-flash-banner { margin-bottom: 40px; min-height: 0; }
  .hb-features-head h2 { font-size: 24px; }
  .hb-features-grid { grid-template-columns: 1fr; }
  .hb-features-tab { padding: 10px 14px; font-size: 12px; }
}
