/* =========================================================
   CouponBlog Pro — components & layout
   ========================================================= */

/* ---------- Layout primitives ---------- */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.container-narrow {
	max-width: var(--container-narrow);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.page-section {
	padding-block: var(--sp-12);
}

.text-muted {
	color: var(--text-muted);
}

.section-title {
	font-size: var(--fs-lg);
	margin: 0;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}

.section-head__link {
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	min-height: 72px;
}

.site-title {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-md);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--text);
}

.site-title:hover {
	color: var(--accent);
}

.site-title__mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--r-sm);
	background: var(--accent);
	color: #fff;
	font-weight: 800;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.site-nav__list {
	display: flex;
	gap: var(--sp-2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: inline-block;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-sm);
	color: var(--text);
	font-weight: 600;
	font-size: var(--fs-sm);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
	color: var(--accent);
	background: var(--accent-soft);
}

.site-nav .sub-menu {
	display: none;
	position: absolute;
	list-style: none;
	margin: var(--sp-1) 0 0;
	padding: var(--sp-2);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	min-width: 200px;
}

.site-nav li {
	position: relative;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	display: block;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	background: var(--surface);
	color: var(--text);
	transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.icon-btn:hover {
	color: var(--accent);
	border-color: var(--accent);
	transform: translateY(-1px);
}

/* Theme toggle: swap icons per mode */
html[data-theme='light'] .icon-moon { display: none; }
html[data-theme='dark'] .icon-sun { display: none; }

/* Mobile nav */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
}

.nav-toggle__bar {
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.site-header__deals { display: none; }

	.site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		background: var(--bg-elevated);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-lg);
		padding: var(--sp-4) var(--sp-6) var(--sp-8);
		transform: translateY(-110%);
		transition: transform 0.3s var(--ease);
		z-index: 99;
	}

	.site-nav.is-open { transform: translateY(0); }
	.site-nav__list { flex-direction: column; }
	.site-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding-left: var(--sp-4); }

	body.nav-open .nav-toggle .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	body.nav-open .nav-toggle .nav-toggle__bar:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Buttons & chips ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-6);
	border-radius: var(--r-full);
	font-weight: 700;
	font-size: var(--fs-sm);
	border: 1px solid transparent;
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
	cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: var(--accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-hover);
	color: #fff;
	box-shadow: var(--shadow-md);
}

.btn--soft {
	background: var(--accent-soft);
	color: var(--accent);
}

.btn--soft:hover { color: var(--accent-hover); }

.btn--outline {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn--outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: var(--sp-1) var(--sp-3);
	border-radius: var(--r-full);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.chip:hover { color: var(--accent-hover); }

.chip--muted {
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	text-transform: none;
}

.chip--filter {
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	text-transform: none;
	font-size: var(--fs-sm);
	padding: var(--sp-2) var(--sp-4);
	transition: all var(--speed) var(--ease);
}

.chip--filter:hover { border-color: var(--accent); color: var(--accent); }

.chip--filter.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ---------- Cards ---------- */
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

/* ---------- Badges ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 3px var(--sp-3);
	border-radius: var(--r-full);
	font-size: var(--fs-xs);
	font-weight: 700;
}

.badge--discount {
	background: var(--accent);
	color: #fff;
	letter-spacing: 0.03em;
}

.badge--lg {
	font-size: var(--fs-sm);
	padding: var(--sp-1) var(--sp-4);
}

.badge--verified {
	background: var(--success-soft);
	color: var(--success);
}

.badge--expiry {
	background: var(--danger-soft);
	color: var(--danger);
}

.badge--expired {
	background: var(--border);
	color: var(--text-muted);
	text-decoration: line-through;
}

.badge--muted {
	background: var(--code-bg);
	color: var(--text-muted);
}

/* ---------- Post cards & grids ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--sp-6);
}

.post-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.post-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--code-bg);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: var(--fs-xl);
	color: var(--text-muted);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-6);
	flex: 1;
}

.post-card__title {
	font-size: var(--fs-md);
	margin: 0;
	line-height: 1.35;
}

.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
	flex: 1;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: var(--text-muted);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* ---------- Coupon cards ---------- */
.coupon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--sp-6);
}

.coupon-grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.coupon-grid-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--text-muted);
	padding: var(--sp-12);
}

.coupon-card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	padding: var(--sp-6);
}

.coupon-card.is-expired { opacity: 0.65; }

.coupon-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-3);
}

.store-logo {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--r-md);
	background: var(--code-bg);
	border: 1px solid var(--border);
	overflow: hidden;
	flex-shrink: 0;
}

.store-logo--lg { width: 80px; height: 80px; border-radius: var(--r-lg); }

.store-logo__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: var(--sp-1);
}

.store-logo__letter {
	font-size: var(--fs-lg);
	font-weight: 800;
	color: var(--accent);
}

.coupon-card__store {
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
}

.coupon-card__store:hover { color: var(--accent); }

.coupon-card__title {
	font-size: var(--fs-base);
	line-height: 1.35;
	margin: 0;
	flex: 1;
}

.coupon-card__title a { color: var(--text); }
.coupon-card__title a:hover { color: var(--accent); }

.coupon-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

/* Reveal & Copy button — dashed "ticket" with corner peel */
.coupon-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--sp-3) var(--sp-6);
	border: 2px dashed var(--accent);
	border-radius: var(--r-md);
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 800;
	font-size: var(--fs-sm);
	letter-spacing: 0.03em;
	overflow: hidden;
	transition: all var(--speed) var(--ease);
}

.coupon-btn:hover:not(:disabled) {
	background: var(--accent);
	color: #fff;
	border-style: solid;
	box-shadow: var(--shadow-md);
}

.coupon-btn__peel {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	padding-inline: var(--sp-3);
	background: var(--accent);
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--fs-xs);
	clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
	transition: transform var(--speed) var(--ease);
}

.coupon-btn:hover .coupon-btn__peel { transform: translateX(110%); }

.coupon-btn--deal {
	border-style: solid;
	background: var(--accent);
	color: #fff;
}

.coupon-btn--deal:hover:not(:disabled) { background: var(--accent-hover); }

.coupon-btn.is-revealed {
	border-style: solid;
	background: var(--code-bg);
	color: var(--text);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.12em;
}

.coupon-btn.is-copied {
	border-color: var(--success);
	background: var(--success-soft);
	color: var(--success);
}

.coupon-btn--expired,
.coupon-btn:disabled {
	border-color: var(--border);
	background: var(--code-bg);
	color: var(--text-muted);
	cursor: not-allowed;
}

.coupon-card__action { margin-top: auto; }

/* ---------- Coupon filters ---------- */
.coupon-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	margin-bottom: var(--sp-8);
	padding: var(--sp-4) var(--sp-6);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.coupon-filters label {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	flex: 1;
	min-width: 160px;
}

.coupon-filters__label {
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-6);
}

/* ---------- Skeleton loaders ---------- */
@keyframes couponblog-shimmer {
	0% { background-position: -400px 0; }
	100% { background-position: 400px 0; }
}

.skeleton-card {
	height: 220px;
	border-radius: var(--r-lg);
	border: 1px solid var(--border);
	background: linear-gradient(90deg, var(--surface) 25%, var(--code-bg) 50%, var(--surface) 75%);
	background-size: 800px 100%;
	animation: couponblog-shimmer 1.2s linear infinite;
}

/* ---------- Hero / Magazine (Style 1) ---------- */
.hero-post {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--sp-8);
	align-items: center;
	margin-bottom: var(--sp-12);
}

.hero-post__media {
	display: block;
	border-radius: var(--r-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 16 / 10;
	background: var(--code-bg);
}

.hero-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.hero-post:hover .hero-post__media img { transform: scale(1.03); }

.hero-post__title {
	font-size: clamp(var(--fs-lg), 3.4vw, var(--fs-xl));
	margin: var(--sp-3) 0;
}

.hero-post__title a { color: var(--text); }
.hero-post__title a:hover { color: var(--accent); }

.hero-post__excerpt {
	color: var(--text-muted);
	font-size: var(--fs-md);
	margin-bottom: var(--sp-4);
}

.post-grid--asym {
	margin-bottom: var(--sp-16);
}

@media (min-width: 900px) {
	.post-grid--asym {
		grid-template-columns: repeat(3, 1fr);
	}
	.post-grid--asym > .post-card:first-child {
		grid-column: span 2;
	}
	.post-grid--asym > .post-card:first-child .post-card__title { font-size: var(--fs-lg); }
}

.deal-strip {
	padding: var(--sp-8);
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
}

/* ---------- Deals-first (Style 2) ---------- */
.deals-hero {
	padding: var(--sp-16) 0 var(--sp-8);
	text-align: center;
	background:
		radial-gradient(600px 200px at 50% 0%, var(--accent-soft), transparent);
}

.deals-hero__title { margin-bottom: var(--sp-2); }
.deals-hero__sub { font-size: var(--fs-md); max-width: 560px; margin-inline: auto; }
.deals-hero .filter-chips { justify-content: center; }

/* ---------- Minimal (Style 3) ---------- */
.home-minimal__intro {
	text-align: center;
	padding-block: var(--sp-8) var(--sp-16);
}

.minimal-feed {
	display: flex;
	flex-direction: column;
	gap: var(--sp-16);
}

.minimal-post__title {
	font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
	margin: var(--sp-2) 0 var(--sp-3);
}

.minimal-post__title a { color: var(--text); }
.minimal-post__title a:hover { color: var(--accent); }

.minimal-post__excerpt {
	font-family: var(--font-body);
	font-size: var(--fs-md);
	color: var(--text-muted);
}

.minimal-post__more { font-weight: 700; font-size: var(--fs-sm); }

.deal-callout {
	padding: var(--sp-6) var(--sp-8);
	border-left: 4px solid var(--accent);
}

.deal-callout__eyebrow {
	font-size: var(--fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.deal-callout__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	margin-top: var(--sp-3);
	flex-wrap: wrap;
}

.deal-callout__title { margin: var(--sp-2) 0 0; font-size: var(--fs-md); }
.deal-callout__title a { color: var(--text); }
.deal-callout__title a:hover { color: var(--accent); }

/* ---------- Bento (Style 4) ---------- */
.bento {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(120px, auto);
}

.bento__tile { padding: var(--sp-6); overflow: hidden; }

.bento__tile--feature {
	grid-column: span 2;
	grid-row: span 2;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.bento__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--code-bg); }
.bento__media img { width: 100%; height: 100%; object-fit: cover; }

.bento__feature-body {
	padding: var(--sp-6);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	flex: 1;
}

.bento__feature-body h2 { font-size: var(--fs-lg); margin: 0; }
.bento__feature-body h2 a { color: var(--text); }
.bento__feature-body h2 a:hover { color: var(--accent); }

.bento__tile--cotd {
	grid-column: span 2;
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
}

.bento__tile--cotd h3 { margin: 0; flex: 1; }
.bento__tile--cotd h3 a { color: var(--text); }
.bento__tile--cotd .coupon-btn { width: 100%; }

.bento__eyebrow {
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
}

.bento__tile--stores { grid-column: span 2; }
.bento__tile--recent { grid-column: span 2; }

.bento__tile--cat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--sp-1);
	text-align: center;
	align-items: center;
}

.bento__cat-name { font-weight: 800; color: var(--text); font-size: var(--fs-md); }
.bento__tile--cat:hover .bento__cat-name { color: var(--accent); }

.bento__tile-title { font-size: var(--fs-base); margin-bottom: var(--sp-4); }

.store-list,
.mini-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.store-list a,
.mini-post-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-2) 0;
	color: var(--text);
	font-weight: 600;
	font-size: var(--fs-sm);
	border-bottom: 1px solid var(--border);
}

.store-list li:last-child a,
.mini-post-list li:last-child a { border-bottom: 0; }

.store-list a:hover,
.mini-post-list a:hover { color: var(--accent); }

.mini-post-list li { display: flex; flex-direction: column; padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.mini-post-list li:last-child { border-bottom: 0; }
.mini-post-list li a { border-bottom: 0; padding: 0; }
.mini-post-list time { font-size: var(--fs-xs); }

@media (max-width: 980px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento__tile--feature,
	.bento__tile--cotd { grid-column: span 2; }
}

@media (max-width: 560px) {
	.bento { grid-template-columns: 1fr; }
	.bento__tile--feature,
	.bento__tile--cotd,
	.bento__tile--stores,
	.bento__tile--recent { grid-column: span 1; }
}

/* ---------- Archive & sidebar layout ---------- */
.archive-header { margin-bottom: var(--sp-8); }
.archive-header__title { margin-bottom: var(--sp-2); }
.archive-header__desc { color: var(--text-muted); max-width: 640px; }

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-12);
}

@media (min-width: 1024px) {
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

.site-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
	min-width: 0;
}

.site-sidebar .widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
}

/* ---------- Sidebar cards ---------- */
.sb-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
	box-shadow: var(--shadow-sm);
}

.sb-card--search { padding: var(--sp-4); }
.sb-card--search .search-form { max-width: none; }

.sb-card__title {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-sm);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 var(--sp-3);
	padding-bottom: var(--sp-3);
	border-bottom: 2px solid var(--accent-2);
}

/* Round-image post rows */
.sb-posts { display: flex; flex-direction: column; }

.sb-post {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-3) 0;
	border-bottom: 1px dashed var(--border);
}

.sb-post:last-child { border-bottom: 0; padding-bottom: 0; }
.sb-post:first-child { padding-top: 0; }

.sb-post__img {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--code-bg);
	border: 2px solid var(--accent-soft);
	transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.sb-post:hover .sb-post__img {
	transform: scale(1.06);
	border-color: var(--accent);
}

.sb-post__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.sb-post__fallback { color: var(--text-muted); }

.sb-post__rank {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	background: var(--accent-2);
	color: #14201a;
	font-size: 11px;
	font-weight: 800;
	border-radius: 50%;
}

.sb-post__title {
	font-size: var(--fs-sm);
	line-height: 1.35;
	margin: 0 0 2px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sb-post__title a { color: var(--text); }
.sb-post__title a:hover { color: var(--accent); }

.sb-post__date {
	font-size: var(--fs-xs);
	color: var(--text-muted);
	font-weight: 600;
}

/* Categories list */
.sb-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.sb-cats a {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-2) 0;
	border-bottom: 1px dashed var(--border);
	color: var(--text);
	font-weight: 600;
	font-size: var(--fs-sm);
	transition: padding-left var(--speed) var(--ease), color var(--speed) var(--ease);
}

.sb-cats li:last-child a { border-bottom: 0; }
.sb-cats a:hover { color: var(--accent); padding-left: var(--sp-2); }

.sb-cats__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.sb-cats__name { flex: 1; }

.sb-cats__count {
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--text-muted);
	background: var(--code-bg);
	border-radius: var(--r-full);
	padding: 2px 10px;
	white-space: nowrap;
}

/* Popular stores */
.sb-stores {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.sb-stores a {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-2) 0;
	border-bottom: 1px dashed var(--border);
	color: var(--text);
	font-weight: 600;
	font-size: var(--fs-sm);
}

.sb-stores li:last-child a { border-bottom: 0; }
.sb-stores a:hover { color: var(--accent); }

.sb-stores__logo {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--code-bg);
	border: 1px solid var(--border);
	flex-shrink: 0;
}

.sb-stores__logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 50%; }

.sb-stores__letter { font-weight: 800; color: var(--accent); }
.sb-stores__name { flex: 1; }
.sb-stores__all { width: 100%; justify-content: center; margin-top: var(--sp-4); }

/* Newsletter mini CTA */
.sb-cta {
	background:
		radial-gradient(220px 120px at 90% 0%, rgba(242, 169, 21, 0.22), transparent),
		linear-gradient(150deg, #0e2b1f, #14563c);
	border-color: transparent;
}

.sb-cta__title { color: #fff; font-size: var(--fs-md); margin: 0 0 var(--sp-1); }
.sb-cta__sub { color: rgba(255, 255, 255, 0.72); font-size: var(--fs-sm); margin: 0 0 var(--sp-4); }

.sb-cta__form { display: flex; flex-direction: column; gap: var(--sp-2); }

.sb-cta__form input {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.sb-cta__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.sb-cta__form input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(242, 169, 21, 0.2); }

/* ---------- Single post layout with sidebar ---------- */
.single-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-12);
	padding-bottom: var(--sp-12);
}

@media (min-width: 1024px) {
	.single-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.single-layout__main { min-width: 0; max-width: 800px; }

/* Share rail: horizontal inside the layout (no floating gutter here) */
.single-layout .share-rail {
	position: static;
	float: none;
	flex-direction: row;
	margin-left: 0;
	margin-bottom: var(--sp-8);
}

.widget-title {
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--sp-4);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.widget ul li:last-child { border-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: var(--sp-6);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs [aria-current] { color: var(--text); }

/* ---------- Single post ---------- */
.single-post__header { padding-top: var(--sp-12); text-align: center; }
.single-post__cats { display: flex; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.single-post__title { margin-bottom: var(--sp-6); }

.single-post__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--sp-4);
	color: var(--text-muted);
	font-size: var(--fs-sm);
	margin-bottom: var(--sp-8);
}

.single-post__author { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; }
.single-post__avatar { border-radius: var(--r-full); }

.single-post__hero { margin: 0 auto var(--sp-12); }
.single-post__hero img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; }

.single-post__body { position: relative; padding-bottom: var(--sp-12); }

/* Article typography */
.entry-content {
	font-family: var(--font-body);
	font-size: var(--fs-md);
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--font-ui); margin-top: var(--sp-12); }

.entry-content img { border-radius: var(--r-md); }

.entry-content blockquote {
	margin: var(--sp-8) 0;
	padding: var(--sp-4) var(--sp-8);
	border-left: 4px solid var(--accent);
	background: var(--accent-soft);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-style: italic;
	font-size: var(--fs-md);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content pre {
	background: var(--code-bg);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-6);
	overflow-x: auto;
	font-size: var(--fs-sm);
	line-height: 1.6;
}

.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	background: var(--code-bg);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

.entry-content pre code { background: none; padding: 0; }

.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Pull quote */
.entry-content .pullquote,
.entry-content .wp-block-pullquote {
	border: 0;
	border-top: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	font-size: var(--fs-lg);
	font-weight: 600;
	font-family: var(--font-ui);
	text-align: center;
	padding: var(--sp-8) var(--sp-4);
}

/* Table of contents */
.toc {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
	margin-bottom: var(--sp-8);
	font-family: var(--font-ui);
}

.toc__title {
	font-size: var(--fs-sm);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--sp-3);
}

.toc ol { margin: 0; padding-left: var(--sp-6); }
.toc li { padding: var(--sp-1) 0; font-size: var(--fs-sm); }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

/* Share rail */
.share-rail {
	display: flex;
	gap: var(--sp-3);
	margin-bottom: var(--sp-8);
}

@media (min-width: 1240px) {
	.share-rail {
		position: sticky;
		top: 120px;
		float: left;
		flex-direction: column;
		margin-left: calc(-1 * (64px + var(--sp-8)));
		margin-bottom: 0;
	}
}

/* Tags & author box */
.single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: var(--sp-8) 0;
}

.author-box {
	display: flex;
	gap: var(--sp-6);
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-8);
	margin-top: var(--sp-8);
}

.author-box__avatar { border-radius: var(--r-full); flex-shrink: 0; }
.author-box__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.author-box__name { margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-md); }
.author-box__bio { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

.related-posts { padding-block: var(--sp-12); }
.related-posts .section-title { margin-bottom: var(--sp-6); }

/* ---------- Single coupon ---------- */
.single-coupon__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-6);
}

@media (min-width: 900px) {
	.single-coupon__layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}

.single-coupon__main { padding: var(--sp-8); }
.single-coupon__main:hover { transform: none; }

.single-coupon__header {
	display: flex;
	gap: var(--sp-6);
	align-items: flex-start;
	margin-bottom: var(--sp-6);
	flex-wrap: wrap;
}

.single-coupon__title { font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl)); margin: var(--sp-2) 0 var(--sp-3); }

.single-coupon__action { margin-bottom: var(--sp-8); max-width: 420px; }
.single-coupon__action .coupon-btn { font-size: var(--fs-base); padding: var(--sp-4) var(--sp-8); }

.single-coupon__howto { margin-top: var(--sp-8); }
.single-coupon__howto h2 { font-size: var(--fs-md); }

.howto-steps { padding-left: var(--sp-6); }
.howto-steps li { padding: var(--sp-1) 0; color: var(--text-muted); }

.single-coupon__terms {
	margin-top: var(--sp-8);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: var(--sp-4) var(--sp-6);
	background: var(--code-bg);
}

.single-coupon__terms summary { font-weight: 700; cursor: pointer; }
.single-coupon__terms div { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); }

.single-coupon__side .card { padding: var(--sp-6); }
.store-mini h3 { margin-bottom: var(--sp-2); }
.store-mini .btn { margin-top: var(--sp-3); }

/* ---------- Store hero ---------- */
.store-hero {
	display: flex;
	gap: var(--sp-8);
	align-items: center;
	padding: var(--sp-8);
	margin-bottom: var(--sp-8);
	flex-wrap: wrap;
}

.store-hero:hover { transform: none; }
.store-hero__title { margin-bottom: var(--sp-2); }

/* ---------- Comments ---------- */
.comments-area { padding-block: var(--sp-12); border-top: 1px solid var(--border); }
.comments-title { font-size: var(--fs-lg); }

.comment-list { list-style: none; margin: 0; padding: 0; }

.comment-list .comment-body {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--sp-6);
	margin-bottom: var(--sp-4);
}

.comment-list .children { list-style: none; padding-left: var(--sp-8); }
.comment-author { display: flex; align-items: center; gap: var(--sp-3); font-weight: 700; }
.comment-author .avatar { border-radius: var(--r-full); }
.comment-metadata { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--sp-1) 0 var(--sp-3); }
.comment-metadata a { color: var(--text-muted); }
.comment-content { font-size: var(--fs-sm); }
.reply { font-size: var(--fs-xs); font-weight: 700; }

.comment-form label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.comment-form input:not([type='checkbox']):not([type='submit']),
.comment-form textarea { width: 100%; margin-bottom: var(--sp-4); }
.comment-form .submit {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: var(--r-full);
	padding: var(--sp-3) var(--sp-8);
	font-weight: 700;
	cursor: pointer;
	transition: background var(--speed) var(--ease);
}
.comment-form .submit:hover { background: var(--accent-hover); }

/* ---------- Search form ---------- */
.search-form {
	display: flex;
	gap: var(--sp-2);
	max-width: 480px;
}

.search-form__input { flex: 1; }

/* ---------- Load more ---------- */
.load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: var(--sp-12);
}

.load-more.is-loading { opacity: 0.6; pointer-events: none; }

/* ---------- Pagination ---------- */
.pagination { margin-top: var(--sp-12); }
.pagination .nav-links { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--sp-3);
	border-radius: var(--r-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-weight: 700;
	font-size: var(--fs-sm);
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding-block: var(--sp-24); }
.error-404__code {
	font-size: clamp(80px, 16vw, 160px);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--accent), var(--danger));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: block;
	margin-bottom: var(--sp-4);
}
.error-404__search { display: flex; justify-content: center; margin-block: var(--sp-8); }
.error-404__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (dark, 4 columns) ---------- */
.site-footer {
	margin-top: var(--sp-16);
	position: relative;
	background:
		radial-gradient(600px 240px at 88% 0%, rgba(242, 169, 21, 0.10), transparent),
		radial-gradient(520px 220px at 8% 100%, rgba(46, 201, 140, 0.08), transparent),
		linear-gradient(160deg, #0d1611, #12241b);
	color: #b9c6bf;
	padding-block: var(--sp-16) var(--sp-8);
	font-size: var(--fs-sm);
}

.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2), #0d7f8c, var(--accent));
	background-size: 300% 100%;
	animation: couponblog-hairline 12s linear infinite;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--sp-12);
	margin-bottom: var(--sp-12);
}

@media (max-width: 980px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
}

.footer-col__title {
	color: #fff;
	font-size: var(--fs-sm);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 var(--sp-4);
	padding-bottom: var(--sp-3);
	position: relative;
}

.footer-col__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 3px;
	border-radius: var(--r-full);
	background: var(--accent-2);
}

.footer-brand__title { color: #fff; margin-bottom: var(--sp-3); }
.footer-brand__title:hover { color: var(--accent-2); }
.footer-brand__logo { margin-bottom: var(--sp-3); }
.footer-brand__logo img { max-height: 44px; width: auto; }

.footer-brand__desc {
	color: #8fa198;
	line-height: 1.7;
	margin: 0 0 var(--sp-6);
	max-width: 34ch;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-1) 0;
	color: #a7b6ae;
	font-weight: 500;
	transition: color var(--speed) var(--ease), padding-left var(--speed) var(--ease);
}

.footer-links a::before {
	content: '→';
	opacity: 0;
	margin-left: -14px;
	color: var(--accent-2);
	transition: opacity var(--speed) var(--ease), margin var(--speed) var(--ease);
}

.footer-links a:hover {
	color: #fff;
	padding-left: var(--sp-2);
}

.footer-links a:hover::before {
	opacity: 1;
	margin-left: 0;
}

.footer-links__count {
	font-size: var(--fs-xs);
	font-weight: 700;
	color: #79897f;
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--r-full);
	padding: 1px 8px;
}

.site-footer__disclosure {
	color: #79897f;
	font-size: var(--fs-xs);
	border: 1px dashed rgba(255, 255, 255, 0.15);
	border-radius: var(--r-md);
	padding: var(--sp-3) var(--sp-4);
	margin-bottom: var(--sp-6);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	flex-wrap: wrap;
	padding-top: var(--sp-6);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: #8fa198;
}

.footer-top {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-full);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	transition: all var(--speed) var(--ease);
}

.footer-top:hover {
	background: var(--accent-2);
	border-color: var(--accent-2);
	color: #14201a;
	transform: translateY(-3px);
}

.footer-nav {
	display: flex;
	gap: var(--sp-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a { color: #a7b6ae; font-weight: 600; }
.footer-nav a:hover { color: #fff; }

.social-links {
	display: flex;
	gap: var(--sp-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--r-full);
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.05);
	color: #b9c6bf;
	transition: all var(--speed) var(--ease);
}

.social-links a:hover {
	color: #14201a;
	background: var(--accent-2);
	border-color: var(--accent-2);
	transform: translateY(-2px);
}

/* Footer widgets (agar set hon) */
.site-footer .widget { background: none; border: 0; padding: 0; }
.site-footer .widget-title { color: #fff; }
.site-footer .widget a { color: #a7b6ae; }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget ul li { border-color: rgba(255, 255, 255, 0.08); }

/* =========================================================
   MAGAZINE HOMEPAGE — hero trio, overlay cards,
   category sections, deal band, CTA
   ========================================================= */

/* Gradient hairline on top of the header */
.site-header::before {
	content: '';
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2), #0d7f8c, var(--accent));
	background-size: 300% 100%;
	animation: couponblog-hairline 12s linear infinite;
}

@keyframes couponblog-hairline {
	0% { background-position: 0% 0; }
	100% { background-position: 300% 0; }
}

/* ---------- Overlay cards ---------- */
.overlay-card {
	position: relative;
	border-radius: var(--r-xl);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	isolation: isolate;
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.overlay-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.overlay-card--big { min-height: 460px; }
.overlay-card--small { min-height: 220px; }

.overlay-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.overlay-card__media,
.overlay-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.overlay-card__media { background: linear-gradient(135deg, var(--accent-soft), var(--code-bg)); }

.overlay-card__media img {
	transition: transform 0.7s var(--ease);
}

.overlay-card:hover .overlay-card__media img { transform: scale(1.05); }

.overlay-card::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 11, 15, 0) 30%, rgba(10, 11, 15, 0.55) 62%, rgba(10, 11, 15, 0.92) 100%);
}

.overlay-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
	padding: var(--sp-8);
}

.overlay-card--small .overlay-card__body { padding: var(--sp-6); }

.overlay-card__title {
	margin: 0;
	font-size: clamp(var(--fs-lg), 2.6vw, var(--fs-xl));
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.overlay-card--small .overlay-card__title { font-size: var(--fs-md); }

.overlay-card__title a {
	color: #fff;
	position: relative;
	z-index: 4;
}

.overlay-card__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.overlay-card__excerpt {
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	font-size: var(--fs-sm);
	max-width: 60ch;
}

.overlay-card__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.overlay-card__avatar { border-radius: var(--r-full); border: 2px solid rgba(255, 255, 255, 0.4); }

.chip--cat {
	position: relative;
	z-index: 4;
	background: var(--cat-color, var(--accent));
	color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.chip--cat:hover { color: #fff; filter: brightness(1.12); }

/* ---------- Hero: slider + popular rail ---------- */
.hero-split {
	display: grid;
	gap: var(--sp-6);
	padding-top: var(--sp-8);
}

@media (min-width: 1000px) {
	.hero-split { grid-template-columns: 1.9fr 1fr; align-items: stretch; }
}

.hero-slider {
	position: relative;
	border-radius: var(--r-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.hero-slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.55s var(--ease);
}

.hero-slider__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.hero-slider__slide .overlay-card {
	height: 100%;
	min-height: 480px;
	border-radius: 0;
	border: 0;
	box-shadow: none;
}

.hero-slider__slide .overlay-card:hover { transform: none; }

.hero-slider__controls {
	position: absolute;
	z-index: 5;
	right: var(--sp-6);
	top: var(--sp-6);
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.hero-slider__arrow {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--r-full);
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(12, 14, 12, 0.35);
	backdrop-filter: blur(6px);
	color: #fff;
	transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.hero-slider__arrow:hover { background: var(--accent); transform: scale(1.06); }

.hero-slider__dots { display: flex; gap: 6px; }

.hero-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: var(--r-full);
	background: rgba(255, 255, 255, 0.45);
	transition: all var(--speed) var(--ease);
}

.hero-slider__dot.is-active {
	width: 22px;
	background: var(--accent-2);
}

/* Popular rail */
.popular-rail {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	padding: var(--sp-6);
	box-shadow: var(--shadow-sm);
}

.popular-rail__title {
	font-size: var(--fs-base);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding-bottom: var(--sp-4);
	margin-bottom: var(--sp-2);
	border-bottom: 2px solid var(--accent-2);
}

.popular-rail__list {
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between;
}

.popular-item {
	display: flex;
	gap: var(--sp-3);
	align-items: center;
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--border);
}

.popular-item:last-child { border-bottom: 0; padding-bottom: 0; }

.popular-item__thumb {
	position: relative;
	width: 76px;
	height: 58px;
	flex-shrink: 0;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--code-bg);
}

.popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.popular-item__rank {
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	background: var(--accent-2);
	color: #14201a;
	font-size: 11px;
	font-weight: 800;
	border-radius: 0 0 var(--r-sm) 0;
}

.popular-item__title {
	font-size: var(--fs-sm);
	line-height: 1.35;
	margin: 0 0 var(--sp-1);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.popular-item__title a { color: var(--text); }
.popular-item__title a:hover { color: var(--accent); }

/* ---------- Top categories strip ---------- */
.cat-strip-wrap { padding-top: var(--sp-8); }

.cat-strip {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-1);
	text-align: center;
	padding: var(--sp-6) var(--sp-4);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.cat-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--cat-color, var(--accent));
}

.cat-tile__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: var(--sp-2);
	border-radius: var(--r-md);
	background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, transparent);
	color: var(--cat-color, var(--accent));
	font-size: var(--fs-lg);
	font-weight: 800;
	transition: transform var(--speed) var(--ease);
}

.cat-tile:hover .cat-tile__icon { transform: scale(1.1) rotate(-4deg); }

.cat-tile__name { font-weight: 800; color: var(--text); font-size: var(--fs-sm); }
.cat-tile:hover .cat-tile__name { color: var(--cat-color, var(--accent)); }
.cat-tile__count { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }

/* ---------- Section eyebrow ---------- */
.section-eyebrow {
	display: inline-block;
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent-2);
	margin-bottom: var(--sp-1);
}

/* ---------- Scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Section titles with color bar ---------- */
.section-title--bar {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-size: clamp(var(--fs-lg), 2.4vw, 1.75rem);
}

.section-title--bar::before {
	content: '';
	width: 6px;
	height: 1.2em;
	border-radius: var(--r-full);
	background: var(--cat-color, var(--accent));
	flex-shrink: 0;
}

/* ---------- Category sections ---------- */
.cat-section .post-card__chip,
.cat-section .chip--cat { background: var(--cat-color, var(--accent)); }

.cat-section__mix {
	display: grid;
	gap: var(--sp-6);
}

.cat-section__grid {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

@media (min-width: 1000px) {
	.cat-section__mix { grid-template-columns: 1.1fr 1.4fr; align-items: stretch; }
	.cat-section__feature .overlay-card { height: 100%; }
	.cat-section__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Numbered post rows ---------- */
.post-rows {
	display: grid;
	gap: var(--sp-4);
}

@media (min-width: 900px) {
	.post-rows { grid-template-columns: repeat(2, 1fr); }
}

.post-row {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-6);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.post-row:hover {
	transform: translateX(4px);
	box-shadow: var(--shadow-md);
	border-color: var(--cat-color, var(--accent));
}

.post-row__num {
	font-size: var(--fs-xl);
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--cat-color, var(--accent));
	flex-shrink: 0;
	min-width: 52px;
}

.post-row__body { flex: 1; min-width: 0; }

.post-row__cat {
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cat-color, var(--accent));
}

.post-row__title {
	font-size: var(--fs-base);
	margin: var(--sp-1) 0;
	line-height: 1.35;
}

.post-row__title a { color: var(--text); }
.post-row__title a:hover { color: var(--cat-color, var(--accent)); }

.post-row__thumb {
	width: 96px;
	height: 72px;
	border-radius: var(--r-md);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--code-bg);
}

.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Post card polish (chip on image, author foot) ---------- */
.post-card { position: relative; }

.post-card__chip {
	position: absolute;
	top: var(--sp-4);
	left: var(--sp-4);
	z-index: 2;
}

.post-card__foot {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: auto;
	padding-top: var(--sp-3);
	border-top: 1px solid var(--border);
	width: 100%;
}

.post-card__avatar { border-radius: var(--r-full); flex-shrink: 0; }

.post-card__author {
	display: block;
	font-size: var(--fs-xs);
	font-weight: 700;
}

/* ---------- Deal strip glow + deal band ---------- */
.deal-strip--glow {
	position: relative;
	background:
		radial-gradient(400px 160px at 12% 0%, var(--accent-soft), transparent),
		var(--bg-elevated);
}

.deal-band {
	display: grid;
	gap: var(--sp-8);
	padding: var(--sp-8);
	border-radius: var(--r-xl);
	background: linear-gradient(135deg, #0c9b6a, #0b7d68 55%, #0a5c54);
	box-shadow: var(--shadow-lg);
}

@media (min-width: 1000px) {
	.deal-band { grid-template-columns: 260px 1fr; align-items: center; }
}

.deal-band__eyebrow {
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.75);
}

.deal-band__intro h2 { color: #fff; margin: var(--sp-2) 0 var(--sp-4); }

.deal-band__grid {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.deal-band .coupon-card { border: 0; }

.btn--light {
	background: #fff;
	color: #0a5c54;
}

.btn--light:hover { background: #fff7e8; color: #0a5c54; box-shadow: var(--shadow-md); }

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	border-radius: var(--r-xl);
	overflow: hidden;
	background:
		radial-gradient(500px 240px at 85% 20%, rgba(242, 169, 21, 0.28), transparent),
		radial-gradient(500px 240px at 10% 90%, rgba(46, 201, 140, 0.25), transparent),
		linear-gradient(135deg, #0e1f19, #14332a);
	box-shadow: var(--shadow-lg);
}

.cta-band__inner {
	text-align: center;
	padding: var(--sp-16) var(--sp-8);
	max-width: 560px;
	margin-inline: auto;
}

.cta-band__title {
	color: #fff;
	font-size: clamp(var(--fs-lg), 3.4vw, var(--fs-xl));
}

.cta-band__sub { color: rgba(255, 255, 255, 0.75); margin-bottom: var(--sp-6); }

.cta-band__form {
	display: flex;
	gap: var(--sp-2);
	justify-content: center;
	flex-wrap: wrap;
}

.cta-band__form input {
	flex: 1;
	min-width: 220px;
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.cta-band__form input::placeholder { color: rgba(255, 255, 255, 0.55); }

.cta-band__form input:focus {
	border-color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* =========================================================
   STORE / BRAND PAGES (ported from BlazeCoupons)
   ========================================================= */

.badge--gold {
	background: var(--accent-2-soft);
	color: var(--accent-2);
}

.badge--dot::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: var(--r-full);
	background: currentColor;
	animation: couponblog-pulse 1.6s ease-in-out infinite;
}

@keyframes couponblog-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.btn--gold {
	background: var(--accent-2);
	color: #14201a;
}

.btn--gold:hover { filter: brightness(1.08); color: #14201a; box-shadow: var(--shadow-md); }

/* Store hero */
.store-page__hero {
	padding: var(--sp-12) 0 var(--sp-8);
	background:
		radial-gradient(700px 260px at 15% 0%, var(--accent-soft), transparent),
		radial-gradient(500px 200px at 90% 10%, var(--accent-2-soft), transparent),
		var(--bg-elevated);
	border-bottom: 1px solid var(--border);
}

.store-page__hero-row {
	display: flex;
	gap: var(--sp-8);
	align-items: flex-start;
	flex-wrap: wrap;
}

.store-logo--xl {
	width: 128px;
	height: 128px;
	border-radius: var(--r-xl);
	background: var(--surface);
	box-shadow: var(--shadow-md);
	flex-shrink: 0;
}

.store-logo--xl .store-logo__letter { font-size: var(--fs-2xl); }

.store-page__hero-body {
	flex: 1;
	min-width: 280px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-3);
}

.store-page__title {
	margin: 0;
	font-size: clamp(var(--fs-lg), 3.4vw, 2.4rem);
}

.store-page__tagline {
	color: var(--text-muted);
	font-size: var(--fs-md);
	margin: 0;
}

.store-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-6);
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.store-stats li {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
}

.store-stats svg { color: var(--accent); flex-shrink: 0; }
.store-stats strong { color: var(--text); }

.store-page__visit { margin-top: var(--sp-2); }

/* Layout: coupon rows + sidebar */
.store-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-8);
}

@media (min-width: 1024px) {
	.store-page__grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}

/* Horizontal coupon rows */
.coupon-rows {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

.coupon-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--sp-6);
	padding: var(--sp-6);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.coupon-row:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--accent);
}

.coupon-row.is-featured {
	border-color: var(--accent-2);
	background: linear-gradient(135deg, var(--accent-2-soft), var(--surface) 45%);
}

.coupon-row.is-expired { opacity: 0.55; }

.coupon-row__discount {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--sp-4) var(--sp-2);
	border-radius: var(--r-md);
	background: var(--accent-soft);
	color: var(--accent);
	min-height: 88px;
}

.coupon-row__value {
	font-size: var(--fs-lg);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	word-break: break-word;
}

.coupon-row__label {
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

.coupon-row__title {
	font-size: var(--fs-md);
	margin: 0 0 var(--sp-2);
	line-height: 1.3;
}

.coupon-row__title a { color: var(--text); }
.coupon-row__title a:hover { color: var(--accent); }

.coupon-row__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.coupon-row__expiry {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	margin-top: var(--sp-2);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--text-muted);
}

.coupon-row__expiry.is-past { color: var(--danger); }

.coupon-row__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--sp-2);
	min-width: 160px;
}

.coupon-row__peek {
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	letter-spacing: 0.18em;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	background: var(--code-bg);
	border: 1px dashed var(--border);
	border-radius: var(--r-sm);
	padding: var(--sp-2) var(--sp-3);
}

@media (max-width: 720px) {
	.coupon-row { grid-template-columns: 84px minmax(0, 1fr); }
	.coupon-row__action { grid-column: 1 / -1; flex-direction: row; }
	.coupon-row__peek { flex: 1; }
	.coupon-row__discount { min-height: 72px; }
}

/* Numbered content blocks */
.store-block {
	padding: var(--sp-8);
	margin-top: var(--sp-4);
}

.store-block:hover { transform: none; }

.store-block__head {
	margin-bottom: var(--sp-4);
}

.store-block__num {
	display: inline-block;
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--accent-2);
	margin-bottom: var(--sp-1);
}

.store-block__head h2 { margin: 0; font-size: var(--fs-lg); }
.store-block__head--faq p { margin: var(--sp-2) 0 0; }
.store-block__body { color: var(--text-muted); line-height: 1.7; }
.store-block__body p:last-child { margin-bottom: 0; }

/* FAQ accordion */
.store-faqs {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.store-faq {
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	background: var(--bg-elevated);
	transition: border-color var(--speed) var(--ease);
}

.store-faq[open] { border-color: var(--accent); }

.store-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-6);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.store-faq summary::-webkit-details-marker { display: none; }

.store-faq summary::after {
	content: '+';
	font-size: var(--fs-lg);
	font-weight: 400;
	color: var(--accent);
	line-height: 1;
	transition: transform var(--speed) var(--ease);
}

.store-faq[open] summary::after { transform: rotate(45deg); }

.store-faq__answer {
	padding: 0 var(--sp-6) var(--sp-4);
	color: var(--text-muted);
	font-size: var(--fs-sm);
	line-height: 1.7;
}

/* Sidebar cards */
.side-card { padding: var(--sp-6); }
.side-card:hover { transform: none; }

.side-card__title {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--fs-base);
	padding-bottom: var(--sp-3);
	margin-bottom: var(--sp-2);
	border-bottom: 2px solid var(--accent-2);
}

.side-card__title span { color: var(--accent-2); }

.store-page__side {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
	position: sticky;
	top: 100px;
}

/* Reveal modal */
.cb-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--speed) var(--ease);
}

.cb-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.cb-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 10, 0.72);
	backdrop-filter: blur(4px);
}

.cb-modal__box {
	position: relative;
	width: min(440px, calc(100vw - 32px));
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-lg);
	transform: translateY(16px) scale(0.97);
	transition: transform var(--speed) var(--ease);
}

.cb-modal.is-open .cb-modal__box { transform: none; }

.cb-modal__close {
	position: absolute;
	top: var(--sp-3);
	right: var(--sp-3);
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: var(--r-full);
	background: var(--code-bg);
	color: var(--text-muted);
	font-size: var(--fs-md);
	line-height: 1;
}

.cb-modal__close:hover { color: var(--danger); }

.cb-modal__body {
	padding: var(--sp-12) var(--sp-8) var(--sp-8);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
}

.cb-modal__eyebrow {
	font-size: var(--fs-xs);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent-2);
}

.cb-modal__code {
	width: 100%;
	padding: var(--sp-4);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: var(--fs-xl);
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--accent);
	background: var(--accent-soft);
	border: 2px dashed var(--accent);
	border-radius: var(--r-md);
	word-break: break-all;
}

.cb-modal__copy { width: 100%; }
.cb-modal__copy.is-copied { background: var(--success); }

.cb-modal__hint {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

/* ---------- Store directory (Brands page) ---------- */
.store-dir {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.store-dir__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--sp-2);
	padding: var(--sp-8) var(--sp-6);
}

.store-dir__card.is-featured { border-color: var(--accent-2); }

.store-dir__flag {
	position: absolute;
	top: var(--sp-3);
	right: var(--sp-3);
}

.store-dir__card .store-logo {
	width: 72px;
	height: 72px;
	border-radius: var(--r-lg);
	margin-bottom: var(--sp-2);
}

.store-dir__name {
	font-weight: 800;
	font-size: var(--fs-md);
	color: var(--text);
}

.store-dir__card:hover .store-dir__name { color: var(--accent); }

.store-dir__tagline {
	font-size: var(--fs-xs);
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.store-dir__count {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	margin-top: var(--sp-2);
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--accent);
}

/* ---------- Utility toast ---------- */
.cb-toast {
	position: fixed;
	bottom: var(--sp-6);
	left: 50%;
	transform: translate(-50%, 20px);
	background: var(--text);
	color: var(--bg);
	padding: var(--sp-3) var(--sp-6);
	border-radius: var(--r-full);
	font-size: var(--fs-sm);
	font-weight: 700;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
	z-index: 9999;
}

.cb-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
