:root {
  --bg: #F8F6F1;
  --card: #FFFDF9;
  --ink: #3A2E1D;
  --mute: #7A6C58;
  --line: #D9D2C3;
  --acc: #6E5B35;
  --gold: #6E5B35;
  --chip: #EFE9DC;
  --hero: #F8F6F1;
  --red: #B42318;
  --c1: #E7B8B2;
  --c2: #B9CDB4;
  --c3: #E8CC85;
  --c4: #C5BADC;
  --c5: #E0A58A;
  --c6: #B5CCDD;
  --btn: #A8503A;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1812;
    --card: #26211A;
    --ink: #F2ECDF;
    --mute: #B7AA90;
    --line: #3A3328;
    --acc: #D8C089;
    --gold: #D8C089;
    --chip: #312B21;
    --hero: #1C1812;
    --red: #F97066;
  }
}

:root[data-theme="dark"] {
  --bg: #1C1812;
  --card: #26211A;
  --ink: #F2ECDF;
  --mute: #B7AA90;
  --line: #3A3328;
  --acc: #D8C089;
  --gold: #D8C089;
  --chip: #312B21;
  --hero: #1C1812;
  --red: #F97066;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Jost, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; }

/* ── Hero ──────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--hero), color-mix(in srgb, var(--c1) 24%, var(--hero)));
  color: var(--ink);
  border-radius: 0;
  border-bottom: 0;
  padding: calc(44px + env(safe-area-inset-top, 0px)) 20px 34px;
}

.in { max-width: 680px; margin: 0 auto; }

.logo {
  display: block;
  background: none;
  padding: 0;
  width: min(240px, 66%);
  margin-bottom: 14px;
}

.logo img { display: block; width: 100%; height: auto; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img { filter: brightness(0) invert(.92) sepia(.25); }
}
:root[data-theme="dark"] .logo img { filter: brightness(0) invert(.92) sepia(.25); }

.eyebrow {
  margin: 0 0 10px;
  font-family: Jost, sans-serif;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

h1 {
  font-size: clamp(32px, 8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 12px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.lead {
  margin: 0 0 24px;
  max-width: 50ch;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.btns { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }
@media (min-width: 520px) { .btns { flex-direction: row; align-items: center; } }

.b1, .b2 {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: Jost, sans-serif;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 4px;
  letter-spacing: .04em;
}

.b1 { background: var(--btn); color: #fff; }
.b2 { border: 1.5px solid var(--ink); color: var(--ink); }

.b1:focus-visible, .b2:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Chips & Material Filters ─────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span, .mat span, .mat button {
  border: 0;
  color: #3A2E1D;
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.mat button {
  appearance: none;
  border: 0;
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  opacity: .75;
  cursor: pointer;
  scroll-snap-align: start;
  transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mat button:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.mat button.active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--ink);
  font-weight: 700;
  transform: none;
}
.mat button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.mat button.btn-all {
  background: var(--chip);
}
.chips span { padding: 6px 12px; font-size: 14px; font-weight: 400; cursor: default; }

.chips span:nth-child(6n+1), .mat .item-mat:nth-child(6n+1) { background: var(--c1); }
.chips span:nth-child(6n+2), .mat .item-mat:nth-child(6n+2) { background: var(--c2); }
.chips span:nth-child(6n+3), .mat .item-mat:nth-child(6n+3) { background: var(--c3); }
.chips span:nth-child(6n+4), .mat .item-mat:nth-child(6n+4) { background: var(--c4); }
.chips span:nth-child(6n+5), .mat .item-mat:nth-child(6n+5) { background: var(--c5); }
.chips span:nth-child(6n), .mat .item-mat:nth-child(6n) { background: var(--c6); }

.strip {
  height: 44px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--c1) 0 16.66%, var(--c2) 0 33.33%, var(--c3) 0 50%, var(--c4) 0 66.66%, var(--c5) 0 83.33%, var(--c6) 0);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50%/16px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50%/16px 100%;
}

/* ── Main Content Wrap ────────────────────────── */
.wrap { max-width: 680px; margin: 0 auto; padding: 8px 16px 80px; }
section { margin-top: 30px; }
h2 { font-size: clamp(20px, 5vw, 24px); margin-bottom: 12px; }
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c3), var(--c2));
}
.no-line h2::after { display: none; }

/* ── Material Filter ──────────────────────────── */
.section-filters {
  position: relative;
  margin-top: 18px;
  margin-bottom: 4px;
  overflow: hidden;
}
.section-filters::before,
.section-filters::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .2s ease;
}
.section-filters::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
  opacity: 0;
}
.section-filters.has-scroll-left::before {
  opacity: 1;
}
.section-filters::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg));
  opacity: 1;
}
.section-filters.at-scroll-end::after {
  opacity: 0;
}
.mat {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 2px 10px;
  margin: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding: 0 4px;
}
.mat::-webkit-scrollbar { display: none; }
.mat::after {
  content: "";
  flex: 0 0 44px;
}

/* ── Steps ────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: transparent;
  border: 0;
  border-left: 4px solid var(--s, var(--acc));
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px 14px;
}
.steps b {
  background: none;
  color: var(--s, var(--acc));
  font: 700 24px/1 "Cormorant Garamond", serif;
  flex: 0 0 22px;
  width: 22px;
  height: auto;
  display: block;
  padding-top: 2px;
}
.steps li span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
  flex: 1;
}
.steps li:nth-child(6n+1) { --s: #C9776F; }
.steps li:nth-child(6n+2) { --s: #7E9B79; }
.steps li:nth-child(6n+3) { --s: #C9A13C; }
.steps li:nth-child(6n+4) { --s: #8B7BB0; }
.steps li:nth-child(6n+5) { --s: #C4694A; }
.steps li:nth-child(6n) { --s: #6E97B3; }

/* ── S&K ──────────────────────────────────────── */
.sk {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c3);
  border-radius: 6px;
  padding: 18px 22px;
}
.sk ol { margin: 0; padding-left: 20px; }
.sk li { margin: 8px 0; padding-left: 4px; font-size: 14.5px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }

/* ── Gallery ──────────────────────────────────── */
.gal {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gal::-webkit-scrollbar { display: none; }
.ph {
  position: relative;
  flex: 0 0 62%;
  max-width: 260px;
  aspect-ratio: 3/4;
  border: 0;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  cursor: zoom-in;
  padding: 0;
}
.ph span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Contact ──────────────────────────────────── */
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 36px 0 8px;
  font-size: 14px;
  flex-wrap: wrap;
}
.contact:before, .contact:after { content: ""; flex: 1; min-width: 20px; height: 1px; background: var(--line); }
.contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color 0.15s ease;
}
.contact a:hover {
  color: var(--btn);
}
.contact i { width: 1px; height: 16px; background: var(--line); flex-shrink: 0; }

footer {
  margin-top: 24px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  padding: 0 12px;
  word-break: break-word;
  text-wrap: pretty;
}

/* ── Floating WhatsApp Button ─────────────────── */
.wa-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, background 0.25s ease;
  animation: wa-pulse 3s infinite 2s;
}

.wa-float:hover {
  background: #20ba59;
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: none;
}

.wa-float:active {
  transform: scale(0.94);
}

.wa-float .wa-icon {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  display: block;
}

/* Tooltip */
.wa-float .wa-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--card, #FFFDF9);
  color: var(--ink, #3A2E1D);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: Jost, system-ui, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line, #D9D2C3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float .wa-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--card, #FFFDF9);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

/* ── Lightbox ─────────────────────────────────── */
#lb { position: fixed; inset: 0; z-index: 20; background: rgba(5, 12, 11, .94); }
#lb[hidden] { display: none; }
.lbx {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(60px + env(safe-area-inset-top, 0px)) 12px calc(76px + env(safe-area-inset-bottom, 0px));
}
.lbx img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lx, .ln {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lx { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
.ln { top: 50%; transform: translateY(-50%); }
.lp { left: 8px; }
.lq { right: 8px; }
.ld { position: absolute; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0 16px; }
.ld i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.ld i.on { background: #fff; }
.lc { position: absolute; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; padding: 0 16px; word-break: break-word; }

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* ── Extra-small: ≤ 359px (iPhone SE, kecil) ── */
@media (max-width: 359px) {
  .hero { padding: calc(28px + env(safe-area-inset-top, 0px)) 14px 24px; }
  h1 { font-size: clamp(26px, 8vw, 38px); }
  .eyebrow { font-size: 10px; letter-spacing: .2em; }
  .wrap { padding: 6px 12px 72px; }
  h2 { font-size: 18px; }
  .chips span, .mat span, .mat button { padding: 6px 10px; font-size: 13px; }
  .gal { margin: 0 -12px; padding: 2px 12px 8px; gap: 8px; }
  .ph { flex: 0 0 72%; max-width: none; }
  .ph span { font-size: 11px; padding: 4px 7px; }
  .steps li { padding: 10px; gap: 10px; }
  .steps b { font-size: 22px; flex: 0 0 22px; }
  .sk { padding: 12px 14px; }
  .sk li { font-size: 14px; }
  .contact { gap: 8px; font-size: 13px; }
  .contact a { max-width: 38vw; font-size: 12px; }
  .lx, .ln { width: 38px; height: 38px; font-size: 22px; }
}

/* ── Small phones: 360px–479px ────────────────── */
@media (min-width: 360px) and (max-width: 479px) {
  .hero { padding: calc(34px + env(safe-area-inset-top, 0px)) 16px 28px; }
  .wrap { padding: 8px 14px 76px; }
  .ph { flex: 0 0 65%; max-width: none; }
  .gal { gap: 10px; }
  .contact a { max-width: 42vw; }
}

/* ── Medium phones / large phones: 480px–639px ── */
@media (min-width: 480px) and (max-width: 639px) {
  .wrap { padding: 8px 20px 80px; }
  .ph { flex: 0 0 48%; max-width: none; }
  .gal { margin: 0 -20px; padding: 2px 20px 8px; }
}

/* ── Small tablets / phablets: 640px+ ─────────── */
@media (min-width: 640px) {
  .hero { padding: calc(48px + env(safe-area-inset-top, 0px)) 28px 40px; }
  .wrap { padding: 12px 24px 80px; }

  /* Gallery becomes a wrapping grid instead of horizontal scroll */
  .gal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow-x: visible;
    margin: 0;
    padding: 2px 0 8px;
    scroll-snap-type: none;
  }
  .ph {
    flex: none;
    max-width: none;
    width: 100%;
    scroll-snap-align: none;
  }

  /* Contact links breathe more */
  .contact a { max-width: none; }
}

/* ── Small WA float on mobile ─────────────────── */
@media (max-width: 640px) {
  .wa-float {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .wa-float .wa-icon {
    width: 28px;
    height: 28px;
  }
  .wa-float .wa-tooltip {
    display: none;
  }
}

/* ── Tablets: 768px+ ──────────────────────────── */
@media (min-width: 768px) {
  .in { max-width: 720px; }
  .wrap { max-width: 720px; }
  .hero { padding: calc(52px + env(safe-area-inset-top, 0px)) 32px 48px; }
  .gal { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  h2 { font-size: 26px; }
  .sk { padding: 20px 24px; }
}

/* ── Large tablets / small desktops: 1024px+ ──── */
@media (min-width: 1024px) {
  .in { max-width: 800px; }
  .wrap { max-width: 800px; padding: 16px 32px 80px; }
  .hero { padding: calc(56px + env(safe-area-inset-top, 0px)) 40px 56px; }
  .gal { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  h2 { font-size: 28px; }
  section { margin-top: 40px; }
  .steps { gap: 14px; }
}

/* ── Desktop: 1280px+ ─────────────────────────── */
@media (min-width: 1280px) {
  .in { max-width: 900px; }
  .wrap { max-width: 900px; }
  .gal { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* ── Landscape phones ─────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px; }
  h1 { font-size: clamp(24px, 6vw, 36px); }
  .strip { height: 28px; }
  .wa-float { width: 44px; height: 44px; bottom: 12px; right: 12px; }
  .wa-float .wa-icon { width: 24px; height: 24px; }
  .wa-float .wa-tooltip { display: none; }
  .lbx { padding: calc(44px + env(safe-area-inset-top, 0px)) 60px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .lx, .ln { width: 36px; height: 36px; font-size: 20px; }
}

/* ── Touch device optimizations ───────────────── */
@media (hover: none) and (pointer: coarse) {
  .mat button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; }
  .chips span { min-height: 36px; }
}

/* ===== Empty filter message ===== */
.empty-filter {
  display: none;
  color: var(--mute);
  padding: 16px 0;
}
.empty-filter.is-visible {
  display: block;
}

/* ═══════════════════════════════════════════════
   SITE NAVIGATION
   ═══════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 18;
  background: color-mix(in srgb, var(--hero) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(58, 46, 29, 0.04);
}
.site-nav-in {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .02em;
  flex-shrink: 0;
  line-height: 1;
}
.site-nav-brand img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav-links::-webkit-scrollbar { display: none; }
.site-nav-link {
  text-decoration: none;
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s ease, background .15s ease;
}
.site-nav-link:hover {
  color: var(--ink);
  background: var(--chip);
}
.site-nav-link.active {
  color: var(--ink);
  background: var(--chip);
  font-weight: 600;
}
.site-nav-btn-wa {
  text-decoration: none;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.site-nav-btn-wa:hover {
  background: #20ba59;
  transform: translateY(-1px);
}
.site-nav-wa-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .site-nav {
    padding: 10px 14px;
  }
  .site-nav-in {
    gap: 10px;
  }
  .site-nav-brand img + .site-nav-brand-text {
    display: none;
  }
  .site-nav-brand {
    font-size: 20px;
  }
  .site-nav-brand img {
    height: 30px;
  }
  .site-nav-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  .site-nav-btn-wa {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════
   HOME CATALOG PREVIEW SECTION
   ═══════════════════════════════════════════════ */
.section-home-catalog {
  margin-top: 36px;
  padding: 24px 0 10px;
  border-top: 1px dashed var(--line);
}
.section-head-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
}
.section-head-row h2 {
  margin-bottom: 2px;
}
.section-sub {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.btn-link-all {
  text-decoration: none;
  color: var(--btn);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform .15s ease;
}
.btn-link-all:hover {
  transform: translateX(3px);
}
.catalog-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 18px 0 26px;
  --slider-gap: 12px;
}
@media (min-width: 640px) {
  .catalog-slider-wrapper {
    --slider-gap: 16px;
  }
}
.catalog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--slider-gap);
  width: 100%;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 16px 0 20px;
  align-items: center;
}
.cat-card-slide {
  flex: 0 0 48%;
  width: 48%;
  max-width: 48%;
  min-width: 0;
  box-sizing: border-box;
  opacity: 0.3;
  transform: scale(0.92);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.95s ease, border-color 0.95s ease;
}
@media (min-width: 640px) {
  .cat-card-slide {
    flex: 0 0 calc((100% - (var(--slider-gap) * 2)) / 3);
    width: calc((100% - (var(--slider-gap) * 2)) / 3);
    max-width: calc((100% - (var(--slider-gap) * 2)) / 3);
  }
}
.cat-card-slide.is-center {
  opacity: 1;
  transform: scale(1.09) translateY(-8px);
  box-shadow: 0 18px 36px rgba(58, 46, 29, 0.22);
  border-color: var(--gold, #6E5B35);
  z-index: 5;
}
.cat-card-slide.is-center .cat-card-title {
  color: var(--ink);
}
@media (max-width: 480px) {
  .cat-card-slide .cat-card-body {
    padding: 10px 8px;
  }
  .cat-card-slide .cat-card-title {
    font-size: 15px;
    margin-bottom: 2px;
  }
  .cat-card-slide .cat-card-code {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .cat-card-slide .cat-card-tags .chip {
    font-size: 10px;
    padding: 2px 6px;
  }
}
.cat-card-title-link {
  text-decoration: none;
  color: inherit;
}
.cat-card-title-link:hover .cat-card-title {
  color: var(--btn);
}
.catalog-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .catalog-home-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
.cat-card-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  overflow: hidden;
}
.cat-card-img-video {
  background: #1a1a1a;
}
.cat-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.cat-price-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(58, 46, 29, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.cat-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.cat-card-title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.cat-card-code {
  font-size: 12px;
  color: var(--mute);
  margin: 0 0 8px;
  line-height: 1.35;
}
.cat-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}
.cat-card-code {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--mute);
}
.cat-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.cat-card-tags .chip {
  font-size: 11px;
  padding: 2px 7px;
}
.cat-card-action {
  margin-top: auto;
}
.cat-btn-wa {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #25D366;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .15s ease;
}
.cat-btn-wa:hover {
  background: #20ba59;
}
.catalog-home-footer {
  text-align: center;
  margin-top: 24px;
}
.b-center {
  max-width: 380px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   FULL CATALOG PAGE (/katalog)
   ═══════════════════════════════════════════════ */
.hero-catalog {
  padding-bottom: 24px;
}
.hero-catalog .in {
  max-width: 900px;
}
.wrap-wide {
  max-width: 900px;
}
.catalog-search-wrap {
  position: relative;
  max-width: 460px;
  margin: 20px 0 0;
}
.catalog-search-wrap input {
  width: 100%;
  padding: 12px 38px 12px 18px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.catalog-search-wrap input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(110, 91, 53, .15);
}
.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--mute);
  cursor: pointer;
  line-height: 1;
}
.catalog-status-bar {
  margin: 14px 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mute);
}
.catalog-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .catalog-main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 960px) {
  .catalog-main-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
.catalog-card-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.catalog-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.catalog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: zoom-in;
  overflow: hidden;
}
.catalog-pill-price {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(58, 46, 29, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.catalog-pill-status {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(180, 35, 24, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
}
.catalog-zoom-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 12px 6px 6px;
  opacity: 0;
  transition: opacity .2s ease;
}
.catalog-card-media:hover .catalog-zoom-hint {
  opacity: 1;
}
.catalog-card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.catalog-item-title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.catalog-item-spec {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.35;
}
.catalog-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
}
.catalog-item-desc {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
  opacity: .85;
}
.catalog-card-chips .chip {
  font-size: 11px;
  padding: 3px 8px;
}
.catalog-card-action {
  margin-top: auto;
}
.btn-wa-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 6px;
  transition: background .15s ease, transform .15s ease;
}
.btn-wa-order:hover {
  background: #20ba59;
  transform: translateY(-1px);
}
.btn-wa-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.btn-wa-order-lg {
  padding: 12px 20px;
  font-size: 15px;
}
.empty-catalog-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--mute);
}

/* ═══════════════════════════════════════════════
   CATALOG DETAIL / LIGHTBOX MODAL
   ═══════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 16, 0.65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform .2s ease;
}
.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--mute);
  padding: 4px 8px;
  transition: color .15s ease;
}
.modal-close:hover {
  color: var(--ink);
}
.modal-catalog-detail {
  width: min(720px, 100%);
  padding: 24px;
  position: relative;
}
.modal-catalog-detail .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}
.modal-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .modal-catalog-grid {
    grid-template-columns: 260px 1fr;
    gap: 22px;
  }
}
.modal-catalog-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.modal-catalog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity .15s ease;
}
.modal-catalog-img-wrap img:hover {
  opacity: .95;
}
.modal-img-fullscreen-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: rgba(20, 16, 12, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background .15s ease, transform .15s ease;
  z-index: 2;
}
.modal-img-fullscreen-btn:hover {
  background: rgba(20, 16, 12, 0.95);
  transform: scale(1.03);
}

/* Fullscreen Photo Lightbox */
.photo-fs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.photo-fs-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.photo-fs-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  transition: background .15s ease, transform .15s ease;
}
.photo-fs-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.photo-fs-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.photo-fs-container img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
  user-select: none;
}
.photo-fs-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 12px;
  pointer-events: none;
}
.modal-catalog-content {
  display: flex;
  flex-direction: column;
}
.modal-cat-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.modal-cat-code {
  font-size: 13.5px;
  color: var(--mute);
  margin-bottom: 6px;
}
.modal-cat-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--acc);
  margin-bottom: 10px;
}
.modal-cat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: pretty;
  white-space: pre-line;
}
.modal-cat-desc:empty {
  display: none;
}
.modal-cat-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.modal-cat-cta {
  margin-top: auto;
}

/* ═══════════════════════════════════════════════
   VIDEO CATALOG SUPPORT
   ═══════════════════════════════════════════════ */

/* Video card in public catalog grid */
.catalog-card-media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  cursor: pointer;
  overflow: hidden;
  background: #1a1a1a;
}
.catalog-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.catalog-video-badge,
.catalog-stack-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(58, 46, 29, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  pointer-events: none;
}
.catalog-card-media-video:hover .catalog-zoom-hint {
  opacity: 1;
}
.modal-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.72);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.modal-media-nav:hover,
.modal-media-nav:focus-visible {
  background: rgba(20, 16, 12, 0.95);
}
.modal-media-prev { left: 8px; }
.modal-media-next { right: 8px; }
.modal-media-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.modal-media-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
}
.modal-media-dot.is-active {
  background: #fff;
}

/* Global reset for hidden attribute */
[hidden] {
  display: none !important;
}

/* Video in detail modal */
.modal-catalog-img-wrap.is-portrait-video {
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 520px);
}
.modal-catalog-img-wrap.is-landscape-video {
  aspect-ratio: 16 / 9;
}
.modal-catalog-img-wrap img[hidden],
.modal-catalog-img-wrap video[hidden] {
  display: none !important;
}
.modal-catalog-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #000;
}

/* Fullscreen mode: keep native aspect ratio without zoom/crop */
video:fullscreen,
video:-webkit-full-screen,
.modal-catalog-img-wrap video:fullscreen,
.modal-catalog-img-wrap video:-webkit-full-screen {
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #000 !important;
}

/* Video in admin gallery grid */
.catalog-admin-video {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

/* Video badge in admin */
.badge-video {
  background: #5046e5;
  color: #fff;
  font-size: 10px;
}
