/* Hamara Bazaar — Hero Product Slider (Elementor) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.hb-hps {
  --hb-hps-anim: 900ms;
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  font-family: "Manrope", sans-serif;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
}

.hb-hps__layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: inherit;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.hb-hps__layout.has-sidebar {
  grid-template-columns: 1fr minmax(180px, 240px);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.hb-hps__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hb-hps__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.hb-hps__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.hb-hps__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex: 1;
  min-height: 0;
}

.hb-hps__left { max-width: 22rem; z-index: 3; }

.hb-hps__title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #111;
  margin: 0 0 1.25rem;
}

.hb-hps__desc {
  color: #6b6b6b;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 18rem;
}

.hb-hps__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hb-hps__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hb-hps__btn:hover {
  background: #333;
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}

.hb-hps__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background 0.25s, color 0.25s;
}

.hb-hps__play:hover {
  transform: scale(1.08);
}

.hb-hps__center {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hb-hps__circle {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  background: #e8e8e8;
  z-index: 0;
}

.hb-hps__image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.22));
}

.hb-hps__image img {
  width: 42%;
  min-width: 140px;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hb-hps__right {
  z-index: 3;
  display: flex;
  align-items: center;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hb-hps__nav {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

.hb-hps__nav-item {
  background: transparent;
  border: 0;
  padding: 0.35rem 0.5rem;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.25s, transform 0.25s;
  max-width: 220px;
}

.hb-hps__nav-item:hover {
  transform: translateX(4px);
}

.hb-hps__nav-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #9a9a9a;
  margin-bottom: 0.35rem;
  transition: color 0.25s;
}

.hb-hps__nav-desc {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b0b0b0;
  transition: color 0.25s;
}

.hb-hps__nav-item.is-active .hb-hps__nav-title { color: #111; }
.hb-hps__nav-item.is-active .hb-hps__nav-desc { color: #777; }

.hb-hps__bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #777;
  z-index: 3;
}

.hb-hps__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hb-hps__mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  position: relative;
}

.hb-hps__mouse::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: hb-hps-scroll 1.4s ease-in-out infinite;
}

@keyframes hb-hps-scroll {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(6px); }
}

.hb-hps__material {
  margin: 0;
  text-align: center;
  max-width: 28rem;
  justify-self: center;
  line-height: 1.55;
}

.hb-hps__discover {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  transition: color 0.25s, gap 0.25s;
}

.hb-hps__discover:hover {
  color: #111;
  gap: 0.9rem;
}

.hb-hps__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.hb-hps__arrow:hover { transform: translateY(-50%) scale(1.06); }
.hb-hps__arrow--prev { left: 1rem; }
.hb-hps__arrow--next { right: 1rem; }

.hb-hps__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.hb-hps__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.25s;
}

.hb-hps__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #111;
}

/* ========== Animations ========== */
.hb-hps .hb-hps-anim {
  opacity: 0;
  will-change: transform, opacity;
}

.hb-hps__slide.is-active .hb-hps-anim {
  animation-duration: var(--hb-hps-anim);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Creative stagger */
.hb-hps--creative .hb-hps__slide.is-active [data-anim="title"] {
  animation-name: hb-hps-rise;
  animation-delay: 0.05s;
}
.hb-hps--creative .hb-hps__slide.is-active [data-anim="desc"] {
  animation-name: hb-hps-rise;
  animation-delay: 0.18s;
}
.hb-hps--creative .hb-hps__slide.is-active [data-anim="actions"] {
  animation-name: hb-hps-rise;
  animation-delay: 0.3s;
}
.hb-hps--creative .hb-hps__slide.is-active [data-anim="media"] {
  animation-name: hb-hps-zoom-in;
  animation-delay: 0.12s;
}
.hb-hps--creative .hb-hps__slide.is-active [data-anim="nav"] {
  animation-name: hb-hps-slide-left;
  animation-delay: 0.25s;
}
.hb-hps--creative .hb-hps__slide.is-active [data-anim="bottom"] {
  animation-name: hb-hps-fade;
  animation-delay: 0.4s;
}
.hb-hps--creative .hb-hps__slide.is-active .hb-hps__circle {
  animation: hb-hps-circle var(--hb-hps-anim) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hb-hps--fade .hb-hps__slide.is-active .hb-hps-anim { animation-name: hb-hps-fade; }
.hb-hps--slide-up .hb-hps__slide.is-active .hb-hps-anim { animation-name: hb-hps-rise; }
.hb-hps--slide-left .hb-hps__slide.is-active .hb-hps-anim { animation-name: hb-hps-slide-left; }
.hb-hps--zoom .hb-hps__slide.is-active .hb-hps-anim { animation-name: hb-hps-zoom-in; }
.hb-hps--flip .hb-hps__slide.is-active .hb-hps-anim { animation-name: hb-hps-flip; }

@keyframes hb-hps-rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hb-hps-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hb-hps-slide-left {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hb-hps-zoom-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hb-hps-circle {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hb-hps-flip {
  from { opacity: 0; transform: perspective(800px) rotateX(12deg) translateY(20px); }
  to { opacity: 1; transform: perspective(800px) rotateX(0) translateY(0); }
}

@media (max-width: 1024px) {
  .hb-hps__layout.has-sidebar {
    grid-template-columns: 1fr;
  }
  .hb-hps__right { order: 2; }
  .hb-hps__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hb-hps__bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hb-hps__discover,
  .hb-hps__material,
  .hb-hps__scroll {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .hb-hps__grid { grid-template-columns: 1fr; }
  .hb-hps__center { min-height: 300px; order: -1; }
  .hb-hps__left { max-width: none; text-align: center; }
  .hb-hps__desc { margin-inline: auto; }
  .hb-hps__actions { justify-content: center; }
  .hb-hps__image img { width: 38%; max-width: 180px; }
}
