/* =========================================================
   SUSHYDECOR
   KATALOG.CSS
   FULL CATALOG PAGE STYLING

   VERSION — PREMIUM / RESPONSIVE / CONSOLIDATED

   CATATAN:
   - Tidak mengubah HTML
   - Tidak mengubah JavaScript
   - Tidak mengubah ID / class existing
   - Selector katalog utama dibuat scoped ke #katalog
   - Kompatibel dengan main.js
   - Header mobile mengikuti pola index.html
   - Tidak menggunakan selector Baju Bodo
   - Tidak menggunakan selector lightbox lama
   ========================================================= */

/* =========================================================
   01. KATALOG DESIGN TOKENS
   ========================================================= */

:root {
  --katalog-primary: #7f8f52;
  --katalog-primary-dark: #687640;
  --katalog-primary-light: #a4b178;

  --katalog-gold: #b79a62;
  --katalog-gold-light: #d8c7a5;
  --katalog-gold-soft: #eee4d2;

  --katalog-text: #302d28;
  --katalog-text-soft: #686158;
  --katalog-text-light: #91887c;

  --katalog-bg: #faf8f3;
  --katalog-bg-soft: #f5f1e8;
  --katalog-white: #ffffff;

  --katalog-border: #e5dccd;
  --katalog-border-light: #eee7da;

  --katalog-shadow: 0 10px 35px rgba(67, 57, 43, 0.08);

  --katalog-shadow-hover: 0 20px 50px rgba(67, 57, 43, 0.15);

  --katalog-radius: 18px;

  --katalog-transition: 0.3s ease;
}

/* =========================================================
   02. PAGE RESET
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.9),
      transparent 38%
    ),
    linear-gradient(180deg, #fffdf9 0%, #faf8f3 48%, #f7f3eb 100%);

  color: var(--katalog-text);

  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;

  line-height: 1.6;

  overflow-x: clip;
}

body,
button,
input,
select {
  font-family: inherit;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

/* =========================================================
   03. CONTAINER
   ========================================================= */

.container {
  width: min(calc(100% - 40px), 1180px);

  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   04. HEADER / NAVBAR
   KATALOG — STICKY ALL DEVICES
   ========================================================= */

html {
  scroll-padding-top: 80px;
}

/* Header katalog selalu menempel di viewport */
body:has(#katalog) .site-header {
  position: -webkit-sticky !important;
  position: sticky !important;

  top: 0 !important;

  z-index: 9999 !important;

  width: 100%;

  margin: 0;

  background: rgba(255, 253, 249, 0.97);

  border-bottom: 1px solid rgba(218, 207, 190, 0.85);

  box-shadow: 0 4px 18px rgba(57, 47, 34, 0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  isolation: isolate;
}

/*
 * Container header tetap menjadi acuan
 * untuk posisi hamburger + dropdown mobile.
 */
body:has(#katalog) .site-header > .container {
  position: relative;

  min-height: 78px;

  display: flex;
  align-items: center;

  width: min(calc(100% - 40px), 1180px);

  margin-left: auto;
  margin-right: auto;

  gap: 26px;

  box-sizing: border-box;
}

/* =========================================================
   05. BRAND
   ========================================================= */

.brand {
  flex: 0 0 auto;
}

.brand > a {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  border-radius: 50%;
}

.brand img {
  display: block;

  width: 58px;
  height: 58px;

  flex: 0 0 58px;

  box-sizing: border-box;

  padding: 5px;

  object-fit: contain;

  object-position: center;

  border: 1.5px solid #d6b66a;

  border-radius: 50%;

  box-shadow:
    0 0 0 3px rgba(214, 182, 106, 0.14),
    0 5px 16px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.brand > a:hover .brand img {
  transform: scale(1.04);

  box-shadow:
    0 0 0 4px rgba(214, 182, 106, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.2);

  filter: brightness(1.02);
}

.brand > a:focus-visible .brand img {
  outline: 2px solid #d8b96f;

  outline-offset: 4px;
}

.brand-text {
  display: flex;

  flex-direction: column;

  justify-content: center;

  min-width: 0;

  line-height: 1.15;
}

.brand-name {
  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 20px;

  font-weight: 700;

  white-space: nowrap;
}

.brand-tagline {
  margin-top: 4px;

  color: var(--katalog-text-light);

  font-size: 9px;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* =========================================================
   06. MAIN NAVIGATION
   ========================================================= */

.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  display: flex;

  align-items: center;

  gap: 8px;

  margin: 0;

  padding: 0;

  list-style: none;
}

.main-navigation a {
  position: relative;

  display: inline-flex;

  align-items: center;

  min-height: 40px;

  padding: 0 13px;

  color: var(--katalog-text-soft);

  font-size: 13px;

  font-weight: 500;

  white-space: nowrap;

  transition: color var(--katalog-transition);
}

.main-navigation a::after {
  content: "";

  position: absolute;

  left: 13px;
  right: 13px;

  bottom: 3px;

  height: 1px;

  background: var(--katalog-primary);

  transform: scaleX(0);

  transform-origin: center;

  transition: transform var(--katalog-transition);
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  color: var(--katalog-primary-dark);
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
  transform: scaleX(1);
}

/* =========================================================
   07. HEADER ACTION
   ========================================================= */

.header-action {
  flex: 0 0 auto;
}

.header-action a {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 40px;

  padding: 0 18px;

  border-radius: 9px;

  background: var(--katalog-primary);

  color: var(--katalog-white);

  font-size: 12px;

  font-weight: 600;

  box-shadow: 0 5px 14px rgba(91, 105, 55, 0.18);

  transition:
    transform var(--katalog-transition),
    background var(--katalog-transition),
    box-shadow var(--katalog-transition);
}

.header-action a:hover {
  background: var(--katalog-primary-dark);

  transform: translateY(-1px);

  box-shadow: 0 8px 18px rgba(91, 105, 55, 0.24);
}

/* =========================================================
   08. MOBILE MENU TOGGLE
   ========================================================= */

.mobile-menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  flex: 0 0 auto;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;

  margin: 0;
  padding: 0;

  border: 1px solid var(--katalog-border);

  border-radius: 10px;

  background: var(--katalog-white);

  color: var(--katalog-text);

  box-sizing: border-box;
}

.mobile-menu-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  flex: 0 0 auto;

  border-radius: 999px;

  background: var(--katalog-text);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--katalog-gold-light);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--katalog-primary);

  outline-offset: 3px;
}

/* =========================================================
   09. KATALOG SECTION
   ========================================================= */

#katalog.template-section {
  position: relative;

  width: 100%;

  padding: 54px 0 100px;

  background: linear-gradient(180deg, #fffdf9 0%, #faf8f3 55%, #f8f5ee 100%);
}

#katalog.template-section::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: min(900px, 90%);

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 154, 98, 0.38),
    transparent
  );

  transform: translateX(-50%);

  pointer-events: none;
}

/* =========================================================
   10. BREADCRUMB
   ========================================================= */

#katalog .template-breadcrumb {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 8px;

  width: 100%;

  margin: 0 auto 38px;

  color: var(--katalog-text-light);

  font-size: 11px;

  line-height: 1.5;

  text-align: center;
}

#katalog .template-breadcrumb a {
  color: var(--katalog-primary);

  transition: color var(--katalog-transition);
}

#katalog .template-breadcrumb a:hover,
#katalog .template-breadcrumb a:focus-visible {
  color: var(--katalog-primary-dark);
}

#katalog .template-breadcrumb strong {
  color: var(--katalog-text-soft);

  font-weight: 500;
}

/* =========================================================
   11. SECTION HEADER
   ========================================================= */

#katalog .section-header {
  width: min(100%, 820px);

  margin: 0 auto;

  text-align: center;
}

#katalog .section-label {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  margin: 0 0 14px;

  color: var(--katalog-primary);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.24em;

  line-height: 1.4;

  text-transform: uppercase;

  text-align: center;
}

#katalog .section-label::before,
#katalog .section-label::after {
  content: "";

  width: 42px;

  height: 1px;

  flex: 0 0 42px;

  background: linear-gradient(90deg, transparent, var(--katalog-gold));
}

#katalog .section-label::after {
  background: linear-gradient(90deg, var(--katalog-gold), transparent);
}

#katalog .section-header h1 {
  width: 100%;

  margin: 0;

  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(2.25rem, 4.5vw, 3.4rem);

  font-weight: 500;

  line-height: 1.12;

  letter-spacing: -0.03em;

  text-align: center;
}

#katalog .section-header > p:last-child {
  width: min(100%, 660px);

  margin: 17px auto 0;

  color: var(--katalog-text-soft);

  font-size: 14px;

  line-height: 1.8;

  text-align: center;
}

/* =========================================================
   12. TEMPLATE CONTROLS
   SEARCH + SORT
   ========================================================= */

#katalog .template-controls {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 22px;

  width: min(100%, 860px);

  margin: 36px auto 0;

  box-sizing: border-box;
}

/* =========================================================
   13. SEARCH
   ========================================================= */

#katalog .template-search {
  position: relative;

  width: 100%;

  min-width: 0;

  height: 50px;
}

#katalog #template-search-input {
  display: block;

  width: 100%;
  height: 50px;

  box-sizing: border-box;

  padding: 0 50px 0 48px;

  border: 1px solid var(--katalog-border);

  border-radius: 13px;

  outline: none;

  background: rgba(255, 255, 255, 0.94);

  color: var(--katalog-text);

  font-size: 13px;

  box-shadow: 0 5px 20px rgba(70, 58, 42, 0.05);

  transition:
    border-color var(--katalog-transition),
    box-shadow var(--katalog-transition),
    background var(--katalog-transition);
}

#katalog #template-search-input:hover {
  border-color: var(--katalog-gold-light);

  background: #ffffff;
}

#katalog #template-search-input::placeholder {
  color: #a29a90;
}

#katalog #template-search-input:focus {
  border-color: var(--katalog-primary);

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(127, 143, 82, 0.09),
    0 8px 24px rgba(70, 58, 42, 0.06);
}

/* =========================================================
   14. SEARCH ICON
   ========================================================= */

#katalog .template-search-icon {
  position: absolute;

  top: 50%;
  left: 17px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  color: var(--katalog-gold);

  font-size: 16px;

  line-height: 1;

  pointer-events: none;

  transform: translateY(-50%);
}

/* =========================================================
   15. SEARCH CLEAR
   ========================================================= */

#katalog .template-search-clear {
  position: absolute;

  top: 50%;
  right: 10px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  margin: 0;
  padding: 0;

  border: 0;

  border-radius: 50%;

  background: transparent;

  color: var(--katalog-text-light);

  font-size: 19px;

  line-height: 1;

  transform: translateY(-50%);

  transition:
    background var(--katalog-transition),
    color var(--katalog-transition);
}

#katalog .template-search-clear:hover {
  background: var(--katalog-bg-soft);

  color: var(--katalog-text);
}

#katalog .template-search-clear:focus-visible {
  outline: 2px solid var(--katalog-primary);

  outline-offset: 2px;
}

/* =========================================================
   16. SORT
   ========================================================= */

#katalog .template-sort {
  display: grid;

  grid-template-columns: auto 190px;

  align-items: center;

  gap: 10px;

  flex: 0 0 auto;

  min-width: 0;
}

#katalog .template-sort label {
  color: var(--katalog-text-soft);

  font-size: 11px;

  font-weight: 500;

  white-space: nowrap;
}

#katalog #template-sort-select {
  width: 190px;
  height: 50px;

  box-sizing: border-box;

  padding: 0 34px 0 14px;

  border: 1px solid var(--katalog-border);

  border-radius: 13px;

  outline: none;

  background: rgba(255, 255, 255, 0.96);

  color: var(--katalog-text);

  font-size: 12px;

  cursor: pointer;

  box-shadow: 0 5px 20px rgba(70, 58, 42, 0.04);

  transition:
    border-color var(--katalog-transition),
    box-shadow var(--katalog-transition),
    background var(--katalog-transition);
}

#katalog #template-sort-select:hover {
  border-color: var(--katalog-gold-light);

  background: #ffffff;
}

#katalog #template-sort-select:focus {
  border-color: var(--katalog-primary);

  box-shadow: 0 0 0 4px rgba(127, 143, 82, 0.09);
}

/* =========================================================
   17. CATEGORY FILTER
   ========================================================= */

#katalog .template-filter {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  width: min(100%, 860px);

  margin: 22px auto 0;

  padding: 0;

  box-sizing: border-box;

  text-align: center;
}

#katalog .filter-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 82px;

  min-height: 38px;

  padding: 0 18px;

  box-sizing: border-box;

  border: 1px solid var(--katalog-border);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.88);

  color: var(--katalog-text-soft);

  font-size: 11px;

  font-weight: 600;

  line-height: 1;

  white-space: nowrap;

  box-shadow: 0 3px 10px rgba(80, 65, 40, 0.035);

  transition:
    background var(--katalog-transition),
    border-color var(--katalog-transition),
    color var(--katalog-transition),
    box-shadow var(--katalog-transition),
    transform 0.2s ease;

  -webkit-tap-highlight-color: transparent;
}

#katalog .filter-button:hover {
  border-color: var(--katalog-primary-light);

  background: #f4efe4;

  color: var(--katalog-primary-dark);

  box-shadow: 0 6px 16px rgba(80, 65, 40, 0.07);

  transform: translateY(-1px);
}

#katalog .filter-button.is-active {
  border-color: var(--katalog-primary);

  background: var(--katalog-primary);

  color: var(--katalog-white);

  box-shadow: 0 8px 18px rgba(127, 143, 82, 0.2);
}

#katalog .filter-button:active {
  transform: scale(0.97);
}

#katalog .filter-button:focus-visible {
  outline: 2px solid var(--katalog-primary);

  outline-offset: 3px;
}

/* =========================================================
   18. TEMPLATE RESULT
   ========================================================= */

#katalog .template-result {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  min-height: 24px;

  margin: 28px auto 30px;

  padding: 0;

  color: var(--katalog-text-light);

  font-size: 12px;

  line-height: 1.5;

  text-align: center;
}

#katalog .template-result p {
  width: 100%;

  margin: 0;

  text-align: center;
}

#katalog .template-result strong {
  margin: 0 3px;

  color: var(--katalog-primary-dark);

  font-weight: 700;
}

/* =========================================================
   19. TEMPLATE GRID
   ========================================================= */

#katalog .template-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  align-items: stretch;

  gap: 26px;

  width: min(100%, 1200px);

  margin: 0 auto;

  padding: 0 4px;

  box-sizing: border-box;
}

/* =========================================================
   20. TEMPLATE CARD
   ========================================================= */

#katalog .template-card {
  position: relative;

  display: flex;

  flex-direction: column;

  min-width: 0;

  width: 100%;

  min-height: 100%;

  overflow: hidden;

  box-sizing: border-box;

  border: 1px solid rgba(229, 220, 205, 0.92);

  border-radius: 17px;

  background: rgba(255, 255, 255, 0.98);

  box-shadow: 0 8px 28px rgba(73, 58, 38, 0.065);

  opacity: 1;

  transform: translateY(0);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.25s ease;
}

#katalog .template-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 12%;
  right: 12%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(183, 154, 98, 0.55),
    transparent
  );

  opacity: 0.8;

  pointer-events: none;

  z-index: 1;
}

#katalog .template-card:hover {
  border-color: #dacdbb;

  box-shadow: 0 18px 42px rgba(73, 58, 38, 0.12);

  transform: translateY(-5px);
}

#katalog .template-card.is-hidden {
  opacity: 0;

  transform: translateY(10px);

  pointer-events: none;
}

#katalog .template-card[hidden] {
  display: none !important;
}

/* =========================================================
   21. TEMPLATE IMAGE
   ========================================================= */

#katalog .template-image {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 10;

  margin: 0;

  overflow: hidden;

  background: #eee9df;
}

#katalog .template-image::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(40, 32, 22, 0.06)
  );
}

#katalog .template-image img {
  width: 100%;
  height: 100%;

  max-width: none;

  object-fit: cover;

  object-position: center;

  transition: transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

#katalog .template-card:hover .template-image img {
  transform: scale(1.045);
}

/* =========================================================
   22. TEMPLATE CONTENT
   ========================================================= */

#katalog .template-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  flex: 1;

  width: 100%;

  min-width: 0;

  padding: 10px 10px 11px;

  box-sizing: border-box;

  text-align: center;
}

/* =========================================================
   23. TEMPLATE CATEGORY
   ========================================================= */

#katalog .template-category {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 26px;

  padding: 0 12px;

  border: 1px solid rgba(183, 154, 98, 0.12);

  border-radius: 999px;

  background: #f3f1e7;

  color: var(--katalog-primary-dark);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.11em;

  line-height: 1;

  text-transform: uppercase;

  white-space: nowrap;
}

/* =========================================================
   24. CATEGORY COLOR VARIATIONS
   ========================================================= */

#katalog .template-card[data-category="wedding"] .template-category {
  background: #f5ead7;

  color: #8b6b35;
}

#katalog .template-card[data-category="lamaran"] .template-category {
  background: #f7e6e7;

  color: #a45f6d;
}

#katalog .template-card[data-category="khitanan"] .template-category {
  background: #e6eef7;

  color: #4d7195;
}

#katalog .template-card[data-category="aqiqah"] .template-category {
  background: #eee8f6;

  color: #77619a;
}

/* =========================================================
   25. TEMPLATE TITLE
   ========================================================= */

#katalog .template-content h2 {
  width: 100%;

  margin: 9px auto 0;

  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 15px;

  font-weight: 500;

  line-height: 1.2;

  letter-spacing: -0.015em;

  text-align: center;
}

/* =========================================================
   26. TEMPLATE DESCRIPTION
   ========================================================= */

#katalog .template-description {
  width: 100%;

  max-width: 300px;

  min-height: 44px;

  margin: 0 auto;

  color: var(--katalog-text-soft);

  font-size: 11px;

  line-height: 1.7;

  text-align: center;
}

/* =========================================================
   27. TEMPLATE PRICE
   ========================================================= */

#katalog .template-price {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 5px;

  width: 100%;

  margin: 8px auto 0;

  text-align: center;
}

#katalog .template-price span {
  color: var(--katalog-text-light);

  font-size: 10px;

  line-height: 1.4;
}

#katalog .template-price strong {
  color: var(--katalog-primary-dark);

  font-size: 14px;

  font-weight: 700;

  line-height: 1.4;
}

/* =========================================================
   28. TEMPLATE ACTIONS
   ========================================================= */

#katalog .template-actions {
  display: grid;

  grid-template-columns:
    82px
    minmax(0, 1fr);

  align-items: center;

  gap: 8px;

  width: 100%;

  max-width: 300px;

  margin: auto auto 0;

  padding-top: 5px;

  box-sizing: border-box;
}

/* =========================================================
   29. TEMPLATE ACTION BUTTON
   ========================================================= */

#katalog .template-action {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  min-width: 0;

  min-height: 28px;

  padding: 9px 11px;

  box-sizing: border-box;

  border: 1px solid var(--katalog-primary);

  border-radius: 40px;

  background: var(--katalog-white);

  color: var(--katalog-text);

  font-size: 10px;

  font-weight: 700;

  line-height: 1.2;

  white-space: nowrap;

  text-align: center;

  transition:
    background var(--katalog-transition),
    color var(--katalog-transition),
    border-color var(--katalog-transition),
    transform 0.2s ease,
    box-shadow var(--katalog-transition);
}

#katalog .template-action:hover {
  background: var(--katalog-primary);

  border-color: var(--katalog-primary);

  color: var(--katalog-white);

  transform: translateY(-2px);

  box-shadow: 0 7px 17px rgba(127, 143, 82, 0.19);
}

#katalog .template-action:active {
  transform: scale(0.97);
}

#katalog .template-action:focus-visible {
  outline: 2px solid var(--katalog-gold);

  outline-offset: 2px;
}

/* =========================================================
   30. DETAIL BUTTON
   ========================================================= */

#katalog .template-detail {
  width: 82px;

  min-width: 82px;

  box-sizing: border-box;

  background: var(--katalog-primary);

  border-color: var(--katalog-primary);

  color: var(--katalog-white);
}

#katalog .template-detail:hover {
  background: var(--katalog-primary-dark);

  border-color: var(--katalog-primary-dark);
}

/* =========================================================
   31. WHATSAPP BUTTON
   ========================================================= */

#katalog .template-whatsapp {
  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  border-radius: 11px;

  background: #ffffff;

  color: var(--katalog-primary-dark);
}

#katalog .template-whatsapp:hover {
  background: var(--katalog-primary);

  color: var(--katalog-white);
}

/* =========================================================
   32. EMPTY STATE
   ========================================================= */

#katalog .template-empty {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  width: min(100%, 640px);

  margin: 40px auto 0;

  padding: 48px 28px;

  box-sizing: border-box;

  border: 1px solid var(--katalog-border);

  border-radius: var(--katalog-radius);

  background: rgba(255, 255, 255, 0.96);

  box-shadow: var(--katalog-shadow);

  text-align: center;
}

#katalog .template-empty[hidden] {
  display: none !important;
}

#katalog .template-empty-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  margin: 0 auto 16px;

  border: 1px solid var(--katalog-gold-soft);

  border-radius: 50%;

  background: var(--katalog-bg-soft);

  font-size: 20px;
}

#katalog .template-empty h2 {
  margin: 0 0 9px;

  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 22px;

  font-weight: 500;

  text-align: center;
}

#katalog .template-empty p {
  width: min(100%, 430px);

  margin: 0 auto 22px;

  color: var(--katalog-text-soft);

  font-size: 12px;

  line-height: 1.7;

  text-align: center;
}

/* =========================================================
   33. RESET BUTTON
   ========================================================= */

#katalog #template-reset {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 41px;

  padding: 0 21px;

  border: 1px solid var(--katalog-primary);

  border-radius: 9px;

  background: var(--katalog-primary);

  color: var(--katalog-white);

  font-size: 11px;

  font-weight: 700;

  transition:
    background var(--katalog-transition),
    transform 0.2s ease,
    box-shadow var(--katalog-transition);
}

#katalog #template-reset:hover {
  background: var(--katalog-primary-dark);

  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(127, 143, 82, 0.18);
}

#katalog #template-reset:focus-visible {
  outline: 2px solid var(--katalog-gold);

  outline-offset: 3px;
}

/* =========================================================
   34. CATALOG INFORMATION
   ========================================================= */

#katalog .catalog-information {
  width: min(100%, 820px);

  margin: 80px auto 0;

  padding: 52px 38px;

  box-sizing: border-box;

  border: 1px solid var(--katalog-border);

  border-radius: 22px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 243, 234, 0.92)
  );

  box-shadow: 0 14px 40px rgba(67, 57, 43, 0.07);

  text-align: center;
}

#katalog .catalog-information .section-header {
  width: min(100%, 700px);

  margin: 0 auto;
}

#katalog .catalog-information .section-header h2 {
  margin: 0;

  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(1.8rem, 3.5vw, 2.45rem);

  font-weight: 500;

  line-height: 1.2;

  text-align: center;
}

#katalog .catalog-information .section-header > p:last-child {
  max-width: 620px;

  margin: 14px auto 0;

  color: var(--katalog-text-soft);

  font-size: 13px;

  line-height: 1.8;

  text-align: center;
}

/* =========================================================
   35. CATALOG INFORMATION CONTENT
   ========================================================= */

#katalog .catalog-information-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  width: min(100%, 650px);

  margin: 28px auto 0;

  padding: 24px 26px;

  box-sizing: border-box;

  border: 1px solid rgba(229, 220, 205, 0.9);

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.68);

  text-align: center;
}

#katalog .catalog-information-content p {
  width: 100%;

  max-width: 560px;

  margin: 0 auto;

  color: var(--katalog-text-soft);

  font-size: 12px;

  line-height: 1.8;

  text-align: center;
}

#katalog .catalog-information-content p + p {
  margin-top: 10px;
}

/* =========================================================
   36. CATALOG CTA
   ========================================================= */

#katalog .catalog-cta {
  width: min(100%, 1000px);

  margin: 48px auto 0;

  padding: 38px 42px;

  box-sizing: border-box;

  border: 1px solid rgba(183, 154, 98, 0.22);

  border-radius: 20px;

  background: linear-gradient(135deg, #f3eee3, #faf8f2);

  box-shadow: 0 10px 32px rgba(67, 57, 43, 0.055);
}

#katalog .catalog-cta-content {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 35px;

  width: 100%;

  margin: 0 auto;
}

#katalog .catalog-cta-content > div {
  min-width: 0;

  text-align: left;
}

#katalog .catalog-cta-content .section-label {
  margin-bottom: 9px;
}

#katalog .catalog-cta-content h2 {
  margin: 0 0 8px;

  color: var(--katalog-text);

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(1.5rem, 3vw, 2.1rem);

  font-weight: 500;

  line-height: 1.2;
}

#katalog .catalog-cta-content p {
  max-width: 600px;

  margin: 0;

  color: var(--katalog-text-soft);

  font-size: 12px;

  line-height: 1.7;
}

#katalog .catalog-cta-content .button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  min-height: 44px;

  padding: 0 23px;

  border-radius: 9px;

  background: var(--katalog-primary);

  color: var(--katalog-white);

  font-size: 11px;

  font-weight: 700;

  white-space: nowrap;

  box-shadow: 0 7px 18px rgba(127, 143, 82, 0.18);

  transition:
    background var(--katalog-transition),
    transform 0.2s ease,
    box-shadow var(--katalog-transition);
}

#katalog .catalog-cta-content .button:hover {
  background: var(--katalog-primary-dark);

  transform: translateY(-2px);

  box-shadow: 0 10px 23px rgba(127, 143, 82, 0.23);
}

#katalog .catalog-cta-content .button:focus-visible {
  outline: 2px solid var(--katalog-gold);

  outline-offset: 3px;
}

/* =========================================================
   37. ACCESSIBILITY
   ========================================================= */

#katalog a:focus-visible,
#katalog button:focus-visible,
#katalog input:focus-visible,
#katalog select:focus-visible {
  outline: 2px solid var(--katalog-primary);

  outline-offset: 3px;
}

/* =========================================================
   38. TABLET
   769px — 1024px
   ========================================================= */

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 32px), 920px);
  }

  .site-header > .container {
    gap: 16px;
  }

  .main-navigation ul {
    gap: 2px;
  }

  .main-navigation a {
    padding: 0 9px;

    font-size: 12px;
  }

  .header-action a {
    padding: 0 14px;

    font-size: 11px;
  }

  #katalog.template-section {
    padding: 46px 0 80px;
  }

  #katalog .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: min(100%, 920px);
  }

  #katalog .template-controls {
    width: min(100%, 760px);

    gap: 18px;
  }

  #katalog .catalog-information {
    width: min(100%, 760px);
  }

  #katalog .catalog-cta {
    width: min(100%, 820px);
  }
}

/* =========================================================
   39. MOBILE NAVIGATION
   <= 900px

   Disamakan dengan pola mobile index.html.
   Panel menu:
   - floating
   - dark translucent
   - rounded
   - blur
   - shadow
   - berada di kanan
   ========================================================= */

@media (max-width: 900px) {
  body:has(#katalog) .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;

    top: 0 !important;

    z-index: 9999 !important;

    width: 100%;

    margin: 0;

    background: rgba(255, 253, 249, 0.97);

    border-bottom: 1px solid rgba(218, 207, 190, 0.85);

    box-shadow: 0 4px 18px rgba(57, 47, 34, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    isolation: isolate;
  }

  .site-header > .container {
    position: relative;

    min-height: 72px;

    width: min(calc(100% - 32px), 1180px);

    margin-left: auto;
    margin-right: auto;

    gap: 12px;

    box-sizing: border-box;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand > a {
    min-width: 0;
  }

  .site-header .brand img {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;
  }

  .site-header .brand-name {
    font-size: 1.08rem;
  }

  /* =========================================================
   HAMBURGER BUTTON — ALWAYS VISIBLE
   ========================================================= */

  .site-header .mobile-menu-toggle {
    position: relative !important;

    z-index: 10002 !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    margin-left: auto;
    padding: 0;

    box-sizing: border-box;

    visibility: visible !important;
    opacity: 1 !important;

    pointer-events: auto !important;

    border: 1px solid rgba(183, 154, 98, 0.38);
    border-radius: 10px;

    background: rgba(255, 253, 249, 0.98);

    color: var(--katalog-text);

    cursor: pointer;

    isolation: isolate;

    transform: none !important;
  }

  /* Tiga garis hamburger */
  .site-header .mobile-menu-toggle span {
    position: relative;

    z-index: 1;

    display: block;

    width: 20px;
    height: 2px;

    flex: 0 0 2px;

    margin: 0;

    border-radius: 999px;

    background: var(--katalog-text);

    opacity: 1;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  /* =========================================================
   OPEN STATE
   JS menggunakan .is-active
   ========================================================= */

  .site-header .mobile-menu-toggle.is-active {
    visibility: visible !important;
    opacity: 1 !important;

    display: flex !important;

    pointer-events: auto !important;

    z-index: 10002 !important;
  }

  /* Garis pertama → diagonal */
  .site-header .mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  /* Garis tengah → hilang */
  .site-header .mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  /* Garis ketiga → diagonal */
  .site-header .mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .header-action {
    display: none;
  }

  .site-header .main-navigation {
    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    left: auto;

    width: min(280px, calc(100vw - 32px));

    margin: 0;

    padding: 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background: rgba(35, 34, 25, 0.94);

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    pointer-events: none;

    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  .site-header .main-navigation.is-open {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
  }

  .site-header .main-navigation ul {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 2px;

    width: 100%;

    margin: 0;

    padding: 0;

    list-style: none;
  }

  .site-header .main-navigation a,
  .site-header .main-navigation a:visited {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 43px;

    padding: 13px 12px;

    box-sizing: border-box;

    border-radius: 8px;

    background: transparent;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.84rem;

    line-height: 1.2;

    text-decoration: none;
  }

  .site-header .main-navigation a::after {
    display: none;
  }

  .site-header .main-navigation a:hover,
  .site-header .main-navigation a:focus-visible,
  .site-header .main-navigation a.active,
  .site-header .main-navigation a.is-active,
  .site-header .main-navigation a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.08);

    color: #e7c77b;
  }

  #katalog.template-section {
    padding: 40px 0 70px;
  }

  #katalog .template-breadcrumb {
    margin-bottom: 28px;
  }

  #katalog .section-header {
    width: min(100%, 680px);
  }

  #katalog .section-header h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  #katalog .template-controls {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 13px;

    width: min(100%, 600px);

    margin-top: 28px;
  }

  #katalog .template-search {
    width: 100%;

    flex: none;
  }

  #katalog .template-sort {
    display: grid;

    grid-template-columns:
      auto
      minmax(0, 1fr);

    width: 100%;

    gap: 10px;
  }

  #katalog #template-sort-select {
    width: 100%;
  }

  #katalog .template-filter {
    width: min(100%, 620px);

    gap: 8px;

    margin-top: 18px;
  }

  #katalog .template-result {
    margin: 23px auto 25px;
  }

  #katalog .template-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    padding: 0;
  }

  #katalog .template-card {
    border-radius: 15px;
  }

  #katalog .template-content {
    padding: 13px 10px 13px;
  }

  #katalog .template-content h2 {
    margin-top: 8px;

    font-size: 18px;

    line-height: 1.2;
  }

  #katalog .template-price {
    gap: 4px;

    margin-top: 7px;
  }

  #katalog .template-actions {
    gap: 6px;

    padding-top: 9px;
  }

  #katalog .catalog-information {
    margin-top: 65px;

    padding: 42px 26px;
  }

  #katalog .catalog-information-content {
    padding: 21px 20px;
  }

  #katalog .catalog-cta {
    padding: 32px 28px;
  }

  #katalog .catalog-cta-content {
    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 24px;

    text-align: center;
  }

  #katalog .catalog-cta-content > div {
    text-align: center;
  }

  #katalog .catalog-cta-content p {
    margin-left: auto;

    margin-right: auto;
  }
}

/* =========================================================
   40. MOBILE
   481px — 768px
   ========================================================= */

@media (min-width: 481px) and (max-width: 768px) {
  .brand img {
    width: 46px;
    height: 46px;

    flex-basis: 46px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 8px;
  }

  #katalog .template-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #katalog .template-image {
    aspect-ratio: 16 / 10;
  }

  #katalog .template-content h2 {
    font-size: 17px;
  }

  #katalog .template-description {
    font-size: 10px;

    min-height: 42px;
  }

  #katalog .template-price strong {
    font-size: 13px;
  }

  #katalog .template-actions {
    grid-template-columns:
      68px
      minmax(0, 1fr);

    gap: 7px;

    max-width: 100%;

    padding-top: 15px;
  }

  #katalog .template-action {
    min-height: 40px;

    padding: 8px 9px;

    font-size: 9px;
  }

  #katalog .template-detail {
    width: 40px;

    min-width: 68px;
  }
}

/* =========================================================
   41. SMALL MOBILE
   <= 480px
   ========================================================= */

@media (max-width: 480px) {
  body:has(#katalog) .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;

    top: 0 !important;

    z-index: 9999 !important;
  }

  body:has(#katalog) .site-header > .container {
    position: relative;

    min-height: 68px;

    width: calc(100% - 24px);
  }

  .container {
    width: calc(100% - 24px);
  }

  .site-header > .container {
    min-height: 68px;

    width: calc(100% - 24px);
  }

  .site-header .brand > a {
    gap: 9px;
  }

  .site-header .brand img {
    width: 50px;
    height: 50px;

    flex-basis: 50px;
  }

  .site-header .brand-name {
    font-size: 1.08rem;
  }

  .site-header .brand-tagline {
    font-size: 0.55rem;
  }

  .site-header .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .site-header .main-navigation {
    width: min(280px, calc(100vw - 24px));

    padding: 12px;
  }

  .site-header .main-navigation a,
  .site-header .main-navigation a:visited {
    min-height: 43px;

    padding: 12px;

    font-size: 0.84rem;
  }

  #katalog.template-section {
    padding: 34px 0 58px;
  }

  #katalog .template-breadcrumb {
    margin-bottom: 24px;

    font-size: 10px;
  }

  #katalog .section-label {
    gap: 8px;

    font-size: 8px;

    letter-spacing: 0.17em;
  }

  #katalog .section-label::before,
  #katalog .section-label::after {
    width: 24px;

    flex-basis: 24px;
  }

  #katalog .section-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.3rem);

    line-height: 1.18;
  }

  #katalog .section-header > p:last-child {
    width: 100%;

    margin-top: 12px;

    font-size: 11px;

    line-height: 1.7;
  }

  #katalog .template-controls {
    width: 100%;

    margin-top: 23px;

    gap: 11px;
  }

  #katalog .template-search {
    height: 46px;
  }

  #katalog #template-search-input {
    height: 46px;

    padding-left: 43px;

    font-size: 11px;
  }

  #katalog .template-search-icon {
    left: 15px;

    font-size: 14px;
  }

  #katalog .template-sort {
    grid-template-columns:
      auto
      minmax(0, 1fr);

    gap: 8px;

    width: 100%;
  }

  #katalog .template-sort label {
    font-size: 10px;
  }

  #katalog #template-sort-select {
    width: 100%;

    height: 44px;

    font-size: 10px;
  }

  #katalog .template-filter {
    justify-content: center;

    gap: 6px;

    width: 100%;

    margin-top: 15px;
  }

  #katalog .filter-button {
    min-width: 0;

    min-height: 34px;

    padding: 0 12px;

    font-size: 9px;
  }

  #katalog .template-result {
    min-height: 20px;

    margin: 21px auto 21px;

    font-size: 10px;
  }

  #katalog .template-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 12px;

    width: 100%;

    margin-left: auto;
    margin-right: auto;

    padding: 0;
  }

  #katalog .template-card {
    width: 100%;

    border-radius: 15px;
  }

  #katalog .template-image {
    aspect-ratio: 1.55 / 1;
  }

  #katalog .template-content {
    padding: 11px 8px 12px;
  }

  #katalog .template-category {
    min-height: 22px;

    padding: 0 8px;

    font-size: 8px;
  }

  #katalog .template-content h2 {
    margin-top: 7px;

    font-size: 16px;

    line-height: 1.18;
  }

  #katalog .template-description {
    min-height: 40px;

    font-size: 9px;

    line-height: 1.65;
  }

  #katalog .template-price {
    gap: 3px;

    margin-top: 6px;
  }

  #katalog .template-price span {
    font-size: 8px;
  }

  #katalog .template-price strong {
    font-size: 12px;
  }

  #katalog .template-actions {
    grid-template-columns:
      62px
      minmax(0, 1fr);

    gap: 5px;

    padding-top: 8px;
  }

  #katalog .template-action {
    min-height: 38px;

    padding: 7px 6px;

    font-size: 8px;
  }

  #katalog .template-detail {
    width: 62px;

    min-width: 62px;
  }

  #katalog .template-whatsapp {
    width: 100%;

    min-width: 0;
  }

  #katalog .template-empty {
    width: min(100%, 360px);

    padding: 36px 18px;
  }

  #katalog .template-empty h2 {
    font-size: 19px;
  }

  #katalog .template-empty p {
    font-size: 10px;
  }

  #katalog .catalog-information {
    width: 100%;

    margin-top: 55px;

    padding: 34px 17px;

    border-radius: 17px;
  }

  #katalog .catalog-information .section-header h2 {
    font-size: 1.7rem;
  }

  #katalog .catalog-information .section-header > p:last-child {
    font-size: 11px;
  }

  #katalog .catalog-information-content {
    width: 100%;

    margin-top: 22px;

    padding: 20px 15px;

    border-radius: 13px;
  }

  #katalog .catalog-information-content p {
    max-width: 300px;

    font-size: 10px;

    line-height: 1.75;

    text-align: center;
  }

  #katalog .catalog-cta {
    width: 100%;

    margin-top: 30px;

    padding: 29px 18px;

    border-radius: 16px;
  }

  #katalog .catalog-cta-content {
    gap: 20px;
  }

  #katalog .catalog-cta-content h2 {
    font-size: 1.65rem;
  }

  #katalog .catalog-cta-content p {
    font-size: 10px;
  }

  #katalog .catalog-cta-content .button {
    width: min(100%, 280px);

    min-height: 43px;

    font-size: 10px;
  }
}

/* =========================================================
   42. VERY SMALL PHONE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {
  body:has(#katalog) .site-header {
    position: -webkit-sticky !important;
    position: sticky !important;

    top: 0 !important;

    z-index: 9999 !important;
  }

  body:has(#katalog) .site-header > .container {
    position: relative;

    min-height: 60px;

    width: calc(100% - 20px);
  }

  .container {
    width: calc(100% - 20px);
  }

  .site-header > .container {
    min-height: 60px;

    width: calc(100% - 20px);
  }

  .site-header .brand img {
    width: 44px;
    height: 44px;

    flex-basis: 44px;
  }

  .site-header .brand-name {
    font-size: 1rem;
  }

  .site-header .brand-tagline {
    font-size: 0.5rem;
  }

  .site-header .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .site-header .mobile-menu-toggle span {
    width: 18px;
  }

  .site-header .main-navigation {
    width: min(260px, calc(100vw - 20px));

    padding: 10px;
  }

  .site-header .main-navigation a,
  .site-header .main-navigation a:visited {
    min-height: 41px;

    padding: 11px;

    font-size: 0.8rem;
  }

  #katalog .template-filter {
    gap: 5px;
  }

  #katalog .filter-button {
    padding: 0 10px;

    font-size: 8px;
  }

  #katalog .template-grid {
    width: 100%;
  }

  #katalog .template-actions {
    grid-template-columns:
      62px
      minmax(0, 1fr);

    gap: 5px;

    max-width: 100%;
  }

  #katalog .template-action {
    width: 100%;

    min-height: 36px;

    padding: 7px 6px;

    border-radius: 30px;

    font-size: 8px;
  }

  #katalog .template-detail {
    width: 62px;

    min-width: 62px;
  }

  #katalog .catalog-information {
    padding: 30px 14px;
  }

  #katalog .catalog-information-content {
    padding: 18px 12px;
  }

  #katalog .catalog-cta {
    padding: 26px 14px;
  }

  #katalog .catalog-cta-content .button {
    width: 100%;
  }
}

/* =========================================================
   43. TOUCH DEVICE
   ========================================================= */

@media (hover: none) and (pointer: coarse) {
  #katalog .template-card:hover {
    transform: none;

    box-shadow: 0 8px 28px rgba(73, 58, 38, 0.065);
  }

  #katalog .template-card:hover .template-image img {
    transform: none;
  }

  #katalog .template-action:hover {
    transform: none;
  }

  #katalog .filter-button:hover {
    transform: none;
  }

  #katalog .catalog-cta-content .button:hover {
    transform: none;
  }
}

/* =========================================================
   44. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }
}
