@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fffdee;
  --bg-soft: #f7fbe9;
  --surface: #ffffff;
  --surface-soft: #e2fbce;
  --text: #17231f;
  --text-muted: #607069;
  --border: #e2e9df;
  --primary: #076653;
  --primary-dark: #0c342c;
  --deep: #06231d;
  --accent: #e3ef26;
  --accent-soft: #e2fbce;
  --success: #147a5c;
  --danger: #b53b32;
  --interone: #076653;
  --yh: #6a7900;
  --indi: #4c5b55;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(12, 52, 44, .06);
  --shadow-md: 0 14px 34px rgba(12, 52, 44, .10);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--primary-dark); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--alt { background: linear-gradient(135deg, #fffdee 0%, #e2fbce 100%); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .eyebrow { display: inline-block; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 15px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,238,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 10px 24px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.header-logo-img { width: 190px; height: 52px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; margin-right: 22px; }
.main-nav a { font-size: 13px; font-weight: 700; color: var(--text); padding: 7px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); transition: transform .15s ease, background .15s ease; }
.cart-link:hover { background: var(--primary-dark); transform: translateY(-1px); }
.dash-link { background: var(--accent); color: var(--primary-dark); }
.dash-link:hover { background: #d8e61a; transform: translateY(-1px); }
.cart-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -7px; right: -7px; background: var(--accent); color: var(--primary-dark); font-size: 10px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--border); cursor: pointer; width: 46px; height: 46px; border-radius: 12px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--primary-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 800; font-size: 13.5px; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: #d8e61a; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--surface-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 13px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-whatsapp { background: #16815f; color: #fff; }
.btn-whatsapp:hover { background: #0e684c; }

/* Product cards */
.badge-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: #fff; }
.badge-brand.interone { background: var(--interone); }
.badge-brand.yh { background: var(--yh); }
.badge-brand.indi { background: var(--indi); }
.badge-stok { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.badge-stok.tersedia { background: #e5f5ec; color: var(--success); }
.badge-stok.menipis { background: #fff6cf; color: #6f6200; }
.badge-stok.habis { background: #fbeae8; color: var(--danger); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; box-shadow: 0 2px 8px rgba(12,52,44,.03); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card .thumb { display: block; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fffdee, #e2fbce); overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .badge-brand { position: absolute; top: 10px; left: 10px; z-index: 1; }
.product-card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .kategori-label { font-size: 10.5px; color: var(--text-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.product-card h3 { font-size: 14px; color: var(--primary-dark); min-height: 38px; }
.product-spec { color: var(--text-muted); font-size: 11.5px; line-height: 1.45; min-height: 33px; }
.price-wrap { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.harga-coret { color: #89928e; font-size: 11px; text-decoration: line-through; }
.product-card .harga { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--primary); font-variant-numeric: tabular-nums; }
.product-card .stok-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.qty-add { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 7px; margin-top: 4px; }
.product-card .qty-add input { width: 100%; min-width: 0; text-align: center; padding: 9px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }

/* Footer */
.site-footer { background: var(--deep); color: #eaf5ef; margin-top: 64px; }
.footer-trust { padding: 46px 24px 34px; max-width: var(--container); margin: 0 auto; }
.testimonial-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.testimonial-head h3 { color: #fff; font-size: 24px; }
.testimonial-head p { color: #a9c2b7; font-size: 12px; max-width: 460px; }
.testimonial-slider { position: relative; background: linear-gradient(135deg, rgba(255,253,238,.08), rgba(226,251,206,.05)); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); padding: 26px; min-height: 178px; overflow: hidden; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadeIn .35s ease; }
.testimonial-quote { font-family: var(--font-display); color: #fff; font-size: clamp(16px, 2vw, 21px); line-height: 1.45; max-width: 850px; }
.testimonial-meta { margin-top: 18px; color: #b5ccc1; font-size: 12px; font-weight: 700; }
.testimonial-dots { display: flex; gap: 7px; margin-top: 18px; }
.testimonial-dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #6c8179; cursor: pointer; }
.testimonial-dots button.active { background: var(--accent); transform: scale(1.25); }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.45fr; gap: 36px; padding: 28px 24px 40px; max-width: var(--container); margin: 0 auto; }
.footer-main h4 { color: #fff; font-size: 13px; margin-bottom: 13px; }
.footer-main p, .footer-main a { color: #a9c2b7; font-size: 12.5px; }
.footer-main ul li { margin-bottom: 8px; }
.footer-main a:hover { color: var(--accent); }
.footer-brand img { width: 180px; height: 48px; object-fit: contain; object-position: left center; background: #fff; border-radius: 8px; padding: 4px 7px; }
.footer-brand p { margin-top: 12px; max-width: 330px; }
.map-wrap { overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); }
.map-wrap iframe { display: block; width: 100%; height: 190px; border: 0; }
.footer-address { margin-top: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px 20px; font-size: 11.5px; color: #7f998e; }
.footer-bottom .admin-link { margin-left: 10px; color: #7f998e; text-decoration: underline; }
.footer-bottom .admin-link:hover { color: var(--accent); }

/* Trust */
.trust-bar { background: var(--primary); }
.trust-bar .inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 14px 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11.5px; font-weight: 700; }
.trust-item .ico { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--primary-dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 2000; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1800; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: var(--primary-dark); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top span { font-size: 21px; line-height: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .main-nav { gap: 14px; margin-right: 14px; }
  .main-nav a { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header .inner { min-height: 68px; }
  .header-logo-img { width: 174px; height: 48px; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 20px; background: rgba(255,253,238,.98); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .28s ease, opacity .2s ease, visibility .28s ease, padding .28s ease; }
  .main-nav.open { max-height: calc(100vh - 68px); padding: 10px 20px 16px; opacity: 1; visibility: visible; overflow-y: auto; }
  .main-nav a { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
  .main-nav a:last-child { border-bottom: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 46px 0; }
  .header-logo-img { width: 150px; height: 43px; }
  .cart-link, .nav-toggle { width: 42px; height: 42px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card .thumb { aspect-ratio: 1.35 / 1; }
  .qty-add { grid-template-columns: 64px 1fr; }
  .footer-trust { padding: 36px 16px 26px; }
  .testimonial-head { display: block; }
  .testimonial-head p { margin-top: 8px; }
  .testimonial-slider { padding: 21px; }
  .footer-main { grid-template-columns: 1fr; padding: 24px 16px 30px; gap: 25px; }
  .footer-brand img { width: 160px; }
  .map-wrap iframe { height: 210px; }
  .trust-bar .inner { justify-content: flex-start; gap: 10px 18px; }
}
