/* ==========================================
   STYLE EXTRA — FINAL
   Keranjang, checkout, intro, transisi, reveal,
   skeleton, hero fade, scroll hint, CTA, stats
   ========================================== */

/* ---------- Reset dasar ---------- */
html, body { margin: 0; padding: 0; }

/* ---------- KERANJANG ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(16,31,20,.45); }
.overlay[hidden] { display: none; }

.cart-panel {
    position: fixed; top: 0; right: 0; z-index: 41;
    display: flex; flex-direction: column;
    width: min(440px, 100%); height: 100dvh;
    padding: 25px; background: var(--cream);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transform: translateX(105%); visibility: hidden;
    transition: transform var(--dur-base) ease, visibility var(--dur-base) ease;
}

.cart-panel.open { transform: translateX(0); visibility: visible; }

.cart-heading {
    display: flex; align-items: center; justify-content: space-between;
    gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}

.cart-heading .eyebrow { margin-bottom: 5px; }
.cart-heading h2 { font-size: 25px; }

.close-button {
    width: 40px; height: 40px; border: 1px solid var(--border);
    border-radius: 50%; background: var(--white); color: var(--forest);
    font-size: 25px;
    transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

.close-button:hover { background: var(--green-light); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 15px 0; }
.cart-empty { padding: 35px 5px; color: var(--muted); text-align: center; }

.cart-item {
    display: grid; grid-template-columns: 1fr auto;
    gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border);
}

.cart-item h3 {
    margin-bottom: 4px; color: var(--forest);
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 14px; font-weight: 800;
}

.cart-item p { color: var(--muted); font-size: 12px; }
.cart-item-total { color: var(--forest); font-size: 13px; font-weight: 800; text-align: right; }

.quantity-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.quantity-controls button {
    width: 30px; height: 30px; border: 1px solid var(--border);
    border-radius: 7px; background: white; color: var(--forest); font-weight: 800;
    transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

.quantity-controls button:hover:not(:disabled) { background: var(--green-light); transform: scale(1.08); }

.quantity-controls .remove-item {
    width: auto; padding: 0 8px; color: #9d3d34; font-size: 11px;
}

.cart-summary { padding-top: 18px; border-top: 1px solid var(--border); }
.total-row { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.total-row strong { color: var(--forest); font-size: 20px; }
.full-button { width: 100%; }
.cart-note, .form-note { margin-top: 12px; color: var(--muted); font-size: 11px; }

.checkout-dialog {
    width: min(500px, calc(100% - 30px)); max-height: 90vh;
    overflow-y: auto; margin: auto; padding: 25px;
    border: 1px solid var(--border); border-radius: 20px;
    background: var(--cream); color: var(--text);
}

.checkout-dialog::backdrop { background: rgba(16,31,20,.55); }

.checkout-dialog label {
    display: block; margin-top: 16px; color: var(--forest);
    font-size: 13px; font-weight: 800;
}

.checkout-dialog input, .checkout-dialog textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px;
    border: 1px solid var(--border); border-radius: 9px;
    background: white; color: var(--text); font-size: 13px;
}

.checkout-dialog textarea { min-height: 85px; resize: vertical; }

.checkout-total {
    display: flex; justify-content: space-between; gap: 15px;
    margin: 20px 0; color: var(--forest); font-weight: 800;
}

.checkout-total strong { font-size: 19px; }

.toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    max-width: min(380px, calc(100% - 40px));
    padding: 13px 18px; border-radius: 10px;
    background: var(--forest); color: white; box-shadow: var(--shadow);
    font-size: 13px; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: .2s ease;
}

.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
body.cart-open { overflow: hidden; }

.navigation a { position: relative; padding: 6px 2px; transition: color .25s ease; }

.navigation a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--green); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}

.navigation a:hover { color: var(--green); }
.navigation a:hover::after { transform: scaleX(0.6); }
.navigation a.active { color: var(--forest); font-weight: 800; }
.navigation a.active::after { transform: scaleX(1); background: var(--forest); }

/* ---------- INTRO SCREEN ---------- */
.intro-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; padding: 24px; text-align: center;
    background: radial-gradient(circle at 50% 40%, rgba(57,121,75,.25) 0%, rgba(33,78,50,.95) 60%, #142b1c 100%);
    color: #fff; opacity: 1; visibility: visible;
    transition: opacity .8s ease, visibility .8s ease;
}

.intro-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-logo {
    width: 96px; height: 96px; object-fit: contain; border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    animation: introFloat 3s ease-in-out infinite;
}

@keyframes introFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.intro-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 46px); letter-spacing: -.5px;
    margin: 0; color: #fff;
}

.intro-subtitle { max-width: 460px; color: rgba(255,255,255,.85); font-size: 15px; }

.intro-enter {
    margin-top: 8px; display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border: 0; border-radius: 30px;
    background: #d6e8c8; color: #1a3a24;
    font-size: 14px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.intro-enter:hover { background: #fff; transform: translateY(-2px); }
.intro-enter:disabled { opacity: .7; cursor: wait; }
.intro-enter-arrow { display: inline-block; transition: transform .2s ease; }
.intro-enter:hover .intro-enter-arrow { transform: translateX(4px); }

/* ---------- PAGE TRANSITION ---------- */
.page-transition {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}

.pt-panel {
    position: absolute; top: 0; bottom: 0; width: 51%;
    background: linear-gradient(135deg, #214e32 0%, #2e6b40 50%, #214e32 100%);
    transition: transform .7s cubic-bezier(.77, 0, .18, 1); will-change: transform;
}

.pt-panel-left { left: 0; transform: translateX(-100%); border-right: 1px solid rgba(214,232,200,.25); }
.pt-panel-right { right: 0; transform: translateX(100%); }

.page-transition.is-visible .pt-panel-left,
.page-transition.is-visible .pt-panel-right { transform: translateX(0); }

.pt-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    color: #fff; opacity: 0; transform: translateY(20px);
    transition: opacity .45s ease .35s, transform .45s ease .35s;
    text-align: center; padding: 0 20px;
}

.page-transition.is-visible .pt-content { opacity: 1; transform: translateY(0); }

.pt-ring {
    position: relative; width: 110px; height: 110px;
    display: grid; place-items: center;
}

.pt-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent; border-top-color: #d6e8c8; border-right-color: #d6e8c8;
    animation: ptSpin 1.2s linear infinite;
}

.pt-ring::after {
    content: ""; position: absolute; inset: 10px; border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(214,232,200,.5);
    border-left-color: rgba(214,232,200,.5);
    animation: ptSpin 1.8s linear infinite reverse;
}

@keyframes ptSpin { to { transform: rotate(360deg); } }

.pt-logo {
    width: 68px; height: 68px; object-fit: contain; border-radius: 14px;
    background: rgba(255,255,255,.1); padding: 8px;
    animation: ptPulse 1.6s ease-in-out infinite;
}

@keyframes ptPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.pt-text {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(22px, 3vw, 30px); letter-spacing: -.3px;
    line-height: 1.2; color: #fff;
}

.pt-sub {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    font-weight: 800; color: #d6e8c8;
}

.pt-progress {
    width: 160px; height: 2px; background: rgba(255,255,255,.2);
    border-radius: 2px; overflow: hidden; margin-top: 6px;
}

.pt-progress-bar {
    height: 100%; width: 30%; background: #d6e8c8; border-radius: 2px;
    animation: ptProgress 1.4s ease-in-out infinite;
}

@keyframes ptProgress {
    0%   { width: 5%;  transform: translateX(0); }
    50%  { width: 60%; transform: translateX(30%); }
    100% { width: 5%;  transform: translateX(500%); }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0; transform: translate3d(0, 24px, 0);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.reveal-left  { transform: translate3d(-32px, 0, 0); }
.reveal-right { transform: translate3d(32px, 0, 0); }
.reveal-left.is-visible, .reveal-right.is-visible { transform: translate3d(0, 0, 0); }

.reveal-stagger > * {
    opacity: 0; transform: translate3d(0, 24px, 0);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-stagger.is-visible > * { opacity: 1; transform: translate3d(0, 0, 0); }

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-stagger > * {
        opacity: 1; transform: none; transition: none;
    }
}

/* ---------- SKELETON ---------- */
.product-card.is-skeleton { pointer-events: none; border-color: var(--border); }

.skeleton-block {
    background: linear-gradient(90deg, #edf2e8 0%, #f5f8f2 50%, #edf2e8 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-image { width: 100%; height: 100%; min-height: 100%; border-radius: 0; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 90%; }
.skeleton-button { height: 43px; border-radius: 9px; margin-top: 8px; }

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   TAMBAHAN FINAL — hero, CTA, scroll hint,
   parallax, stats, breadcrumb
   ========================================== */

/* ---------- HERO FADE-UP ---------- */
.hero-fade > * {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp .8s ease forwards;
}
.hero-fade > *:nth-child(1) { animation-delay: .10s; }
.hero-fade > *:nth-child(2) { animation-delay: .25s; }
.hero-fade > *:nth-child(3) { animation-delay: .40s; }
.hero-fade > *:nth-child(4) { animation-delay: .55s; }
.hero-fade > *:nth-child(5) { animation-delay: .70s; }

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fade > * { animation: none; opacity: 1; transform: none; }
}

/* ---------- SCROLL HINT ---------- */
.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.scroll-hint span {
    width: 4px;
    height: 8px;
    margin-top: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(10px); opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* ---------- TOMBOL CTA HERO ---------- */
.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.hero-buttons .btn {
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}
.hero-buttons .btn-primary {
    background: #d6e8c8;
    color: #214e32;
}
.hero-buttons .btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
}
.hero-buttons .btn-outline {
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
}
.hero-buttons .btn-outline:hover {
    background: #fff;
    color: #214e32;
    transform: translateY(-3px);
}

/* ---------- PARALLAX ---------- */
.about-hero-bg,
.hero-slide {
    will-change: transform;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 5%;
    text-align: center;
}
.stats-section .stat strong {
    display: block;
    font-size: clamp(32px, 4vw, 44px);
    color: var(--forest);
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    margin-bottom: 6px;
}
.stats-section .stat span {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .5px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    padding: 20px 6%;
    font-size: 13px;
    color: var(--muted);
    max-width: 1280px;
    margin: 0 auto;
}
.breadcrumb a {
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--muted); }

@media (max-width: 720px) {
    .stats-section { grid-template-columns: 1fr; gap: 20px; padding: 40px 5%; }
    .breadcrumb { padding: 16px 5%; font-size: 12px; }
    .hero-buttons { flex-direction: column; align-items: flex-start; }
    .hero-buttons .btn { width: 100%; text-align: center; }
}


/* ==========================================================
   POLISH — perbaikan responsif, keterbacaan, aksesibilitas
   (ditambahkan di akhir supaya menimpa aturan sebelumnya)
   ========================================================== */

::selection { background: #cfe3c2; color: #142b1c; }

/* Header sticky sebelumnya tidak menempel karena overflow-x di html + body */
/* html dibiarkan 'visible' agar pengaturan overflow body diteruskan ke layar penuh:
   header tetap menempel dan scroll terkunci rapi saat keranjang terbuka */
html { overflow-x: visible; }

/* Lewati ke konten */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    padding: 10px 16px; border-radius: 8px;
    background: var(--forest); color: #fff; font-weight: 800; font-size: 14px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Keterbacaan kartu produk (teks lama terlalu kecil: 9-11px) ---------- */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-info { padding: 14px 16px 16px; }
.product-category { font-size: 11px; }
.product-info h3 { font-size: 17px; }
.product-description { font-size: 13px; line-height: 1.55; }
.price { font-size: 18px; }
.old-price { font-size: 12px; }
.unit-label, .stock-label { font-size: 12px; }
.buy-button { min-height: 44px; font-size: 13px; }
.product-badge { font-size: 11px; padding: 5px 10px; }
.filter-label span { font-size: 11px; }
.search-box input, .filter-label select { font-size: 14px; }
.cart-note, .form-note { font-size: 12px; }
.hero-note { font-size: 13px; }
.site-footer p { font-size: 13px; }

/* Target sentuh titik hero lebih besar tanpa mengubah tampilan */
.hero-dot { position: relative; }
.hero-dot::before { content: ""; position: absolute; inset: -10px; }

/* Toast naik agar tidak menimpa tombol WhatsApp */
.toast { bottom: 92px; }

/* ---------- Tautan teks ---------- */
.text-link {
    display: inline-block; margin-top: 18px;
    color: var(--forest); font-weight: 800; font-size: 14px;
    border-bottom: 2px solid var(--green);
    transition: color .2s ease, transform .2s ease;
}
.text-link:hover { color: var(--green); transform: translateX(3px); }

/* ---------- Keunggulan ---------- */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    padding: 28px; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 3px 14px rgba(33, 78, 50, .035);
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(33, 78, 50, .1); }
.feature-icon {
    display: grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 16px;
    border-radius: 14px; background: var(--green-light); font-size: 26px;
}
.feature-card h3 { margin-bottom: 8px; color: var(--forest); font-size: 20px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Cara memesan ---------- */
.steps-section { padding-top: 20px; }
.steps-list {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    counter-reset: step;
}
.steps-list li {
    position: relative; padding: 26px 26px 26px 78px;
    background: #eaf0e3; border-radius: var(--radius);
}
.steps-list li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 24px; top: 24px;
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: var(--forest); color: #fff;
    font-family: 'DM Serif Display', Georgia, serif; font-size: 20px;
}
.steps-list h3 { margin-bottom: 6px; color: var(--forest); font-size: 19px; }
.steps-list p { color: #566457; font-size: 14px; line-height: 1.65; }

/* ---------- Pita ajakan (CTA) ---------- */
.cta-band {
    max-width: 1280px; margin: 0 auto 56px; padding: 44px 5%;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--forest); color: #fff; border-radius: var(--hero-radius);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #dce7d9; font-size: 15px; max-width: 520px; }
.cta-band .btn {
    flex-shrink: 0; padding: 14px 30px; border-radius: 10px;
    background: #d6e8c8; color: #214e32; font-weight: 800; font-size: 14px;
    transition: transform .25s ease, background .25s ease;
}
.cta-band .btn:hover { background: #fff; transform: translateY(-3px); }

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 30;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 52px; padding: 0 20px; border-radius: 30px;
    background: #1fa855; color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    transition: transform var(--dur-fast) var(--ease-spring), background .2s ease;
}
.wa-float:hover { background: #178a45; transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: start;
    gap: 28px 40px;
    padding: 44px max(5%, calc((100vw - 1280px) / 2)) 26px;
}
.footer-title {
    display: block; margin-bottom: 10px;
    font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #d6e8c8;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-contact a { color: #fff; font-size: 14px; opacity: .9; }
.footer-links a:hover, .footer-contact a:hover { opacity: 1; text-decoration: underline; }
.site-footer .copyright {
    grid-column: 1 / -1; align-self: auto; text-align: left;
    padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15);
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .catalog-tools { grid-template-columns: 1fr 1fr; }
    .search-box { grid-column: 1 / -1; }
    .section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .feature-grid, .steps-list { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .site-footer > .footer-brand { grid-column: 1 / -1; }
}

/* ---------- HP ---------- */
@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; min-height: 0; padding: 10px 5%; gap: 8px 12px; }
    .brand { order: 1; flex: 1; }
    .cart-toggle { order: 2; padding: 8px 14px; }
    .navigation {
        order: 3; width: 100%; gap: 22px; overflow-x: auto;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--border); padding-top: 4px;
    }
    .navigation::-webkit-scrollbar { display: none; }
    .navigation a { white-space: nowrap; padding: 10px 2px; }
    .site-logo { width: 44px; height: 44px; }
    .brand-info strong { font-size: 14px; }
    .brand-info small { display: none; }

    .hero { min-height: calc(100svh - 112px); }
    .hero-content { padding: 48px 5% 96px; }
    .section { padding: 40px 5%; }
    .catalog-tools { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; margin: 0 5% 40px; padding: 32px 24px; }
    .cta-band .btn { width: 100%; text-align: center; }
    .site-footer { grid-template-columns: 1fr; padding: 36px 5% 22px; }

    /* 16px mencegah iPhone otomatis zoom saat mengetik */
    .search-box input, .filter-label select,
    .checkout-dialog input, .checkout-dialog textarea { font-size: 16px; }

    .wa-float { right: 14px; bottom: 14px; min-height: 48px; padding: 0 16px; }
    .toast { bottom: 76px; right: 14px; }
}

/* ---------- Kurangi gerakan untuk yang memintanya ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slide, .product-badge.featured::after, .intro-logo,
    .scroll-hint span, .pt-ring::before, .pt-ring::after, .pt-logo,
    .hero-content > * { animation: none; }
    .hero-content > * { opacity: 1; transform: none; }
    .site-logo, .product-card, .product-image, .feature-card { transition: none; }
}


/* ==========================================================
   PERBAIKAN TAMPILAN (berdasarkan screenshot)
   ========================================================== */

/* BUG: lencana "Pilihan Toko" memakai position:relative sehingga ikut
   memakan tempat dan mendorong foto ke bawah (muncul strip kosong di atas foto) */
.product-badge.featured { position: absolute; }

/* Foto produk sedikit lebih tinggi supaya sayurnya terlihat utuh */
.product-visual { aspect-ratio: 4 / 3; }

/* Pergantian slide hero tanpa efek "dobel/bayangan":
   slide baru memudar DI ATAS slide lama yang tetap penuh */
.hero-slide { z-index: 0; transition: opacity 0s linear .9s; }
.hero-slide.is-active { z-index: 2; transition: opacity .9s ease; }

/* Ikon scroll tidak lagi menumpuk dengan titik slide */
.hero .scroll-hint {
    left: auto; right: max(5%, calc((100vw - 1280px) / 2 + 5%));
    transform: none; bottom: 22px;
}

/* Teks hero lebih terbaca dan judul terpotong lebih rapi */
.hero-overlay {
    background: linear-gradient(100deg,
        rgba(15, 30, 20, .88) 0%,
        rgba(15, 30, 20, .66) 45%,
        rgba(15, 30, 20, .22) 100%);
}
h1, h2 { text-wrap: balance; }
.hero-content > p, .about-content p, .section-heading > p { text-wrap: pretty; }

@media (max-width: 720px) {
    .hero .scroll-hint { display: none; }
}


/* ==========================================================
   POLES TAMPILAN TAHAP 2 — foto seragam, aksen hangat,
   foto di keranjang, ikon kategori, latar selang-seling
   ========================================================== */

/* ---------- Foto produk lebih seragam ----------
   Foto berlatar putih menyatu dengan warna dasar kartu,
   foto penuh tetap tampil normal, ditambah gradasi halus di bawah. */
.product-visual { background: #eef3e8; isolation: isolate; }
.product-image { mix-blend-mode: multiply; }
.product-visual::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(20, 43, 28, .16), transparent 38%);
    box-shadow: inset 0 0 0 1px rgba(33, 78, 50, .05);
}
.product-badge { z-index: 2; }

/* ---------- Aksen hangat (emas/tanah) ---------- */
.product-badge.featured {
    background: linear-gradient(135deg, #ecd29a, #c9a56b);
    color: #3b2a0e;
    box-shadow: 0 2px 8px rgba(120, 85, 30, .25);
}
.section-heading .eyebrow::before {
    content: ""; display: inline-block; width: 28px; height: 2px;
    margin-right: 10px; vertical-align: middle;
    background: var(--earth); border-radius: 2px;
}

/* ---------- Ikon kategori ---------- */
.category-chip { display: inline-flex; align-items: center; gap: 8px; }
.category-chip span { font-size: 16px; line-height: 1; }

/* ---------- Foto kecil di keranjang ---------- */
.cart-item { grid-template-columns: 64px 1fr auto; align-items: start; }
.cart-item-thumb {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 12px; background: #eef3e8;
    border: 1px solid var(--border);
}

/* ---------- Latar selang-seling di beranda ----------
   Pita penuh selebar layar tanpa mengubah susunan HTML. */
.why-section {
    background: var(--white);
    box-shadow: 0 0 0 100vmax var(--white);
    clip-path: inset(0 -100vmax);
    margin-top: 24px; margin-bottom: 24px;
}
.steps-section { padding-bottom: 64px; }


/* Notifikasi tidak menimpa total belanja saat keranjang terbuka */
body.cart-open .toast { right: auto; left: 20px; bottom: 24px; }
@media (max-width: 720px) {
    body.cart-open .toast { left: 14px; right: 14px; top: auto; bottom: 215px; max-width: none; }
}


/* ==========================================================
   ANIMASI TAHAP 3 — murni CSS, tidak mengubah JavaScript
   ========================================================== */
@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.97); } }
@keyframes chipIn { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.9); } }
@keyframes headerIn { from { transform: translate3d(0, -100%, 0); } }
@keyframes dialogIn { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.96); } }
@keyframes waIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.8); } }
@keyframes waPulse {
    0%   { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 0 rgba(31,168,85,.5); }
    70%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 16px rgba(31,168,85,0); }
}
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214,232,200,.45); }
    60% { box-shadow: 0 0 0 14px rgba(214,232,200,0); }
}
@keyframes ctaFlow { to { background-position: 100% 0; } }
@keyframes scrollProgress { to { transform: scaleX(1); } }

/* Garis progres scroll di atas layar */
@supports (animation-timeline: scroll()) {
    body::before {
        content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px;
        z-index: 9990; pointer-events: none;
        background: linear-gradient(90deg, var(--green), var(--earth));
        transform: scaleX(0); transform-origin: 0 50%;
        animation: scrollProgress linear both; animation-timeline: scroll(root);
    }
}

/* Header & breadcrumb muncul saat halaman dibuka */
.site-header { animation: headerIn .6s var(--ease-out) backwards; }
.breadcrumb { animation: riseIn .6s var(--ease-out) .1s backwards; }

/* Kartu produk muncul bertahap (diulang tiap pencarian/filter) */
.product-card:not(.is-skeleton) { animation: cardIn .8s var(--ease-spring) backwards; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .10s; }
.product-card:nth-child(4) { animation-delay: .15s; }
.product-card:nth-child(5) { animation-delay: .20s; }
.product-card:nth-child(6) { animation-delay: .25s; }
.product-card:nth-child(7) { animation-delay: .30s; }
.product-card:nth-child(n+8) { animation-delay: .35s; }

/* Chip kategori */
.category-chip { animation: chipIn .45s var(--ease-spring) backwards; }
.category-chip:nth-child(2) { animation-delay: .04s; }
.category-chip:nth-child(3) { animation-delay: .08s; }
.category-chip:nth-child(4) { animation-delay: .12s; }
.category-chip:nth-child(5) { animation-delay: .16s; }
.category-chip:nth-child(6) { animation-delay: .20s; }
.category-chip:nth-child(n+7) { animation-delay: .24s; }
.category-chip:active { transform: scale(.95); }

/* Tombol: kilau saat hover, denyut halus di hero */
.buy-button { position: relative; overflow: hidden; }
.buy-button.primary::after {
    content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-200%) skewX(-20deg); transition: transform .6s ease; pointer-events: none;
}
.buy-button.primary:hover:not(:disabled)::after { transform: translateX(260%) skewX(-20deg); }
.hero-buttons .btn-primary { position: relative; }
.hero-buttons .btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 2px solid rgba(214,232,200,.75); opacity: 0;
    animation: ringPulse 2.8s ease-out 2s infinite;
}
@keyframes ringPulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.55); } }
.hero-buttons .btn:active, .cta-band .btn:active, .primary-button:active { transform: scale(.97); }
.product-badge { transition: transform var(--dur-base) var(--ease-spring); }
.product-card:hover .product-badge { transform: translateY(-2px); }

/* Titik slide hero memanjang jadi kapsul */
.hero-dot { transition: background .2s ease, transform .45s var(--ease-spring); }
.hero-dot.is-active { transform: scale(2.2, 1.1); }

/* Judul section: garis aksen memanjang saat muncul */
.section-heading.reveal .eyebrow::before {
    transform: scaleX(0); transform-origin: left;
    transition: transform .8s var(--ease-out) .3s;
}
.section-heading.reveal.is-visible .eyebrow::before { transform: scaleX(1); }

/* Kartu keunggulan, langkah, visi-misi: transisi opacity dipulihkan + hover */
.feature-card, .steps-list li, .vm-card {
    transition: opacity .7s ease, transform .8s var(--ease-spring), box-shadow .3s ease, background .3s ease;
}
.reveal-stagger.is-visible > *:hover { transition-delay: 0ms; }
.feature-icon { transition: transform .4s var(--ease-spring), background .3s ease; }
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); background: #d6e8c8; }
.steps-list li:hover { transform: translateY(-4px); background: #e2ebd8; box-shadow: var(--shadow); }
.steps-list li::before { transition: transform .4s var(--ease-spring), background .3s ease; }
.steps-list li:hover::before { transform: scale(1.15) rotate(-8deg); background: var(--green); }
.vm-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(33,78,50,.12); }
.vm-card ul li { transition: transform .25s ease; }
.vm-card ul li:hover { transform: translateX(4px); }
.profile-image { transition: transform .6s var(--ease-out), box-shadow .4s ease; }
.profile-image:hover { transform: scale(1.02); }

/* Pita ajakan bergradasi bergerak */
.cta-band {
    background: linear-gradient(120deg, #214e32, #2e6b40, #214e32);
    
}

/* Pencarian & filter */
.search-box > span { transition: transform .4s var(--ease-spring); }
.search-box:focus-within > span { transform: scale(1.2) rotate(-12deg); }
.search-box:hover, .filter-label:hover { border-color: #cdd9c5; }
.empty-state:not([hidden]) { animation: riseIn .5s var(--ease-out); }

/* Keranjang, formulir, notifikasi */
.overlay:not([hidden]) { animation: fadeIn .3s ease backwards; }
.cart-panel.open .cart-heading { animation: riseIn .45s var(--ease-out) .12s backwards; }
.cart-panel.open .cart-items   { animation: riseIn .45s var(--ease-out) .20s backwards; }
.cart-panel.open .cart-summary { animation: riseIn .45s var(--ease-out) .28s backwards; }
.checkout-dialog[open] { animation: dialogIn .4s var(--ease-spring); }
.checkout-dialog[open]::backdrop { animation: fadeIn .3s ease; }
.checkout-dialog[open] label { animation: riseIn .4s var(--ease-out) backwards; }
.checkout-dialog[open] label:nth-of-type(1) { animation-delay: .10s; }
.checkout-dialog[open] label:nth-of-type(2) { animation-delay: .16s; }
.checkout-dialog[open] label:nth-of-type(3) { animation-delay: .22s; }
.checkout-dialog[open] label:nth-of-type(4) { animation-delay: .28s; }
.checkout-dialog input, .checkout-dialog textarea { transition: border-color .25s ease, box-shadow .25s ease; }
.checkout-dialog input:focus, .checkout-dialog textarea:focus {
    border-color: var(--green); box-shadow: 0 0 0 3px rgba(57,121,75,.14);
}
.toast { transition: opacity .25s ease, transform .4s var(--ease-spring), visibility .25s ease; }

/* WhatsApp melayang */
.wa-float { animation: waIn .6s var(--ease-spring) 1.2s backwards; }
.wa-float::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: #1fa855; opacity: 0; pointer-events: none;
    animation: waRing 2.6s ease-out 2s infinite;
}
@keyframes waRing { 0% { opacity: .5; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.3, 1.6); } }
.wa-float span { display: inline-block; transition: transform .3s var(--ease-spring); }
.wa-float:hover span { transform: rotate(-12deg) scale(1.15); }

/* Footer */
.footer-links a, .footer-contact a {
    position: relative; width: fit-content;
    transition: transform .25s var(--ease-out), opacity .2s ease;
}
.footer-links a:hover, .footer-contact a:hover { transform: translateX(4px); text-decoration: none; }
.footer-links a::after, .footer-contact a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: #d6e8c8; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.footer-links a:hover::after, .footer-contact a:hover::after { transform: scaleX(1); }

/* Hormati pengaturan "kurangi gerakan" */
@media (prefers-reduced-motion: reduce) {
    body::before, .buy-button.primary::after { display: none; }
    .site-header, .breadcrumb, .product-card, .category-chip, .cta-band, .wa-float,
    .hero-buttons .btn-primary, .overlay, .empty-state,
    .cart-panel.open .cart-heading, .cart-panel.open .cart-items, .cart-panel.open .cart-summary,
    .checkout-dialog[open], .checkout-dialog[open] label { animation: none !important; }
    .checkout-dialog[open]::backdrop { animation: none; }
    .section-heading.reveal .eyebrow::before { transform: none; transition: none; }
    .feature-card:hover .feature-icon, .steps-list li:hover, .steps-list li:hover::before,
    .vm-card:hover, .profile-image:hover, .footer-links a:hover, .footer-contact a:hover { transform: none; }
}


/* ==========================================================
   TUING-TUING — gerak membal halus + transisi daun jatuh
   ========================================================== */
/* Pegas sungguhan (overshoot lalu menetap). Browser lama memakai cubic-bezier. */
:root {
    /* ===== ATUR KEKUATAN MEMBAL DI SINI =====
       Ganti isi --ease-spring dengan salah satu: --spring-soft (halus),
       --spring-normal (sedang), --spring-bouncy (lincah). */
    --spring-soft: cubic-bezier(.34, 1.3, .64, 1);
    --spring-normal: cubic-bezier(.34, 1.56, .64, 1);
    --spring-bouncy: cubic-bezier(.3, 2, .5, 1);
    --ease-spring: var(--spring-normal);
    --pop-scale: 1.6;      /* besar membal angka keranjang */
    --press-scale: .94;    /* seberapa dalam tombol menekan */
    --lift: -6px;          /* tinggi kartu produk terangkat saat hover */
    --shadow: 0 10px 30px rgba(33, 78, 50, .07);
}
@supports (transition-timing-function: linear(0, 1)) {
    :root { --spring-normal: linear(0, .22 8%, .69 16%, 1.07 24%, 1.17 29%, 1.12 35%, .98 45%, .96 52%, 1.02 62%, 1.01 72%, 1); }
}

/* Muncul saat scroll: naik lalu menetap dengan membal kecil */
.reveal, .reveal-stagger > * { transition: opacity .6s ease, transform .9s var(--ease-spring); }

/* Kartu produk: terangkat membal saat hover */
.product-card:hover { transform: translateY(var(--lift)); }
.product-card { transition: transform .6s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }

/* Tombol: menekan lalu membal kembali */
.buy-button:active:not(:disabled), .primary-button:active, .category-chip:active,
.cart-toggle:active, .hero-buttons .btn:active, .cta-band .btn:active { transform: scale(var(--press-scale)); }

/* Angka keranjang membal saat bertambah */
@keyframes countPop { 0% { transform: scale(1); } 35% { transform: scale(var(--pop-scale)); } 100% { transform: scale(1); } }
#cartCount.pop { animation: countPop .6s var(--ease-spring); }

/* Panel keranjang tetap mulus (tidak membal agar tidak ada celah di tepi) */
.cart-panel { transition: transform .5s var(--ease-out), visibility .5s ease; }

/* Notifikasi meluncur naik dengan membal */
.toast { transform: translateY(24px); transition: opacity .25s ease, transform .6s var(--ease-spring), visibility .25s ease; }
.toast.show { transform: translateY(0); }

/* ---------- TRANSISI DAUN JATUH (antar halaman) ---------- */
.leaf-trans { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; visibility: hidden; }
.leaf-trans.run { visibility: visible; }
.leaf-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #214e32, #2e6b40); opacity: 0; }
.leaf-trans.run .leaf-bg { animation: leafCover .7s ease-in forwards; }
@keyframes leafCover { to { opacity: 1; } }
.leaf {
    position: absolute; top: -60px; line-height: 1;
    animation: leafFall var(--d, 1.1s) cubic-bezier(.4, .1, .6, 1) var(--dl, 0s) forwards; will-change: transform;
}
@keyframes leafFall {
    0%   { transform: translate3d(0, -40px, 0) rotate(0); }
    100% { transform: translate3d(var(--dx, 40px), 115vh, 0) rotate(var(--r, 360deg)); }
}
/* Saat tiba di halaman baru: layar hijau memudar membuka halaman */
html.leaf-in::before {
    content: ""; position: fixed; inset: 0; z-index: 9997; pointer-events: none;
    background: linear-gradient(160deg, #214e32, #2e6b40); opacity: 1;
    animation: leafSafety .01s 3s forwards;
}
html.leaf-in.leaf-out::before { opacity: 0; transition: opacity .7s ease; }
@keyframes leafSafety { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
    .leaf-trans, html.leaf-in::before { display: none; }
    #cartCount.pop { animation: none; }
}


/* ---------- Lencana & ikon ikut membal ---------- */
.product-card:hover .product-badge.featured { transform: translateY(-3px) rotate(-3deg) scale(1.06); }
.category-chip span { display: inline-block; transition: transform .5s var(--ease-spring); }
.category-chip:hover span { transform: scale(1.25) rotate(-8deg); }
.category-chip.active span { transform: scale(1.2); }
.brand:hover .site-logo { transform: scale(1.08) rotate(-4deg); }

/* ---------- Cegah halaman melompat saat produk dimuat ---------- */
.category-list { min-height: 44px; }
.result-count { min-height: 1.7em; }
.product-grid { min-height: 420px; }

@media (prefers-reduced-motion: reduce) {
    .hero-buttons .btn-primary::after, .wa-float::before { animation: none; opacity: 0; }
    .category-chip span, .hero-dot { transition: none; }
}
