/* Gerai Pangan HANURA - gaya kustom di atas Tailwind CDN */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: #FFF8E8; color: #0F3D24; animation: pageIn .5s ease both; }
h1,h2,h3,h4,.font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-num { font-family: 'DM Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Reveal on scroll (hanya aktif bila JS menyala) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; } .js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; } .js .reveal[data-delay="4"] { transition-delay: .32s; }

/* Hero decorations */
.hero-bg { background: radial-gradient(circle at 80% 10%, #1B6B3A 0%, #0F3D24 45%, #082414 100%); }
.float-y { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.drift { animation: drift 18s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); opacity: .5; } 50% { transform: translate(24px,-18px) scale(1.08); opacity: .8; } }

/* Micro-interactions */
.btn-press { transition: transform .15s ease, box-shadow .25s ease, background-color .25s ease; }
.btn-press:hover { transform: translateY(-2px); }
.btn-press:active { transform: translateY(0) scale(.96); }
.card-hover { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(23,63,53,.28); }
.card-hover .card-img { transition: transform .6s ease; }
.card-hover:hover .card-img { transform: scale(1.07); }
.bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Skeleton */
.skeleton { background: linear-gradient(100deg, #f3e9cc 30%, #fbf4e0 50%, #f3e9cc 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position-x: -200%; } }

/* Drawer & overlay */
#cartOverlay { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#cartOverlay.open { opacity: 1; pointer-events: auto; }
#cartDrawer { transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
#cartDrawer.open { transform: none; }

/* Toast */
#toasts { position: fixed; top: 92px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: #fff; color: #0F3D24; box-shadow: 0 18px 40px -14px rgba(23,63,53,.35); border-left: 5px solid #1B6B3A; min-width: 260px; animation: toastIn .4s cubic-bezier(.2,.8,.2,1) both; font-size: 14px; font-weight: 600; }
.toast.error { border-left-color: #dc2626; } .toast.info { border-left-color: #F5A021; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* Modal */
.modal-bg { animation: fadeIn .2s ease both; } .modal-card { animation: modalIn .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* Form */
.fm-input { width: 100%; background: #fff; border: 1.5px solid #eadfc2; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: #0F3D24; transition: all .2s ease; }
.fm-input:focus { outline: none; border-color: #1B6B3A; box-shadow: 0 0 0 4px rgba(36,87,71,.12); }
.fm-input.invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.fm-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1B6B3A; margin-bottom: 6px; }
.field-error { color: #dc2626; font-size: 12px; font-weight: 600; margin-top: 4px; }

.no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { scrollbar-width: none; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #FFF8E8; } ::-webkit-scrollbar-thumb { background: #8DBB7A; border-radius: 10px; }

/* Pagination bawaan Laravel (tailwind) -> rapikan */
nav[role="navigation"] svg { width: 18px; height: 18px; display: inline; }

@media print { .no-print { display: none !important; } body { background: #fff; animation: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } }
