:root {
    --mist: #e8f1ee;
    --paper: #f8fbfa;
    --foam: #ffffff;
    --ink: #0e2a2f;
    --kelp: #2d6a5d;
    --brass: #b8893a;
    --line: #cfe0da;
    --muted: #4f6b6e;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--kelp); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem clamp(1rem, 4vw, 3rem);
    background: rgba(248, 251, 250, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}
.site-header nav a:hover { color: var(--kelp); }

/* ===== Tombol ===== */
.btn {
    display: inline-block;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .2s;
}
.btn:hover { background: var(--kelp); color: var(--foam); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-besar { font-size: 1.05rem; padding: 1rem 2rem; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 6vw, 5rem) clamp(5rem, 12vw, 8rem);
    background: var(--mist);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 80px;
    background: var(--paper);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 90 480 0 720 40 C960 80 1200 10 1440 40 L1440 80 L0 80Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 90 480 0 720 40 C960 80 1200 10 1440 40 L1440 80 L0 80Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-text { max-width: 720px; }
.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }
.note { font-size: .9rem; color: var(--muted); }

/* ===== Bagian umum ===== */
main section { padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 6vw, 5rem); }
.section-head p { color: var(--muted); margin: 0 0 2rem; }

/* ===== Katalog ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.card-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--mist);
}
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.25rem 1.4rem;
}
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.kategori { font-size: .85rem; color: var(--kelp); font-weight: 500; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
}
.harga strong { font-size: 1.2rem; }
.harga span { color: var(--muted); font-size: .9rem; }
.card-habis { opacity: .7; }
.pill-habis {
    padding: .35rem .85rem;
    border-radius: 999px;
    background: #f3e7e3;
    color: #8a3b24;
    font-size: .85rem;
    font-weight: 600;
}

/* ===== Cara pesan ===== */
.steps-wrap { background: var(--mist); }
.steps {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    counter-reset: langkah;
}
.steps li {
    border-top: 2px solid var(--kelp);
    padding-top: 1rem;
}
.steps li::before {
    counter-increment: langkah;
    content: "Langkah " counter(langkah);
    display: block;
    font-size: .85rem;
    color: var(--brass);
    font-weight: 600;
    margin-bottom: .4rem;
}
.steps p { color: var(--muted); margin: 0; }

/* ===== Kontak ===== */
.contact {
    background: var(--ink);
    color: var(--paper);
    text-align: left;
}
.contact h2 { color: var(--paper); }
.contact p { color: #c6d9d4; max-width: 60ch; }
.contact .btn { background: var(--brass); color: var(--ink); }
.contact .btn:hover { background: var(--paper); }

/* ===== Halaman produk ===== */
.detail { padding-top: 2rem; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.crumb a { color: var(--muted); }
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.detail-img img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.detail-info h1 { margin-top: .25rem; }
.detail-desc { font-size: 1.1rem; color: var(--muted); }
.harga-besar {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin: 1.5rem 0;
}
.harga-besar strong { font-family: var(--serif); font-size: 2.2rem; }
.harga-besar span { color: var(--muted); }
.detail-info .pill-habis { display: inline-block; margin-bottom: 1rem; }

.empty { text-align: center; padding: 6rem 1.5rem; }

/* ===== Footer ===== */
.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem clamp(1.25rem, 6vw, 5rem);
    background: var(--foam);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .95rem;
}
.site-footer strong { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.site-footer p { margin: .25rem 0; }
.site-footer .copy { grid-column: 1 / -1; font-size: .85rem; margin: 0; }

/* ===== Responsif ===== */
@media (max-width: 720px) {
    .site-header nav { display: none; }
    .site-header .btn-small { padding: .5rem .9rem; }
}

/* ===== Gerak dikurangi untuk pengguna yang memintanya ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
