/**
 * ============================================================
 * Hero + Announcement — Bento 2026
 * Fresh, self-contained implementation (prefix: .hb-) — does NOT
 * reuse .hp26-hero__* selectors, so it cannot collide with the
 * legacy cinematic hero rules still defined in home-2026.css.
 * Layout: 3 banners + 1 main slider + 1 white product-list slider.
 * ============================================================
 */

.hb-hero {
  --hb-red: var(--color-brand-primary, #8f0b13);
  --hb-red-deep: #6d0910;
  --hb-gold: var(--color-brand-accent, #b8860b);
  --hb-gold-deep: #96700a;
  --hb-radius: clamp(1.5rem, 3vw, 2.75rem);
  --hb-radius-sm: clamp(1rem, 1.6vw, 1.35rem);
  --hb-gap: clamp(0.6rem, 1.3vw, 0.9rem);
  --hb-border: rgba(10, 10, 10, 0.07);

  position: relative;
  padding-block: clamp(var(--space-5), 3vw, var(--space-9));
  background: var(--color-bg-base);
  overflow: hidden;
}

.hb-hero__ambient {
  position: absolute;
  inset: -10% -6% auto -6%;
  height: 60%;
  background: radial-gradient(60% 60% at 22% 15%, rgba(143, 11, 19, 0.08) 0%, transparent 70%),
              radial-gradient(50% 55% at 82% 8%, rgba(184, 134, 11, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hb-hero .az-container {
  position: relative;
  z-index: 1;
}

/* ── Outer grid: mosaic (right / inline-start) + sidebar (left / inline-end) ── */
.hb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 25%);
  gap: var(--hb-gap);
  align-items: stretch;
}

/* ══════════════════════ SIDEBAR ══════════════════════ */
.hb-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--hb-gap);
  min-width: 0;
}

.hb-search {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hb-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding-inline-start: 0.9rem;
  color: var(--color-text-muted);
}

.hb-search__field i {
  font-size: 1rem;
  flex-shrink: 0;
}

.hb-search__input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  outline: none;
}

.hb-search__input::placeholder {
  color: #b3b3b3;
}

.hb-search__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.62rem 1.1rem;
  background: var(--hb-red);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--duration-fast) var(--ease-out);
}

.hb-search__submit:hover {
  background: var(--hb-red-deep);
  transform: translateY(-1px);
}

/* ── Two stacked promo tiles ── */
.hb-tiles {
  display: flex;
  flex-direction: column;
  gap: var(--hb-gap);
  flex: 1;
  min-height: 0;
}

.hb-tile {
  position: relative;
  flex: 1;
  min-height: clamp(4.75rem, 11vw, 7.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: clamp(0.85rem, 1.6vw, 1.15rem);
  border-radius: var(--hb-radius-sm);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--transition-fast);
}

.hb-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  z-index: 0;
}

.hb-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  color: #fff;
}

.hb-tile--gold { background: linear-gradient(135deg, var(--hb-gold) 0%, var(--hb-gold-deep) 100%); }
.hb-tile--red  { background: linear-gradient(135deg, var(--hb-red) 0%, var(--hb-red-deep) 100%); }

.hb-tile--has-img,
.hb-mosaic__tail--has-img,
.hb-mosaic__accent--has-img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hb-tile--has-img::before,
.hb-mosaic__tail--has-img::before,
.hb-mosaic__accent--has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 0;
}

.hb-tile--has-img.hb-tile--gold::before {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.72) 0%, rgba(109, 9, 16, 0.55) 100%);
}

.hb-tile--has-img.hb-tile--red::before,
.hb-mosaic__tail--has-img::before {
  background: linear-gradient(135deg, rgba(143, 11, 19, 0.78) 0%, rgba(26, 21, 24, 0.65) 100%);
}

.hb-mosaic__accent--has-img::before {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.75) 0%, rgba(143, 11, 19, 0.6) 100%);
}

.hb-tile__badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: auto;
}

.hb-tile__title {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.hb-tile__sub {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ── White product-list box (swiper) ── */
.hb-products {
  flex: 0.9;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.9rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
  box-shadow: var(--shadow-sm);
}

section.hb-hero
{
    padding-top: 20px
}

.hb-products__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.hb-products__title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.hb-products__title i { color: var(--hb-red); font-size: 0.8rem; }

.hb-products__more {
  font-size: 0.66rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hb-products__more:hover { color: var(--hb-red); }

.hb-products-swiper {
  width: 100%;
  flex: 1;
  min-height: 0;
}

.hb-products-swiper .swiper-wrapper {
  height: auto;
}

.hb-products-swiper .swiper-slide {
  height: auto;
}

.hb-products__list {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.35rem;
  height: 100%;
}

.hb-product-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.65rem;
  transition: background-color var(--transition-fast);
}

.hb-product-row:hover { background: var(--color-brand-primary-subtle); }

.hb-product-row__media {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--color-bg-sunken);
}

.hb-product-row__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.15rem;
}

.hb-product-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hb-product-row__name {
  font-size: 0.74rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-product-row__prices {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hb-product-row__old {
  font-size: 0.62rem;
  color: #b0b0b0;
  text-decoration: line-through;
  white-space: nowrap;
}

.hb-product-row__sale {
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--hb-red);
  white-space: nowrap;
}

.hb-product-row__discount {
  font-size: 0.6rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  background: var(--hb-gold);
  border-radius: var(--radius-full);
  padding: 0.05rem 0.4rem;
  white-space: nowrap;
}

.hb-products__pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  width: 100% !important;
}

.hb-products__pagination .swiper-pagination-bullet {
  width: 1.3rem;
  height: 0.28rem;
  margin: 0 !important;
  border-radius: var(--radius-full);
  background: var(--color-bg-sunken);
  opacity: 1;
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.hb-products__pagination .swiper-pagination-bullet-active {
  width: 1.6rem;
  background: var(--hb-gold);
}

/* ══════════════════════ MOSAIC (main area) ══════════════════════ */
.hb-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(13rem, 36%);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--hb-gap);
  min-height: clamp(21rem, 36vw, 30rem);
  min-width: 0;
}

.hb-mosaic__slider {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  min-height: 0;
  border-radius: var(--hb-radius);
  overflow: hidden;
  background: var(--hb-red-deep);
  box-shadow: var(--shadow-card);
}

.hb-slider-swiper,
.hb-slider-swiper .swiper-wrapper,
.hb-slider-swiper .swiper-slide { height: 100%; }

.hb-slide {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--hb-red) 0%, var(--hb-red-deep) 100%);
}

.hb-slide[style*="--hp-banner-text"] .hb-slide__title,
.hb-slide[style*="--hp-banner-text"] .hb-slide__subtitle,
.hb-slide[style*="--hp-banner-text"] .hb-slide__badge {
  color: var(--hp-banner-text) !important;
}

.hb-tile[style*="--hp-banner-text"],
.hb-mosaic__accent[style*="--hp-banner-text"],
.hb-mosaic__tail[style*="--hp-banner-text"],
.hb-tile[style*="--hp-banner-text"] .hb-tile__title,
.hb-tile[style*="--hp-banner-text"] .hb-tile__sub,
.hb-mosaic__accent[style*="--hp-banner-text"] .hb-mosaic__accent-title,
.hb-mosaic__accent[style*="--hp-banner-text"] .hb-mosaic__accent-sub,
.hb-mosaic__accent[style*="--hp-banner-text"] .hb-mosaic__accent-badge {
  color: var(--hp-banner-text) !important;
}

.hb-slide__media {
  position: absolute;
  inset: 0;
}

.hb-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.hb-slide__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  max-width: min(30rem, 68%);
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
}

.hb-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
}

.hb-slide__badge i { color: var(--hb-gold); }

.hb-slide__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.9vw, 2.35rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.18;
  color: #fff;
}

.hb-slide__subtitle {
  margin: 0;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 26rem;
}

.hb-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--hb-gold);
  color: #fff;
  font-size: 0.82rem;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--transition-fast);
}

.hb-slide__cta:hover {
  background: var(--hb-gold-deep);
  color: #fff;
  transform: translateY(-1px);
}

.swiper-slide-active .hb-slide__badge,
.swiper-slide-active .hb-slide__title,
.swiper-slide-active .hb-slide__subtitle,
.swiper-slide-active .hb-slide__cta {
  animation: hb-slide-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.swiper-slide-active .hb-slide__title    { animation-delay: 0.06s; }
.swiper-slide-active .hb-slide__subtitle { animation-delay: 0.12s; }
.swiper-slide-active .hb-slide__cta      { animation-delay: 0.2s; }

@keyframes hb-slide-enter {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.hb-mosaic__controls {
  position: absolute;
  bottom: clamp(0.85rem, 1.8vw, 1.2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.hb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--duration-fast) var(--ease-out);
}

.hb-nav:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
  transform: scale(1.06);
}

.hb-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  width: auto !important;
}

.hb-pagination .swiper-pagination-bullet {
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.hb-pagination .swiper-pagination-bullet-active {
  width: 1.3rem;
  border-radius: var(--radius-full);
  background: #fff;
}

/* ── Bottom row: tail (wide, red) + accent (narrow, gold banner) ── */
.hb-mosaic__tail {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: clamp(1rem, 2.2vw, 1.75rem);
  min-height: clamp(4.5rem, 10vw, 6.5rem);
  border-radius: var(--hb-radius-sm);
  background: linear-gradient(120deg, var(--hb-red) 0%, var(--hb-red-deep) 100%);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: var(--font-weight-semibold);
  gap: 0.5rem;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hb-mosaic__tail:hover {
  color: #fff;
  transform: translateY(-2px);
}

.hb-mosaic__tail i { font-size: 1rem; color: var(--hb-gold); }

.hb-mosaic__accent {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  min-height: clamp(4.5rem, 10vw, 6.5rem);
  padding: clamp(0.85rem, 1.8vw, 1.2rem);
  background: linear-gradient(135deg, var(--hb-gold) 0%, var(--hb-gold-deep) 100%);
  color: #fff;
  border-radius: var(--hb-radius-sm);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--transition-fast);
}

.hb-mosaic__accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.hb-mosaic__accent-badge {
  align-self: flex-start;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.6rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: auto;
}

.hb-mosaic__accent-title {
  font-size: 0.82rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.hb-mosaic__accent-sub {
  font-size: 0.66rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* ══════════════════════ STATS STRIP ══════════════════════ */
.hb-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-top: clamp(0.9rem, 2vw, 1.4rem);
}

.hb-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface);
  border: 1px solid var(--hb-border);
  box-shadow: var(--shadow-xs);
}

.hb-stat i {
  font-size: 0.95rem;
  color: var(--hb-red);
}

.hb-stat strong {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.hb-stat span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1199px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr) minmax(10rem, 23%); }
}

@media (max-width: 991px) {
  .hb-grid {
    grid-template-columns: 1fr;
  }

  .hb-mosaic { order: 1; }

  .hb-sidebar {
    order: 2;
    flex-direction: column;
  }

  .hb-tiles {
    flex-direction: row;
  }

  .hb-tile { min-height: 5.5rem; }

  .hb-products { min-height: 14rem; }
}

@media (max-width: 767px) {
  .hb-mosaic {
    grid-template-columns: minmax(0, 1fr) min(9.5rem, 40%);
    min-height: clamp(17rem, 58vw, 22rem);
  }

  .hb-slide__content { max-width: 78%; }
  .hb-slide__subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hb-tile__sub { display: none; }
}

@media (max-width: 575px) {
  .hb-hero { --hb-radius: 1.5rem; --hb-radius-sm: 1rem; --hb-gap: 0.5rem; }

  .hb-tiles { flex-direction: column; }

  .hb-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-height: 16rem;
  }

  .hb-mosaic__tail,
  .hb-mosaic__accent {
    grid-column: 1;
  }

  .hb-mosaic__tail { grid-row: 2; }
  .hb-mosaic__accent { grid-row: 3; }

  .hb-slide__content { max-width: 100%; padding: 1rem; }
  .hb-slide__title { font-size: 1.2rem; }
  .hb-slide__subtitle { display: none; }

  .hb-product-row__name { font-size: 0.7rem; }
  .hb-product-row__media { width: 2.5rem; height: 2.5rem; }

  .hb-stat span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .swiper-slide-active .hb-slide__badge,
  .swiper-slide-active .hb-slide__title,
  .swiper-slide-active .hb-slide__subtitle,
  .swiper-slide-active .hb-slide__cta {
    animation: none !important;
  }
}
