/* =========================================================
   HANNEL Marketplace — main.css
   ========================================================= */

/* ---------- Font (lokal) ---------- */
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "HN Serif"; src: url("../fonts/dmserif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HN Serif"; src: url("../fonts/dmserif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Token ---------- */
:root {
	--hn-gold: #A9814F;
	--hn-brown: #3A2A1F;
	--hn-ink: #141B2D;
	--hn-sale: #E8453C;

	--hn-text: #1D2230;
	--hn-muted: #6B6F7B;
	--hn-line: #ECE8E2;
	--hn-surface: #F7F5F2;
	--hn-cream: #F4EEE6;
	--hn-white: #FFFFFF;

	--hn-sans: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hn-serif: "HN Serif", Georgia, "Times New Roman", serif;

	--hn-r-lg: 18px;
	--hn-r-md: 14px;
	--hn-r-sm: 10px;

	--hn-side: 360px;
	--hn-gap: 16px;
	--hn-shadow: 0 1px 2px rgba(40, 28, 16, .05), 0 6px 20px -12px rgba(40, 28, 16, .18);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--hn-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--hn-text);
	background: var(--hn-white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hn-gold); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--hn-ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
/* Gaya teks hanya untuk isi editor (anak langsung), agar tidak bocor ke tampilan plugin seperti WCFM */
.hn-content > ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.hn-content > ol { padding-left: 1.3em; margin-bottom: 1em; }

:focus-visible { outline: 2px solid var(--hn-gold); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.hn-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--hn-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hn-skip:focus { left: 12px; color: #fff; }

.hn-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.hn-icon { flex: none; display: block; }
.hn-note { font-size: 13px; color: var(--hn-muted); background: var(--hn-surface); border: 1px dashed var(--hn-line); border-radius: var(--hn-r-sm); padding: 12px 14px; }

/* ---------- Tombol ---------- */
.hn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s;
}
.hn-btn--ink { background: var(--hn-ink); color: #fff; }
.hn-btn--ink:hover { background: var(--hn-brown); color: #fff; }
.hn-btn--line { border-color: var(--hn-ink); color: var(--hn-ink); background: transparent; }
.hn-btn--line:hover { background: var(--hn-ink); color: #fff; }
.hn-btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.hn-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; }
.hn-iconbtn:hover { background: var(--hn-surface); }

/* =========================================================
   Header
   ========================================================= */
.hn-header { background: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .hn-header { top: 32px; }
.hn-header__top { display: flex; align-items: center; gap: 28px; height: 78px; }

.hn-logo { display: flex; align-items: center; gap: 10px; color: var(--hn-gold); flex: none; }
.hn-logo:hover { color: var(--hn-gold); }
.hn-header .hn-logo__img { height: 54px; width: auto; max-width: 230px; object-fit: contain; }
.hn-logo__mark { width: 44px; height: 44px; }
.hn-logo__text { display: flex; flex-direction: column; }
.hn-logo__name { font-size: 22px; font-weight: 600; letter-spacing: .32em; color: var(--hn-ink); text-transform: uppercase; line-height: 1.1; }
.hn-logo__tag { font-size: 8.5px; letter-spacing: .34em; color: var(--hn-muted); margin-top: 3px; }

.hn-search { flex: 1; max-width: 640px; display: flex; height: 44px; background: var(--hn-surface); border: 1px solid var(--hn-line); border-radius: 10px; overflow: hidden; }
.hn-search:focus-within { border-color: var(--hn-gold); background: #fff; }
.hn-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font: inherit; font-size: 14px; color: var(--hn-text); }
.hn-search input:focus { outline: none; }
.hn-search button { width: 54px; border: 0; background: var(--hn-gold); color: #fff; display: grid; place-items: center; }
.hn-search button:hover { filter: brightness(.94); }

.hn-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hn-action { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 58px; font-size: 12px; color: var(--hn-text); }
.hn-action__icon { position: relative; }
.hn-cart-count {
	position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--hn-sale); color: #fff; font-size: 10.5px; font-weight: 700;
	display: grid; place-items: center; line-height: 1; border: 2px solid #fff;
}
.hn-cart-count.is-empty { display: none; }
.hn-login { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding-left: 18px; max-width: 200px; }
.hn-login span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dropdown akun */
.hn-user { position: relative; }
.hn-user .hn-login { border: 0; background: none; cursor: pointer; }
.hn-user__menu {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; z-index: 70; padding: 8px;
	background: #fff; border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); box-shadow: var(--hn-shadow);
}
.hn-user__menu[hidden] { display: none; }
.hn-user__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.hn-user__menu a:hover { background: var(--hn-surface); color: var(--hn-ink); }
.hn-user__menu a.is-pos { background: var(--hn-cream); font-weight: 700; color: var(--hn-ink); }

/* Bar kategori */
.hn-catbar { border-top: 1px solid var(--hn-line); border-bottom: 1px solid var(--hn-line); }
.hn-catbar__inner { display: flex; align-items: center; gap: 22px; height: 48px; }
.hn-allcat { position: relative; flex: none; }
.hn-allcat__btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--hn-ink); padding: 8px 0; }
.hn-allcat__panel {
	position: absolute; top: calc(100% + 6px); left: 0; width: 560px; z-index: 60;
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px;
	background: #fff; border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); box-shadow: var(--hn-shadow);
}
.hn-allcat__panel[hidden] { display: none; }
.hn-allcat__panel a, .hn-drawer__list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.hn-allcat__panel a:hover, .hn-drawer__list a:hover { background: var(--hn-surface); color: var(--hn-ink); }
.hn-allcat__ic { width: 32px; height: 32px; border-radius: 8px; background: var(--hn-surface); display: grid; place-items: center; color: var(--hn-ink); overflow: hidden; flex: none; }
.hn-allcat__ic img { width: 100%; height: 100%; object-fit: cover; }

.hn-catnav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hn-catnav::-webkit-scrollbar { display: none; }
.hn-catnav__list { display: flex; gap: 26px; white-space: nowrap; }
.hn-catnav__list a { font-size: 13.5px; color: var(--hn-text); padding: 13px 0; display: block; border-bottom: 2px solid transparent; }
.hn-catnav__list a:hover, .hn-catnav__list .current-menu-item > a { color: var(--hn-ink); border-bottom-color: var(--hn-gold); }

/* Drawer HP */
.hn-drawer { position: fixed; inset: 0; z-index: 100; }
.hn-drawer[hidden] { display: none; }
.hn-drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 27, 45, .45); }
.hn-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: #fff;
	display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px);
	animation: hn-slide .22s ease-out;
}
@keyframes hn-slide { from { transform: translateX(-100%); } to { transform: none; } }
.hn-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 18px; border-bottom: 1px solid var(--hn-line); }
.hn-drawer__head h2 { margin: 0; font-size: 17px; }
.hn-drawer__list { flex: 1; overflow-y: auto; padding: 8px; }
.hn-drawer__foot { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hn-line); }

.hn-only-mobile { display: none; }

/* =========================================================
   Beranda
   ========================================================= */
.hn-home { padding-top: 14px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hn-gap); }

/* Hero + Seller */
.hn-top { display: grid; grid-template-columns: minmax(0, 1fr) var(--hn-side); gap: 14px; }

.hn-hero {
	position: relative; overflow: hidden; border-radius: var(--hn-r-lg);
	min-height: 300px; display: flex; align-items: center;
	background: linear-gradient(105deg, #F5EEE5 0%, #EBDDCB 55%, #D9C1A2 100%);
}
.hn-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hn-hero.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(247, 241, 233, .96) 0%, rgba(247, 241, 233, .82) 32%, rgba(247, 241, 233, 0) 58%);
}
.hn-hero__art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 32%; max-width: 300px; opacity: .22; }
.hn-hero .hn-hero__art img { width: 100%; height: auto; display: block; }
.hn-hero__art svg { width: 100%; height: auto; }
.hn-hero__content { position: relative; z-index: 2; padding: 38px 42px; max-width: 520px; }
.hn-hero__title { font-family: var(--hn-serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 18px; color: #111827; }
.hn-hero__text { font-size: 16px; color: #2A2F3C; max-width: 34ch; margin-bottom: 24px; }
.hn-hero__script {
	position: absolute; z-index: 2; left: 52%; top: 14%; margin: 0;
	font-family: var(--hn-serif); font-style: italic; font-size: clamp(20px, 2vw, 30px);
	color: var(--hn-brown); opacity: .8; transform: rotate(-12deg); max-width: 8em; line-height: 1.1;
}

.hn-seller {
	position: relative; overflow: hidden; border-radius: var(--hn-r-lg);
	background: linear-gradient(160deg, #FBF7F2 0%, #F1E6D7 100%);
	padding: 26px 22px; min-height: 300px;
}
.hn-seller__title { font-size: 20px; font-weight: 700; max-width: 9em; margin-bottom: 8px; }
.hn-seller__text { font-size: 13px; color: var(--hn-muted); max-width: 17em; margin-bottom: 16px; }
.hn-seller .hn-btn { height: 34px; padding: 0 16px; font-size: 12.5px; position: relative; z-index: 2; }
.hn-seller__points { margin-top: 18px; display: grid; gap: 9px; position: relative; z-index: 2; }
.hn-seller__points li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--hn-text); }
.hn-seller__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--hn-ink); color: #fff; display: grid; place-items: center; }
.hn-seller__img { position: absolute; right: 0; bottom: 0; width: 52%; height: 88%; object-fit: contain; object-position: right bottom; z-index: 1; }
.hn-seller__art { position: absolute; right: -16px; bottom: -14px; color: var(--hn-gold); opacity: .22; }

/* Ikon kategori */
.hn-cats { border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); background: #fff; padding: 12px 10px; }
.hn-cats ul { display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hn-cats ul::-webkit-scrollbar { display: none; }
.hn-cats li { flex: 1 0 76px; }
.hn-cats a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; text-align: center; }
.hn-cats__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--hn-surface); color: var(--hn-ink); display: grid; place-items: center; overflow: hidden; transition: background-color .15s, color .15s; }
.hn-cats__ic img { width: 100%; height: 100%; object-fit: cover; }
.hn-cats a:hover .hn-cats__ic { background: var(--hn-cream); color: var(--hn-gold); }
.hn-cats__name { font-size: 11.5px; line-height: 1.25; color: var(--hn-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Banner promo */
.hn-promos { display: grid; grid-template-columns: 1.12fr 1fr var(--hn-side); gap: 14px; }
.hn-promo {
	position: relative; overflow: hidden; border-radius: var(--hn-r-md);
	min-height: 128px; padding: 20px 22px; display: flex; align-items: center;
}
.hn-promo__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; max-width: 58%; }
.hn-promo__label { font-size: 13px; letter-spacing: .04em; margin-bottom: 4px; }
.hn-promo__title { font-size: 20px; line-height: 1.15; font-weight: 700; margin-bottom: 12px; }
.hn-promo__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.hn-promo__img { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }
.hn-promo__art { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); opacity: .35; }

.hn-promo--1 { background: linear-gradient(110deg, #231912 0%, var(--hn-brown) 60%, #5A4130 100%); color: #F4EDE3; }
.hn-promo--1 .hn-promo__title { font-family: var(--hn-serif); font-weight: 400; font-size: 24px; }
.hn-promo--1 .hn-promo__art { color: var(--hn-gold); }
.hn-promo--1:hover { color: #fff; }
.hn-promo--2 { background: linear-gradient(110deg, #F7F1EA, #E9DCCB); color: var(--hn-ink); }
.hn-promo--2 .hn-promo__label { text-transform: uppercase; }
.hn-promo--2 .hn-promo__title { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.hn-promo--2 .hn-promo__cta { background: var(--hn-ink); color: #fff; padding: 6px 12px; border-radius: 999px; }
.hn-promo--3 { background: linear-gradient(110deg, #FBF8F4, #F0E7DB); color: var(--hn-ink); }
.hn-promo--3 .hn-promo__label { font-size: 18px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; margin: 0; }
.hn-promo--3 .hn-promo__title { font-size: 15px; font-weight: 500; }
.hn-promo--3 .hn-promo__cta { color: var(--hn-gold); }
.hn-promo--3 .hn-promo__art { color: var(--hn-brown); }

/* Kolom bawah */
.hn-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--hn-side); gap: 24px; align-items: start; margin-top: 6px; }
.hn-split__main, .hn-split__side { display: grid; gap: 22px; min-width: 0; }

.hn-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hn-block__head h2 { font-size: 19px; font-weight: 700; margin: 0; }
.hn-more { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--hn-text); white-space: nowrap; }

.hn-panel { background: #fff; border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); padding: 16px 18px; }
.hn-side-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; }

/* Flash sale */
.hn-flash__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hn-flash__title h2 { font-size: 21px; font-weight: 800; }
.hn-flash__bolt { color: #F29A1F; }
.hn-countdown { display: flex; align-items: center; gap: 4px; margin-left: 10px; font-variant-numeric: tabular-nums; }
.hn-countdown span { min-width: 30px; height: 28px; padding: 0 6px; background: var(--hn-sale); color: #fff; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.hn-countdown i { font-style: normal; font-weight: 700; color: var(--hn-sale); }

.hn-rail { display: grid; gap: 12px; }
.hn-rail--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hn-grid { display: grid; gap: 14px; }
.hn-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Kartu produk */
.hn-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hn-card__media { position: relative; border-radius: var(--hn-r-sm); background: var(--hn-surface); overflow: hidden; aspect-ratio: 1 / .82; }
.hn-card__media > a { display: block; height: 100%; }
.hn-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.hn-card:hover .hn-card__media img { transform: scale(1.04); }
.hn-card--compact .hn-card__media { aspect-ratio: 4 / 3; }
.hn-card__body { padding: 10px 2px 4px; display: flex; flex-direction: column; gap: 4px; }
.hn-card__title { font-size: 13px; font-weight: 500; line-height: 1.35; margin: 0; color: var(--hn-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hn-card--compact .hn-card__title { min-height: 0; -webkit-line-clamp: 1; }
.hn-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hn-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hn-price { font-size: 14.5px; font-weight: 700; color: var(--hn-ink); }
.hn-price.is-sale { color: var(--hn-sale); }
.hn-price-old { font-size: 11px; color: #9A9DA6; }
.hn-card__meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--hn-muted); }
.hn-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--hn-text); }
.hn-rating .hn-icon { color: #F2A516; }
.hn-rating + .hn-sold::before { content: "|"; margin-right: 6px; color: var(--hn-line); }
.hn-card__body > :not(.hn-card__title):not(.hn-card__price):not(.hn-card__meta) { position: relative; z-index: 2; font-size: 12px; color: var(--hn-muted); }

.hn-badge-discount {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	background: var(--hn-sale); color: #fff; font-size: 12px; font-weight: 700;
	padding: 3px 7px; border-radius: 6px; line-height: 1.2;
}
.hn-badge-mall { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: var(--hn-sale); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.hn-fav {
	position: absolute; top: 7px; right: 7px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
	border: 1px solid var(--hn-line); background: #fff; color: var(--hn-text); display: grid; place-items: center;
}
.hn-fav[aria-pressed="true"] { color: var(--hn-sale); }
.hn-fav[aria-pressed="true"] path { fill: currentColor; }
.hn-card--full .hn-fav { display: none; }
.hn-loop-item .hn-card--full .hn-fav { display: grid; }

/* Brand */
.hn-brands__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hn-brands__grid a { aspect-ratio: 1; border: 1px solid var(--hn-line); border-radius: var(--hn-r-sm); display: grid; place-items: center; padding: 8px; background: #fff; overflow: hidden; }
.hn-brands__grid a:hover { border-color: var(--hn-gold); }
.hn-brands__grid img { width: 100%; height: 100%; object-fit: contain; }
.hn-brand-name { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.15; color: var(--hn-ink); word-break: break-word; }

/* Kategori populer */
.hn-popular__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 10px 12px; }
.hn-popular__list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 12.5px; }
.hn-popular__thumb { width: 38px; height: 38px; border-radius: 8px; background: var(--hn-surface); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--hn-ink); }
.hn-popular__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hn-popular__name { flex: 1; min-width: 0; line-height: 1.3; }
.hn-popular__chev { color: #A5A8B0; }

/* Aplikasi */
.hn-app { display: flex; align-items: center; gap: 14px; background: var(--hn-surface); border-color: transparent; }
.hn-app__tile { width: 88px; height: 88px; border-radius: 16px; background: linear-gradient(150deg, #4A3627, var(--hn-brown) 60%, #22170F); color: var(--hn-gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none; overflow: hidden; }
.hn-app__tile img { width: 60%; height: auto; }
.hn-app__tile span { font-size: 8px; letter-spacing: .28em; text-transform: uppercase; color: #E9DCC9; }
.hn-app__body { flex: 1; min-width: 0; }
.hn-app__body h2 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.hn-app__body p { font-size: 12px; color: var(--hn-muted); margin-bottom: 10px; }
.hn-app__stores { display: flex; gap: 6px; flex-wrap: wrap; }
.hn-store { display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; line-height: 1.05; }
.hn-store:hover { color: #fff; background: var(--hn-ink); }
.hn-store small { display: block; font-size: 7.5px; font-weight: 500; }
.hn-app__qr { width: 72px; height: 72px; flex: none; border-radius: 6px; background: #fff; padding: 4px; }

/* Jaminan */
.hn-trust { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--hn-line); }
.hn-trust li { display: flex; align-items: center; gap: 10px; color: var(--hn-ink); }
.hn-trust span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--hn-muted); line-height: 1.35; }
.hn-trust strong { font-size: 12px; font-weight: 600; color: var(--hn-ink); }

/* =========================================================
   Halaman umum & blog
   ========================================================= */
.hn-page { padding-top: 28px; padding-bottom: 48px; }
.hn-page__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 20px; }
.hn-page__title span { color: var(--hn-gold); }
.hn-article { max-width: 760px; margin: 0 auto; }
.hn-page--wide .hn-article { max-width: none; }
.hn-content { font-size: 16px; line-height: 1.7; }
.hn-content > p img, .hn-content > figure img { border-radius: var(--hn-r-sm); }
.hn-content > p a, .hn-content > ul > li a, .hn-content > ol > li a, .hn-content > h2 a, .hn-content > h3 a { color: var(--hn-gold); text-decoration: underline; text-underline-offset: 2px; }
.hn-content a.hn-btn { text-decoration: none; }
.hn-content a.hn-btn--ink { color: var(--hn-on-ink, #fff); }
.hn-content a.hn-btn--line { color: var(--hn-ink); }
.hn-article__thumb { margin: 0 0 24px; }
.hn-article__thumb img { border-radius: var(--hn-r-md); width: 100%; }

.hn-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.hn-post { border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); overflow: hidden; background: #fff; }
.hn-post__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hn-post__body { padding: 16px 18px; }
.hn-post__date { font-size: 12px; color: var(--hn-muted); margin-bottom: 4px; }
.hn-post__title { font-size: 17px; margin-bottom: 6px; }
.hn-post__excerpt { font-size: 14px; color: var(--hn-muted); }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 38px; height: 38px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--hn-line); border-radius: 8px; font-size: 14px; }
.nav-links .page-numbers.current { background: var(--hn-ink); border-color: var(--hn-ink); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; max-width: 760px; margin: 28px auto 0; }

.hn-empty { text-align: center; padding: 40px 0; color: var(--hn-muted); }
.hn-inline-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.hn-inline-search input { flex: 1; height: 40px; border: 1px solid var(--hn-line); border-radius: 999px; padding: 0 16px; font: inherit; }

.hn-404 { text-align: center; padding-top: 60px; }
.hn-404__code { font-family: var(--hn-serif); font-size: 96px; line-height: 1; color: var(--hn-gold); margin: 0; }

.hn-comments { max-width: 760px; margin: 40px auto 0; }
.hn-comments__list .comment-body { border-bottom: 1px solid var(--hn-line); padding: 14px 0; }

/* Footer */
.hn-footer { background: var(--hn-surface); margin-top: 20px; font-size: 14px; }
.hn-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 20px; }
.hn-footer .widget-title { font-size: 15px; margin-bottom: 12px; }
.hn-footer .widget li { margin-bottom: 6px; }
.hn-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--hn-line); color: var(--hn-muted); font-size: 13px; }
.hn-footer__bottom p { margin: 0; }
.hn-footer__menu { display: flex; gap: 18px; flex-wrap: wrap; }

/* Tab bar HP */
.hn-tabbar { display: none; }

/* =========================================================
   Responsif
   ========================================================= */
@media (max-width: 1200px) {
	:root { --hn-side: 320px; }
	.hn-login span { display: none; }
	.hn-login { padding-left: 4px; }
	.hn-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hn-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}

@media (max-width: 1024px) {
	.hn-top { grid-template-columns: minmax(0, 1fr); }
	.hn-seller { min-height: 0; }
	.hn-seller__points { grid-template-columns: 1fr 1fr; max-width: 60%; }
	.hn-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-promo--3 { grid-column: 1 / -1; }
	.hn-split { grid-template-columns: minmax(0, 1fr); }
	.hn-split__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.hn-split__side .hn-app { grid-column: 1 / -1; }
	.hn-rail--5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
	.hn-rail--5 > * { scroll-snap-align: start; }
}

@media (max-width: 782px) {
	.admin-bar .hn-header { top: 46px; }

	body { font-size: 14px; padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
	.hn-wrap { padding: 0 14px; }
	.hn-only-mobile { display: inline-grid; margin-left: -8px; }
	.hn-hide-mobile { display: none !important; }
	.hn-header__top { height: auto; flex-wrap: wrap; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
	.hn-logo__mark { width: 34px; height: 34px; }
	.hn-logo__name { font-size: 17px; }
	.hn-logo__tag { display: none; }
	.hn-header .hn-logo__img { height: 38px; max-width: 150px; }
	.hn-actions { gap: 4px; }
	.hn-action { min-width: 0; }
	.hn-action__label { display: none; }
	.hn-search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
	.hn-catbar { display: none; }

	.hn-home { padding-top: 10px; gap: 14px; }
	.hn-hero { min-height: 260px; align-items: flex-end; }
	.hn-hero.has-image::before { background: linear-gradient(0deg, rgba(247, 241, 233, .97) 0%, rgba(247, 241, 233, .88) 45%, rgba(247, 241, 233, 0) 80%); }
	.hn-hero__content { padding: 110px 20px 22px; }
	.hn-hero__text { font-size: 14px; margin-bottom: 16px; }
	.hn-hero__script { left: auto; right: 18px; top: 18px; font-size: 20px; }
	.hn-hero__art { width: 42%; top: 30%; right: 8%; }

	.hn-seller { padding: 20px 18px; }
	.hn-seller__points { max-width: 62%; grid-template-columns: 1fr; }

	.hn-cats { padding: 10px 4px; }
	.hn-cats ul { justify-content: flex-start; }
	.hn-cats li { flex: 0 0 72px; }

	.hn-promos { grid-template-columns: minmax(0, 1fr); }
	.hn-promo { min-height: 116px; }
	.hn-promo--2 .hn-promo__title { font-size: 36px; }

	.hn-split__side { grid-template-columns: minmax(0, 1fr); }
	.hn-rail--5 { grid-auto-columns: 44%; }
	.hn-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hn-countdown { margin-left: 0; }
	.hn-flash__title h2 { font-size: 18px; }
	.hn-trust { grid-template-columns: 1fr 1fr; }
	.hn-footer__cols { grid-template-columns: 1fr 1fr; }

	.hn-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: #fff; border-top: 1px solid var(--hn-line);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.hn-tabbar a, .hn-tabbar button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		height: 60px; border: 0; background: none; font-size: 10.5px; color: var(--hn-muted);
	}
	.hn-tabbar [aria-current="page"] { color: var(--hn-gold); }
}

@media (max-width: 600px) {
	.admin-bar .hn-header { top: 0; }
}

@media (max-width: 420px) {
	.hn-app { flex-wrap: wrap; }
	.hn-app__qr { display: none; }
	.hn-popular__list { grid-template-columns: 1fr; }
	.hn-brands__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Layanan, popup produk, toast, halaman Kasir POS
   ========================================================= */
.hn-services ul { justify-content: flex-start; }
.hn-services li { flex: 0 0 92px; }

.hn-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.hn-modal[hidden] { display: none; }
.hn-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 27, 45, .5); opacity: 0; transition: opacity .2s ease; }
.hn-modal__panel { position: relative; background: #fff; border-radius: 18px; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; outline: none;
	box-shadow: 0 30px 80px -20px rgba(20, 15, 10, .45); opacity: 0; transform: translateY(16px) scale(.96);
	transition: opacity .2s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.hn-modal.is-open .hn-modal__backdrop { opacity: 1; }
.hn-modal.is-open .hn-modal__panel { opacity: 1; transform: none; }
.hn-modal__x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--hn-surface); display: grid; place-items: center; color: var(--hn-ink); }
.hn-modal__x:hover { background: var(--hn-cream); }
.hn-modal__loading { padding: 60px 24px; text-align: center; color: var(--hn-muted); margin: 0; }
.hn-qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hn-qv__img { position: relative; background: var(--hn-surface); aspect-ratio: 1; }
.hn-qv__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hn-qv__info { padding: 28px 26px 24px; }
.hn-qv__title { font-size: 22px; font-weight: 700; padding-right: 36px; margin-bottom: 8px; }
.hn-qv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--hn-muted); margin-bottom: 14px; }
.hn-qv__store { display: inline-flex; align-items: center; gap: 4px; color: var(--hn-gold); }
.hn-qv__price { background: var(--hn-surface); border-radius: var(--hn-r-sm); padding: 12px 14px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 26px; font-weight: 800; color: var(--hn-ink); }
.hn-qv__price ins { text-decoration: none; color: var(--hn-sale); }
.hn-qv__price del { font-size: 14px; font-weight: 500; color: var(--hn-muted); }
.hn-pct { background: var(--hn-sale); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.hn-qv__desc { font-size: 14px; color: var(--hn-text); margin-bottom: 12px; }
.hn-qv__cart form.cart { margin: 0 0 14px; }
.hn-badge-mall--inline { position: static; display: inline-block; margin-bottom: 8px; }

.hn-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
	background: var(--hn-ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 200; display: flex; align-items: center; gap: 12px; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.hn-toast.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.hn-toast a { color: var(--hn-gold); font-weight: 700; }

.hn-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--hn-gold); margin-bottom: 8px; }
.hn-pospage__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hn-pospage__title { font-family: var(--hn-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; }
.hn-pospage__text { color: var(--hn-muted); max-width: 46ch; }
.hn-pospage__h2 { font-size: 21px; margin: 36px 0 16px; }
.hn-pospage__content { margin-top: 36px; }
.hn-posmock { border: 1px solid var(--hn-line); border-radius: 16px; overflow: hidden; background: var(--hn-surface); box-shadow: var(--hn-shadow); }
.hn-posmock__bar { display: flex; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--hn-line); }
.hn-posmock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--hn-line); }
.hn-posmock__body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; padding: 12px; }
.hn-posmock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hn-posmock__grid > div { aspect-ratio: 1; border-radius: 8px; background: #fff; background-image: radial-gradient(circle at 50% 45%, var(--hn-cream) 0 28%, transparent 29%); }
.hn-posmock__side { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hn-posmock__side i { display: block; height: 10px; border-radius: 4px; background: var(--hn-surface); }
.hn-posmock__side em { font-style: normal; font-weight: 800; margin-top: auto; color: var(--hn-ink); }
.hn-posmock__side strong { background: var(--hn-ink); color: #fff; text-align: center; padding: 8px; border-radius: 8px; }
.hn-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.hn-benefits li { border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); padding: 18px; font-size: 13px; color: var(--hn-muted); }
.hn-benefits li .hn-icon { color: var(--hn-gold); margin-bottom: 10px; }
.hn-benefits strong { display: block; color: var(--hn-ink); font-size: 14px; margin-bottom: 4px; }
.hn-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hn-tier { position: relative; border: 1px solid var(--hn-line); border-radius: var(--hn-r-md); padding: 22px; display: flex; flex-direction: column; }
.hn-tier.is-pop { border-color: var(--hn-gold); box-shadow: 0 0 0 1px var(--hn-gold); }
.hn-tier__tag { position: absolute; top: -11px; left: 20px; background: var(--hn-gold); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.hn-tier h3 { font-size: 18px; margin-bottom: 6px; }
.hn-tier__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hn-tier__price del { font-size: 13px; color: var(--hn-muted); width: 100%; }
.hn-tier__price strong { font-size: 26px; font-weight: 800; color: var(--hn-ink); }
.hn-tier__price span { font-size: 13px; color: var(--hn-muted); }
.hn-tier ul { display: grid; gap: 8px; margin-bottom: 18px; flex: 1; }
.hn-tier li { display: flex; gap: 8px; font-size: 14px; }
.hn-tier li .hn-icon { color: var(--hn-gold); margin-top: 2px; }
.hn-footer__col ul { display: grid; gap: 6px; }
.hn-footer__col a { color: var(--hn-muted); font-size: 13.5px; }
.hn-footer__col a:hover { color: var(--hn-gold); }

@media (max-width: 1024px) {
	.hn-pospage__hero { grid-template-columns: 1fr; }
	.hn-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .hn-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 700px) {
	.hn-modal { place-items: end center; padding: 0; }
	.hn-modal__panel { width: 100%; border-radius: 18px 18px 0 0; max-height: 92vh; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom, 0px); }
	.hn-qv { grid-template-columns: minmax(0, 1fr); }
	.hn-qv__img { aspect-ratio: 16 / 10; }
	.hn-qv__info { padding: 18px 18px 22px; }
	.hn-posmock { display: none; }
}

/* Halaman aplikasi plugin (Dashboard WCFM dll.): tanpa gaya teks tema */
.hn-app-content { font-size: 15px; line-height: 1.5; }
.hn-app-content ul { list-style: none; }
