:root {
    --forest: #214e32;
    --green: #39794b;
    --green-light: #e5efdf;
    --cream: #faf8f1;
    --white: #fff;
    --text: #29362c;
    --muted: #6b776c;
    --border: #e5e9df;
    --earth: #c4a27a;
    --shadow: 0 8px 28px rgba(33, 78, 50, .08);
    --radius: 18px;
    --hero-radius: 28px;
    --dur-fast: 160ms;
    --dur-base: 280ms;
    --dur-slow: 480ms;
    --dur-hero: 900ms;
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --reveal-y: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'Nunito Sans', Arial, sans-serif;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 3px solid #9cbe83;
    outline-offset: 3px;
}

img, video, iframe, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

h2 {
    font-size: clamp(27px, 3vw, 36px);
    color: var(--forest);
    letter-spacing: -.3px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 248, 241, .96);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(33, 78, 50, .08); }

.header-inner {
    max-width: 1280px;
    min-height: 84px;
    padding: 12px 5%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.site-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform var(--dur-base) var(--ease-spring);
}

.brand:hover .site-logo { transform: scale(1.06) rotate(-3deg); }

.brand-info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.brand-info strong { color: var(--forest); font-size: 16px; }
.brand-info small { color: var(--muted); font-size: 12px; }

.navigation { display: flex; align-items: center; gap: 24px; }

.navigation a {
    color: #47564a;
    font-size: 14px;
    font-weight: 700;
    transition: color .1s ease;
}

.navigation a:hover { color: var(--green); }

.cart-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d9e4d3;
    border-radius: 30px;
    padding: 10px 16px;
    background: var(--white);
    color: var(--forest);
    font-weight: 800;
    transition: background .2s ease, border-color .2s ease, transform var(--dur-fast) var(--ease-spring);
}

.cart-toggle:hover {
    background: var(--green-light);
    border-color: #bcd2b1;
    transform: translateY(-2px);
}

.cart-toggle.is-bumped { animation: cartBump var(--dur-slow) var(--ease-spring); }

@keyframes cartBump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.12); }
    60%  { transform: scale(.96); }
    100% { transform: scale(1); }
}

#cartCount {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 12px;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: calc(100vh - 84px);
    min-height: calc(100dvh - 84px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .9s ease;
    transform: scale(1.02) translate3d(0, 0, 0);
    animation: heroKenBurns 20s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

.hero-slide.is-active { opacity: 1; }

@keyframes heroKenBurns {
    0%   { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg,
        rgba(15, 30, 20, .82) 0%,
        rgba(15, 30, 20, .55) 45%,
        rgba(15, 30, 20, .15) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 5% 100px;
    color: #fff;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.hero-content > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    animation: heroTextIn var(--dur-hero) var(--ease-out) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: .10s; }
.hero-content > *:nth-child(2) { animation-delay: .22s; }
.hero-content > *:nth-child(3) { animation-delay: .34s; }
.hero-content > *:nth-child(4) { animation-delay: .46s; }
.hero-content > *:nth-child(5) { animation-delay: .58s; }

@keyframes heroTextIn { to { opacity: 1; transform: translate3d(0, 0, 0); } }

.hero-content .eyebrow { color: #d6e8c8; }

.hero-content > p {
    max-width: 520px;
    margin-bottom: 27px;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
}

.hero h1 {
    max-width: 620px;
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.7px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.hero-note {
    margin-top: 22px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    letter-spacing: .2px;
}

.eyebrow {
    display: block;
    margin-bottom: 13px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(20, 35, 25, .35);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
    background: rgba(20, 35, 25, .65);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    transition: background .2s ease, transform .2s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, .75); transform: scale(1.3); }
.hero-dot.is-active { background: #fff; transform: scale(1.15); }

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 23px;
    border: 0;
    border-radius: 10px;
    background: var(--forest);
    color: white;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transition: background .2s ease, transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

.primary-button:hover {
    background: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 78, 50, .2);
}

/* SECTION */
.section {
    max-width: 1280px;
    margin: auto;
    padding: 55px 5%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.section-heading h2 { margin-top: 4px; }

.section-heading > p {
    max-width: 370px;
    color: var(--muted);
    font-size: 14px;
}

/* KATEGORI */
.category-list { display: flex; flex-wrap: wrap; gap: 12px; }

.category-chip {
    padding: 10px 18px;
    border: 1px solid #dce5d6;
    border-radius: 30px;
    background: var(--white);
    color: var(--forest);
    font-size: 13px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

.category-chip:hover {
    background: var(--green-light);
    border-color: #bcd2b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 78, 50, .08);
}

.category-chip.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
    box-shadow: 0 4px 12px rgba(33, 78, 50, .2);
}

/* SEARCH DAN FILTER */
.product-section { padding-top: 40px; }

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 220px;
    gap: 12px;
    margin-bottom: 18px;
}

.search-box, .filter-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.search-box:focus-within, .filter-label:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(57, 121, 75, .12);
}

.search-box > span { color: var(--green); font-size: 25px; }

.search-box input, .filter-label select {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.filter-label { display: block; padding: 5px 12px; }

.filter-label span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.filter-label select { padding: 1px 0; font-weight: 700; }

.result-count { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

/* KARTU PRODUK — KOTAK HORIZONTAL */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    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), border-color var(--dur-base) var(--ease-out);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(33, 78, 50, .12);
    border-color: transparent;
}

.product-visual {
    position: relative;
    overflow: hidden;
    background: #edf2e8;
    aspect-ratio: 16 / 9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-image { transform: scale(1.08); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 9px;
    border-radius: 20px;
    background: #f4f0df;
    color: #6e572d;
    font-size: 10px;
    font-weight: 800;
    overflow: hidden;
}

.product-badge.featured {
    background: var(--forest);
    color: white;
    position: relative;
}

.product-badge.featured::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 70% { left: -100%; }
    100%    { left: 100%; }
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 14px;
}

.product-category {
    margin-bottom: 3px;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.product-info h3 {
    margin-bottom: 5px;
    color: var(--forest);
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    transition: color var(--dur-base) var(--ease-out);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover .product-info h3 { color: var(--green); }

.product-description {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

.price { color: var(--forest); font-size: 16px; font-weight: 800; }
.old-price { color: #939b92; font-size: 11px; text-decoration: line-through; }
.unit-label { color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.stock-label { margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.stock-label.out-of-stock { color: #a33b32; font-weight: 800; }

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.buy-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 6px;
    border: 1px solid var(--forest);
    border-radius: 9px;
    font-size: 10.5px;
    font-weight: 800;
    transition: background .2s ease, transform var(--dur-fast) var(--ease-spring), color .2s ease;
}

.buy-button.secondary { background: var(--white); color: var(--forest); }
.buy-button.secondary:hover:not(:disabled) { background: var(--green-light); transform: translateY(-1px); }
.buy-button.primary { background: var(--forest); color: white; }
.buy-button.primary:hover:not(:disabled) { background: var(--green); transform: translateY(-1px); }
.buy-button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.buy-button:disabled { border-color: #d5d9d1; background: #e8ebe5; color: #737c72; cursor: not-allowed; }

.empty-state { padding: 45px 15px; color: var(--muted); text-align: center; }

/* TENTANG KAMI */
.about-section { margin-top: 30px; padding: 65px 5%; background: #eaf0e3; }
.about-content { max-width: 850px; margin: auto; text-align: center; }
.about-content h2 { margin-bottom: 18px; }
.about-content p { color: #566457; font-size: 15px; }

/* FOOTER */
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 35px 5%;
    background: var(--forest);
    color: white;
}

.site-footer strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}

.site-footer p { color: #dce7d9; font-size: 12px; }
.copyright { align-self: center; text-align: right; }