/* Hero model slider — light theme */
/* --- Responsif mobile: cegah scroll horizontal (track Swiper loop sangat lebar) --- */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Galeri & section lain: img width="665" + grid bisa memaksa lebar > viewport */
section:not(#home),
footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#products .container,
section .container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#products .grid {
  min-width: 0;
}

#products .grid > a {
  min-width: 0;
  max-width: 100%;
}

#products img,
section:not(#home) img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  nav .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bottom-tab-bar,
  .bottom-tab-bar-inner {
    max-width: 100%;
    box-sizing: border-box;
  }
}


/* Paksa latar putih + batasi lebar #home (Swiper loop membuat wrapper sangat lebar) */
#home {
  width: 100%;
  background-color: #ffffff !important;
  color: #111827;
  overflow-x: hidden;
  max-width: 100%;
}

#home .hero-model-swiper,
#home .swiper-wrapper,
#home .swiper-slide {
  background-color: #ffffff !important;
  background-image: none !important;
}

.hero-model-swiper {
  width: 100%;
  max-width: 100%;
  min-height: min(78vh, 720px);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-model-swiper .swiper-wrapper {
  max-width: 100%;
}

.hero-model-swiper .swiper-slide {
  width: 100% !important;
  max-width: 100%;
  height: auto;
  min-height: min(78vh, 720px);
  box-sizing: border-box;
}

.hero-slide-inner {
  width: 100%;
  max-width: min(1200px, 100%);
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  min-height: min(72vh, 640px);
}

@media (min-width: 768px) {
  .hero-slide-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem 4rem;
  }
}

.hero-slide-text,
.hero-slide-visual {
  min-width: 0;
}

.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero-model-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #111827;
  overflow-wrap: anywhere;
}

.hero-model-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  overflow-wrap: anywhere;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.hero-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  overflow-wrap: anywhere;
}

.hero-stat-val--accent {
  color: #a67c00;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn-primary,
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.hero-btn-primary {
  background: #111827;
  color: #fff;
  border: none;
}

.hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.2);
}

.hero-btn-outline {
  background: transparent;
  color: #111827;
  border: 2px solid rgba(17, 24, 39, 0.25);
}

.hero-btn-outline:hover {
  border-color: #111827;
  background: rgba(17, 24, 39, 0.04);
}

.hero-slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-slide-img {
  width: 100%;
  max-width: min(560px, 100%);
  height: auto;
  max-height: min(42vh, 380px);
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.12));
}

@media (min-width: 768px) {
  .hero-slide-img {
    max-height: min(52vh, 440px);
  }
}

.hero-model-pagination {
  bottom: 1.25rem !important;
}

.hero-model-pagination .swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.hero-model-pagination .swiper-pagination-bullet-active {
  background: #111827;
  width: 22px;
  border-radius: 6px;
}

.hero-model-next,
.hero-model-prev {
  color: rgba(17, 24, 39, 0.55);
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hero-model-next::after,
.hero-model-prev::after {
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-model-next:hover,
.hero-model-prev:hover {
  color: #111827;
}

@media (max-width: 767px) {
  .hero-model-next,
  .hero-model-prev {
    display: none;
  }
}
