/* ==========================================================================
   PT Winant Medika Investama — Public site
   Dipakai hanya oleh components/app-layout. Admin tetap memakai app.css.
   ========================================================================== */

/* ---------- Font lokal (self-host, lisensi SIL OFL) ---------- */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/onest-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/onest-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/onest-latin-600-normal.woff2') format('woff2'); }

:root {
    --ink: #0d2b2a;          /* petrol gelap, dasar area gelap */
    --ink-2: #143e3b;
    --teal: #0f766e;         /* warna brand */
    --teal-deep: #0b5750;
    --brass: #b8904a;        /* aksen premium */
    --brass-soft: #dcc08a;   /* aksen di atas latar gelap */
    --porcelain: #f3f5f3;
    --porcelain-2: #e9eeeb;
    --paper: #ffffff;
    --line: #dce3df;
    --text: #182625;
    --muted: #5b6b69;
    --danger: #b42318;

    --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 28px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow-soft: 0 1px 2px rgba(13, 43, 42, .05), 0 12px 32px -12px rgba(13, 43, 42, .18);
    --wrap: 1200px;
    --gutter: clamp(18px, 4vw, 40px);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--porcelain);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--paper); padding: 10px 16px; border-radius: var(--r-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 26px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: .95rem; letter-spacing: .005em;
    cursor: pointer; white-space: nowrap;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(.98); }

.btn-brass { background: var(--brass); color: #1b1407; box-shadow: 0 10px 24px -10px rgba(184, 144, 74, .8); }
.btn-brass:hover { background: #c79d55; box-shadow: 0 14px 30px -10px rgba(184, 144, 74, .9); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--teal-deep); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

.btn-line { border-color: var(--line); background: var(--paper); color: var(--text); }
.btn-line:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

.link-underline {
    font-weight: 600; color: var(--teal-deep);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s var(--ease);
    padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 40;
    height: var(--header-h);
    background: rgba(243, 245, 243, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(243, 245, 243, .94); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; flex-shrink: 0; }
.brand-plaque { /* logo di footer gelap: diberi plakat terang agar warna navy tetap terbaca */
    display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0;
    border-radius: 18px 18px 18px 6px; background: var(--porcelain);
    box-shadow: inset 0 0 0 1px rgba(220, 192, 138, .5);
}
.brand-plaque img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    position: relative; padding: 8px 14px; border-radius: 999px;
    font-size: .93rem; font-weight: 500; color: var(--text);
    transition: background-color .2s var(--ease);
}
.site-nav a:hover { background: var(--porcelain-2); }
.site-nav a.is-active { background: var(--ink); color: #fff; }
.site-nav .btn { margin-left: 8px; min-height: 42px; padding: 0 20px; font-size: .9rem; }
.site-nav a.btn-ink, .site-nav a.btn-ink:hover { color: #fff; }
.site-nav a.btn-ink { background: var(--ink); }
.site-nav a.btn-ink:hover { background: var(--teal-deep); }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--paper); cursor: pointer;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px var(--gutter) 28px;
        background: var(--porcelain);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 40px -30px rgba(13, 43, 42, .35);
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .35s var(--ease), opacity .25s var(--ease), visibility 0s linear .35s;
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    .site-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--r-sm); }
    .site-nav .btn { margin: 10px 0 0; min-height: 50px; }
    .site-header .brand-sub { display: none; }
    .brand-logo { height: 38px; }
}

/* ==========================================================================
   Hero (beranda)
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% 30%, rgba(15, 118, 110, .45), transparent 60%),
        radial-gradient(700px 400px at 10% 110%, rgba(184, 144, 74, .16), transparent 60%),
        var(--ink);
    color: #fff;
    isolation: isolate;
}
.hero::before { /* garis grid tipis, seperti kertas ukur */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.hero-stage { display: grid; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.hero-slide {
    grid-area: 1 / 1;
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
    gap: clamp(28px, 5vw, 72px);
    opacity: 0; visibility: hidden;
    transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

.hero-copy { max-width: 560px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    border: 1px solid rgba(220, 192, 138, .35);
    color: var(--brass-soft); font-size: .85rem; font-weight: 500;
    margin-bottom: 22px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-soft); }

.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -0.02em; }
.hero-lead { margin: 22px 0 32px; font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(255, 255, 255, .74); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bingkai lengkung: etalase produk */
.hero-vitrine { position: relative; justify-self: center; width: min(100%, 440px); }
.vitrine-arch {
    position: relative; aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--r-lg) var(--r-lg);
    background: linear-gradient(180deg, #fbfcfb 0%, #e6ece9 100%);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .6);
    overflow: hidden;
}
.vitrine-arch img {
    position: absolute; inset: 14% 10% 10%;
    width: 80%; height: 76%;
    object-fit: contain; mix-blend-mode: multiply;
    transform: scale(1.04); transition: transform 6s var(--ease);
}
.hero-slide.is-active .vitrine-arch img { transform: scale(1); }
.vitrine-ring { /* garis kuningan mengikuti lengkung */
    position: absolute; inset: -14px; z-index: -1;
    border-radius: 999px 999px calc(var(--r-lg) + 14px) calc(var(--r-lg) + 14px);
    border: 1px solid rgba(220, 192, 138, .4);
}
.vitrine-caption {
    position: absolute; left: -28px; bottom: 36px;
    background: var(--paper); color: var(--text);
    border-radius: var(--r-md); padding: 14px 18px;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
    max-width: 230px;
}
.vitrine-caption small { display: block; color: var(--muted); font-size: .78rem; }
.vitrine-caption strong { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.vitrine-arch img.vitrine-logo { inset: 28% 18% auto; width: 64%; height: auto; mix-blend-mode: normal; }

/* Masuk bertahap hanya untuk slide aktif */
.hero-slide.is-active .hero-tag,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-lead,
.hero-slide.is-active .hero-actions { animation: heroIn .9s var(--ease) both; }
.hero-slide.is-active .hero-title { animation-delay: .08s; }
.hero-slide.is-active .hero-lead { animation-delay: .16s; }
.hero-slide.is-active .hero-actions { animation-delay: .24s; }
.hero-slide.is-active .vitrine-caption { animation: heroIn .9s var(--ease) .35s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Kontrol carousel */
.hero-controls { display: flex; align-items: center; gap: 22px; padding-bottom: clamp(28px, 4vw, 44px); }
.hero-count { font-size: .9rem; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; min-width: 64px; }
.hero-count b { color: #fff; font-weight: 600; }
.hero-bars { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.hero-bar {
    position: relative; flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero-bar::before, .hero-bar i {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
}
.hero-bar::before { background: rgba(255, 255, 255, .2); }
.hero-bar i { background: var(--brass-soft); transform: scaleX(0); transform-origin: left; }
.hero-bar.is-done i { transform: scaleX(1); }
.hero-bar.is-active i { animation: barFill var(--hero-interval, 6s) linear forwards; }
.hero.is-paused .hero-bar.is-active i { animation-play-state: paused; }
@keyframes barFill { to { transform: scaleX(1); } }

.hero-arrows { display: flex; gap: 8px; margin-left: auto; }
.hero-arrow {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.hero-arrow:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.hero-arrow svg { width: 18px; height: 18px; }

/* Baris jaminan */
.assurance { border-top: 1px solid rgba(255, 255, 255, .1); }
.assurance-list {
    list-style: none; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.assurance-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 20px 22px 0; font-size: .92rem; color: rgba(255, 255, 255, .82);
}
.assurance-list li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.assurance-list svg { width: 22px; height: 22px; color: var(--brass-soft); flex-shrink: 0; }

@media (max-width: 900px) {
    .hero-slide { grid-template-columns: 1fr; }
    .hero-vitrine { order: -1; width: min(62%, 300px); }
    .hero-stage { padding-top: 32px; }
    .vitrine-caption { left: auto; right: -12px; bottom: 20px; }
    .hero-copy { max-width: none; }
    .assurance-list { grid-template-columns: repeat(2, 1fr); }
    .assurance-list li:nth-child(3) { border-left: 0; padding-left: 0; }
    .assurance-list li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 560px) {
    .hero-actions .btn { flex: 1; }
    .hero-arrows { display: none; }
    .hero-bars { max-width: none; }
    .vitrine-caption { display: none; }
    .hero-vitrine { width: min(56%, 230px); }
    .vitrine-arch { aspect-ratio: 5 / 6; }
    .hero-lead { margin: 16px 0 24px; }
    .hero-tag { margin-bottom: 16px; }
    .assurance-list li { font-size: .84rem; padding: 16px 12px 16px 0; gap: 10px; }
    .assurance-list li + li { padding-left: 12px; }
    .assurance-list li:nth-child(3) { padding-left: 0; }
}

/* ==========================================================================
   Section umum
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head {
    display: flex; align-items: end; justify-content: space-between; gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--ink); }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 640px) {
    .section-head { flex-direction: column; align-items: start; }
}

/* ==========================================================================
   Kartu produk
   ========================================================================== */
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border-radius: var(--r-md);
    border: 1px solid var(--line);
    transition: border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { border-color: #c5d0cb; box-shadow: var(--shadow-soft); }

.product-card-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    margin: 8px 8px 0; border-radius: calc(var(--r-md) - 6px);
    background: linear-gradient(180deg, #f7f9f8, #eaefec);
    overflow: hidden;
}
.product-card-media img {
    width: 100%; height: 100%; object-fit: contain; padding: 12%;
    mix-blend-mode: multiply;
    transition: transform .7s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.05); }

.product-card-flag {
    position: absolute; top: 12px; left: 12px; z-index: 1;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px; border-radius: 999px;
    background: var(--ink); color: var(--brass-soft);
    font-size: .74rem; font-weight: 600;
}
.product-card-flag svg { width: 12px; height: 12px; }

.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.product-card-cat { font-size: .8rem; color: var(--teal); font-weight: 500; }
.product-card-title { font-size: 1.35rem; line-height: 1.15; margin: 4px 0 8px; color: var(--ink); }
.product-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* seluruh kartu bisa diklik */
.product-card-desc { font-size: .88rem; color: var(--muted); margin: 0 0 16px; line-height: 1.55; }
.product-card-foot {
    margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-top: 14px; border-top: 1px dashed var(--line);
}
.product-card-price { white-space: nowrap; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.product-card-quote { font-size: .86rem; color: var(--muted); }
.product-card-go {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--porcelain); color: var(--ink);
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.product-card-go svg { width: 16px; height: 16px; }
.product-card:hover .product-card-go { background: var(--ink); color: var(--brass-soft); transform: rotate(-45deg); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 2vw, 22px); }

/* Showcase beranda: kartu pertama tampil besar */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); }
.showcase .product-card:first-child { grid-column: span 2; grid-row: span 2; }
.showcase .product-card:first-child .product-card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.showcase .product-card:first-child .product-card-body { flex: 0 0 auto; padding: 22px 26px 24px; }
.showcase .product-card:first-child .product-card-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.showcase .product-card:first-child .product-card-desc { font-size: .95rem; }

@media (max-width: 980px) {
    .showcase { grid-template-columns: repeat(2, 1fr); }
    .showcase .product-card:first-child { grid-row: auto; }
    .showcase .product-card:first-child .product-card-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
    .product-grid, .showcase { grid-template-columns: repeat(2, 1fr); }
    .product-card-media { margin: 6px 6px 0; }
    .product-card-body { padding: 12px 12px 14px; }
    .product-card-title { font-size: 1.12rem; }
    .product-card-desc { display: none; }
    .product-card-cat { font-size: .74rem; }
    .product-card-go { width: 30px; height: 30px; }
    .product-card-price { font-size: .9rem; }
    .showcase .product-card:first-child .product-card-desc { display: block; }
}

.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* ==========================================================================
   Cara pesan (urutan langkah)
   ========================================================================== */
.steps-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: block; font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--brass);
    margin-bottom: 18px;
}
.steps li::after { /* garis progres aksen */
    content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--ink);
}
.steps h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA gelap
   ========================================================================== */
.cta-panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 32px;
    padding: clamp(36px, 6vw, 72px);
    border-radius: var(--r-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(15, 118, 110, .55), transparent 70%),
        var(--ink);
    color: #fff;
}
.cta-panel::after { /* lengkung dekoratif, gema dari bingkai etalase */
    content: ""; position: absolute; right: -60px; bottom: -180px; width: 320px; height: 380px;
    border: 1px solid rgba(220, 192, 138, .3); border-radius: 999px 999px 0 0; pointer-events: none;
}
.cta-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-panel p { color: rgba(255, 255, 255, .72); margin: 14px 0 0; max-width: 50ch; }
.cta-panel .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-panel { grid-template-columns: 1fr; } .cta-panel .btn { width: 100%; } }

/* ==========================================================================
   Katalog
   ========================================================================== */
.page-head { padding: clamp(36px, 6vw, 64px) 0 clamp(24px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); color: var(--ink); }
.page-head p { margin: 10px 0 0; color: var(--muted); }

.search-panel {
    display: grid; grid-template-columns: 1fr 220px auto; gap: 8px;
    padding: 8px; border-radius: 999px;
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input, .search-panel select {
    width: 100%; height: 48px; border: 0; background: transparent; outline: none;
}
.search-field input { padding: 0 16px 0 48px; }
.search-panel select {
    padding: 0 38px 0 18px; border-left: 1px solid var(--line); border-radius: 0; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6b69' stroke-width='1.6'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.search-panel:focus-within { border-color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 720px) {
    .search-panel { grid-template-columns: 1fr auto; border-radius: var(--r-md); }
    .search-field { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .search-panel select { border-left: 0; }
}

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.chip-static { padding: 4px 12px; border-radius: 999px; background: var(--porcelain-2); color: var(--text); }

.catalog { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; padding: 32px 0 clamp(56px, 8vw, 96px); }
.cat-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.cat-nav h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 12px; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-nav a {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--r-sm); font-size: .93rem;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cat-nav a:hover { background: var(--porcelain-2); }
.cat-nav a small { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-nav .is-active a { background: var(--ink); color: #fff; }
.cat-nav .is-active a small { color: var(--brass-soft); }

@media (max-width: 900px) {
    .catalog { grid-template-columns: 1fr; padding-top: 20px; }
    .cat-nav { position: static; margin: 0 calc(var(--gutter) * -1); }
    .cat-nav h2 { display: none; }
    .cat-nav ul {
        flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 6px;
        scroll-snap-type: x proximity; scrollbar-width: none;
    }
    .cat-nav ul::-webkit-scrollbar { display: none; }
    .cat-nav li { scroll-snap-align: start; flex-shrink: 0; }
    .cat-nav a { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
    .cat-nav .is-active a { border-color: var(--ink); }
}

.empty-state {
    text-align: center; padding: clamp(40px, 8vw, 80px) 24px;
    border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.empty-state h2 { font-size: 2rem; color: var(--ink); }
.empty-state p { color: var(--muted); margin: 10px auto 24px; max-width: 42ch; }

/* Paginasi */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span {
    min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .92rem; font-variant-numeric: tabular-nums;
    border: 1px solid var(--line); background: var(--paper);
    transition: border-color .2s var(--ease);
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .is-disabled { color: #a9b4b2; }
.pager .is-gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ==========================================================================
   Detail produk
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 24px 0 0; font-size: .86rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .5; }
.crumbs span[aria-current] { color: var(--text); }

.pd-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: 24px 0 clamp(48px, 6vw, 80px); align-items: start; }

.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-stage {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(180deg, #fbfcfb 0%, #e5ebe8 100%);
    border: 1px solid var(--line);
}
.pd-stage img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 9%; mix-blend-mode: multiply;
    transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.pd-stage img.is-swapping { opacity: 0; transform: scale(.98); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb {
    flex-shrink: 0; width: 76px; height: 76px; padding: 6px; cursor: pointer;
    border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumb:hover { border-color: #b5c2bd; }
.pd-thumb.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.pd-info { padding-top: 8px; }
.pd-cat {
    display: inline-flex; padding: 5px 14px; border-radius: 999px;
    background: rgba(15, 118, 110, .09); color: var(--teal-deep); font-size: .84rem; font-weight: 500;
    margin-bottom: 18px;
}
.pd-info h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); color: var(--ink); line-height: 1.02; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; }
.pd-meta div { display: flex; flex-direction: column; }
.pd-meta dt { font-size: .78rem; color: var(--muted); }
.pd-meta dd { margin: 0; font-weight: 500; }

.pd-price-row { margin: 28px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--ink); line-height: 1; }
.pd-price-note { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.pd-lead { font-size: 1.05rem; color: #334341; margin: 0 0 28px; max-width: 58ch; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-actions .btn { flex: 1 1 200px; }

.pd-perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.pd-perks li { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: #334341; }
.pd-perks svg { width: 20px; height: 20px; color: var(--brass); flex-shrink: 0; }

@media (max-width: 900px) {
    .pd-top { grid-template-columns: 1fr; padding-top: 16px; }
    .pd-gallery { position: static; }
    .pd-stage { border-radius: var(--r-md); }
}

.pd-body { display: grid; grid-template-columns: 1fr 420px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.pd-body > * { min-width: 0; }
.pd-block + .pd-block { margin-top: 48px; }
.pd-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); margin-bottom: 18px; }
.pd-desc { color: #334341; max-width: 68ch; }
.pd-desc p { margin: 0 0 1em; }

.spec-list { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.spec-list div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 16px; padding: 14px 20px; }
.spec-list div:nth-child(even) { background: #f8faf9; }
.spec-list dt { color: var(--muted); font-size: .92rem; }
.spec-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 360px) { .spec-list div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 480px) { .spec-list div { padding: 12px 16px; } }

@media (max-width: 980px) { .pd-body { grid-template-columns: 1fr; } }

/* Panel penawaran */
.quote-card {
    position: sticky; top: calc(var(--header-h) + 20px);
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-soft);
}
.quote-card h2 { font-size: 2rem; color: var(--ink); }
.quote-card > p { color: var(--muted); margin: 8px 0 24px; font-size: .93rem; }
.quote-product {
    display: flex; align-items: center; gap: 12px; margin: -6px 0 22px;
    padding: 10px; border-radius: var(--r-sm); background: var(--porcelain);
}
.quote-product img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; background: var(--paper); padding: 4px; }
.quote-product span { font-size: .9rem; font-weight: 500; line-height: 1.3; }
@media (max-width: 980px) { .quote-card { position: static; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--porcelain);
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
    font-size: 1rem; /* cegah zoom otomatis di iOS */
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: #c2ccc8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--paper); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-hint { font-size: .78rem; color: var(--muted); }
.field-error { font-size: .8rem; color: var(--danger); }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }

.form-submit { margin-top: 22px; }
.form-privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-privacy svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: .92rem; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.notice-ok { background: #e8f5ef; color: #0e5a3d; border: 1px solid #b8e0cc; }
.notice-err { background: #fdf0ee; color: #8f2016; border: 1px solid #f3c6bf; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Produk terkait: rail geser di layar kecil */
.related { padding: clamp(56px, 7vw, 88px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 980px) { .rail { grid-auto-columns: 42%; gap: 14px; } }
@media (max-width: 560px) { .rail { grid-auto-columns: 64%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); } }

/* Bar pesan melekat di ponsel */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: none; align-items: center; gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar-info { min-width: 0; flex: 1; line-height: 1.25; }
.mobile-bar-info span { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bar-info strong { font-weight: 600; font-size: .95rem; }
.mobile-bar .btn { min-height: 46px; padding: 0 20px; }
@media (max-width: 900px) {
    .mobile-bar { display: flex; }
    body.has-mobile-bar .site-footer { padding-bottom: 96px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-name { color: #fff; font-size: 1.6rem; }
.site-footer .brand { gap: 16px; }
.site-footer .brand-sub { display: block; color: rgba(255, 255, 255, .55); font-size: .8rem; margin-top: 4px; }
.site-footer h3 { font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-note { margin: 18px 0 0; max-width: 38ch; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   Aksesibilitas gerak
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Kartu melebar (penutup susunan etalase) */
.showcase .product-card.is-wide { grid-column: span 2; flex-direction: row; }
.showcase .product-card.is-wide .product-card-media { aspect-ratio: auto; width: 46%; flex-shrink: 0; margin: 8px 0 8px 8px; }
.showcase .product-card.is-wide .product-card-desc { display: block; }
