/* ============================================================
   HEIJARI GLOW — frontpage template styles (templates/heijari-front.php)
   Scoped under #hg-front/.hg-frontpage to avoid theme collisions.
   ============================================================ */

#hg-front,
.hg-frontpage {
	--hg-bg: #0a0b0c;
	--hg-bg2: #141618;
	--hg-bg3: #1c1f23;
	--hg-b4: #24282e;
	--hg-b5: #333a43;
	--hg-on: #f3f3f1;
	--hg-mut: #a7a9ad;
	--hg-fnt: #6b6f76;
	--hg-am: #ffc24e;
	--hg-ams: #ffd98a;
	--hg-or: #ff7a1a;
	--hg-or-soft: #e0550a;
	--hg-fd: "Space Grotesk", system-ui, sans-serif;
	--hg-bd: "Inter", system-ui, sans-serif;
}

.hg-frontpage {
	background: var(--hg-bg);
	color: var(--hg-on);
	font-family: var(--hg-bd);
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
}

.hg-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.hg-overline {
	font-family: var(--hg-bd);
	font-size: 12px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--hg-am);
}
.hg-overline-dark { color: rgba(10, 11, 12, .7); }

.hg-frontpage h1,
.hg-frontpage h2,
.hg-frontpage h3,
.hg-display { font-family: var(--hg-fd); color: var(--hg-on); }

.hg-display { font-weight: 700; letter-spacing: -.03em; }

.hg-section { padding: 64px 0; }
.hg-section-head { margin-bottom: 32px; }
.hg-section-head .hg-overline { display: block; }
.hg-section-head h2 { font-size: 32px; letter-spacing: -.01em; margin: 8px 0 0; }

/* ---------- hero ---------- */
.hg-hero { position: relative; overflow: hidden; padding: 80px 0; border-bottom: 1px solid var(--hg-b4); }
.hg-hero-glow {
	position: absolute; inset: 40% 0 0 0; pointer-events: none;
	background:
		radial-gradient(ellipse 55% 50% at 50% 100%, rgba(255, 122, 26, .45), transparent 62%),
		radial-gradient(ellipse 40% 45% at 75% 95%, rgba(255, 194, 78, .25), transparent 60%);
}
.hg-hero-inner { position: relative; z-index: 1; }
.hg-hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hg-hero h1.hg-display {
	font-size: clamp(40px, 6vw, 70px); line-height: 1.03;
	max-width: 14ch; margin: 16px 0 24px;
}
.hg-accent {
	background: linear-gradient(120deg, var(--hg-am), var(--hg-or));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hg-lede { max-width: 52ch; color: var(--hg-mut); margin-bottom: 32px; }
.hg-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--hg-bd); font-weight: 600; border-radius: 999px;
	padding: 13px 24px; text-decoration: none; transition: all .2s;
}
.hg-btn-primary { background: var(--hg-or); color: var(--hg-bg); }
.hg-btn-primary:hover { background: var(--hg-or-soft); color: var(--hg-ams); box-shadow: 0 0 32px rgba(255, 122, 26, .4); }
.hg-btn-secondary { background: var(--hg-bg3); color: var(--hg-on); border: 1px solid var(--hg-b5); }
.hg-btn-secondary:hover { border-color: var(--hg-am); color: var(--hg-am); }
.hg-hero-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.hg-num { font-family: var(--hg-fd); font-weight: 700; font-size: 28px; }
.hg-lbl { color: var(--hg-fnt); font-size: 13px; }
.hg-hero-visual { justify-self: end; }
.hg-product-badge {
	width: 300px; aspect-ratio: 1; border-radius: 18px;
	background: radial-gradient(circle at 50% 35%, rgba(255, 194, 78, .5), rgba(255, 122, 26, .12) 55%, var(--hg-bg2) 78%);
	border: 1px solid var(--hg-b4); display: grid; place-items: center; position: relative;
}
.hg-ring {
	width: 140px; height: 140px; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, var(--hg-ams), var(--hg-or) 75%);
	box-shadow: 0 0 40px rgba(255, 122, 26, .45);
}

/* ---------- ticker ---------- */
.hg-ticker {
	overflow: hidden; white-space: nowrap; padding: 14px 0;
	background: var(--hg-bg2); border-top: 1px solid var(--hg-b4); border-bottom: 1px solid var(--hg-b4);
}
@keyframes hgtick { to { transform: translateX(-50%); } }
.hg-ticker-track { display: inline-block; animation: hgtick 26s linear infinite; }
.hg-ticker span { font-family: var(--hg-fd); font-weight: 600; font-size: 15px; margin: 0 18px; color: var(--hg-mut); }
.hg-ticker b { color: var(--hg-am); margin-right: 18px; font-weight: 700; }

/* ---------- product cards ---------- */
.hg-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.hg-card {
	background: var(--hg-bg2); border: 1px solid var(--hg-b4); border-radius: 18px; padding: 16px;
	display: flex; flex-direction: column; text-decoration: none !important;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hg-card:hover { transform: translateY(-4px); border-color: var(--hg-b5); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.hg-card:hover .hg-card-title { color: var(--hg-am); }
.hg-card-media {
	aspect-ratio: 1 / 1.02; border-radius: 12px; overflow: hidden;
	background: radial-gradient(circle at 50% 40%, rgba(255, 194, 78, .25), rgba(255, 122, 26, .06) 60%), var(--hg-bg3);
	border: 1px solid var(--hg-b4); display: grid; place-items: center; margin-bottom: 16px; position: relative;
}
.hg-card-img { width: 100%; height: 100%; object-fit: cover; }
.hg-puck { width: 46%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, var(--hg-ams), var(--hg-or) 75%); }
.hg-tag {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px;
	text-transform: uppercase; letter-spacing: .04em; color: var(--hg-bg);
}
.hg-tag-new { background: var(--hg-am); }
.hg-tag-off { background: var(--hg-or); }
.hg-card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--hg-on); }
.hg-meta { color: var(--hg-fnt); font-size: 13px; margin-bottom: 12px; }
.hg-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.hg-price { font-family: var(--hg-fd); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--hg-on); }
.hg-price .amount { color: inherit; }
.hg-price .woocommerce-Price-currencySymbol { font-size: .75em; }
.hg-was { font-size: 14px; font-weight: 400; color: var(--hg-fnt); text-decoration: line-through; margin-right: 8px; }
.hg-mini-add {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--hg-bg3); color: var(--hg-mut); border: 1px solid var(--hg-b5); font-size: 18px;
}

/* ---------- category tiles ---------- */
.hg-cat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hg-cat-tile {
	border-radius: 18px; border: 1px solid var(--hg-b4); padding: 32px;
	background: linear-gradient(180deg, var(--hg-bg3), var(--hg-bg2));
	display: block; text-decoration: none !important; transition: .25s;
}
.hg-cat-tile:hover { border-color: var(--hg-am); box-shadow: 0 0 32px rgba(255, 122, 26, .25); }
.hg-cat-img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.hg-ico {
	width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
	background: linear-gradient(135deg, var(--hg-am), var(--hg-or)); display: grid; place-items: center; font-size: 22px;
}
.hg-cat-tile h3 { font-size: 19px; margin-bottom: 4px; color: var(--hg-on); }
.hg-cat-tile p { color: var(--hg-mut); font-size: 14px; margin-bottom: 16px; max-width: none; }
.hg-link { font-weight: 600; font-size: 14px; color: var(--hg-am); }

/* ---------- banner ---------- */
.hg-band {
	border-radius: 18px; position: relative; overflow: hidden; padding: 48px;
	background: linear-gradient(120deg, var(--hg-or-soft), var(--hg-or));
}
.hg-band h2 { color: var(--hg-bg); font-size: 30px; max-width: 22ch; position: relative; z-index: 1; }
.hg-band p { color: rgba(10, 11, 12, .78); max-width: 46ch; margin: 12px 0 24px; position: relative; z-index: 1; }
.hg-btn-dark { position: relative; z-index: 1; background: var(--hg-bg); color: var(--hg-am); }
.hg-btn-dark:hover { color: var(--hg-ams); box-shadow: none; }
.hg-glow {
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle 40% 90% at 85% 20%, rgba(255, 255, 255, .3), transparent 60%);
}
.hg-nomatch { color: var(--hg-mut); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.hg-hero-split { grid-template-columns: 1fr; gap: 32px; }
	.hg-hero-visual, .hg-product-badge { justify-self: center; width: 240px; }
	.hg-grid { grid-template-columns: repeat(3, 1fr); }
	.hg-cat-band { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.hg-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.hg-cat-band { grid-template-columns: 1fr; }
	.hg-hero h1.hg-display { font-size: 40px; }
}
@media (max-width: 480px) {
	.hg-grid { grid-template-columns: 1fr; }
	.hg-card .hg-price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.hg-section { padding: 48px 0; }
	.hg-band { padding: 32px; }
}