/* ==========================================================================
   AF STORE WEB KATALOG — Bento Emerald Multi-Page Design System (v3.0)
   Cascade Layers, Cross-Document View Transitions, Adaptive Navbar & FAB
   ========================================================================== */

@layer base, theme, components, utilities;

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

@layer theme {
  :root {
    --bg-light: #F4F7F5;
    --bg-alt-light: #EAF0EC;
    --surface-light: #FFFFFF;
    --surface-subtle-light: #EFF5F1;
    --border-light: #D5E2DB;
    --border-strong-light: #8DA398;
    --text-light: #0F172A;
    --text-muted-light: #475569;
    --text-subtle-light: #526277;

    --emerald-light: #059669;
    --emerald-hover-light: #047857;
    --emerald-soft-light: #DCFCE7;
    --emerald-border-light: #86EFAC;
    --emerald-text-light: #065F46;

    --cta-bg-light: #0F172A;
    --cta-hover-light: #1E293B;
    --cta-text-light: #FFFFFF;

    --promo-bg-light: #FEF3C7;
    --promo-border-light: #FCD34D;
    --promo-text-light: #92400E;

    --danger-light: #DC2626;
    --danger-soft-light: #FEF2F2;
    --danger-border-light: #FECACA;

    --header-bg-light: rgba(255, 255, 255, 0.92);
    --card-shadow-light: 0 8px 24px rgba(15, 23, 42, 0.045);
    --card-shadow-hover-light: 0 16px 36px rgba(5, 150, 105, 0.12);
    --scroll-track-light: #EAF0EC;
    --scroll-thumb-light: #64748B;

    --bg-dark: #0B1210;
    --bg-alt-dark: #0F1815;
    --surface-dark: #131E1A;
    --surface-subtle-dark: #192822;
    --border-dark: #23372F;
    --border-strong-dark: #496A5D;
    --text-dark: #F1F5F9;
    --text-muted-dark: #94A3B8;
    --text-subtle-dark: #8FA3B8;

    --emerald-dark: #10B981;
    --emerald-hover-dark: #059669;
    --emerald-soft-dark: rgba(16, 185, 129, 0.16);
    --emerald-border-dark: rgba(52, 211, 153, 0.36);
    --emerald-text-dark: #6EE7B7;

    --cta-bg-dark: #10B981;
    --cta-hover-dark: #34D399;
    --cta-text-dark: #052E16;

    --promo-bg-dark: rgba(245, 158, 11, 0.16);
    --promo-border-dark: rgba(251, 191, 36, 0.36);
    --promo-text-dark: #FCD34D;

    --danger-dark: #F87171;
    --danger-soft-dark: rgba(239, 68, 68, 0.16);
    --danger-border-dark: rgba(248, 113, 113, 0.36);

    --header-bg-dark: rgba(11, 18, 16, 0.92);
    --card-shadow-dark: 0 12px 28px rgba(0, 0, 0, 0.36);
    --card-shadow-hover-dark: 0 16px 36px rgba(0, 0, 0, 0.52);
    --scroll-track-dark: #0F1815;
    --scroll-thumb-dark: #64748B;

    --bg: var(--bg-light);
    --bg-alt: var(--bg-alt-light);
    --surface: var(--surface-light);
    --surface-subtle: var(--surface-subtle-light);
    --border: var(--border-light);
    --border-strong: var(--border-strong-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --text-subtle: var(--text-subtle-light);
    --emerald: var(--emerald-light);
    --emerald-hover: var(--emerald-hover-light);
    --emerald-soft: var(--emerald-soft-light);
    --emerald-border: var(--emerald-border-light);
    --emerald-text: var(--emerald-text-light);
    --cta-bg: var(--cta-bg-light);
    --cta-hover: var(--cta-hover-light);
    --cta-text: var(--cta-text-light);
    --promo-bg: var(--promo-bg-light);
    --promo-border: var(--promo-border-light);
    --promo-text: var(--promo-text-light);
    --danger: var(--danger-light);
    --danger-soft: var(--danger-soft-light);
    --danger-border: var(--danger-border-light);
    --header-bg: var(--header-bg-light);
    --card-shadow: var(--card-shadow-light);
    --card-shadow-hover: var(--card-shadow-hover-light);
    --scrollbar-track: var(--scroll-track-light);
    --scrollbar-thumb: var(--scroll-thumb-light);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --font-sans: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --container-max: 1160px;

    color-scheme: light dark;
    accent-color: var(--emerald);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);

    @media (prefers-color-scheme: dark) {
      --bg: var(--bg-dark);
      --bg-alt: var(--bg-alt-dark);
      --surface: var(--surface-dark);
      --surface-subtle: var(--surface-subtle-dark);
      --border: var(--border-dark);
      --border-strong: var(--border-strong-dark);
      --text: var(--text-dark);
      --text-muted: var(--text-muted-dark);
      --text-subtle: var(--text-subtle-dark);
      --emerald: var(--emerald-dark);
      --emerald-hover: var(--emerald-hover-dark);
      --emerald-soft: var(--emerald-soft-dark);
      --emerald-border: var(--emerald-border-dark);
      --emerald-text: var(--emerald-text-dark);
      --cta-bg: var(--cta-bg-dark);
      --cta-hover: var(--cta-hover-dark);
      --cta-text: var(--cta-text-dark);
      --promo-bg: var(--promo-bg-dark);
      --promo-border: var(--promo-border-dark);
      --promo-text: var(--promo-text-dark);
      --danger: var(--danger-dark);
      --danger-soft: var(--danger-soft-dark);
      --danger-border: var(--danger-border-dark);
      --header-bg: var(--header-bg-dark);
      --card-shadow: var(--card-shadow-dark);
      --card-shadow-hover: var(--card-shadow-hover-dark);
      --scrollbar-track: var(--scroll-track-dark);
      --scrollbar-thumb: var(--scroll-thumb-dark);
    }

    &:has(> head > meta[name="color-scheme"][content="light"]) {
      color-scheme: light;
      --bg: var(--bg-light);
      --bg-alt: var(--bg-alt-light);
      --surface: var(--surface-light);
      --surface-subtle: var(--surface-subtle-light);
      --border: var(--border-light);
      --border-strong: var(--border-strong-light);
      --text: var(--text-light);
      --text-muted: var(--text-muted-light);
      --text-subtle: var(--text-subtle-light);
      --emerald: var(--emerald-light);
      --emerald-hover: var(--emerald-hover-light);
      --emerald-soft: var(--emerald-soft-light);
      --emerald-border: var(--emerald-border-light);
      --emerald-text: var(--emerald-text-light);
      --cta-bg: var(--cta-bg-light);
      --cta-hover: var(--cta-hover-light);
      --cta-text: var(--cta-text-light);
      --promo-bg: var(--promo-bg-light);
      --promo-border: var(--promo-border-light);
      --promo-text: var(--promo-text-light);
      --danger: var(--danger-light);
      --danger-soft: var(--danger-soft-light);
      --danger-border: var(--danger-border-light);
      --header-bg: var(--header-bg-light);
      --card-shadow: var(--card-shadow-light);
      --card-shadow-hover: var(--card-shadow-hover-light);
      --scrollbar-track: var(--scroll-track-light);
      --scrollbar-thumb: var(--scroll-thumb-light);
    }

    &:has(> head > meta[name="color-scheme"][content="dark"]) {
      color-scheme: dark;
      --bg: var(--bg-dark);
      --bg-alt: var(--bg-alt-dark);
      --surface: var(--surface-dark);
      --surface-subtle: var(--surface-subtle-dark);
      --border: var(--border-dark);
      --border-strong: var(--border-strong-dark);
      --text: var(--text-dark);
      --text-muted: var(--text-muted-dark);
      --text-subtle: var(--text-subtle-dark);
      --emerald: var(--emerald-dark);
      --emerald-hover: var(--emerald-hover-dark);
      --emerald-soft: var(--emerald-soft-dark);
      --emerald-border: var(--emerald-border-dark);
      --emerald-text: var(--emerald-text-dark);
      --cta-bg: var(--cta-bg-dark);
      --cta-hover: var(--cta-hover-dark);
      --cta-text: var(--cta-text-dark);
      --promo-bg: var(--promo-bg-dark);
      --promo-border: var(--promo-border-dark);
      --promo-text: var(--promo-text-dark);
      --danger: var(--danger-dark);
      --danger-soft: var(--danger-soft-dark);
      --danger-border: var(--danger-border-dark);
      --header-bg: var(--header-bg-dark);
      --card-shadow: var(--card-shadow-dark);
      --card-shadow-hover: var(--card-shadow-hover-dark);
      --scrollbar-track: var(--scroll-track-dark);
      --scrollbar-thumb: var(--scroll-thumb-dark);
    }

    @supports (color: light-dark(white, black)) {
      --bg: light-dark(var(--bg-light), var(--bg-dark));
      --bg-alt: light-dark(var(--bg-alt-light), var(--bg-alt-dark));
      --surface: light-dark(var(--surface-light), var(--surface-dark));
      --surface-subtle: light-dark(var(--surface-subtle-light), var(--surface-subtle-dark));
      --border: light-dark(var(--border-light), var(--border-dark));
      --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
      --text: light-dark(var(--text-light), var(--text-dark));
      --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
      --text-subtle: light-dark(var(--text-subtle-light), var(--text-subtle-dark));
      --emerald: light-dark(var(--emerald-light), var(--emerald-dark));
      --emerald-hover: light-dark(var(--emerald-hover-light), var(--emerald-hover-dark));
      --emerald-soft: light-dark(var(--emerald-soft-light), var(--emerald-soft-dark));
      --emerald-border: light-dark(var(--emerald-border-light), var(--emerald-border-dark));
      --emerald-text: light-dark(var(--emerald-text-light), var(--emerald-text-dark));
      --cta-bg: light-dark(var(--cta-bg-light), var(--cta-bg-dark));
      --cta-hover: light-dark(var(--cta-hover-light), var(--cta-hover-dark));
      --cta-text: light-dark(var(--cta-text-light), var(--cta-text-dark));
      --promo-bg: light-dark(var(--promo-bg-light), var(--promo-bg-dark));
      --promo-border: light-dark(var(--promo-border-light), var(--promo-border-dark));
      --promo-text: light-dark(var(--promo-text-light), var(--promo-text-dark));
      --danger: light-dark(var(--danger-light), var(--danger-dark));
      --danger-soft: light-dark(var(--danger-soft-light), var(--danger-soft-dark));
      --danger-border: light-dark(var(--danger-border-light), var(--danger-border-dark));
      --scrollbar-track: light-dark(var(--scroll-track-light), var(--scroll-track-dark));
      --scrollbar-thumb: light-dark(var(--scroll-thumb-light), var(--scroll-thumb-dark));
    }
  }

  @supports not (scrollbar-color: auto) {
    html::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    html::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb);
    }
    html::-webkit-scrollbar-track {
      background: var(--scrollbar-track);
    }
  }
}

@layer base {
  html, body, div, header, nav, main, section, article, aside, footer,
  dialog, form, details, summary, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd,
  button, input, select, pre, code, a, span, small, img, svg {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    height: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }

  body {
    margin: 0;
    min-height: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  main {
    flex: 1;
  }

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

  button, input, select {
    font: inherit;
  }

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

  :focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
  }

  .svg-sprite-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }
}

@layer components {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
  }

  /* ---------------- ADAPTIVE SINGLE-TREE NAVBAR ---------------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 35;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .site-header.is-measuring,
  .site-header.is-measuring a,
  .site-header.is-measuring button,
  .site-header.is-measuring ul {
    transition: none !important;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 66px;
  }

  .header-inner > a,
  .header-inner > nav,
  .header-inner > div {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .brand-text strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .brand-tag {
    color: var(--emerald-text);
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-inline-start: 4px;
  }

  .brand-text small {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-top: 2px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .theme-toggle,
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease;
  }

  .theme-toggle:hover,
  .mobile-menu-btn:hover {
    background: var(--surface-subtle);
    border-color: var(--emerald);
  }

  .theme-toggle .icon-sun { display: none; }
  .theme-toggle .icon-moon { display: block; }
  :root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .icon-moon { display: none; }

  /* Collapsed / Narrow Layout Defaults */
  .mobile-menu-btn {
    anchor-name: --menu-button;
  }

  .site-menu {
    list-style: none;
    margin: 0;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--card-shadow);
    position: fixed;
    inset: auto;
    inset-block-start: 4.5rem;
    inset-block-start: anchor(--menu-button bottom);
    inset-inline-end: 16px;
    inline-size: min(86dvw, 320px);
    max-block-size: calc(100dvh - 5.5rem);
    overflow-y: auto;
  }

  .site-menu[popover]:where(:popover-open, .\:popover-open) {
    display: grid;
    gap: 4px;
  }

  @supports not selector(:popover-open) {
    [popover]:not(.\:popover-open) {
      display: none;
    }
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .nav-link:hover {
    background: var(--surface-subtle);
    color: var(--text);
  }

  .nav-link[aria-current="page"],
  .dropdown-trigger.is-group-active,
  .dropdown-trigger[aria-expanded="true"] {
    background: var(--emerald-soft);
    border-color: var(--emerald-border);
    color: var(--emerald-text);
  }

  .dropdown-trigger svg {
    transition: transform 0.18s ease;
  }

  .dropdown-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .dropdown-list {
    list-style: none;
    margin: 4px 0 4px 10px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    display: grid;
    gap: 4px;
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .dropdown-item:hover,
  .dropdown-item[aria-current="page"] {
    background: var(--surface);
    border-color: var(--emerald-border);
  }

  .dropdown-item-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .dropdown-item-copy strong {
    font-size: 0.84rem;
    color: var(--text);
  }

  .dropdown-item-copy span {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--emerald-text);
    margin-top: 2px;
  }

  .mobile-only-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  /* Wide Inline Navbar Layout */
  .site-header.is-wide .mobile-menu-btn,
  .site-header.is-wide .mobile-only-actions {
    display: none;
  }

  .site-header.is-wide .site-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    inline-size: auto;
    max-block-size: none;
    overflow: visible;
    margin: 0;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    box-shadow: none;
  }

  .site-header.is-wide .nav-link {
    width: auto;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
  }

  .site-header.is-wide .nav-link[aria-current="page"],
  .site-header.is-wide .dropdown-trigger.is-group-active {
    background: var(--surface);
    border-color: var(--emerald);
    color: var(--emerald-text);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  }

  /* Wide Floating Submenu Popover (selalu fixed terhadap viewport agar aman saat di-scroll) */
  .site-header.is-wide .dropdown-list {
    min-inline-size: 250px;
    max-inline-size: calc(100vw - 16px);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: var(--card-shadow-hover);
  }

  .site-header.is-wide .dropdown-list[popover] {
    position: fixed;
    inset: auto;
    height: auto;
    margin: 0;
    overflow: visible;
  }

  .site-header.is-wide .dropdown-list::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 100%;
    block-size: 10px;
  }

  .site-header.is-wide .dropdown-list:not(:is(:popover-open, .\:popover-open)) {
    display: none;
  }

  .site-header.is-wide .dropdown-list:is(:popover-open, .\:popover-open) {
    display: grid;
    gap: 4px;
  }

  .site-header:not(.is-wide) #btn-header-receipt,
  .site-header:not(.is-wide) #btn-header-payment {
    display: none;
  }

  /* ---------------- BUTTONS & ICON BOX ---------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
    white-space: nowrap;
  }

  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .btn-sm {
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 9px;
  }

  .btn-block {
    width: 100%;
  }

  .btn-primary {
    background: var(--cta-bg);
    color: var(--cta-text);
  }

  .btn-primary:hover:not(:disabled) {
    background: var(--cta-hover);
    transform: translateY(-1px);
  }

  .btn-emerald {
    background: var(--emerald);
    color: #FFFFFF;
  }

  .btn-emerald:hover:not(:disabled) {
    background: var(--emerald-hover);
    transform: translateY(-1px);
  }

  .btn-emerald-soft {
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border-color: var(--emerald-border);
  }

  .btn-emerald-soft:hover:not(:disabled) {
    background: var(--emerald);
    color: #FFFFFF;
    border-color: var(--emerald);
  }

  .btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
  }

  .btn-outline:hover:not(:disabled) {
    border-color: var(--emerald);
    color: var(--emerald-text);
    background: var(--emerald-soft);
  }

  .btn-ghost {
    background: transparent;
    color: var(--text-muted);
  }

  .btn-ghost:hover:not(:disabled) {
    background: var(--surface-subtle);
    color: var(--text);
  }

  .icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border: 1px solid var(--emerald-border);
    flex-shrink: 0;
  }

  .icon-box svg {
    display: block;
    flex-shrink: 0;
  }

  .icon-box-sm {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
    color: var(--emerald-text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    flex-shrink: 0;
  }

  /* ---------------- LANDING PAGE: 4 CATEGORY BENTO GATEWAY ---------------- */
  .landing-section {
    padding-block: 36px 52px;
  }

  .landing-intro {
    max-width: 680px;
    margin-bottom: 26px;
  }

  .landing-title {
    margin: 12px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
  }

  .landing-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
  }

  .bento-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Stretched-link pattern per modern-web-guidance 'card' guide */
  .bento-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 100% 0%, var(--emerald-soft) 0%, transparent 45%),
      var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .bento-cat-card a.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }

  .bento-cat-card a.card-link:focus-visible {
    outline: none;
  }

  .bento-cat-card:has(a.card-link:focus-visible) {
    outline: 2px solid var(--emerald);
    outline-offset: 3px;
  }

  .bento-cat-card:has(a.card-link:hover) {
    transform: translateY(-3px);
    border-color: var(--emerald);
    box-shadow: var(--card-shadow-hover);
  }

  .bento-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .bento-cat-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .bento-cat-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
  }

  .bento-cat-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .bento-cat-price span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
  }

  .bento-cat-price strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--emerald-text);
  }

  .bento-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--cta-bg);
    color: var(--cta-text);
    font-size: 0.82rem;
    font-weight: 700;
  }

  /* ---------------- CATEGORY PAGES & BREADCRUMB ---------------- */
  .section {
    padding-block: 28px 48px;
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-subtle);
    margin-bottom: 16px;
  }

  .breadcrumb a:hover {
    color: var(--emerald-text);
    text-decoration: underline;
  }

  .breadcrumb [aria-current="page"] {
    color: var(--text);
    font-weight: 700;
  }

  .active-order-banner {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.86rem;
  }

  .cat-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }

  .section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--emerald-text);
    margin-bottom: 4px;
  }

  .section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .section-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    max-width: 62ch;
    font-size: 0.91rem;
  }

  .cat-search-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .sibling-switch-bar {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .sibling-pill {
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
  }

  .sibling-pill.active {
    background: var(--cta-bg);
    color: var(--cta-text);
  }

  .search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
  }

  .search-box svg {
    position: absolute;
    inset-inline-start: 12px;
    color: var(--text-subtle);
    pointer-events: none;
  }

  .search-box input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 0.86rem;
  }

  .search-box input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-soft);
  }

  /* ---------------- PRODUCT CARDS ---------------- */
  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .product-card {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }

  .product-card:hover {
    border-color: var(--emerald);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
  }

  .product-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .product-head-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .product-head-titles {
    min-width: 0;
  }

  .cat-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border: 1px solid var(--emerald-border);
  }

  .product-title {
    margin: 5px 0 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
  }

  .mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mode-auto {
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border: 1px solid var(--emerald-border);
  }

  .mode-manual {
    background: var(--promo-bg);
    color: var(--promo-text);
    border: 1px solid var(--promo-border);
  }

  .product-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
  }

  .product-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
  }

  .variant-selector-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-subtle);
    margin-bottom: 6px;
  }

  .variant-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  .variant-pill:hover {
    border-color: var(--emerald);
  }

  .variant-pill.active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #FFFFFF;
  }

  .variant-pill-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--promo-bg);
    color: var(--promo-text);
  }

  .variant-pill.active .variant-pill-badge {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
  }

  .promo-strip {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--promo-bg);
    border: 1px solid var(--promo-border);
    color: var(--promo-text);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
  }

  .price-display-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
  }

  .price-caption {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
  }

  .price-main-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
  }

  .price-strike {
    font-size: 0.8rem;
    color: var(--text-subtle);
    text-decoration: line-through;
  }

  .price-value {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--emerald-text);
  }

  .price-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
  }

  .status-ready-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border: 1px solid var(--emerald-border);
  }

  .spec-mini-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  @container (max-width: 290px) {
    .spec-mini-grid {
      grid-template-columns: 1fr;
    }
  }

  .spec-mini-item {
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg);
  }

  .spec-mini-item dt {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-subtle);
  }

  .spec-mini-item dd {
    margin: 1px 0 0;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
  }

  .benefit-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-muted);
  }

  .benefit-row svg {
    color: var(--emerald);
    margin-top: 3px;
    flex-shrink: 0;
  }

  .product-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 2px;
  }

  .empty-state {
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--border-strong);
    background: var(--surface);
  }

  /* ---------------- ECOSYSTEM & FAQ & FOOTER ---------------- */
  .eco-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin-top: 22px;
  }

  .eco-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: border-color 0.16s ease, transform 0.16s ease;
  }

  .eco-link-card:hover {
    border-color: var(--emerald);
    transform: translateY(-2px);
  }

  .eco-link-copy strong {
    display: block;
    font-size: 0.94rem;
  }

  .eco-link-copy span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
  }

  .eco-arrow-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--emerald-soft);
    color: var(--emerald-text);
    flex-shrink: 0;
  }

  .faq-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
  }

  .faq-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 15px 20px;
  }

  .faq-item[open] {
    border-color: var(--emerald);
  }

  .faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
  }

  .faq-answer {
    margin-top: 10px;
    font-size: 0.89rem;
    color: var(--text-muted);
  }

  .site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding-block: 26px 22px;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .footer-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    max-width: 48ch;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .footer-links a:hover {
    color: var(--emerald-text);
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-subtle);
  }

  /* ---------------- GLOWING WHATSAPP FLOATING CONTACT BUTTON ---------------- */
  .contact-fab-wrap {
    position: fixed;
    inset-block-end: 22px;
    inset-inline-end: 22px;
    z-index: 45;
  }

  .contact-fab-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #86EFAC;
    background: linear-gradient(135deg, #22C55E, #059669);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.48), 0 0 0 0 rgba(34, 197, 94, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .contact-fab-btn {
      animation: waGlowPulse 2.1s infinite;
    }
  }

  @keyframes waGlowPulse {
    0% {
      box-shadow: 0 8px 26px rgba(16, 185, 129, 0.48), 0 0 0 0 rgba(34, 197, 94, 0.62);
    }
    70% {
      box-shadow: 0 10px 30px rgba(16, 185, 129, 0.65), 0 0 0 14px rgba(34, 197, 94, 0);
    }
    100% {
      box-shadow: 0 8px 26px rgba(16, 185, 129, 0.48), 0 0 0 0 rgba(34, 197, 94, 0);
    }
  }

  .contact-fab-btn:hover {
    transform: scale(1.06);
  }

  .contact-fab-popover {
    width: 268px;
    padding: 12px;
    border-radius: 16px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  }

  @supports (position-area: block-start) {
    .contact-fab-popover {
      inset: auto;
      margin: 0 0 12px 0;
      position-area: block-start span-inline-start;
      position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
    }
  }

  @supports not (position-area: block-start) {
    .contact-fab-popover {
      position: fixed;
      inset: auto 22px 92px auto;
      margin: 0;
    }
  }

  .contact-fab-popover:where(:popover-open, .\:popover-open) {
    display: grid;
    gap: 8px;
  }

  .contact-popover-head {
    padding: 2px 4px 6px;
    border-bottom: 1px solid var(--border);
  }

  .contact-popover-head strong {
    display: block;
    font-size: 0.85rem;
  }

  .contact-popover-head span {
    display: block;
    font-size: 0.73rem;
    color: var(--text-muted);
  }

  .contact-choice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    transition: transform 0.14s ease, border-color 0.16s ease;
  }

  .contact-choice-btn:hover {
    transform: translateY(-1px);
    border-color: var(--emerald);
  }

  .choice-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
  }

  .choice-wa .choice-icon-box {
    background: #16A34A;
  }

  .choice-tele .choice-icon-box {
    background: #0284C7;
  }

  .choice-copy strong {
    display: block;
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .choice-copy small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
  }

  /* ---------------- NATIVE <dialog> & CHECKOUT ---------------- */
  dialog.af-dialog {
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    width: calc(100% - 28px);
    max-height: min(90dvh, 840px);
    margin: auto;
    opacity: 0;
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.22s;
    transition-timing-function: ease-out;
    transition-behavior: allow-discrete;

    @media (prefers-reduced-motion: no-preference) {
      transform: scale(0.96);
    }
  }

  dialog.af-dialog.dialog-md { max-width: 500px; }
  dialog.af-dialog.dialog-lg { max-width: 580px; }

  dialog.af-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  dialog.af-dialog[open]:where(:not([data-closing])) {
    opacity: 1;

    @starting-style {
      opacity: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
      transform: scale(1);

      @starting-style {
        transform: scale(0.96);
      }
    }
  }

  dialog.af-dialog:modal {
    overscroll-behavior: contain;
  }

  dialog.af-dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(3px);
    transition-property: background-color, display, overlay;
    transition-duration: 0.22s;
    transition-timing-function: ease-out;
    transition-behavior: allow-discrete;
  }

  dialog.af-dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(15, 23, 42, 0.56);

    @starting-style {
      background-color: rgba(15, 23, 42, 0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    dialog.af-dialog,
    dialog.af-dialog::backdrop {
      transition-duration: 0.08s;
    }
  }

  .dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  .dialog-title {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
  }

  .dialog-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
  }

  .dialog-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
  }

  .dialog-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface-subtle);
    display: grid;
    gap: 10px;
  }

  .inline-feedback {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger);
  }

  .inline-feedback.is-success {
    background: var(--emerald-soft);
    border-color: var(--emerald-border);
    color: var(--emerald-text);
  }

  .checkout-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-subtle);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .stepper-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-subtle);
  }

  .stepper-item .step-num {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: var(--text);
    font-size: 0.72rem;
  }

  .stepper-item.active,
  .stepper-item.done {
    color: var(--emerald-text);
  }

  .stepper-item.active .step-num,
  .stepper-item.done .step-num {
    background: var(--emerald);
    color: #FFFFFF;
  }

  .stepper-line {
    flex: 1;
    height: 1px;
    background: var(--border-strong);
  }

  .checkout-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mode-tab-btn {
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
  }

  .mode-tab-btn.active {
    background: var(--emerald-soft);
    border-color: var(--emerald);
    color: var(--emerald-text);
  }

  .form-group {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
  }

  .form-label {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .req { color: var(--danger); }

  .form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg);
    color: var(--text);
    font-size: 0.88rem;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-soft);
  }

  .form-input.input-error {
    border-color: var(--danger);
    background: var(--danger-soft);
  }

  .modal-variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .modal-variant-chips.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variant-chip-btn {
    padding: 8px 11px;
    border-radius: 9px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface-subtle);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .variant-chip-btn.active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: #FFFFFF;
  }

  .chip-floating-badge {
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.14);
  }

  .context-fields-box {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    margin-bottom: 10px;
  }

  .panel-avail-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 0.79rem;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .panel-avail-banner.checking { background: var(--promo-bg); color: var(--promo-text); }
  .panel-avail-banner.available { background: var(--emerald-soft); color: var(--emerald-text); }
  .panel-avail-banner.unavailable { background: var(--danger-soft); color: var(--danger); }

  .btn-mini-recheck {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
  }

  .info-callout {
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--emerald-soft);
    color: var(--emerald-text);
    border: 1px solid var(--emerald-border);
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .fallback-alert {
    padding: 12px;
    border-radius: 10px;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  .fallback-alert p { margin: 0 0 8px; font-weight: 600; }
  .fallback-actions { display: flex; flex-wrap: wrap; gap: 8px; }

  .preview-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-subtle);
    padding: 9px 12px;
  }

  .preview-details summary { cursor: pointer; font-size: 0.81rem; font-weight: 700; }

  .order-preview-pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow-x: auto;
  }

  .footer-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .footer-price-summary { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; }

  .footer-badge-ready {
    font-size: 0.73rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--emerald-soft);
    color: var(--emerald-text);
  }

  .footer-badge-full {
    font-size: 0.73rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--danger-soft);
    color: var(--danger);
  }

  .manual-cta-grid,
  .success-support-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .modal-footer-disclaimer {
    margin: 0;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-subtle);
  }

  .qris-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    margin-bottom: 12px;
  }

  .meta-label { display: block; font-size: 0.7rem; color: var(--text-subtle); }
  .countdown-pill { font-family: var(--font-mono); color: var(--emerald-text); }

  .qris-card-box {
    display: grid;
    gap: 12px;
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-subtle);
  }

  .qris-img-wrap {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
    margin-inline: auto;
    border: 1px solid #D5E2DB;
  }

  .qris-img-wrap img { width: 210px; height: 210px; object-fit: contain; }
  .qris-amount-caption { display: block; font-size: 0.75rem; color: var(--text-muted); }
  .qris-amount-box strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--emerald-text); }
  .qris-amount-box small { font-size: 0.76rem; color: var(--text-subtle); }
  .qris-btn-row, .qris-help-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .qris-help-row { margin-top: 12px; }
  .qris-poll-status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
  .qris-meta-id { font-size: 0.74rem; color: var(--text-subtle); }

  .success-banner {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: var(--emerald-soft);
    border: 1px solid var(--emerald-border);
    margin-bottom: 12px;
  }

  .success-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--emerald);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
  }

  .success-heading { margin: 0 0 4px; font-size: 1.05rem; }
  .success-banner p { margin: 0; font-size: 0.84rem; color: var(--text-muted); }

  .delivery-box {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .delivery-card-header { font-size: 0.78rem; font-weight: 800; color: var(--emerald-text); letter-spacing: 0.04em; }
  .delivery-kv-list { display: grid; gap: 7px; }
  .delivery-kv-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.82rem; }
  .delivery-kv-list > div:not(:last-child) { padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
  .delivery-kv-list > div > span { color: var(--text-muted); }

  .btn-copy-field, .btn-copy-cred {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
  }

  .panel-copy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .success-actions-grid { display: grid; gap: 10px; }

  .payment-info-card { display: grid; gap: 12px; text-align: center; }
  .static-qris-img { width: 240px; margin-inline: auto; border-radius: 12px; border: 1px solid var(--border); }
  .payment-info-note { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

  .dana-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    text-align: left;
  }

  .dana-label { display: block; font-size: 0.74rem; color: var(--text-subtle); }
  .recent-orders-list { display: grid; gap: 8px; }

  .recent-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface-subtle);
    font-size: 0.82rem;
  }

  .toast-region {
    position: fixed;
    inset-block-end: 90px;
    inset-inline-end: 22px;
    z-index: 60;
    display: grid;
    gap: 8px;
    pointer-events: none;
  }

  .toast-item {
    position: fixed;
    inset: auto 22px 92px auto;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--emerald-border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--card-shadow);
    font-size: 0.84rem;
    font-weight: 700;
    pointer-events: auto;
  }

  .toast-item:where(:popover-open, .\:popover-open) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .toast-close-btn {
    border: 1px solid var(--border);
    background: var(--surface-subtle);
    color: var(--text);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.75rem;
    cursor: pointer;
  }

  .not-found-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
  .not-found-card { max-width: 460px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-align: center; }

  @media (forced-colors: active) {
    .product-card, .bento-cat-card, .variant-pill, .btn, .contact-fab-btn {
      border: 1px solid CanvasText;
    }
    .variant-pill.active, [aria-current="page"] {
      outline: 2px solid Highlight;
    }
  }

  @media (max-width: 780px) {
    .bento-cat-grid,
    .catalog-grid,
    .modal-variant-chips.grid-2-cols,
    .manual-cta-grid,
    .success-support-row {
      grid-template-columns: 1fr;
    }
    .cat-page-header,
    .cat-search-wrap {
      align-items: stretch;
    }
    .search-box {
      min-width: 0;
      width: 100%;
    }
    .sibling-switch-bar {
      width: 100%;
      justify-content: space-between;
    }
    .sibling-pill {
      flex: 1;
      text-align: center;
    }
  }

  @media (max-width: 560px) {
    .container {
      padding-inline: 14px;
    }
    .header-inner {
      height: 60px;
      gap: 8px;
    }
    .brand {
      gap: 8px;
      min-width: 0;
    }
    .brand-logo-img {
      width: 32px;
      height: 32px;
    }
    .brand-text strong {
      font-size: 0.9rem;
    }
    .brand-tag {
      padding: 1px 6px;
      font-size: 0.65rem;
    }
    .brand-text small {
      font-size: 0.58rem;
    }
    .landing-section {
      padding-block: 24px 40px;
    }
    .bento-cat-card,
    .product-card {
      padding: 16px;
    }
    .bento-cat-foot,
    .price-display-bar,
    .dana-box,
    .recent-order-item,
    .panel-avail-banner {
      flex-wrap: wrap;
    }
    .product-card-head {
      flex-wrap: wrap;
      gap: 8px;
    }
    .delivery-kv-list > div {
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      word-break: break-word;
    }
    dialog.af-dialog {
      width: calc(100% - 14px);
      max-height: 92dvh;
    }
    .dialog-header,
    .dialog-body,
    .dialog-footer {
      padding: 14px;
    }
    .checkout-stepper {
      padding: 8px 14px;
      gap: 5px;
      font-size: 0.72rem;
    }
    .qris-img-wrap img {
      width: 185px;
      height: 185px;
    }
    .site-footer {
      padding-bottom: 84px;
    }
    .contact-fab-wrap {
      inset-block-end: 14px;
      inset-inline-end: 14px;
    }
    .contact-fab-btn {
      width: 52px;
      height: 52px;
    }
  }
}

@layer utilities {
  [hidden] {
    display: none !important;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
