:root {
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --accent: #111827;
  --accent-hover: #000000;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .06);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, .18);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-slider { 
  position: absolute; 
  inset: 0; 
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .25s ease;
}
.hero-dots .dot.active {
  width: 24px;
  background: #fff;
}

/* Animasi zoom lembut di hero */
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.03);
}

.hero-slide.active {
  opacity: 1;
  animation: heroZoom 10s ease-in-out infinite alternate;
}


/* =========================================================
   HEADER LATEST COLLECTION (TITLE + VIEW ALL)
   ========================================================= */
.section-header {
  max-width: 100%;
  margin: 0;
  padding: 40px 28px 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}

/* LINK VIEW ALL DI KANAN */
.view-all {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity .25s ease, border-color .25s ease;
}

.view-all:hover {
  opacity: .7;
  border-color: var(--accent-hover);
}

/* Mobile: judul & view all tetap rapi */
@media (max-width: 600px) {
  .section-header {
    padding: 32px 16px 14px 16px;
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 20px;
  }

  .view-all {
    margin-left: auto;
    font-size: 11px;
  }
}

/* =========================================================
   LATEST COLLECTION – CARD PRODUK
   ========================================================= */

/* DESKTOP — HORIZONTAL LIST (drag + scroll) */
.product-grid {
  max-width: 100%;
  margin: 0 0 50px 0;
  padding: 0 28px 40px 28px;
  display: flex;
  gap: 10px;                      /* jarak antar card rapat */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.product-grid::-webkit-scrollbar { display: none; }
.product-grid.is-dragging { cursor: grabbing; }

/* CARD mirip Tosco */
.product-card {
  flex: 0 0 clamp(210px, 22vw, 250px);   /* lebar card */
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  overflow: hidden;
  border: none;
  box-shadow: none;
  transition: transform .2s ease;
}
.product-card:hover { transform: translateY(-5px); }

/* FOTO */
.product-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 5;         
  background: #f5f5f5;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.product-card:hover .thumb img {
  transform: scale(1.03);
}

/* TEXT DI BAWAH FOTO */
.product-card .info {
  padding: 14px 6px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-card .name {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}

.product-card .category {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.product-card .price {
  font-size: 13.5px;
  font-weight: 800;
  color: #4b5563;
}

.product-card .stock { display: none; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}

/* TABLET – GRID 2 KOLOM (rapi seperti desktop, tapi tidak scroll) */
@media (max-width: 768px) {
  .product-grid {
    padding: 0 16px 32px 16px;
    gap: 8px;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: space-between;
    cursor: default;
  }

  .product-card {
    flex: 0 0 calc(50% - 6px);
    transform: none;
  }
  .product-card:hover { transform: none; }

  .product-card .info {
    padding: 12px 4px 18px;
  }
  .product-card .name {
    font-size: 12px;
  }
  .product-card .price {
    font-size: 13px;
  }
}

/* HP KECIL – tetap 2 kolom tapi lebih rapat */
@media (max-width: 480px) {
  .product-grid {
    padding: 0 12px 24px 12px;
    gap: 6px;
  }

  .product-card {
    flex: 0 0 calc(50% - 5px);
  }

  .product-card .info {
    padding: 10px 2px 16px;
  }
  .product-card .name {
    font-size: 11.5px;
  }
  .product-card .price {
    font-size: 12.5px;
  }
}

/* =========================================================
   STORE FULL VIDEO – FULLSCREEN FEATURE
   ========================================================= */
/* =========================================================
   STORE FULL VIDEO – FULLSCREEN FEATURE
   ========================================================= */
.store-video {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #000;
  overflow: hidden;
}

.store-video-inner {
  position: relative;
  width: 100vw;         /* pastikan benar-benar selebar viewport */
  max-width: 100%;
  height: 100vh;        /* sama tinggi dengan hero */
  min-height: 520px;
}

/* Video benar-benar menutupi satu layar */
.store-video-tag {
  position: absolute;
  inset: 0;             /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;    /* crop kanan-kiri atas-bawah, tidak gepeng */
  display: block;
  filter: brightness(0.8);
}

/* Overlay teks + gradient */
.store-video-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    transparent 70%
  );
  color: #f9fafb;
  pointer-events: none;       /* biar klik mengenai tombol saja */
}

.store-video-overlay * {
  pointer-events: auto;       /* aktifkan kembali untuk teks/tombol */
}

.store-video-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .9;
}

.store-video-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
  max-width: 520px;
}

.store-video-subtitle {
  font-size: 13px;
  max-width: 420px;
  opacity: .9;
  margin-top: 4px;
}

/* Tombol CTA */
.store-video-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, .7);
  background: rgba(15, 23, 42, .9);
  color: #f9fafb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}

.store-video-btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}

.store-video-btn:hover {
  background: #111827;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .55);
}

.store-video-btn:hover .arrow {
  transform: translateX(6px);
}

/* ==================== RESPONSIVE VIDEO ==================== */
@media (max-width: 768px) {
  .store-video-inner {
    height: 80vh;
    min-height: 420px;
  }

  .store-video-overlay {
    padding: 20px 18px 26px 18px;
  }

  .store-video-title {
    font-size: 22px;
  }

  .store-video-subtitle {
    font-size: 12px;
    max-width: 100%;
  }

  .store-video-btn {
    font-size: 10px;
    padding: 9px 20px;
  }
}

@media (max-width: 480px) {
  .store-video-inner {
    height: 70vh;
    min-height: 360px;
  }

  .store-video-overlay {
    padding: 18px 14px 22px 14px;
  }

  .store-video-title {
    font-size: 19px;
    letter-spacing: .04em;
  }

  .store-video-subtitle {
    font-size: 11.5px;
  }
}

/* =========================================================
   STORE GALLERY (3 SLIDE – FOTO + VIDEO)
   ========================================================= */
.store-gallery {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #fff;
  overflow: hidden;
}
.store-gallery-inner {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 520px;
}

/* Tiap slide: 3 kolom, full-screen */
.store-gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.store-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Kolom dasar */
.store-gallery-col {
  background: #eee;
  overflow: hidden;
  border-radius: 0;
  transform: translateY(0);
  transition: transform .7s ease;
}
.store-gallery-col img,
.store-gallery-col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========= VARIASI SLIDE 1 (offset) ========= */
.store-gallery-slide:nth-child(1) .store-gallery-col:nth-child(1) {
  transform: translateY(-10px);
}
.store-gallery-slide:nth-child(1) .store-gallery-col:nth-child(2) {
  transform: translateY(15px);
}
.store-gallery-slide:nth-child(1) .store-gallery-col:nth-child(3) {
  transform: translateY(-18px);
}

/* ========= VARIASI SLIDE 2 (beda pola) ========= */
.store-gallery-slide:nth-child(2) .store-gallery-col:nth-child(1) {
  transform: translateY(-16px);
}
.store-gallery-slide:nth-child(2) .store-gallery-col:nth-child(2) {
  transform: translateY(0);
}
.store-gallery-slide:nth-child(2) .store-gallery-col:nth-child(3) {
  transform: translateY(14px);
}

/* helper class jika mau dipakai di HTML */
.var-a { transform: translateY(-16px); }
.var-b { transform: translateY(0); }
.var-c { transform: translateY(14px); }

/* VIDEO SLICE (1 video → 3 bagian) */
.slice-left  video { object-position: left center; }
.slice-center video { object-position: center center; }
.slice-right video { object-position: right center; }

/* Dots gallery */
.store-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 8px;
}
.store-gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50px;
  border: 1px solid #000;
  background: transparent;
  transition: all .25s ease;
}
.store-gallery-dot.active {
  width: 26px;
  background: #000;
}

/* CTA Discover More */
.store-gallery-cta {
  padding: 10px 0 40px;
  display: flex;
  justify-content: center;
}
.store-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.9);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}
.store-gallery-link .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.store-gallery-link:hover {
  background: #111827;
  border-color: transparent;
  box-shadow: 0 16px 45px rgba(15,23,42,.45);
  transform: translateY(-1px);
}
.store-gallery-link:hover .arrow {
  transform: translateX(6px);
}

/* =========================================================
   GALLERY RESPONSIVE
   ========================================================= */
/* ============ TABLET & HP — CARD LEBIH KECIL ============ */
@media (max-width: 768px) {

  .product-grid {
    padding: 0 10px 28px 10px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;              /* tetap horizontal */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }

  .product-card {
    flex: 0 0 55%;                  /* ⭐ lebih kecil dari sebelumnya */
    background: transparent;
  }

  /* Kecilkan foto */
  .product-card .thumb {
    aspect-ratio: 4 / 5;           /* tetap proporsional */
  }

  /* Kecilkan teks bawah */
  .product-card .info {
    padding: 10px 4px 14px;
    gap: 2px;
  }

  .product-card .category {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .product-card .name {
    font-size: 11px;
    line-height: 1.3;
  }

  .product-card .price {
    font-size: 12px;
  }
}

/* ============ HP KECIL — CARD LEBIH KECIL LAGI ============ */
@media (max-width: 480px) {

  .product-grid {
    padding: 0 8px 24px 8px;
    gap: 6px;
  }

  .product-card {
    flex: 0 0 48%;                  /* ⭐ lebih kecil, hampir 2 card terlihat */
  }

  .product-card .thumb {
    aspect-ratio: 4 / 5;
  }

  /* teks lebih rapat */
  .product-card .info {
    padding: 8px 2px 12px;
  }

  .product-card .name {
    font-size: 10.5px;
  }

  .product-card .price {
    font-size: 11.5px;
  }
}
