/* =========================================================
   Kral Coffee — homepage styles
   Palette & type mirror the spiritjayacoffee.com layout.
   ========================================================= */

:root {
  --cream: #fffff3;
  --ink: #1d1e20;
  --ink-soft: #55565a;
  --dark: #1b1a02;      /* header-on-scroll + footer */
  --gold: #d29a00;
  --gold-hover: #b98800;
  --line: rgba(29, 30, 32, .14);
  --line-light: rgba(255, 255, 243, .35);

  --header-h: 104px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost-dark:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease), transform .35s var(--ease);
}

/* Background appears as soon as the user scrolls down. */
.site-header.is-scrolled {
  background: var(--dark);
  border-bottom-color: rgba(255, 255, 243, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 72px;
  width: auto;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.brand:hover img { opacity: .85; }
.site-header.is-scrolled .brand img { height: 60px; }

/* ---------- Nav ---------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  color: var(--cream);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  transition: color .25s var(--ease);
}

/* underline-grow hover */
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

/* "Hubungi Kami" — minimal outlined pill, no fill */
.nav-cta {
  margin-left: 10px;
  padding: 11px 24px;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}

/* ---------- Dropdown ---------- */
.has-dropdown { position: relative; }

.caret {
  width: 11px;
  height: 8px;
  transition: transform .3s var(--ease);
}
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 8px;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 243, .12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease),
              visibility .25s var(--ease);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--cream);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14.5px;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              padding-left .22s var(--ease);
}
.dropdown a:hover {
  background: rgba(210, 154, 0, .16);
  color: var(--gold);
  padding-left: 20px;
}

/* ---------- Burger ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--cream);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
}

.hero-media,
.about-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 40% black wash over the video */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}
.overlay-soft { background: rgba(27, 26, 2, .45); }

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 243, .9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  background: var(--cream);
  padding: 88px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.features-title {
  text-align: center;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  margin-bottom: 56px;
}

/* Ikon PNG: tinggi seragam, lebar mengikuti proporsi gambar (logo Kopaja lebih lebar). */
.feature-icon {
  width: auto;
  height: 88px;
  margin-bottom: 22px;
  transition: transform .35s var(--ease);
}
.feature:hover .feature-icon { transform: translateY(-4px) scale(1.06); }

.feature h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.feature p {
  color: var(--ink-soft);
  font-size: .9375rem;
  margin: 0;
}

/* =========================================================
   ABOUT (media left / text right)
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  min-height: 640px;
}

.about-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(24px, 4vw, 64px);
}

/* PNG transparan — tanpa latar, menyatu dengan warna krem section */
.about-side-img {
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.about-body {
  display: flex;
  align-items: center;
  padding: 96px clamp(24px, 5vw, 80px);
}

.about-inner { max-width: 560px; }

.about-inner h2 {
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  margin-bottom: 24px;
}

.about-inner p {
  color: var(--ink-soft);
  font-size: .9688rem;
}

/* Label tombol panjang — di layar sempit boleh dua baris, tetap rapi & rata tengah */
.about-inner .btn { margin-top: 18px; line-height: 1.35; padding: 14px 30px; text-align: center; }

/* =========================================================
   HIGHLIGHTS
   ========================================================= */
.highlights,
.locations { padding: 96px 0; }

.highlights { background: #f6f5e6; }
.locations { background: var(--cream); }

.highlights-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.highlights-head h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.highlights-head p { color: var(--ink-soft); margin: 0; }

.highlights-grid,
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight {
  padding: 34px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.highlight:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 0, .55);
  box-shadow: 0 18px 40px rgba(27, 26, 2, .1);
}

.highlight .num {
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.highlight h3 { font-size: 1.25rem; }
.highlight p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

/* ---------- Locations ---------- */
.location-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaee;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 154, 0, .55);
  box-shadow: 0 18px 40px rgba(27, 26, 2, .1);
}
.location-card h3 { font-size: 1.1875rem; margin-bottom: 14px; }
.location-card p { color: var(--ink-soft); font-size: .9375rem; }
.location-card .muted {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--gold);
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  padding: 150px 0;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.125rem);
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255, 255, 243, .9);
  margin-bottom: 34px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  padding-top: 76px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-brand img {
  height: 76px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  color: rgba(255, 255, 243, .65);
  font-size: .9375rem;
  max-width: 340px;
  margin: 0;
}

.site-footer h4 {
  font-size: 1.125rem;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 11px;
  color: rgba(255, 255, 243, .65);
  font-size: .9375rem;
}

.site-footer li a {
  position: relative;
  transition: color .25s var(--ease);
}
.site-footer li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-footer li a:hover { color: var(--gold); }
.site-footer li a:hover::after { transform: scaleX(1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 243, .1);
  padding: 24px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: .8125rem;
  color: rgba(255, 255, 243, .5);
}

/* =========================================================
   HALAMAN KATALOG — TOKO KOPI
   ========================================================= */

/* Halaman tanpa hero video: header selalu berlatar solid. */
.site-header.is-solid {
  background: var(--dark);
  border-bottom-color: rgba(255, 255, 243, .08);
}

.nav-link.is-active { color: var(--gold); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-cta.is-active { color: var(--cream); }

.catalog-page {
  padding: calc(var(--header-h) + 44px) 0 96px;
  background: var(--cream);
  min-height: 70vh;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.breadcrumb svg { width: 7px; height: 11px; flex: none; opacity: .7; }
.breadcrumb a { transition: opacity .25s var(--ease); }
.breadcrumb a:hover { opacity: .65; text-decoration: underline; }
.breadcrumb span { color: var(--ink-soft); }

/* ---------- Susunan 2 kolom: sidebar + grid ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

/* ---------- Sidebar kategori ---------- */
.sidebar-eyebrow {
  margin: 0 0 18px;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.cat-toggle { display: none; }

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.cat-item svg {
  width: 7px;
  height: 11px;
  flex: none;
  opacity: .45;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.cat-item:hover {
  color: var(--gold);
  padding-left: 8px;
}
.cat-item:hover svg { transform: translateX(3px); opacity: 1; }
.cat-item.is-active { color: var(--gold); }
.cat-item.is-active svg { opacity: 1; }

/* ---------- Kepala katalog ---------- */
.catalog-head { margin-bottom: 30px; }
.catalog-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 6px;
}
.catalog-head p {
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* ---------- Grid produk ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}

.product-card[hidden] { display: none; }

.product-card {
  display: flex;
  flex-direction: column;
}

.product-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f1efdf;
  border: 1px solid var(--line);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s var(--ease);
}
.product-link:hover .product-media img { transform: scale(1.06); }
.product-link:hover .product-media { border-color: rgba(210, 154, 0, .55); }

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  transition: color .25s var(--ease);
}
.product-link:hover h3 { color: var(--gold); }

.product-price {
  margin: auto 0 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--gold);
}

/* ---------- Tombol pesan via WhatsApp ---------- */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 11px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .28s var(--ease), border-color .28s var(--ease),
              color .28s var(--ease), transform .28s var(--ease);
}
.btn-wa svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #25d366;
  transition: color .28s var(--ease);
}
.btn-wa:hover {
  background: #128c4a;
  border-color: #128c4a;
  color: #fff;
  transform: translateY(-2px);
}
.btn-wa:hover svg { color: #fff; }
.btn-wa:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.catalog-empty {
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: .9375rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .features-grid { gap: 36px; }
  .highlights-grid,
  .location-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .catalog-layout { grid-template-columns: 210px 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 84px; }

  .brand img { height: 56px; }
  .site-header.is-scrolled .brand img { height: 48px; }
  .footer-brand img { height: 62px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--dark);
    border-top: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .nav.is-open {
    max-height: 80vh;
    overflow-y: auto;
    border-top-color: rgba(255, 255, 243, .08);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
  }
  .nav-link { padding: 14px 0; justify-content: space-between; }
  .nav-link::after { left: 0; right: 0; bottom: 8px; }

  .nav-cta {
    margin: 14px 0 0;
    justify-content: center;
    padding: 14px 24px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 243, .04);
    border-radius: 10px;
    max-height: 0;
    padding: 0 8px;
    overflow: hidden;
    transition: max-height .35s var(--ease), padding .35s var(--ease);
  }
  .has-dropdown.is-open > .dropdown { max-height: 260px; padding: 8px; }

  .features { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-title { margin-bottom: 36px; }
  .feature-icon { height: 72px; }

  .about { grid-template-columns: 1fr; }
  .about-media { position: relative; height: auto; padding: 48px 24px 0; }
  .about-side-img { max-width: 420px; }
  .about-body { padding: 64px 24px; }

  .highlights, .locations { padding: 64px 0; }
  .highlights-grid, .location-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 110px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  /* ---- Katalog: sidebar jadi dropdown ---- */
  .catalog-page { padding: calc(var(--header-h) + 32px) 0 72px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 28px; }

  .cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfaee;
    cursor: pointer;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .cat-toggle svg {
    width: 11px;
    height: 8px;
    flex: none;
    transition: transform .3s var(--ease);
  }
  .cat-toggle.is-open svg { transform: rotate(180deg); }

  .cat-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), margin-top .35s var(--ease);
  }
  .cat-list.is-open { max-height: 70vh; overflow-y: auto; margin-top: 8px; }

  .cat-item { padding: 13px 18px; }
  .cat-item:hover { padding-left: 24px; }

  .product-grid { gap: 28px 20px; }
}

@media (max-width: 520px) {
  /* Mobile: 2 produk per baris, kartu dirapatkan agar muat. */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-media { border-radius: 10px; }
  .product-card h3,
  .product-card .product-title { margin: 12px 0 6px; font-size: .9375rem; }
  .product-price { font-size: .75rem; }
  .badge { font-size: .625rem; padding: 4px 8px; }
  .product-badges { top: 8px; left: 8px; }
  .btn-wa { margin-top: 10px; padding: 9px 6px; gap: 5px; font-size: .6875rem; white-space: normal; text-align: center; line-height: 1.2; }
  .btn-wa svg { width: 15px; height: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* =========================================================
   CMS — komponen tambahan (toko, produk, artikel)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--dark); padding: 10px 16px; border-radius: 8px; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; }
.skip-link:focus { top: 12px; }

.preview-note { background: #fff4d0; border: 1px solid #ecd28a; border-radius: 10px; padding: 10px 16px; font-size: .875rem; margin: 0 0 24px; }

/* ---------- Kategori sebagai tautan ---------- */
a.cat-item { text-decoration: none; }
.cat-item small { font-size: .75em; color: var(--ink-soft); letter-spacing: 0; font-weight: 400; }
.cat-item.is-child { padding-left: calc(var(--depth, 1) * 16px); font-size: .9375rem; text-transform: none; letter-spacing: .01em; }
.sidebar-eyebrow-gap { margin-top: 36px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-family: Montserrat, system-ui, sans-serif; font-size: .75rem; color: var(--ink);
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold); }
.tag-chip.is-active { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.tag-chip small { opacity: .6; }

/* ---------- Kepala katalog + urutkan ---------- */
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.catalog-sort select {
  appearance: none; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; color: var(--ink);
  background: #fbfaee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231d1e20' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 38px 10px 16px; cursor: pointer;
}
.catalog-sort select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.term-intro { color: var(--ink-soft); max-width: 760px; margin: -8px 0 30px; }

/* ---------- Kartu produk: badge & harga ---------- */
.product-media { display: grid; place-items: center; }
.product-noimg { font-size: 3rem; opacity: .4; }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.badge {
  display: inline-block; font-family: Montserrat, system-ui, sans-serif; font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; line-height: 1;
}
.badge-sale { background: #b3261e; color: #fff; }
.badge-indent { background: #fff1c9; color: #7a5200; }
.badge-soldout { background: var(--dark); color: var(--cream); }
.product-card.is-soldout .product-media img { filter: grayscale(.6); opacity: .75; }
.product-card .product-title { margin: 18px 0 8px; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; transition: color .25s var(--ease); }
.product-link:hover .product-title { color: var(--gold); }
.product-price del { color: var(--ink-soft); opacity: .75; margin-right: 6px; }
.product-price ins { text-decoration: none; font-weight: 600; }
.price-ask { font-style: italic; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; flex-wrap: wrap; }
.page-link, .page-gap {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font-family: Montserrat, system-ui, sans-serif; font-size: .875rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.page-gap { border-color: transparent; }
a.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.is-current { background: var(--dark); border-color: var(--dark); color: var(--cream); }

/* ---------- Halaman produk ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f1efdf; border: 1px solid var(--line); }
.pd-slide { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-slide .product-noimg { font-size: 5rem; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 243, .9); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: background-color .2s var(--ease); z-index: 2;
}
.pd-nav:hover { background: var(--gold); color: var(--cream); }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumb { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #f1efdf; opacity: .7; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { border-color: var(--gold); opacity: 1; }

.pd-eyebrow { margin: 0 0 12px; font-family: Montserrat, system-ui, sans-serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pd-eyebrow a:hover { text-decoration: underline; }
.pd-title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.pd-price { font-family: Montserrat, system-ui, sans-serif; font-size: 1.5rem; color: var(--gold); margin: 0 0 16px; }
.pd-price del { font-size: 1.05rem; color: var(--ink-soft); margin-right: 10px; }
.pd-price ins { text-decoration: none; font-weight: 600; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .875rem; margin-bottom: 22px; flex-wrap: wrap; }
.pd-stock .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd-stock.is-ready { background: #e3f3e8; color: #1f6a39; }
.pd-stock.is-indent { background: #fff1c9; color: #7a5200; }
.pd-stock.is-soldout { background: #f1e3e1; color: #9b2a21; }
.pd-stock-note { font-weight: 400; }
.pd-short { color: var(--ink-soft); margin-bottom: 26px; }
.btn-wa-lg { display: inline-flex; align-items: center; gap: 10px; }
.btn-wa-lg svg { width: 20px; height: 20px; }
.pd-meta { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9375rem; }
.pd-meta > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 6px 0; align-items: baseline; }
.pd-meta dt { color: var(--ink-soft); font-family: Montserrat, system-ui, sans-serif; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pd-meta dd { margin: 0; }
.pd-meta dd a:not(.tag-chip):hover { color: var(--gold); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 24px; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; }
.share span { color: var(--ink-soft); }
.share a, .share button { color: var(--ink); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); text-decoration: none; }
.share a:hover, .share button:hover { color: var(--gold); border-color: var(--gold); }

.pd-tabs { margin-top: 72px; }
.pd-tablist { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.pd-tablist button {
  background: none; border: 0; padding: 0 0 14px; margin-bottom: -1px; cursor: pointer;
  font-family: Montserrat, system-ui, sans-serif; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pd-tablist button.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.pd-panel { max-width: 820px; }
.pd-info { width: 100%; max-width: 680px; border-collapse: collapse; }
.pd-info th, .pd-info td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-info th { width: 180px; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }

.related-block { margin-top: 84px; }
.related-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.related-sub { color: var(--ink-soft); font-size: .9375rem; margin-bottom: 30px; }
.related-title + .product-grid, .related-title + .post-grid { margin-top: 26px; }

/* ---------- Tipografi konten ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: #2b2c2e; overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 1.8em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.6em 0; padding: .6em 1.4em; border-left: 3px solid var(--gold); background: #f6f5e6; font-style: italic; border-radius: 0 10px 10px 0; }
.prose pre { background: var(--dark); color: var(--cream); padding: 16px 20px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.prose img { height: auto; border-radius: 12px; margin: 1.4em auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #f6f5e6; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- Artikel ---------- */
.blog-head { max-width: 760px; margin-bottom: 34px; }
.blog-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 10px; }
.blog-head p { color: var(--ink-soft); margin: 0; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post-card { display: flex; flex-direction: column; }
.post-card-media { display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #f1efdf; border: 1px solid var(--line); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-ph { display: grid; place-items: center; height: 100%; font-size: 3.2rem; color: var(--gold); opacity: .5; font-weight: 700; }
.post-card-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: Montserrat, system-ui, sans-serif; font-size: .75rem; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 10px; }
.post-meta a { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.post-card-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; }
.post-card-title a { transition: color .25s var(--ease); }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { color: var(--ink-soft); font-size: .9375rem; margin: 0 0 14px; }
.post-card-more { margin-top: auto; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; font-weight: 500; color: var(--ink); }
.post-card-more:hover { color: var(--gold); }

.article { max-width: 1060px; margin: 0 auto; }
.article-head { max-width: 800px; margin: 0 auto 30px; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; }
.article-cover { margin: 0 0 48px; border-radius: 18px; overflow: hidden; background: #f1efdf; }
.article-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.article-layout { max-width: 760px; margin: 0 auto; }
.article-layout.has-toc { max-width: none; display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .875rem; }
.toc summary { font-family: Montserrat, system-ui, sans-serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); cursor: pointer; margin-bottom: 12px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); line-height: 1.4; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc li.toc-l3 a { padding-left: 28px; font-size: .8125rem; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-left-color: var(--gold); }
.article-tags { margin: 36px 0 0; }

/* ---------- Beranda: section tambahan ---------- */
.home-products, .home-posts { padding: 96px 0; }
.home-products { background: var(--cream); }
.home-posts { background: #f6f5e6; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; max-width: none; }
.section-head-row > div { max-width: 640px; }

/* ---------- Pencarian & 404 ---------- */
.search-form { display: flex; gap: 10px; margin-top: 22px; max-width: 620px; }
.search-form input {
  flex: 1; font: inherit; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.search-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.notfound { text-align: center; }
.notfound .search-form { margin: 26px auto 30px; }
.notfound-code { font-family: Montserrat, system-ui, sans-serif; font-size: clamp(4rem, 12vw, 8rem); font-weight: 600; color: var(--gold); line-height: 1; margin: 0 0 10px; }
.notfound .related-block { text-align: left; }

/* ---------- Footer: sosial & pencarian ---------- */
.footer-social { display: flex !important; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px !important; }
.footer-social li { margin: 0 !important; }
.footer-search { display: flex; margin-top: 22px; border: 1px solid rgba(255,255,243,.25); border-radius: 999px; overflow: hidden; max-width: 320px; }
.footer-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); padding: 11px 16px; font: inherit; font-size: .875rem; }
.footer-search input::placeholder { color: rgba(255,255,243,.5); }
.footer-search input:focus { outline: none; }
.footer-search button { background: transparent; border: 0; color: var(--cream); padding: 0 14px; cursor: pointer; }
.footer-search button svg { width: 18px; height: 18px; }
.footer-search:focus-within { border-color: var(--gold); }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout.has-toc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; background: #f6f5e6; border-radius: 12px; padding: 16px 20px; margin-bottom: 32px; }
  .toc ol { border-left: 0; }
}
@media (max-width: 880px) {
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .pd-tabs { margin-top: 48px; }
  .pd-tablist { gap: 22px; }
  .related-block { margin-top: 64px; }
  .home-products, .home-posts { padding: 64px 0; }
  .catalog-head { align-items: flex-start; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .pd-meta > div { grid-template-columns: 1fr; gap: 2px; }
  .pd-info th { width: 120px; }
}

/* Menu bertambah (Artikel): rapatkan di layar menengah agar tidak turun baris. */
.nav-link { white-space: nowrap; }
@media (min-width: 881px) and (max-width: 1180px) {
  .nav-list { gap: 0; }
  .nav-link { padding: 10px 10px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
  .nav-cta { margin-left: 6px; padding: 10px 18px; }
  .brand img { height: 58px; }
}

/* =========================================================
   HALAMAN KEMITRAAN (/kemitraan)
   ========================================================= */
.kmt-page { padding-top: var(--header-h); background: var(--cream); }

.kmt-headline { background: #2a2106; color: var(--cream); text-align: center; padding: 14px 0; }
.kmt-headline h1 { margin: 0; font-size: clamp(.9375rem, 1.5vw, 1.125rem); font-weight: 500; letter-spacing: .02em; line-height: 1.4; }

.kmt-banner { background: var(--dark); }
.kmt-banner img { width: 100%; height: auto; aspect-ratio: 1920 / 720; object-fit: cover; }

.kmt-title h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 14px; }
.kmt-title::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); }

.kmt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 44px; }
.kmt-head > p { max-width: 380px; margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }

.kmt-about, .kmt-packages, .kmt-products { padding: 88px 0; }
.kmt-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 44px; }
.kmt-about-media { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #f1efdf; }
.kmt-about-media img { width: 100%; height: auto; }
.kmt-about-body p { color: var(--ink-soft); font-size: .9688rem; text-align: justify; }
.kmt-about-body .btn { margin-top: 12px; }

.kmt-packages { background: #f6f5e6; }
.kmt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kmt-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.kmt-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27, 26, 2, .1); border-color: rgba(210, 154, 0, .45); }
.kmt-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.kmt-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: #f1efdf; }
.kmt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.kmt-card:hover .kmt-card-media img { transform: scale(1.05); }
.kmt-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.kmt-card-meta { margin: 0 0 8px; font-family: Montserrat, system-ui, sans-serif; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.kmt-card h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 8px; transition: color .25s var(--ease); }
.kmt-card:hover h3 { color: var(--gold); }
.kmt-card-body > p:not(.kmt-card-meta) { color: var(--ink-soft); font-size: .875rem; margin: 0 0 14px; }
.kmt-card-more { margin-top: auto; font-family: Montserrat, system-ui, sans-serif; font-size: .8125rem; font-weight: 500; }
.kmt-more { text-align: center; margin-top: 44px; }

.product-card.is-placeholder .product-media img { opacity: .55; }
.product-card.is-placeholder .product-title { color: var(--ink-soft); }
.product-card.is-placeholder .product-badges { left: auto; right: 10px; align-items: flex-end; }
.product-card.is-placeholder .product-price { margin-top: 0; }

@media (max-width: 1024px) {
  .kmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .kmt-about, .kmt-packages, .kmt-products { padding: 64px 0; }
  .kmt-about-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .kmt-head { margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .kmt-headline { padding: 12px 0; }
  .kmt-grid { grid-template-columns: 1fr; }
  .kmt-about-body p { text-align: left; }
}

/* Breadcrumb panjang (kategori bertingkat) boleh turun baris di layar kecil. */
.breadcrumb { flex-wrap: wrap; row-gap: 6px; }
