/* ==========================================================================
   Landing Le Parc — clean premium
   Banyak ruang, judul besar di tengah, tile foto membulat, warna kalem.
   Warna memakai token semantik supaya mode terang/gelap cukup ganti token.
   ========================================================================== */

/* Satoshi (Fontshare, ITF Free Font License — bebas dipakai komersial) */
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/Satoshi-Variable.woff2') format('woff2-variations'),
         url('../fonts/Satoshi-Variable.woff2') format('woff2');
}

/* ---------- Token: mode terang (default) ---------- */
:root {
    /* Permukaan */
    --bg: #f6f4f0;          /* halaman */
    --bg-alt: #ece7df;      /* section selang-seling */
    --surface: #ffffff;     /* kartu */
    --surface-2: #f3efe8;   /* isian di dalam kartu */
    --gelap: #1c2620;       /* tile gelap (hijau hutan logo) */

    /* Teks: dipakai juga sebagai rgb untuk garis & teks redup */
    --text: #1c2620;
    --t: 28, 38, 32;
    --s: 20, 28, 22;        /* bayangan */
    --muted: rgba(var(--t), .6);
    --line: rgba(var(--t), .1);

    /* Merek */
    --accent: #2f5240;      /* hijau aksen */
    --gold: #c9a46a;
    --gold-soft: #ead9b8;
    --emas-teks: linear-gradient(100deg, #7d5f35 0%, #b8925a 55%, #8f6c3e 100%);
    --on-gold: #1c2620;

    /* Tombol utama */
    --btn-bg: #1c2620;
    --btn-fg: #ffffff;

    /* Nama lama (dipakai shop.css & komponen lama) dipetakan ke token baru */
    --ink: #1c2620;
    --white: #ffffff;
    --cream: var(--bg);
    --lime: var(--gold-soft);
    --cobalt: var(--accent);
    --coral: #c56b4c;
    --yellow: var(--gold-soft);
    --green: var(--gelap);
    --gold-tua: #9b7b4f;

    --shadow: 0 12px 32px rgba(var(--s), .08);
    --shadow-besar: 0 30px 70px rgba(var(--s), .14);
    --ease: cubic-bezier(.22, .8, .2, 1);
    --spring: cubic-bezier(.3, 1.4, .5, 1);

    --wadah: 1180px;
    --tab-h: 64px;
    --safe-b: env(safe-area-inset-bottom, 0px);

    color-scheme: light;
}

/* ---------- Token: mode gelap ---------- */
:root[data-theme="dark"] {
    --bg: #0d100e;
    --bg-alt: #121613;
    --surface: #171c19;
    --surface-2: #1f2621;
    --gelap: #19211c;

    --text: #eeeae3;
    --t: 238, 234, 227;
    --s: 0, 0, 0;

    --accent: #d6b98a;
    --gold: #d6b98a;
    --gold-soft: #3a3324;
    --emas-teks: linear-gradient(100deg, #cfae78 0%, #f1dfba 55%, #c9a46a 100%);
    --on-gold: #f3e6cb;

    --btn-bg: #eeeae3;
    --btn-fg: #121613;

    --white: #171c19;
    --lime: #d6b98a;
    --coral: #d98163;

    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-besar: 0 30px 70px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }

.ph, .ph-fill, .ph-duotone { line-height: 1; }

.wadah { width: min(var(--wadah), 100% - 48px); margin-inline: auto; position: relative; }

/* Transisi tema: lingkaran meluas dari tombol (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Bidang warna section ---------- */
.bg-cream { background-color: var(--bg); }
.bg-white  { background-color: var(--surface); }
.bg-lime, .bg-sky, .bg-mint, .bg-alt { background-color: var(--bg-alt); }
.bg-ink, .bg-green, .bg-cobalt, .bg-gelap { background-color: var(--gelap); color: #f3efe7; --muted: rgba(243, 239, 231, .62); --accent: #d6b98a; --emas-teks: linear-gradient(100deg, #cfae78 0%, #f1dfba 55%, #c9a46a 100%); }
.bg-yellow, .bg-coral { background-color: var(--surface); }

.sec { position: relative; padding: clamp(80px, 10vw, 140px) 0; }

/* Sisa dari gaya lama, tidak dipakai lagi */
.sec-kata { display: none; }

/* ---------- Tipografi ---------- */
.kicker {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.judul {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.04em;
}
.judul .aksen, .teks-emas {
    background: var(--emas-teks);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Ruang bawah untuk huruf ekor (g, p, y) saat animasi baris */
/* Ruang ekstra supaya ekor huruf (g, y, p) & tanda baca tidak terpotong oleh overflow */
.judul .baris { display: block; overflow: hidden; padding: 0 .08em .26em; margin: 0 -.08em -.26em; }
.judul .baris > span { display: inline-block; padding-right: .06em; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.judul.tampil .baris > span { transform: none; }
.judul.tampil .baris:nth-child(2) > span { transition-delay: .08s; }
.judul.tampil .baris:nth-child(3) > span { transition-delay: .16s; }
.judul .tanda { margin-left: -.05em; }

.sec-sub {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--muted);
}

.sec-kepala { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-kepala.tengah { text-align: center; }
.sec-kepala.tengah .sec-sub { margin-inline: auto; }
.sec-kepala-baris { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 6px 0 24px;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .3s var(--spring), background-color .2s, box-shadow .3s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn-kecil { min-height: 44px; padding-left: 18px; font-size: 14px; gap: 10px; }
.btn-ink { background: var(--btn-bg); color: var(--btn-fg); }
.btn-lime { background: var(--gold); color: #1c2620; }
.btn-garis { padding: 0 24px; border: 1.5px solid rgba(var(--t), .25); background: transparent; color: var(--text); }
.btn-putih { background: #fff; color: #1c2620; }
.btn-kaca { padding: 0 22px; background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

.btn-bulat {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 18px;
    transition: transform .4s var(--spring);
}
:root[data-theme="dark"] .btn-ink .btn-bulat, .btn-lime .btn-bulat, .btn-putih .btn-bulat { background: rgba(0, 0, 0, .08); }
.btn-kecil .btn-bulat { width: 32px; height: 32px; font-size: 15px; }
.btn-penuh { width: 100%; justify-content: space-between; }

/* Tautan teks ala Apple: "Lihat apparel ›" */
.link-panah {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent);
}
.link-panah i { font-size: 15px; transition: transform .3s var(--spring); }

.ikon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--t), .06);
    color: var(--text);
    font-size: 21px;
    transition: transform .25s var(--spring), background-color .2s;
}
.ikon-btn:active { transform: scale(.9); }
.ikon-btn-besar { width: 54px; height: 54px; background: var(--surface); box-shadow: var(--shadow); }

@media (hover: hover) {
    .btn:hover { box-shadow: 0 10px 26px rgba(var(--s), .18); }
    .btn:hover .btn-bulat { transform: translateX(3px); }
    .btn-garis:hover { border-color: var(--text); box-shadow: none; }
    .link-panah:hover i { transform: translateX(3px); }
    .ikon-btn:hover { background: rgba(var(--t), .1); }
}

/* ---------- Komponen kecil ---------- */
.pill-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.capsule {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.capsule-lime   { background: var(--gold-soft); color: var(--on-gold); }
.capsule-cobalt { background: var(--gelap); color: #f3efe7; }
.capsule-coral  { background: var(--coral); color: #fff; }

.chip-no {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 14px;
    font-weight: 700;
}
.chip-no-kecil { width: 26px; height: 26px; font-size: 12px; }

.titik-hijau {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f9e5b;
    box-shadow: 0 0 0 0 rgba(47, 158, 91, .5);
    animation: denyut 2s infinite;
}
@keyframes denyut { 70% { box-shadow: 0 0 0 9px rgba(47, 158, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); } }

.bintang { display: flex; gap: 2px; color: var(--gold); font-size: 17px; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--on-gold); font-size: 14px; font-weight: 700; }

/* ---------- Animasi muncul saat scroll ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].tampil { opacity: 1; transform: none; }

/* Animasi kecil yang dipakai keranjang & shop */
.goyang { animation: goyang .5s var(--spring); }
@keyframes goyang { 30% { transform: scale(1.16) rotate(-8deg); } 60% { transform: scale(.95) rotate(5deg); } 100% { transform: none; } }
.badge-keranjang.pop { animation: pop-badge .45s var(--spring); }
@keyframes pop-badge { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes apung { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   Navbar desktop (pill gelap)
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-emblem { height: 34px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.logo-wordmark { height: 17px; width: auto; }

/* Navbar compact (meniru contoh Linea):
   pill gelap semi-transparan + blur, warna latar ikut tembus, menu teks polos,
   CTA pill menempel di ujung kanan. Ukuran diambil dari contoh (tinggi 60, CTA 44). */
.nav {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    width: calc(100% - 20px);
    max-width: 1400px;
    height: 60px;
    padding: 0 7px 0 26px;
    border-radius: 999px;
    background: rgba(29, 27, 24, .8);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 10px 30px rgba(0, 0, 0, .12);
    transform: translateX(-50%);
    transition: transform .5s var(--ease);
}
:root[data-theme="dark"] .nav { background: rgba(29, 27, 24, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 30px rgba(0, 0, 0, .3); }
.nav.sembunyi { transform: translate(-50%, -120px); }
.nav .logo { margin-right: auto; }

.nav-link { display: flex; align-items: center; gap: 28px; margin-right: 26px; }
.nav-item { position: relative; }
.nav-link .nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    font-size: 17px;
    font-weight: 560;
    letter-spacing: -.01em;
    color: #fff;
}
.nav-caret { font-size: 12px; transition: transform .3s var(--ease); }

/* Sub menu (dropdown) */
.nav-sub {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 290px;
    padding: 8px;
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-besar), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px) scale(.97);
    transform-origin: top center;
    transition: opacity .25s var(--ease), transform .35s var(--spring), visibility .25s;
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.punya-sub.buka .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.punya-sub.buka .nav-caret { transform: rotate(180deg); }
.nav-sub-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background-color .2s; }
.nav-sub-item b { display: block; font-size: 15px; font-weight: 600; }
.nav-sub-item small { display: block; font-size: 12.5px; color: var(--muted); }
.nav-sub-ikon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); font-size: 21px; }
.nav-sub-item:active, .nav-sub-item.aktif { background: var(--surface-2); }
/* Sub menu 2 kolom (Tentang) */
.nav-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 520px; }

.nav-tombol {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 21px;
    transition: transform .3s var(--spring), background-color .2s;
}
.nav-tombol:active { transform: scale(.9); }
.nav-tombol + .nav-cta { margin-left: 14px; }
.nav-cta i { font-size: 20px; margin-left: -4px; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--gold);
    color: #1c2620;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: transform .3s var(--spring), filter .2s;
}
.nav-cta:active { transform: scale(.96); }

.badge-keranjang {
    position: absolute;
    top: -2px;
    right: 2px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid #2a2724;
    border-radius: 999px;
    background: var(--gold);
    color: #1c2620;
    font-size: 11px;
    font-weight: 800;
}

/* Ikon tema berputar saat diganti */
.ikon-tema { transition: transform .5s var(--spring); }
.ikon-tema.putar { transform: rotate(-90deg) scale(.5); transition: none; }

@media (hover: hover) {
    .nav-link .nav-item > a:hover { opacity: .75; }
    .punya-sub:hover .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
    .punya-sub:hover .nav-caret { transform: rotate(180deg); }
    .nav-sub-item:hover { background: var(--surface-2); }
    .nav-tombol:hover { background: rgba(255, 255, 255, .1); }
    .nav-cta:hover { filter: brightness(1.06); }
}

/* Header & tab bar mobile (disembunyikan di desktop) */
.m-header, .tabbar { display: none; }

/* ==========================================================================
   Kartu produk & daftar geser
   ========================================================================== */
.geser {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.geser::-webkit-scrollbar { display: none; }
.geser > * { scroll-snap-align: start; }
.geser-kontrol { display: flex; gap: 10px; }

.produk-list {
    gap: 16px;
    padding: 6px max(24px, calc((100% - var(--wadah)) / 2)) 24px;
    scroll-padding-inline: max(24px, calc((100% - var(--wadah)) / 2));
    cursor: grab;
}
.produk-list.seret { cursor: grabbing; scroll-snap-type: none; }
.produk-list.seret * { pointer-events: none; }

.produk-card {
    position: relative;
    flex: none;
    width: 280px;
    padding: 10px;
    border-radius: 28px;
    background: var(--surface);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease) var(--d, 0s);
}
.produk-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.produk-card figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 5; background: var(--surface-2); }
.produk-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.produk-card .capsule { position: absolute; left: 12px; top: 12px; }
.produk-suka {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1c2620;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 19px;
    transition: transform .3s var(--spring), color .2s;
}
.produk-suka.aktif { color: var(--coral); }
.produk-suka:active { transform: scale(.8); }
.produk-info { padding: 16px 8px 8px; }
.produk-info small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.produk-info h3 { margin: 4px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.produk-bawah { display: flex; align-items: center; justify-content: space-between; padding-right: 50px; }
.produk-harga { display: flex; flex-direction: column; }
.produk-harga b { font-size: 16px; font-weight: 700; }
.produk-harga s { font-size: 12px; color: var(--muted); }
.warna-list { display: flex; gap: 4px; }
.warna-list span { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--t), .2); }
.produk-tambah {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 44px;
    transition: transform .3s var(--spring), color .2s;
}
.produk-tambah:active { transform: scale(.85) rotate(90deg); }
.produk-tambah.ditambah { color: #2f9e5b; }

.produk-semua {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--gelap);
    color: #f3efe7;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}
.produk-semua-bulat { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: #1c2620; font-size: 30px; transition: transform .4s var(--spring); }

@media (hover: hover) {
    .produk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-besar); }
    .produk-card:hover figure img { transform: scale(1.05); }
    .produk-semua:hover .produk-semua-bulat { transform: rotate(-45deg) scale(1.06); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Footer gelap dengan sudut atas membulat, menumpuk di atas section terakhir */
.footer {
    position: relative;
    z-index: 5;
    margin-top: -40px;
    padding: 88px 0 36px;
    border-radius: 44px 44px 0 0;
    background: #141b16;
    color: #f3efe7;
    --muted: rgba(243, 239, 231, .6);
    --line: rgba(243, 239, 231, .1);
    --accent: #d6b98a;
}
:root[data-theme="dark"] .footer { background: #070908; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
.footer-atas { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand p { max-width: 340px; margin: 18px 0 22px; line-height: 1.6; color: var(--muted); }
.logo-footer { display: inline-flex; align-items: center; gap: 16px; }
.logo-footer-emblem { height: 84px; width: auto; }
.logo-footer > span { display: flex; flex-direction: column; gap: 10px; }
.logo-footer-wordmark { height: 30px; width: auto; }
.logo-footer-tagline { height: 10px; width: auto; opacity: .85; }
.sosmed { display: flex; gap: 8px; }
.sosmed a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(243, 239, 231, .08); font-size: 21px; transition: background-color .2s, color .2s, transform .3s var(--spring); }
.footer-kolom h4 { margin: 6px 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-kolom a { display: block; padding: 6px 0; font-size: 15px; font-weight: 500; }
.footer-kolom p, .footer-kolom .footer-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.footer-kolom .footer-info i { flex: none; margin-top: 2px; }
.footer-kolom i { font-size: 19px; color: var(--accent); }
.footer-bawah { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { transition: color .2s; }
@media (hover: hover) { .footer-legal a:hover, .footer-bawah > a:hover { color: #f3efe7; } }
@media (hover: hover) {
    .sosmed a:hover { background: var(--gold); color: #1c2620; transform: translateY(-2px); }
    .footer-kolom a:hover { color: var(--accent); }
}

/* Logo gelap/terang: tampilkan versi yang cocok dengan tema */
.tema-gelap-saja { display: none; }
:root[data-theme="dark"] .tema-terang-saja { display: none; }
:root[data-theme="dark"] .tema-gelap-saja { display: block; }

/* ==========================================================================
   Tombol umum: tutup, stepper
   ========================================================================== */
.tutup-x {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(var(--t), .3);
    font-size: 34px;
    transition: color .2s, transform .2s var(--spring);
}
.tutup-x:active { transform: scale(.88); }
@media (hover: hover) { .tutup-x:hover { color: var(--text); } }

.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--t), .06); }
.stepper button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(var(--s), .12);
    transition: transform .2s var(--spring);
}
.stepper button:active:not(:disabled) { transform: scale(.85); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 28px; font-size: 15px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

html.kunci-scroll { overflow: hidden; }

/* ==========================================================================
   Laci keranjang
   ========================================================================== */
.laci { position: fixed; inset: 0; z-index: 150; visibility: hidden; transition: visibility 0s .5s; }
.laci.buka { visibility: visible; transition: none; }
.laci-latar { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .4s var(--ease); }
.laci.buka .laci-latar { opacity: 1; }
.laci-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    width: min(430px, 100% - 24px);
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-besar);
    transform: translateX(calc(100% + 24px));
    transition: transform .55s var(--spring);
}
.laci.buka .laci-panel { transform: none; }
.laci-pegangan { display: none; }
.laci-kepala { display: flex; align-items: center; justify-content: space-between; padding: 22px 14px 14px 24px; }
.laci-kepala h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.laci-kepala small { font-size: 13px; color: var(--muted); }
.laci-isi { flex: 1; overflow-y: auto; padding: 0 14px; overscroll-behavior: contain; }
.laci-item {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
    padding: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-2);
    transition: height .3s var(--ease), padding .3s var(--ease), margin .3s var(--ease), opacity .25s, transform .3s var(--ease);
}
.laci.buka .laci-item { animation: masuk-item .5s var(--spring) both; animation-delay: calc(var(--i) * 50ms + 120ms); }
@keyframes masuk-item { from { opacity: 0; transform: translateX(30px); } }
.laci-item.keluar { height: 0 !important; margin-bottom: 0; padding-block: 0; opacity: 0; transform: translateX(-40px); }
.laci-item img { flex: none; width: 80px; height: 92px; border-radius: 14px; object-fit: cover; }
.laci-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.laci-item-info b { padding-right: 36px; font-size: 15px; font-weight: 700; }
.laci-item-info small { margin-top: 2px; font-size: 13px; color: var(--muted); }
.laci-item-bawah { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.laci-item-harga { font-size: 15px; font-weight: 700; }
.laci-hapus {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(var(--t), .4);
    font-size: 18px;
    transition: color .2s, background-color .2s;
}
.laci-hapus:active { background: rgba(197, 107, 76, .15); color: var(--coral); }
.laci-kosong { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; }
.laci-kosong-ikon { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 10px; border-radius: 50%; background: var(--gold-soft); color: var(--on-gold); font-size: 42px; animation: apung 4s ease-in-out infinite; }
.laci-kosong b { font-size: 18px; }
.laci-kosong p { margin: 0 0 14px; color: var(--muted); }
.laci-kaki { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.laci-gratis { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.laci-gratis i { color: #2f9e5b; vertical-align: -2px; }
.laci-gratis-bar { display: block; height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(var(--t), .08); }
.laci-gratis-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .6s var(--ease); }
.laci-gratis.dapat .laci-gratis-bar span { background: #2f9e5b; }
.laci-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.laci-total span { color: var(--muted); }
.laci-total b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
@media (hover: hover) { .laci-hapus:hover { color: var(--coral); background: rgba(197, 107, 76, .1); } }

/* Gambar yang terbang ke keranjang */
.klon-terbang { position: fixed; z-index: 300; object-fit: cover; border-radius: 24px; pointer-events: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }

/* Notifikasi tambah keranjang: popover di bawah ikon keranjang (posisi dihitung keranjang.js) */
.notif-keranjang {
    position: fixed;
    top: var(--notif-top, 92px);
    right: var(--notif-right, 24px);
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 340px;
    padding: 10px;
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-besar), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.94);
    transform-origin: calc(100% - var(--caret-x, 60px)) top;
    transition: opacity .25s var(--ease), transform .45s var(--spring), visibility .25s;
}
.notif-keranjang::before {
    content: '';
    position: absolute;
    top: -6px;
    right: calc(var(--caret-x, 60px) - 7px);
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--surface);
    transform: rotate(45deg);
}
.notif-keranjang.tampil { opacity: 1; visibility: visible; transform: none; }
.notif-keranjang img { position: relative; width: 52px; height: 58px; border-radius: 14px; object-fit: cover; }
.notif-keranjang > span { position: relative; flex: 1; min-width: 0; }
.notif-keranjang b { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.notif-keranjang small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.notif-keranjang small::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; }
.notif-keranjang button { position: relative; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-size: 13px; font-weight: 700; }

/* Kembali ke atas: cincin = progres scroll */
.ke-atas {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 95;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 21px;
    box-shadow: var(--shadow-besar), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.8);
    transition: opacity .3s var(--ease), transform .45s var(--spring), visibility .3s;
}
.ke-atas.tampil { opacity: 1; visibility: visible; transform: none; }
.ke-atas:active { transform: scale(.9); }
.ke-atas svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ke-atas circle { fill: none; stroke-width: 2.5; }
.ke-atas-jalur { stroke: rgba(var(--t), .08); }
.ke-atas-progres { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.ke-atas i { position: relative; transition: transform .3s var(--spring); }
@media (hover: hover) { .ke-atas:hover i { transform: translateY(-3px); } }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
    .nav-link { gap: 18px; margin-right: 14px; }
    .nav-link .nav-item > a { font-size: 15px; }
    .nav-cta { padding: 0 18px; font-size: 14px; }
}

/* ==========================================================================
   Mobile: tampilan ala aplikasi native
   ========================================================================== */
@media (max-width: 820px) {
    html { scroll-padding-top: 70px; }
    body { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
    .wadah { width: calc(100% - 40px); }

    .nav { display: none; }

    .m-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: calc(58px + env(safe-area-inset-top, 0px));
        padding: env(safe-area-inset-top, 0px) 12px 0 18px;
        background: transparent;
        transition: background-color .3s, box-shadow .3s;
    }
    .m-header.solid {
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
        box-shadow: 0 .5px 0 var(--line);
    }
    .m-header .logo-emblem { height: 32px; filter: none; }
    .m-header .logo-wordmark { height: 15px; }
    .m-judul { flex: 1; margin-left: 6px; overflow: hidden; font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
    .m-header-aksi { display: flex; gap: 6px; }
    .m-header .ikon-btn { width: 40px; height: 40px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
    .ikon-keranjang { position: relative; }
    .ikon-keranjang .badge-keranjang { top: -2px; right: -4px; border-color: var(--surface); }

    .tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: calc(var(--tab-h) + var(--safe-b));
        padding-bottom: var(--safe-b);
        background: color-mix(in srgb, var(--surface) 84%, transparent);
        -webkit-backdrop-filter: blur(22px) saturate(180%);
        backdrop-filter: blur(22px) saturate(180%);
        box-shadow: 0 -.5px 0 var(--line);
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(var(--t), .45); font-size: 10.5px; font-weight: 600; transition: color .2s; }
    .tabbar a i { font-size: 24px; transition: transform .35s var(--spring); }
    .tabbar a.aktif { color: var(--text); }
    .tabbar a.aktif i { transform: translateY(-1px) scale(1.08); }
    .tabbar a:active i { transform: scale(.85); }
    .tab-utama { color: var(--text) !important; }
    .tab-utama-bulat {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        margin-top: -22px;
        border: 4px solid var(--surface);
        border-radius: 50%;
        background: var(--gold);
        color: #1c2620;
        font-size: 21px;
        box-shadow: 0 8px 20px rgba(var(--s), .2);
        transition: transform .3s var(--spring);
    }
    .tab-utama:active .tab-utama-bulat { transform: scale(.9); }

    .sec { padding: 72px 0; }
    .kicker { font-size: 11px; margin-bottom: 12px; }
    .judul { font-size: clamp(36px, 10.5vw, 52px); }
    .sec-sub { font-size: 16px; }
    .sec-kepala { margin-bottom: 30px; }
    .geser-kontrol { display: none; }

    /* Shop */
    .produk-list { gap: 12px; padding: 4px 20px 20px; scroll-padding-inline: 20px; cursor: auto; }
    .produk-card { width: 68%; max-width: 280px; padding: 8px; border-radius: 24px; }
    .produk-info h3 { font-size: 15px; }
    .produk-tambah { font-size: 40px; }

    /* Footer */
    .footer { margin-top: -28px; padding: 60px 0 28px; border-radius: 30px 30px 0 0; }
    .footer-atas { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-brand { grid-column: span 2; }
    .footer-bawah { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-legal { gap: 8px 16px; }
    .logo-footer-emblem { height: 70px; }

    /* Laci jadi bottom sheet */
    .laci-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88dvh; padding-bottom: var(--safe-b); border-radius: 28px 28px 0 0; transform: translateY(100%); }
    .laci-pegangan { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: rgba(var(--t), .18); }
    .laci-kepala { padding: 10px 12px 12px 20px; }
    .laci-isi { padding: 0 12px; }
    .laci-kosong { flex: none; padding: 30px 20px 40px; }

    .notif-keranjang::before { display: none; }
    .notif-keranjang { top: auto; right: 12px; left: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); width: auto; transform: translateY(20px) scale(.96); }
    .notif-keranjang.tampil { transform: none; }

    .ke-atas { right: 14px; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); width: 46px; height: 46px; font-size: 19px; }
    body.ada-bar-aksi .ke-atas { bottom: calc(var(--safe-b) + 96px); }
}

/* Kurangi gerakan */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal], .judul .baris > span, .slide-isi > * { opacity: 1 !important; transform: none !important; }
}


/* ================= Form kontak (Beranda & halaman Kontak) ================= */
.b-form { padding: 36px; border-radius: 32px; background: var(--surface); }
.b-form h3 { margin: 0 0 22px; font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.b-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.b-field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.b-field input, .b-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1.5px solid transparent;
    border-radius: 18px;
    outline: none;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    resize: none;
    transition: border-color .2s, box-shadow .2s;
}
.b-field input:focus, .b-field textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px rgba(214, 185, 138, .4); }
.b-field.salah input, .b-field.salah textarea { border-color: var(--coral); }
.b-form .btn { margin-top: 8px; }
.b-form-info { min-height: 20px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #2f9e5b; }
.b-form .spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: putar-spin .7s linear infinite; }
@keyframes putar-spin { to { transform: rotate(360deg); } }
.goyang-salah { animation: goyang-salah .4s; }
@keyframes goyang-salah { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 820px) {
    .b-form { padding: 24px 20px; border-radius: 26px; }
}
