:root {
  --accent: #111;
  --bg: #fff;
  --text: #0e0e0e;
  --swiper-max: 1320px
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto
}

.brand-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid #eee
}

.brand-tabs-inner {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
}

.brand-tab {
  appearance: none;
  border: 0;
  background: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
  scroll-snap-align: center;
  position: relative
}

.brand-tab .logo-box {
  width: 120px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.brand-tab img {
  max-width: 100%;
  max-height: 100%;
  width: 80px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: .8;
  transition: opacity .2s, transform .2s;
}

.brand-tab[aria-selected="true"] img {
  opacity: 1;
  transform: scale(1.05)
}

.hero,
.slider,
.brand-tabs {
  width: 100%
}

.hero {
  position: relative;
  height: 100dvh
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg, #222 center/cover no-repeat);
  background-size: cover;
  background-position: center;
  opacity: .7
}

.hero .inner {
  position: relative;
  z-index: 1
}

.slider {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 2
}

.slider .swiper {
  width: 100%;
  max-width: var(--swiper-max);
  overflow: hidden
}

.slider .swiper-wrapper {
  align-items: center
}

.slider .swiper-slide {
  height: 62dvh;
  display: flex;
  align-items: center;
  justify-content: center
}

.slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px
}

.swiper-pagination {
  display: none !important
}

.slideset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center
}

.slider-bottom-nav {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: var(--swiper-max);
  margin: 8px auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  z-index: 5;
}

.btn-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  position: relative
}

.btn-nav.prev {
  background-image: url('../icons/chev-left.svg')
}

.btn-nav.next {
  background-image: url('../icons/chev-right.svg')
}

@supports (mask:url('../icons/chev-left.svg')) or (-webkit-mask:url('../icons/chev-left.svg')) {
  .btn-nav {
    background: #fff
  }

  .btn-nav::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    background-color: #000
  }

  .btn-nav.prev::before {
    mask: url('../icons/chev-left.svg') center/contain no-repeat;
    -webkit-mask: url('../icons/chev-left.svg') center/contain no-repeat
  }

  .btn-nav.next::before {
    mask: url('../icons/chev-right.svg') center/contain no-repeat;
    -webkit-mask: url('../icons/chev-right.svg') center/contain no-repeat
  }
}

.btn-nav:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18)
}

.btn-nav:active {
  transform: scale(.98)
}

.btn-nav[disabled],
.btn-nav.swiper-button-disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08) !important;
  filter: grayscale(1)
}

.floating-menu {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 30
}

.floating-menu .fm-item {
  width: 90px;
  min-height: 92px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  letter-spacing: .1px;
  background: linear-gradient(180deg, var(--bg-start, #7a41ff), var(--bg-end, #5a2aff));
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease
}

.floating-menu .fm-item:not(:first-child) {
  border-top-right-radius: 0
}

.floating-menu .fm-item:not(:last-child) {
  border-bottom-right-radius: 0
}

.floating-menu .fm-icon {
  width: 26px;
  height: 26px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .1))
}

.floating-menu .fm-label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .15)
}

.floating-menu .fm-item:hover {
  transform: translateX(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22)
}

.floating-menu .fm-item:active {
  transform: translateX(0) scale(.98)
}

#lightbox[hidden] {
  display: none
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center
}

#lightbox .lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px)
}

#lightbox .lb-dialog {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  margin: 0
}

#lightbox #lb-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

#lightbox #lb-cap {
  margin-top: 8px;
  color: #fff;
  text-align: center;
  font: 14px/1.4 system-ui
}

img.img-fluid {
  cursor: pointer;
}

.lb-close {
  position: absolute;
  top: -10px;
  right: -10px;
  height: 44px;
  width: 44px;
  border: 0;
  border-radius: 999px;
  background-color: #fff;
  background-image: url('../img/icon/close.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-image .0s;
}

.lb-close:hover {
  background-image: url('../img/icon/close-hover.svg');
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.lb-close:active {
  transform: scale(.98);
}

.lb-close:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .2);
  outline-offset: 2px;
  background-image: url('../img/icon/close-hover.svg');
}

.lb-close::before {
  content: none !important;
}

.brand-tab {
  transition: transform .15s ease, box-shadow .2s ease
}

.brand-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08)
}

.brand-tab[aria-selected="true"] {
  box-shadow: 0 8px 18px rgba(0, 0, 0, .10)
}

.brand-underline {
  position: absolute;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transform: translateX(0);
  transition: transform .25s ease, width .25s ease, background-color .2s ease;
  bottom: 0;
  width: 100% !important;
}

@media (max-width: 768px) {
  .brand-tabs {
    position: sticky;
    top: 0;
  }

  .brand-tabs-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 56px;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
    scroll-snap-type: none;
    justify-items: center;
    align-items: center;
  }

  .brand-tabs-inner::before,
  .brand-tabs-inner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, var(--bg), color-mix(in srgb, var(--bg) 0%, transparent 100%));
  }

  .brand-tabs-inner::after {
    right: 0;
    transform: scaleX(-1);
  }

  .brand-tabs-inner::before {
    left: 0;
  }
}

.slider .swiper-slide {
  position: relative;
  overflow: hidden;
}

.slider .swiper-slide::after {
  content: "Klik untuk lihat lebih banyak";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 13px/1 system-ui;
  letter-spacing: .2px;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.slider .swiper-slide:hover::after,
.slider .swiper-slide:focus-within::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .slider .swiper-slide::after {
    opacity: .9;
    background: rgba(0, 0, 0, .42);
  }
}

@media (max-width:768px) {

  html,
  body {
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .brand-tab .logo-box {
    width: 70px;
    height: 40px;
  }

  .brand-tab img {
    height: auto
  }

  .hero {
    min-height: 100dvh
  }

  .slider .swiper-slide {
    height: auto !important;
    aspect-ratio: 0 / 9;
  }

  .slider .swiper-wrapper {
    align-items: stretch;
  }

  .slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .btn-nav {
    width: 36px;
    height: 36px;
    background-size: 18px;
    background-repeat: no-repeat;
  }

  .btn-nav::before {
    width: 18px;
    height: 18px;
  }

  .btn-nav.next {
    background-image: none;
  }

  .btn-nav.prev {
    background-image: none;
  }

  .floating-menu {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding: 6px 8px;
    background: color-mix(in srgb, #000 16%, transparent 84%);
    backdrop-filter: saturate(1.2) blur(6px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px
  }

  .floating-menu .fm-item {
    flex: 1;
    min-height: 64px;
    width: auto;
    border-radius: 12px;
    box-shadow: none
  }

  .floating-menu .fm-item:not(:first-child) {
    border-top-right-radius: 12px
  }

  .floating-menu .fm-item:not(:last-child) {
    border-bottom-right-radius: 12px
  }

  .floating-menu .fm-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 6px
  }

  .floating-menu .fm-label {
    font-size: 11px
  }
}

@media (max-width: 768px) {
  .slideset {
    position: relative;
  }

  .slider-bottom-nav {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
    pointer-events: none;
    z-index: 6;
  }

  .slider-bottom-nav .btn-nav.prev {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
  }

  .slider-bottom-nav .btn-nav.next {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
  }

  .slider-bottom-nav .btn-nav {
    width: 36px;
    height: 36px;
    background-size: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  }

  button.brand-tab {
    display: flex;
    margin: auto;
    width: 100%;
    justify-content: center;
  }
}