/* ==========================================================================
   PRO FITTING INDONESIA (PT PROFITTING SISTEM)
   APPLE HIG ARCHITECTURAL DESIGN SYSTEM & SPECIFICATION
   Signature Header: #1c3247 Deep Navy Blue | Logo: Framed Pro Fitting Mark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Palette */
  --primary: #1c3247;
  --primary-hover: #132433;
  --primary-light: #284764;
  --primary-surface: #f1f5f9;
  
  /* Brand Accent Signatures */
  --fgv-blue: #1d4ed8;
  --fgv-bg: #eff6ff;
  --htech-emerald: #059669;
  --htech-bg: #ecfdf5;
  --shabc-amber: #d97706;
  --shabc-bg: #fffbeb;
  
  /* Surface Layers (Apple HIG Materials) */
  --surface-base: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #f1f5f9;
  --surface-card: #ffffff;
  
  /* Borders (Subtle 1px Hairlines) */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #1c3247;
  --border-hairline: rgba(28, 50, 71, 0.08);
  
  /* Typography Scale */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  /* Apple HIG Radii (Squircles Hierarchy) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  
  /* Diffuse Elevation (Apple HIG Natural Ambient Lighting) */
  --shadow-subtle: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 10px -1px rgba(28, 50, 71, 0.04), 0 1px 3px 0 rgba(28, 50, 71, 0.02);
  --shadow-hover: 0 12px 28px -4px rgba(28, 50, 71, 0.10), 0 4px 10px -2px rgba(28, 50, 71, 0.04);
  --shadow-float: 0 20px 40px -8px rgba(28, 50, 71, 0.16), 0 8px 16px -4px rgba(28, 50, 71, 0.06);
}

/* Base Resets & Font Smoothing */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: hidden;                              /* clip horizontal overflow at html level — prevents body expanding beyond viewport */
  overflow-y: scroll;                              /* force scrollbar always present — prevents layout shift between pages */
  scrollbar-width: thin;                           /* Firefox: thin native scrollbar */
  scrollbar-color: #cbd5e1 transparent;            /* thumb / track — transparent track = no contrast line */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  max-width: 100%;                                 /* prevent body from exceeding viewport width */
  letter-spacing: -0.014em;
}

.font-tabular {
  font-variant-numeric: tabular-nums;
}

.font-mono-sku {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   NAVIGATION & HEADER (Apple HIG Translucent Navy)
   ========================================================================== */

.site-header {
  background-color: #1c3247;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.2s ease;
}

/* Nav Link Styling (Bright White normal, Green hover/active, zero box container) */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: #ffffff !important; /* Bright white by default for high readability */
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: none; /* Title Case */
  background: transparent !important;
  border: none !important;
}

.nav-link:hover {
  color: #34d399 !important; /* Changes to vibrant green on hover */
  background: transparent !important;
}

.nav-link.active {
  color: #34d399 !important; /* Stays green when active/open */
  font-weight: 600;          /* same weight as inactive — prevents layout shift */
  background: transparent !important;
}

/* Minimalist Language Switcher (Zero box, white normal, green active) */
.lang-nav-btn {
  background: transparent !important;
  border: none !important;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.lang-nav-btn:hover {
  color: #34d399;
}

.lang-nav-btn.active {
  color: #34d399 !important;
  font-weight: 800;
}

/* Floating WhatsApp Button (Bottom Right) */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.floating-wa-btn:hover {
  background-color: #20ba59;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 35px -5px rgba(37, 211, 102, 0.55), 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.floating-wa-btn:active {
  transform: translateY(1px) scale(0.97);
}

.floating-wa-pulse {
  animation: pulseSubtle 3s infinite ease-in-out;
}
.floating-wa-btn:hover.floating-wa-pulse {
  animation: none;
}

/* Tactile Button Feedback (Spring Feedback) */
.btn-tactile {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.btn-tactile:hover {
  transform: translateY(-1px);
}

.btn-tactile:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   ELEGANT SMOOTH ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.milestone-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.2s ease;
  overflow: hidden;
}

.milestone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(28, 50, 71, 0.12);
  border-color: #cbd5e1;
}

.wa-cta-pulse {
  animation: pulseSubtle 3.5s infinite ease-in-out;
}
.wa-cta-pulse:hover {
  animation: none;
}

/* ==========================================================================
   BENTO GRID & ARCHITECTURAL CARDS
   ========================================================================== */

.bento-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.2s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Hero Dark Frosted Bento Card */
.hero-bento-navy {
  background: linear-gradient(145deg, #1c3247 0%, #132433 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px -10px rgba(28, 50, 71, 0.25), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-2xl);
  color: #ffffff;
}

/* 3 Brand Distinct Top Accents */
.brand-bento-fgv {
  border-top: 3px solid #1d4ed8;
}

.brand-bento-htech {
  border-top: 3px solid #059669;
}

.brand-bento-shabc {
  border-top: 3px solid #d97706;
}

/* ==========================================================================
   PRODUCT CARDS (Apple Hardware Presentation)
   ========================================================================== */

.product-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hardware Image Showcase Frame */
.product-image-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Catalog density: desktop shows 4 cards; phone keeps 2 readable columns. */
.catalog-product-grid {
  align-items: stretch;
}

.catalog-product-grid .product-card > div:last-child {
  padding-top: 12px;
  border-color: rgba(24, 32, 42, 0.1);
}

.catalog-product-grid .product-card > div:last-child a {
  background: var(--pfs-navy);
  color: #ffffff;
}

.catalog-product-grid .product-card > div:last-child a:hover {
  background: var(--primary-hover);
}

@media (max-width: 639px) {
  .catalog-product-grid .product-card {
    min-width: 0;
    padding: 10px;
    border-radius: var(--radius-lg);
  }

  .catalog-product-grid .product-card > div:first-child > div:first-child {
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .catalog-product-grid .product-card .font-mono-sku {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 6px;
    font-size: 9px;
  }

  .catalog-product-grid .product-image-stage {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: var(--radius-md);
  }

  .catalog-product-grid .product-image-stage > span {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 6px;
    font-size: 8px;
  }

  .catalog-product-grid .product-card h3 {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .catalog-product-grid .product-card p {
    display: none;
  }

  .catalog-product-grid .product-card > div:last-child {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
  }

  .catalog-product-grid .product-card > div:last-child > div:first-child {
    min-width: 0;
  }

  .catalog-product-grid .product-card > div:last-child > div:last-child {
    width: 100%;
    gap: 6px;
  }

  .catalog-product-grid .product-card > div:last-child button,
  .catalog-product-grid .product-card > div:last-child a {
    height: 32px;
  }

  .catalog-product-grid .product-card > div:last-child a,
  .catalog-product-grid .product-card > div:last-child button:not(:has(i[data-lucide="play"])) {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   FILTER CONTROLS & APPLE HIG SEGMENTED CONTROLS
   ========================================================================== */

.segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.segmented-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: #475569;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.segmented-btn:hover {
  color: #0f172a;
}

.segmented-btn.active {
  background-color: #ffffff;
  color: #1c3247;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
  font-weight: 700;
}

/* Standardized Filter Pill */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.16s ease;
  cursor: pointer;
}

.filter-pill:hover {
  background-color: #f8fafc;
  color: var(--text-main);
  border-color: var(--border-medium);
}

.filter-pill.active {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(28, 50, 71, 0.20);
}

/* View switcher */
.view-btn {
  transition: all 0.15s ease;
  color: var(--text-subtle);
}

.view-btn.active {
  background-color: #1c3247;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

/* ==========================================================================
   SPECIFICATION TABLE (Table View & Modal Detail Sheet)
   ========================================================================== */

.spec-table-row {
  transition: background-color 0.15s ease;
}

.spec-table-row:hover {
  background-color: #f8fafc;
}

/* Modal Technical Spec Sheet Table Cells (Generous Padding & Apple HIG Spacing) */
.spec-modal-table td {
  padding: 14px 18px !important;
  line-height: 1.6 !important;
}

.spec-modal-table tr:hover {
  background-color: rgba(241, 245, 249, 0.45);
}

/* ==========================================================================
   WORDPRESS-STYLE LIVE CMS EDITOR STYLES
   ========================================================================== */

body.live-edit-mode [data-pfs-cms] {
  position: relative;
  outline: 1.5px dashed rgba(16, 185, 129, 0.4);
  outline-offset: 4px;
  cursor: text;
  border-radius: 6px;
  transition: all 0.15s ease;
}

body.live-edit-mode [data-pfs-cms]:hover {
  outline: 2px solid #10b981;
  background-color: rgba(16, 185, 129, 0.06);
}

body.live-edit-mode [data-pfs-cms]:focus {
  outline: 2px solid #1c3247;
  background-color: rgba(28, 50, 71, 0.06);
}

#pfs-live-editor-bar {
  animation: slideUpBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBar {
  from {
    transform: translate(-50%, 60px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* ==========================================================================
   MODAL OVERLAY & SPRING MOTION
   ========================================================================== */

.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.97) translateY(8px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Product detail modal: X + footer tetap di frame, hanya body yang scroll */
.modal-frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.modal-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1.25rem 1rem;
}

@media (min-width: 640px) {
  .modal-scroll-body {
    padding: 2rem 2rem 1.5rem;
  }
}

.modal-footer-bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.modal-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-footer-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

@media (min-width: 640px) {
  .modal-footer-bar {
    padding: 0.875rem 2rem;
  }
}

/* Variant Pill Selector in Detail Modal */
.variant-pill {
  transition: all 0.15s ease;
}

.variant-pill.active {
  background-color: #1c3247;
  color: #ffffff;
  border-color: #1c3247;
  box-shadow: 0 2px 6px rgba(28, 50, 71, 0.22);
}

.variant-pill:not(.active):hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Toast */
.toast-notice {
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ADMIN DASHBOARD COMPONENTS
   ========================================================================== */

.admin-table-row:hover {
  background-color: #f8fafc;
}

/* Admin tab bar: keep active tab navy on hover (Tailwind hover:bg-slate-100
   was overriding the active background → white text on light gray = invisible) */
.admin-tab-btn.active {
  background-color: #1c3247 !important;
  color: #ffffff !important;
}
.admin-tab-btn.active:hover {
  background-color: #132433 !important;
}
.admin-tab-btn.active .bg-white\/20 {
  background-color: rgba(255,255,255,.2) !important;
  color: #fff !important;
}

.admin-badge-fgv {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.admin-badge-htech {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.admin-badge-shabc {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PRO FITTING - QUIET LUXURY PUBLIC EXPERIENCE
   Scoped pfs-* system: editorial interiors, walnut, ivory, deep navy.
   ========================================================================== */

:root {
  --pfs-navy: #1c3247;
  --pfs-navy-deep: #142535;
  --pfs-ink: #0f172a;
  --pfs-ivory: #ffffff;
  --pfs-paper: #ffffff;
  --pfs-walnut: #1c3247;
  --pfs-brass: #34d399;
  --pfs-mist: #f1f5f9;
  --pfs-line: rgba(28, 50, 71, 0.12);
  --pfs-copy: #475569;
}

.pfs-site-shell {
  background: var(--pfs-paper);
  color: var(--pfs-ink);
  letter-spacing: -0.018em;
}

.pfs-site-shell h1,
.pfs-site-shell h2,
.pfs-site-shell h3,
.pfs-site-shell blockquote {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.pfs-site-shell p,
.pfs-site-shell a,
.pfs-site-shell button,
.pfs-site-shell input,
.pfs-site-shell select,
.pfs-site-shell textarea {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
}

.pfs-site-shell * { box-sizing: border-box; }

.pfs-skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 10000;
  background: var(--pfs-navy);
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  font: 700 12px/1 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
}

.pfs-skip-link:focus {
  top: 12px;
  left: 12px;
  transform: none;
}

.pfs-topline {
  position: relative;
  z-index: 50;
  background: var(--pfs-navy-deep);
  color: rgba(255,255,255,.68);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pfs-nav-shell,
.pfs-section-shell,
.pfs-contact-shell,
.pfs-footer-shell {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.pfs-topline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pfs-topline__inner p { margin: 0; }
.pfs-topline__inner p span { color: var(--pfs-brass); padding-inline: 8px; }
.pfs-topline__inner a { color: #94a3b8; text-decoration: none; }
.pfs-topline__inner a:hover { color: white; }

.pfs-site-header {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 79px;                                /* 78px nav + 1px border: prevents vertical CLS */
  margin-top: 0 !important;
  border-top: none !important;
  z-index: 40;
  background: rgba(28,50,71,.92);                  /* semi-transparent WITHOUT backdrop-filter — no compositing seam */
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: white;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pfs-main-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.pfs-wordmark {
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  flex-shrink: 0;                                  /* prevent logo from squishing */
  text-decoration: none;
  font-family: inherit;
  transition: opacity .2s ease;
}

.pfs-wordmark:hover {
  opacity: .92;
}

.pfs-wordmark img {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;                             /* lock 1:1 box before image decode */
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

.pfs-wordmark > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.pfs-wordmark small {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.72);
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pfs-nav-links {
  --pfs-nav-pad: 10px;                             /* single source of truth for horizontal spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;                                  /* prevent links container from collapsing */
}

.pfs-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px var(--pfs-nav-pad);
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;                                /* explicit line-height stops baseline jitter */
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .18s ease;
}

.pfs-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--pfs-nav-pad);                        /* aligns exactly with text start */
  right: var(--pfs-nav-pad);                       /* aligns exactly with text end */
  width: auto;                                     /* dynamic width matches text box */
  height: 1.5px;
  background: var(--pfs-brass);
  transform: scaleX(0);
  transform-origin: right;                         /* sweep OUT right→left on leave */
  opacity: 0;
  transition: transform .38s cubic-bezier(0.16, 1, 0.3, 1), opacity .28s ease;
  pointer-events: none;
}

.pfs-nav-links a:hover {
  color: white;
}

.pfs-nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;                          /* sweep IN left→right on hover */
  opacity: 0.65;
}

.pfs-nav-links a.is-active {
  color: white;
}

.pfs-nav-links a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
  transition: none !important;                     /* NO load-time sweep glitch on active page */
}

.pfs-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pfs-nav-search,
.pfs-nav-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: border-color .2s ease, background-color .2s ease;
}

.pfs-nav-search:hover,
.pfs-nav-toggle:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

.pfs-nav-search svg,
.pfs-nav-toggle svg,
.pfs-nav-search i,
.pfs-nav-toggle i {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.pfs-nav-whatsapp {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 999px;
  background: #34d399;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.pfs-nav-whatsapp:hover { background: #10b981; color: white; }
.pfs-nav-whatsapp svg { width: 14px; height: 14px; stroke-width: 2; }
.pfs-nav-toggle { display: none; cursor: pointer; }

.pfs-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pfs-lang-btn {
  padding: 4px 6px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}

.pfs-lang-btn:hover {
  color: rgba(255,255,255,.85);
}

.pfs-lang-btn.is-active {
  color: #34d399;
}

.pfs-lang-sep {
  color: rgba(255,255,255,.25);
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}

.pfs-page-loading,
.pfs-cms-error {
  display: grid;
  place-items: center;
  min-height: 55vh;
  color: var(--pfs-copy);
  font: 600 13px/1.5 'Plus Jakarta Sans', sans-serif;
}

.pfs-kicker {
  margin: 0 0 17px;
  color: var(--pfs-walnut);
  font: 500 10px/1.2 'DM Mono', monospace !important;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.pfs-kicker--light { color: #94a3b8; }

.pfs-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.pfs-button:hover { transform: translateY(-2px); }
.pfs-button svg { width: 15px; height: 15px; stroke-width: 1.8; }
.pfs-button--navy { background: var(--pfs-navy); color: white; }
.pfs-button--navy:hover { background: var(--pfs-navy-deep); color: white; }
.pfs-button--quiet { border-color: var(--pfs-line); color: var(--pfs-ink); background: transparent; }
.pfs-button--quiet:hover { border-color: var(--pfs-ink); color: var(--pfs-ink); }
.pfs-button--ivory { background: var(--pfs-ivory); color: var(--pfs-navy); }
.pfs-button--ivory:hover { background: white; color: var(--pfs-navy); }
.pfs-button--line-light { border-color: rgba(255,255,255,.4); color: white; }
.pfs-button--line-light:hover { border-color: white; background: rgba(255,255,255,.08); color: white; }

.pfs-luxury-hero {
  padding: 25px 0 74px;
  overflow: hidden;
  background: var(--pfs-paper);
}

.pfs-luxury-hero__shell {
  width: min(100% - 48px, 1320px);
  min-height: 580px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(350px, .86fr) minmax(480px, 1.14fr);
  align-items: stretch;
  background: var(--pfs-ivory);
}

.pfs-luxury-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 86px) clamp(34px, 6vw, 96px);
  border-top: 1px solid var(--pfs-line);
  border-bottom: 1px solid var(--pfs-line);
}

.pfs-luxury-hero__copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--pfs-ink);
  font-size: clamp(46px, 5.1vw, 77px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.06em;
}

.pfs-luxury-hero__description {
  max-width: 500px;
  margin: 27px 0 31px;
  color: var(--pfs-copy);
  font-size: 14px;
  line-height: 1.85;
}

.pfs-luxury-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pfs-luxury-hero__assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
}

.pfs-assurance-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid var(--pfs-line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  transition: all .2s ease;
}

.pfs-assurance-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.pfs-assurance-card i,
.pfs-assurance-card svg {
  width: 14px;
  height: 14px;
  color: var(--pfs-walnut);
  stroke-width: 1.8;
}

.pfs-assurance-card--highlight {
  background: rgba(28, 50, 71, 0.04);
  border-color: rgba(28, 50, 71, 0.16);
  color: #1c3247;
}

.pfs-assurance-card__tag {
  display: inline-block;
  padding: 2px 6px;
  background: #1c3247;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 4px;
}

.pfs-luxury-hero__visual { position: relative; min-width: 0; border: 1px solid var(--pfs-line); border-left: 0; }
.pfs-luxury-hero__image-frame { position: absolute; inset: 0; overflow: hidden; background: #e2e8f0; }
.pfs-luxury-hero__image { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; filter: saturate(.83) contrast(.98); transform-origin: 53% 45%; animation: pfsKenBurns 24s ease-in-out infinite alternate; will-change: transform; }

/* Slow cinematic breath on the hero photo — zoom + drift, no video needed */
@keyframes pfsKenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1.8%, -1.2%, 0); }
}

/* Heading line-mask reveal fallback (pages without GSAP: kontak, brand) */
@keyframes pfsHeadingWipe {
  from { clip-path: inset(0 0 100% 0); transform: translateY(16px); opacity: 0; }
  to   { clip-path: inset(0 0 0% 0);   transform: translateY(0);    opacity: 1; }
}
.pfs-heading-in { animation: pfsHeadingWipe 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.pfs-luxury-hero__visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(18,28,35,.16), transparent 30%); }

.pfs-hero-heritage-card {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 11px;
  background: rgba(28, 50, 71, 0.9);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pfs-hero-heritage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.36);
}

.pfs-hero-heritage-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c3247 0%, #0f1d2a 100%);
  color: #f1f5f9;
  border: 1px solid rgba(212, 180, 131, 0.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 5px;
}

.pfs-hero-heritage-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pfs-hero-heritage-card__title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pfs-hero-heritage-card__desc {
  color: rgba(226, 232, 240, 0.78);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.pfs-luxury-hero__detail-frame { position: absolute; z-index: 1; width: 30%; min-width: 150px; aspect-ratio: .85; right: -20px; bottom: 35px; overflow: hidden; border: 7px solid var(--pfs-paper); box-shadow: 0 20px 44px rgba(0,0,0,.19); }
.pfs-luxury-hero__detail-image { width: 100%; height: 100%; object-fit: cover; }
.pfs-luxury-hero__caption { position: absolute; z-index: 2; left: 24px; bottom: 20px; max-width: 270px; margin: 0; color: white; font: 500 9px/1.55 'DM Mono', monospace !important; letter-spacing: .06em; text-transform: uppercase; }

.pfs-editorial { padding: 115px 0; background: white; }
.pfs-editorial__shell { width: min(100% - 48px, 1120px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(300px, .87fr); align-items: center; gap: clamp(40px, 8vw, 120px); }
.pfs-editorial__image-wrap { aspect-ratio: 1.08; overflow: hidden; background: #e2e8f0; }
.pfs-editorial__image { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .75s cubic-bezier(.16,1,.3,1); }
.pfs-editorial__image-wrap:hover .pfs-editorial__image { transform: scale(1.025); }
.pfs-editorial__copy h2 { max-width: 460px; margin: 0; font-size: clamp(35px, 4.2vw, 57px); font-weight: 600; letter-spacing: -.055em; line-height: 1.05; }
.pfs-editorial__copy > p:not(.pfs-kicker) { margin: 23px 0 28px; max-width: 410px; color: var(--pfs-copy); font-size: 14px; line-height: 1.85; }
.pfs-editorial__copy blockquote { margin: 0; padding: 18px 0 0 22px; border-left: 1px solid var(--pfs-brass); color: #475569; font-size: 18px; font-style: italic; line-height: 1.42; }

/* Solutions & Overview Section (Gambar 1 - Tepat Setelah Editorial) */
.pfs-solutions {
  padding: 88px 24px 96px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #fbfcfd 100%);
  border-top: none;
  border-bottom: none;
  text-align: center;
  position: relative;
}
.pfs-solutions__shell {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.pfs-solutions__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.pfs-solutions__badge svg {
  width: 15px;
  height: 15px;
  color: var(--pfs-navy);
}
.pfs-solutions__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.pfs-solutions__title-accent {
  color: var(--pfs-navy);
}
.pfs-solutions__description {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
}
.pfs-solutions__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.pfs-solutions__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  max-width: 800px;
  margin-top: 32px;
  text-align: center;
  position: relative;
}
.pfs-solutions__metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(28, 50, 71, 0.08);
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pfs-solutions__metric-item:last-child {
  border-right: none;
}
.pfs-solutions__metric-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
.pfs-solutions__metric-item:nth-child(2) {
  transform: none;
}
.pfs-solutions__metric-item:nth-child(2):hover {
  transform: translateY(-2px);
}
.pfs-solutions__metric-val {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(36px, 4.6vw, 48px);
  font-weight: 900;
  color: var(--pfs-navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.pfs-metric-digits {
  display: inline-flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 1) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 1) 78%, transparent 100%);
}
.pfs-metric-digit {
  display: inline-block;
  height: 1.15em;
  overflow: hidden;
}
.pfs-metric-digit__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.pfs-metric-digit__cell {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}
.pfs-metric-suffix {
  margin-left: 1px;
  color: var(--pfs-navy);
}
.pfs-solutions__metric-lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.pfs-solutions__metric-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .pfs-metric-digit__track { transition: none !important; }
  .pfs-solutions__metric-item { transition: none; }
}
@media (max-width: 640px) {
  .pfs-solutions { padding: 44px 20px; }
  .pfs-solutions__metrics {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 320px;
    margin-top: 24px;
  }
  .pfs-solutions__metric-item {
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(28, 50, 71, 0.08);
  }
  .pfs-solutions__metric-item:last-child {
    border-bottom: none;
  }
  .pfs-solutions__metric-item:nth-child(2) { transform: none; }
  .pfs-solutions__metric-item:nth-child(2):hover { transform: translateY(-2px); }
  .pfs-solutions__metric-sub { display: block; }
  .pfs-solutions__actions { flex-direction: column; width: 100%; }
  .pfs-solutions__actions .pfs-button { width: 100%; justify-content: center; }
}

.pfs-featured-section { padding: 96px 0 108px; background: var(--pfs-ivory); border-top: 1px solid rgba(28,50,71,.13); }
.pfs-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.pfs-section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(35px, 4.4vw, 57px); font-weight: 600; line-height: 1.05; letter-spacing: -.055em; }
.pfs-section-heading > div > p:last-child { max-width: 610px; margin: 18px 0 0; color: var(--pfs-copy); font-size: 13px; line-height: 1.8; }
.pfs-text-link { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding-bottom: 6px; border-bottom: 1px solid var(--pfs-walnut); color: var(--pfs-ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.pfs-text-link:hover { color: var(--pfs-walnut); }
.pfs-text-link svg { width: 15px; height: 15px; stroke-width: 1.7; }

/* Required: 4 cards laptop, 2 cards mobile. */
.pfs-featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pfs-featured-grid .product-card { min-width: 0; padding: 14px; background: rgba(255,255,255,.78); border: 1px solid rgba(24,32,42,.13); border-radius: 0; box-shadow: none; }
.pfs-featured-grid .product-card:hover { transform: translateY(-4px); border-color: rgba(28,50,71,.55); box-shadow: 0 18px 30px rgba(28,50,71,.10); }
.pfs-featured-grid .product-card > div:first-child > div:first-child { margin-bottom: 12px; padding-bottom: 9px; border-color: rgba(24,32,42,.1); }
.pfs-featured-grid .product-card .font-mono-sku { padding: 3px 5px; border: 0; border-radius: 0; background: transparent; color: #64748b; font-size: 9px; }
.pfs-featured-grid .product-image-stage { aspect-ratio: 4 / 4.15; margin-bottom: 15px; padding: 14px; border: 0; border-radius: 0; background: #f1f5f9; }
.pfs-featured-grid .product-image-stage > span { border: 0; border-radius: 0; background: var(--pfs-navy); color: white; box-shadow: none; }
.pfs-featured-grid .product-card h3 { min-height: 40px; margin-bottom: 7px; color: var(--pfs-ink); font-size: 13px; line-height: 1.45; }
.pfs-featured-grid .product-card p { color: #6d706f; font-size: 11px; line-height: 1.65; }
.pfs-featured-grid .product-card > div:last-child { padding-top: 12px; border-color: rgba(24,32,42,.12); }
.pfs-featured-grid .product-card > div:last-child a { border-radius: 0; background: var(--pfs-navy); }
.pfs-featured-grid .product-card > div:last-child button { border-radius: 0; }
.pfs-product-skeleton { min-height: 390px; background: rgba(255,255,255,.6); border: 1px solid rgba(24,32,42,.09); }

.pfs-showroom-callout { position: relative; min-height: 540px; overflow: hidden; background: var(--pfs-navy); color: white; }
.pfs-showroom-callout__image-wrap,
.pfs-showroom-callout__overlay { position: absolute; inset: 0; }
.pfs-showroom-callout__image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: saturate(.55) contrast(.91); }
.pfs-showroom-callout__overlay { background: linear-gradient(90deg, rgba(13,26,38,.95) 0%, rgba(13,26,38,.77) 45%, rgba(13,26,38,.26) 100%); }
.pfs-showroom-callout__shell { position: relative; z-index: 1; width: min(100% - 48px, 1320px); margin-inline: auto; min-height: 540px; display: flex; flex-direction: column; justify-content: space-between; padding: 80px 0 62px; }
.pfs-showroom-callout__copy { max-width: 640px; }
.pfs-showroom-callout__copy h2 { margin: 0; color: white; font-size: clamp(39px, 5vw, 66px); font-weight: 600; letter-spacing: -.06em; line-height: 1.02; }
.pfs-showroom-callout__copy > p:not(.pfs-kicker) { max-width: 560px; margin: 22px 0 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.85; }
.pfs-showroom-callout__panel { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 920px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.26); }
.pfs-showroom-callout__hours { display: flex; gap: 30px; }
.pfs-showroom-callout__hours div { display: grid; gap: 5px; }
.pfs-showroom-callout__hours span { color: rgba(255,255,255,.54); font-size: 10px; font-weight: 700; }
.pfs-showroom-callout__hours strong { color: #94a3b8; font: 500 11px/1.35 'DM Mono', monospace; }
.pfs-showroom-callout__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pfs-contact-hero { padding: 100px 0 72px; background: var(--pfs-ivory); border-bottom: 1px solid var(--pfs-line); }
.pfs-contact-hero h1 { max-width: 780px; margin: 0; font-size: clamp(48px, 6vw, 78px); font-weight: 600; line-height: .99; letter-spacing: -.06em; }
.pfs-contact-hero p:not(.pfs-kicker) { max-width: 650px; margin: 25px 0 0; color: var(--pfs-copy); font-size: 14px; line-height: 1.85; }

.pfs-location-map { padding: 58px 0 0; background: var(--pfs-paper); }
.pfs-location-map__frame { position: relative; min-height: 490px; overflow: hidden; background: #d9d9d9; }
.pfs-location-map__frame iframe { display: block; width: 100%; height: 490px; border: 0; filter: contrast(.95) saturate(.7); }
.pfs-location-map__card { position: absolute; z-index: 2; top: 30px; right: 30px; max-width: 300px; padding: 27px; background: rgba(255,255,255,.95); box-shadow: 0 16px 42px rgba(18,25,30,.18); }
@supports (backdrop-filter: blur(10px)) { .pfs-location-map__card { backdrop-filter: blur(12px); } }
.pfs-location-map__card h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.pfs-location-map__card > p:not(.pfs-kicker) { margin: 14px 0 22px; color: var(--pfs-copy); font-size: 13.5px; line-height: 1.7; }

.pfs-contact-details { padding: 42px 0 96px; background: var(--pfs-paper); }
.pfs-contact-details__grid { display: grid; grid-template-columns: 1.06fr .94fr 1.05fr; gap: 14px; }
.pfs-contact-info-card { min-height: 280px; padding: 30px; background: white; border: 1px solid var(--pfs-line); }
.pfs-contact-info-card > svg { width: 22px; height: 22px; margin-bottom: 14px; color: var(--pfs-walnut); stroke-width: 1.35; }
.pfs-contact-info-card h2 { margin: 0 0 11px; font-size: 25px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.pfs-contact-info-card > p { margin: 0; color: var(--pfs-copy); font-size: 13.5px; line-height: 1.75; }
.pfs-hours-list { display: grid; gap: 0; margin: 0; }
.pfs-hours-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pfs-line); font-size: 13px; }
.pfs-hours-list div:last-child { border-bottom: 0; }
.pfs-hours-list dt { color: var(--pfs-copy); }
.pfs-hours-list dd { margin: 0; color: var(--pfs-ink); font: 500 12.5px/1.4 'DM Mono', monospace; text-align: right; }
.pfs-hours-list dd.is-closed { color: #9b3e34; }
.pfs-contact-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.pfs-contact-list li { display: flex; align-items: center; gap: 12px; }
.pfs-contact-list li > svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--pfs-walnut); stroke-width: 1.6; }
.pfs-contact-list div { display: grid; gap: 6px; min-width: 0; }
.pfs-contact-list span { color: #898986; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pfs-contact-list a { color: var(--pfs-ink); font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.pfs-contact-list a:hover { color: var(--pfs-walnut); }

.pfs-inquiry-section { padding: 0 0 110px; background: var(--pfs-paper); }
.pfs-inquiry-card { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; padding: clamp(32px, 5.5vw, 72px); background: var(--pfs-navy); color: white; }
.pfs-inquiry-card__intro h2 { max-width: 420px; margin: 0; color: white; font-size: clamp(33px, 4vw, 52px); font-weight: 600; letter-spacing: -.055em; line-height: 1.05; }
.pfs-inquiry-card__intro > p:not(.pfs-kicker) { margin: 22px 0 0; color: rgba(255,255,255,.66); font-size: 13.5px; line-height: 1.8; }
.pfs-inquiry-card .pfs-kicker { color: #94a3b8; }
.pfs-inquiry-form { display: grid; gap: 17px; }
.pfs-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.pfs-inquiry-form label { display: grid; gap: 7px; min-width: 0; }
.pfs-inquiry-form label span { color: rgba(255,255,255,.72); font-size: 11.5px; font-weight: 700; }
.pfs-inquiry-form label b { color: #34d399; }
.pfs-inquiry-form input,
.pfs-inquiry-form select,
.pfs-inquiry-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.25); border-radius: 0; background: rgba(255,255,255,.04); color: white; padding: 12px; outline: 0; font-size: 13.5px; transition: border-color .18s ease, background-color .18s ease; }
.pfs-inquiry-form input,
.pfs-inquiry-form select { height: 43px; }
.pfs-inquiry-form select { color: white; }
.pfs-inquiry-form select option { color: var(--pfs-ink); }
.pfs-inquiry-form textarea { resize: vertical; min-height: 114px; }
.pfs-inquiry-form input::placeholder,
.pfs-inquiry-form textarea::placeholder { color: rgba(255,255,255,.42); }
.pfs-inquiry-form input:focus,
.pfs-inquiry-form select:focus,
.pfs-inquiry-form textarea:focus { border-color: #34d399; background: rgba(255,255,255,.08); }
.pfs-inquiry-submit { justify-self: start; margin-top: 3px; background: #34d399; color: white; }
.pfs-inquiry-submit:hover { background: #10b981; color: white; }

.pfs-site-footer { margin-top: auto; background: var(--pfs-navy-deep); color: white; }
.pfs-footer-shell { display: grid; grid-template-columns: 1.2fr .85fr .8fr; gap: 45px; padding: 58px 0; }
.pfs-footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.pfs-footer-brand img { width: 47px; height: 47px; object-fit: contain; }
.pfs-footer-brand p { margin: 0; color: rgba(255,255,255,.58); max-width: 315px; font-size: 11px; line-height: 1.7; }
.pfs-footer-brand .pfs-footer-wordmark { margin-bottom: 7px; color: white; font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.pfs-footer-links { display: flex; flex-direction: column; align-content: start; gap: 11px; }
.pfs-footer-links a { color: rgba(255,255,255,.65); font-size: 11.5px; text-decoration: none; transition: color .25s ease; }

/* Footer + subpage footer link hover: brass underline sweeps L→R on enter,
   retracts R→L on leave. Duration raised so the eye catches the motion. */
.pfs-footer-links a,
.site-footer ul a { position: relative; display: inline-block; }
.pfs-footer-links a::after,
.site-footer ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--pfs-brass, #b08d57);
  transform: scaleX(0);
  transform-origin: right;
  opacity: 0;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
  pointer-events: none;
}
.pfs-footer-links a:hover,
.site-footer ul li a:hover { color: white; }
.pfs-footer-links a:hover::after,
.site-footer ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: .85;
}
.pfs-footer-contact { display: flex; flex-direction: column; align-content: start; gap: 11px; }
.pfs-footer-contact-item { display: inline-flex; align-items: center; gap: 9px; font-size: 11.5px; text-decoration: none; line-height: 1.4; transition: color .15s ease, opacity .15s ease; }
.pfs-footer-contact-item .pfs-footer-icon { width: 14px; height: 14px; flex-shrink: 0; }
.pfs-footer-contact-item--wa { color: #34d399; }
.pfs-footer-contact-item--wa:hover { color: #6ee7b7; }
.pfs-footer-contact-item--mail { color: rgba(255,255,255,.72); }
.pfs-footer-contact-item--mail:hover { color: #ffffff; }
.pfs-footer-bottom { display: flex; justify-content: space-between; gap: 16px; width: min(100% - 48px, 1320px); margin-inline: auto; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font: 400 9px/1.5 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .pfs-main-nav { gap: 16px; }
  .pfs-nav-links {
    --pfs-nav-pad: 7px;                            /* automatically aligns underline and padding */
    gap: 0;
  }
  .pfs-nav-links a { font-size: 11px; }
  .pfs-nav-whatsapp span { display: none; }
  .pfs-nav-whatsapp { width: 36px; justify-content: center; padding: 0; }
  .pfs-luxury-hero__shell { grid-template-columns: .92fr 1.08fr; min-height: 520px; }
  .pfs-luxury-hero__copy { padding-inline: 46px; }
  .pfs-luxury-hero__detail-frame { right: 16px; }
  .pfs-editorial__shell { gap: 56px; }
  .pfs-contact-details__grid { grid-template-columns: 1fr 1fr; }
  .pfs-contact-details__grid > :last-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  .pfs-nav-shell,
  .pfs-section-shell,
  .pfs-contact-shell,
  .pfs-footer-shell,
  .pfs-luxury-hero__shell,
  .pfs-footer-bottom { width: min(100% - 32px, 1320px); }
  .pfs-topline__inner { min-height: 30px; font-size: 8px; }
  .pfs-topline__inner p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pfs-topline__inner a { white-space: nowrap; }
  .pfs-site-header { min-height: 67px; }           /* mobile header reservation (66px + 1px) */
  .pfs-main-nav { height: 66px; }
  .pfs-wordmark img { width: 34px; height: 34px; }
  .pfs-wordmark > span { font-size: 12.5px; letter-spacing: -0.01em; }
  .pfs-wordmark small { font-size: 7px; letter-spacing: 0.12em; margin-top: 2px; }
  .pfs-nav-search { display: none; }
  .pfs-lang-switcher { margin-right: 0; }
  .pfs-nav-whatsapp { display: none; }
  .pfs-nav-toggle { display: inline-grid; }
  .pfs-nav-links {
    --pfs-nav-pad: 8px;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: var(--pfs-navy);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
  }
  .pfs-nav-links.is-open { display: grid; }
  .pfs-nav-links a {
    padding: 12px var(--pfs-nav-pad);
    font-size: 12px;
  }
  .pfs-nav-links a::after {
    left: var(--pfs-nav-pad);
    right: var(--pfs-nav-pad);
    width: auto;
    bottom: 6px;
  }
  .pfs-luxury-hero { padding: 16px 0 18px; }
  .pfs-luxury-hero__shell { min-height: 0; display: flex; flex-direction: column-reverse; }
  .pfs-luxury-hero__visual { min-height: 355px; border-left: 1px solid var(--pfs-line); }
  .pfs-luxury-hero__image { object-position: 54% center; }
  .pfs-hero-heritage-card {
    top: 14px;
    left: 14px;
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }
  .pfs-hero-heritage-card__badge {
    font-size: 9.5px;
    padding: 3px 6px;
  }
  .pfs-hero-heritage-card__title {
    font-size: 11px;
  }
  .pfs-hero-heritage-card__desc {
    font-size: 8.5px;
  }
  .pfs-luxury-hero__detail-frame { width: 34%; min-width: 112px; right: 13px; bottom: -27px; border-width: 5px; }
  .pfs-luxury-hero__caption { left: 15px; bottom: 15px; max-width: 210px; font-size: 7px !important; }
  .pfs-luxury-hero__copy { padding: 40px 25px 26px; border-top: 0; }
  .pfs-kicker { margin-bottom: 13px; font-size: 8px !important; }
  .pfs-luxury-hero__copy h1 { font-size: clamp(42px, 12.5vw, 59px); }
  .pfs-luxury-hero__description { margin: 19px 0 23px; font-size: 12px; line-height: 1.75; }
  .pfs-button { min-height: 42px; padding-inline: 14px; font-size: 10px; }
  .pfs-luxury-hero__assurance { margin-top: 26px; gap: 8px; }
  .pfs-assurance-card { padding: 6px 10px; font-size: 10px; gap: 6px; }
  .pfs-assurance-card__tag { font-size: 8.5px; padding: 1px 5px; }
  .pfs-editorial { padding: 36px 0; }
  .pfs-editorial__shell { display: grid; grid-template-columns: 1fr; gap: 26px; }
  .pfs-editorial__image-wrap { aspect-ratio: 1.18; }
  .pfs-editorial__copy h2,
  .pfs-section-heading h2 { font-size: clamp(34px, 10vw, 49px); }
  .pfs-editorial__copy > p:not(.pfs-kicker) { margin: 18px 0 23px; font-size: 12px; }
  .pfs-editorial__copy blockquote { font-size: 16px; }
  .pfs-featured-section { padding: 52px 0 56px; }
  .pfs-section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 27px; }
  .pfs-section-heading > div > p:last-child { margin-top: 14px; font-size: 12px; }
  .pfs-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .pfs-featured-grid .product-card { padding: 9px; }
  .pfs-featured-grid .product-card > div:first-child > div:first-child { margin-bottom: 8px; padding-bottom: 6px; gap: 4px; }
  .pfs-featured-grid .product-card > div:first-child > div:first-child img { max-width: 48px; }
  .pfs-featured-grid .product-card .font-mono-sku { max-width: 69px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
  .pfs-featured-grid .product-image-stage { margin-bottom: 10px; padding: 8px; }
  .pfs-featured-grid .product-image-stage > span { top: 6px; left: 6px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
  .pfs-featured-grid .product-card h3 { min-height: 33px; margin-bottom: 5px; font-size: 10px; line-height: 1.35; }
  .pfs-featured-grid .product-card > div:first-child > span { margin-bottom: 3px; font-size: 7px; }
  .pfs-featured-grid .product-card p { display: none; }
  .pfs-featured-grid .product-card > div:last-child { flex-direction: column; align-items: stretch; gap: 7px; padding-top: 8px; }
  .pfs-featured-grid .product-card > div:last-child > div:first-child { min-width: 0; }
  .pfs-featured-grid .product-card > div:last-child > div:first-child span:first-child { font-size: 7px; }
  .pfs-featured-grid .product-card > div:last-child > div:first-child span:last-child { font-size: 10px; }
  .pfs-featured-grid .product-card > div:last-child > div:last-child { width: 100%; gap: 4px; }
  .pfs-featured-grid .product-card > div:last-child button,
  .pfs-featured-grid .product-card > div:last-child a { height: 29px; min-width: 0; padding-inline: 6px; font-size: 8px; }
  .pfs-featured-grid .product-card > div:last-child a { flex: 1; justify-content: center; }
  .pfs-featured-grid .product-card > div:last-child button svg,
  .pfs-featured-grid .product-card > div:last-child a svg { width: 11px; height: 11px; }
  .pfs-product-skeleton { min-height: 260px; }
  .pfs-showroom-callout { min-height: 0; }
  .pfs-showroom-callout__image { object-position: 49% 53%; }
  .pfs-showroom-callout__overlay { background: linear-gradient(0deg, rgba(13,26,38,.94), rgba(13,26,38,.54) 69%, rgba(13,26,38,.24)); }
  .pfs-showroom-callout__shell { width: min(100% - 32px, 1320px); margin-inline: auto; min-height: 0; justify-content: flex-start; gap: 34px; padding: 48px 0 40px; }
  .pfs-showroom-callout__copy h2 { font-size: clamp(37px, 11vw, 51px); }
  .pfs-showroom-callout__copy > p:not(.pfs-kicker) { margin-top: 17px; font-size: 12px; line-height: 1.72; }
  .pfs-showroom-callout__panel { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 17px; }
  .pfs-showroom-callout__hours { gap: 18px; }
  .pfs-showroom-callout__actions { width: 100%; }
  .pfs-showroom-callout__actions .pfs-button { flex: 1; padding-inline: 7px; }
  .pfs-contact-hero { padding: 67px 0 51px; }
  .pfs-contact-hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .pfs-contact-hero p:not(.pfs-kicker) { margin-top: 18px; font-size: 12px; }
  .pfs-location-map { padding-top: 28px; }
  .pfs-location-map__frame { min-height: 515px; }
  .pfs-location-map__frame iframe { height: 515px; }
  .pfs-location-map__card { top: auto; bottom: 13px; left: 13px; right: 13px; max-width: none; padding: 20px; }
  .pfs-location-map__card h2 { font-size: 23px; }
  .pfs-contact-details { padding: 14px 0 60px; }
  .pfs-contact-details__grid { grid-template-columns: 1fr; gap: 10px; }
  .pfs-contact-details__grid > :last-child { grid-column: auto; }
  .pfs-contact-info-card { min-height: 0; padding: 24px; }
  .pfs-contact-info-card > svg { margin-bottom: 24px; }
  .pfs-contact-info-card h2 { font-size: 23px; }
  .pfs-inquiry-section { padding-bottom: 70px; }
  .pfs-inquiry-card { grid-template-columns: 1fr; gap: 32px; padding: 29px 21px; }
  .pfs-inquiry-card__intro h2 { font-size: 35px; }
  .pfs-field-grid { grid-template-columns: 1fr; gap: 13px; }
  .pfs-footer-shell { grid-template-columns: 1fr; gap: 28px; padding: 45px 0; }
  .pfs-footer-bottom { flex-direction: column; padding: 12px 0; font-size: 8px; }
}

/* ==========================================================================
   ADMIN CMS STUDIO STYLES (Locked-Layout Block Architecture)
   ========================================================================== */

.pfs-admin-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pfs-admin-gate-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pfs-admin-gate-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.pfs-admin-gate-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pfs-admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pfs-admin-login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pfs-admin-login-form input {
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
}

.pfs-admin-login-form input:focus {
  background: #ffffff;
  border-color: #1c3247;
  box-shadow: 0 0 0 3px rgba(28, 50, 71, 0.1);
}

.pfs-admin-login-form button {
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #1c3247;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.15s ease;
}

.pfs-admin-login-form button:hover {
  background: #132433;
  transform: translateY(-1px);
}

.pfs-admin-gate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  margin-top: 1.25rem;
}

.pfs-admin-gate-link:hover {
  text-decoration: underline;
}

.pfs-admin-gate-secondary {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.15s ease;
}

.pfs-admin-gate-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pfs-admin-status {
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.pfs-admin-status--preview {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.pfs-admin-status--preview a {
  padding: 0.375rem 0.75rem;
  background: #ca8a04;
  color: #ffffff;
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pfs-admin-status--cloud {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.pfs-admin-status > div {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pfs-admin-status__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pfs-admin-status__actions button {
  padding: 0.375rem 0.75rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.pfs-admin-status__actions button:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Workspace Layout */
.pfs-cms-workspace {
  display: grid;
  grid-template-columns: 240px 320px minmax(0, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-height: 680px;
}

.pfs-cms-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pfs-cms-sidebar__top h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.25rem 0 0.5rem;
}

.pfs-cms-sidebar__top p:not(.pfs-admin-kicker) {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.pfs-admin-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pfs-cms-page-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pfs-cms-page-switcher button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.pfs-cms-page-switcher button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pfs-cms-page-switcher button.is-active {
  background: #1c3247;
  color: #ffffff;
  font-weight: 700;
}

.pfs-cms-page-switcher button i {
  width: 1rem;
  height: 1rem;
}

.pfs-cms-sidebar__foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1c3247;
  text-decoration: none;
}

.pfs-cms-sidebar__foot a:hover {
  text-decoration: underline;
}

/* Block List Column */
.pfs-cms-block-list {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pfs-cms-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pfs-cms-list-heading h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pfs-cms-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #e11d48;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.pfs-cms-layout-note {
  font-size: 0.6875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #f1f5f9;
}

.pfs-cms-block-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pfs-cms-block-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  transition: all 0.15s ease;
}

.pfs-cms-block-card:hover {
  border-color: #cbd5e1;
}

.pfs-cms-block-card.is-selected {
  border-color: #1c3247;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px #1c3247;
}

.pfs-cms-block-card.is-hidden {
  opacity: 0.5;
  background: #f8fafc;
}

.pfs-cms-block-card__select {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.pfs-cms-block-card__select strong {
  display: block;
  font-size: 0.8125rem;
  color: #0f172a;
}

.pfs-cms-block-card__select small {
  font-size: 0.6875rem;
  color: #64748b;
}

.pfs-cms-block-card__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pfs-cms-block-card__controls button {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  cursor: pointer;
  color: #475569;
}

.pfs-cms-block-card__controls button:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.pfs-cms-block-card__controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pfs-cms-block-card__controls label {
  cursor: pointer;
  margin-left: 0.25rem;
}

/* Detail Editor Column */
.pfs-cms-detail-editor {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pfs-cms-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.pfs-cms-detail-heading h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pfs-cms-status-dot {
  font-size: 0.6875rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.pfs-cms-fields {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.pfs-cms-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.pfs-cms-field span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
}

.pfs-cms-field input,
.pfs-cms-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.pfs-cms-field input:focus,
.pfs-cms-field textarea:focus {
  border-color: #1c3247;
  box-shadow: 0 0 0 3px rgba(28, 50, 71, 0.08);
}

.pfs-cms-field-note {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.pfs-cms-image-preview {
  margin-top: 0.5rem;
  padding: 0.625rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pfs-cms-image-preview img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid #cbd5e1;
}

.pfs-cms-image-preview.is-broken img {
  display: none;
}

.pfs-cms-image-preview span {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}

/* Repeaters (Hours & Contacts) */
.pfs-cms-repeater {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
}

.pfs-cms-repeater__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pfs-cms-repeater__heading p {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pfs-cms-repeater__heading span {
  font-size: 0.6875rem;
  color: #64748b;
}

.pfs-cms-repeater__heading button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: #1c3247;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}

.pfs-cms-repeater__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pfs-cms-repeater {
  max-width: 100%;
  box-sizing: border-box;
}

.pfs-cms-repeater__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.pfs-cms-repeat-row,
.pfs-cms-contact-row {
  display: grid;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.625rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}

.pfs-cms-repeat-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 90px 32px;
}

.pfs-cms-contact-row {
  grid-template-columns: 105px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 32px;
}

@media (max-width: 1100px) {
  .pfs-cms-contact-row {
    grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) 32px;
  }
  .pfs-cms-contact-row input:nth-child(4) {
    grid-column: 1 / -2;
  }
}

@media (max-width: 640px) {
  .pfs-cms-repeat-row {
    grid-template-columns: 1fr 32px;
  }
  .pfs-cms-repeat-row input,
  .pfs-cms-repeat-row select {
    grid-column: 1 / 2;
  }
  .pfs-cms-repeat-row button {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .pfs-cms-contact-row {
    grid-template-columns: 1fr 32px;
  }
  .pfs-cms-contact-row select,
  .pfs-cms-contact-row input {
    grid-column: 1 / 2;
  }
  .pfs-cms-contact-row button {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
}

.pfs-cms-repeat-row input,
.pfs-cms-repeat-row select,
.pfs-cms-contact-row input,
.pfs-cms-contact-row select {
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  outline: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.pfs-cms-repeat-row button,
.pfs-cms-contact-row button {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 0.375rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Savebar */
.pfs-cms-savebar {
  margin-top: auto;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pfs-cms-savebar strong {
  display: block;
  font-size: 0.8125rem;
  color: #0f172a;
}

.pfs-cms-savebar span {
  font-size: 0.6875rem;
  color: #64748b;
}

.pfs-cms-savebar button {
  height: 2.5rem;
  padding: 0 1.25rem;
  background: #059669;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.pfs-cms-savebar button:hover:not(:disabled) {
  background: #047857;
  transform: translateY(-1px);
}

.pfs-cms-savebar button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pfs-toast-error {
  background: #991b1b !important;
  border-color: #ef4444 !important;
}

@media (max-width: 1024px) {
  .pfs-cms-workspace {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CATALOG FILTER — Shopee-style (mobile bottom sheet + desktop left sidebar)
   Single DOM instance (#filter-panel), behaviour switched per breakpoint.
   ========================================================================== */

.filter-group {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.filter-group-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Mobile filter trigger pill (utility bar) */
.filter-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.filter-open-btn:hover {
  background: var(--primary-surface, #f1f5f9);
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.filter-badge.hidden {
  display: none;
}

/* Removable active-filter tag chips (utility bar) */
.filter-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-surface, #f1f5f9);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tag-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --- MOBILE: bottom sheet (default state) --- */
#filter-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  /* capped below the sticky header (67-79px) so the sheet never covers it,
     even on short/landscape viewports where 85dvh would cross the header */
  max-height: min(85dvh, calc(100dvh - 84px));
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.20);
  transform: translateY(105%);
  transition: transform 0.25s ease;
  visibility: hidden;
}

#filter-panel.sheet-open {
  transform: translateY(0);
  visibility: visible;
}

#filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

#filter-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

#filter-sheet-close:hover {
  background: var(--surface-subtle, #f8fafc);
  color: var(--text-main, #0f172a);
}

#filter-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px;
}

#filter-sheet-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 16px 16px;
}

.filter-btn-clear {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn-clear:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-surface, #f1f5f9);
}

.filter-btn-apply {
  flex: 1 1 auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-btn-apply:hover {
  background: var(--primary-hover, #132433);
  border-color: var(--primary-hover, #132433);
}

#filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#filter-sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hide floating WhatsApp FAB while the mobile filter sheet is open
   (FAB z-index 999 would otherwise sit on top of the sheet footer) */
.filter-sheet-open .floating-wa-btn,
.filter-sheet-open #global-floating-wa {
  display: none !important;
}

/* --- DESKTOP: sticky left sidebar (>=1024px) --- */
@media (min-width: 1024px) {
  #filter-panel {
    position: sticky;
    top: 96px;
    z-index: 30; /* below .pfs-site-header (40): sticky release slides the panel UNDER the header, never over it */
    transform: none;
    visibility: visible;
    width: 240px;
    flex: 0 0 240px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    display: block;
    background: var(--surface-subtle, #f8fafc);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: none;
    transition: none;
  }

  #filter-sheet-header {
    border-radius: 16px 16px 0 0;
    background: transparent;
    padding: 14px 14px 10px;
  }

  #filter-sheet-close,
  #filter-sheet-footer,
  #filter-sheet-backdrop,
  #filter-sheet-btn {
    display: none !important;
  }

  #filter-sheet-body {
    padding: 0 14px 14px;
    overflow: visible;
  }
}

