/*
Theme Name: PromoFoxx
Theme URI: https://promofoxx.example
Author: PromoFoxx
Description: A clean promo code aggregator theme with a coupon grid, store and category pages, Stores A–Z and a blog. Requires the PromoFoxx Coupons plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: promofoxx
*/

:root {
	--pf-accent: #FF6B00;
	--pf-accent-dark: #D95A00;
	--pf-accent-soft: #FFF3EA;
	--pf-ink: #1E2229;
	--pf-muted: #6B7280;
	--pf-line: #E7E9ED;
	--pf-bg-soft: #F5F6F8;
	--pf-radius: 16px;
	--pf-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
	--pfx-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--pfx-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pf-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pf-accent); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(255, 107, 0, .4); outline-offset: 2px; }

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

.pfx-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pfx-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.pfx-header { background: #fff; border-bottom: 1px solid var(--pf-line); }
.pfx-header__top {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	min-height: 76px;
}
.pfx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--pf-ink);
}
.pfx-logo__text { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pfx-fox { display: block; flex: none; }
.custom-logo { display: block; max-height: 40px; width: auto; }

.pfx-search { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.pfx-search input {
	width: 100%;
	height: 46px;
	padding: 0 16px 0 46px;
	font-size: 15px;
	color: var(--pf-ink);
	background: var(--pf-bg-soft);
	border: 1.5px solid transparent;
	border-radius: 12px;
	-webkit-appearance: none;
	appearance: none;
}
.pfx-search input::placeholder { color: #8A909A; }
.pfx-search input:focus { outline: none; background: #fff; border-color: var(--pf-accent); box-shadow: 0 0 0 3px rgba(255, 107, 0, .15); }
.pfx-search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #8A909A; pointer-events: none; }
.pfx-search button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; padding: 0; }

.pfx-header__actions { display: flex; align-items: center; gap: 10px; }
.pfx-signin {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pf-ink);
	text-decoration: none;
	border: 1.5px solid var(--pf-line);
	border-radius: 10px;
	white-space: nowrap;
}
.pfx-signin:hover { border-color: var(--pf-accent); color: var(--pf-accent); }

.pfx-burger {
	display: none;
	width: 42px;
	height: 42px;
	padding: 11px 10px;
	border: 1.5px solid var(--pf-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}
.pfx-burger span:not(.screen-reader-text) { display: block; height: 2px; border-radius: 2px; background: var(--pf-ink); }

.pfx-nav { border-top: 1px solid var(--pf-line); }
.pfx-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 -12px; padding: 0; list-style: none; }
.pfx-nav__list > li { position: relative; }
.pfx-nav__link,
.pfx-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 13px 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pf-ink);
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
}
.pfx-nav__link:hover,
.pfx-nav__list > li > a:hover,
.pfx-nav__list > .current-menu-item > a { color: var(--pf-accent); }
.pfx-chev { font-size: 16px; transition: transform .15s ease; }
.pfx-dropdown.is-open .pfx-chev { transform: rotate(180deg); }

.pfx-dropdown__menu {
	display: none;
	position: absolute;
	top: calc(100% - 4px);
	left: 0;
	z-index: 50;
	width: 440px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--pf-line);
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}
.pfx-dropdown.is-open .pfx-dropdown__menu { display: grid; }
.pfx-dropdown__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--pf-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.pfx-dropdown__menu a:hover { background: var(--pf-bg-soft); }
.pfx-dropdown__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pf-accent-soft);
	color: var(--pf-accent);
	font-size: 18px;
}
.pfx-dropdown__menu .pfx-dropdown__all {
	grid-column: 1 / -1;
	justify-content: center;
	margin-top: 4px;
	border-top: 1px solid var(--pf-line);
	border-radius: 0 0 10px 10px;
	color: var(--pf-accent);
	font-weight: 700;
}

.pfx-strip { background: var(--pf-bg-soft); }
.pfx-strip__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 42px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
	font-size: 14px;
}
.pfx-strip__inner::-webkit-scrollbar { display: none; }
.pfx-strip__label { color: var(--pf-muted); }
.pfx-strip a { color: var(--pf-ink); font-weight: 600; text-decoration: none; }
.pfx-strip a:hover { color: var(--pf-accent); }

@media (max-width: 860px) {
	.pfx-header__top {
		grid-template-columns: 1fr auto;
		grid-template-areas: "logo actions" "search search";
		gap: 12px 12px;
		padding-top: 12px;
		padding-bottom: 12px;
		min-height: 0;
	}
	.pfx-logo, .custom-logo-link { grid-area: logo; }
	.pfx-header__actions { grid-area: actions; }
	.pfx-search { grid-area: search; max-width: none; }
	.pfx-signin { height: 42px; padding: 0 12px; font-size: 14px; }
	.pfx-burger { display: flex; }
	.pfx-nav { display: none; }
	.pfx-nav.is-open { display: block; }
	.pfx-nav__list { flex-direction: column; align-items: stretch; margin: 0; padding: 6px 0 12px; }
	.pfx-nav__link, .pfx-nav__list > li > a { width: 100%; padding: 12px 0; font-size: 16px; justify-content: space-between; }
	.pfx-dropdown__menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; }
	.pfx-dropdown__menu .pfx-dropdown__all { justify-content: flex-start; border-top: 0; }
}

/* ---------- Sections ---------- */
.pfx-section { padding: 52px 0; }
.pfx-section--top { padding-top: 32px; }
.pfx-section--soft, .pfx-section--seo { background: var(--pf-bg-soft); }
.pfx-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.pfx-h1 { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.pfx-h2 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.pfx-h3 { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 36px 0 14px; }
.pfx-h3:first-of-type { margin-top: 8px; }
.pfx-mt { margin-top: 48px; margin-bottom: 6px; }
.pfx-lead { font-size: 17px; color: var(--pf-muted); max-width: 680px; margin: 10px 0 0; }
.pfx-muted { color: var(--pf-muted); margin: 0 0 18px; }
.pfx-link { font-size: 15px; font-weight: 700; color: var(--pf-accent); text-decoration: none; white-space: nowrap; }
.pfx-link:hover { text-decoration: underline; }
.pfx-center { text-align: center; margin-top: 32px; }
.pfx-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 32px;
	border: 2px solid var(--pf-accent);
	border-radius: 12px;
	color: var(--pf-accent);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}
.pfx-btn-outline:hover { background: var(--pf-accent); color: #fff; }
.pfx-notice { padding: 16px; border-radius: 12px; background: var(--pf-accent-soft); }

@media (max-width: 640px) {
	.pfx-section__head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
	.pfx-section { padding: 36px 0; }
	.pfx-section--top { padding-top: 22px; }
	.pfx-h1 { font-size: 26px; }
	.pfx-h2 { font-size: 21px; }
	.pfx-btn-outline { width: 100%; }
}

/* ---------- Newsletter block ---------- */
.pfx-subscribe {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 420px);
	align-items: center;
	gap: 28px;
	padding: 32px 36px;
	background: var(--pf-accent-soft);
	border-radius: 22px;
}
.pfx-subscribe__text p { margin: 6px 0 0; color: #4B5563; }
@media (max-width: 960px) {
	.pfx-subscribe { grid-template-columns: auto minmax(0, 1fr); }
	.pfx-subscribe__form { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.pfx-subscribe { grid-template-columns: 1fr; padding: 26px 20px; gap: 16px; }
	.pfx-subscribe__fox svg { width: 48px; height: 48px; }
	.pfx-newsletter .pf-btn { width: 100%; }
}

/* ---------- Prose ---------- */
.pfx-prose { max-width: 760px; font-size: 17px; line-height: 1.7; }
.pfx-prose > :first-child { margin-top: 0; }
.pfx-prose p, .pfx-prose ul, .pfx-prose ol { margin: 0 0 1.1em; }
.pfx-prose h2 { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; margin: 1.7em 0 .5em; }
.pfx-prose h3 { font-size: 19px; font-weight: 800; margin: 1.5em 0 .4em; }
.pfx-prose a { text-decoration: underline; text-underline-offset: 2px; }
.pfx-prose img { border-radius: 14px; }
.pfx-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pf-accent); color: #4B5563; }
.pfx-seo { font-size: 15px; color: #4B5563; }
.pfx-seo h2 { font-size: 19px; color: var(--pf-ink); margin-top: 1.4em; }

/* ---------- Page heads, breadcrumbs, chips ---------- */
.pfx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--pf-muted); margin-bottom: 18px; }
.pfx-crumbs a { color: var(--pf-muted); text-decoration: none; }
.pfx-crumbs a:hover { color: var(--pf-accent); }
.pfx-page-head { margin-bottom: 28px; }
.pfx-page:not(.pfx-page--wide) .pfx-page-head { max-width: 760px; }
.pfx-page__wide > p:first-child { color: var(--pf-muted); font-size: 17px; max-width: 680px; margin: -14px 0 28px; }
.pfx-cat-head { display: flex; align-items: center; gap: 18px; }
.pfx-cat-head .pf-cat__icon { width: 64px; height: 64px; font-size: 30px; flex: none; }
.pfx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.pfx-chips .pf-chip { font-size: 13px; padding: 8px 12px; background: #fff; border: 1px solid var(--pf-line); }

/* ---------- Store page ---------- */
.pfx-store { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.pfx-store__info { min-width: 0; }
.pfx-store__count { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: 15px; color: var(--pf-muted); }
.pfx-store__count a { font-weight: 700; text-decoration: none; }
.pfx-store__desc { margin: 12px 0 0; max-width: 720px; color: #4B5563; }
@media (max-width: 640px) {
	.pfx-store { flex-direction: column; align-items: flex-start; gap: 18px; }
	.pf-logo--lg { width: 104px; height: 104px; }
}

/* ---------- Search ---------- */
.pfx-store-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pfx-store-tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--pf-line);
	border-radius: 14px;
	text-decoration: none;
	color: var(--pf-muted);
}
.pfx-store-tile:hover { border-color: var(--pf-accent); }
.pfx-results { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.pfx-results li { padding: 14px 0; border-bottom: 1px solid var(--pf-line); }
.pfx-results a { font-weight: 700; font-size: 17px; color: var(--pf-ink); text-decoration: none; }
.pfx-results a:hover { color: var(--pf-accent); }
.pfx-results p { margin: 4px 0 0; color: var(--pf-muted); font-size: 15px; }

/* ---------- Blog ---------- */
.pfx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .pfx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pfx-posts { grid-template-columns: 1fr; } }
.pfx-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	box-shadow: var(--pf-shadow);
	overflow: hidden;
}
.pfx-post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--pf-bg-soft); }
.pfx-post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfx-post-card__ph { display: grid; place-items: center; height: 100%; }
.pfx-post-card__body { padding: 20px; }
.pfx-post-card__meta { margin: 0 0 6px; font-size: 13px; color: var(--pf-muted); }
.pfx-post-card__title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.pfx-post-card__title a { color: var(--pf-ink); text-decoration: none; }
.pfx-post-card__title a:hover { color: var(--pf-accent); }
.pfx-post-card__excerpt { margin: 8px 0 0; font-size: 15px; color: var(--pf-muted); }

.pfx-article { max-width: 760px; }
.pfx-article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.pfx-article__meta { margin: 0; font-size: 14px; color: var(--pf-muted); }
.pfx-article__img { margin: 0 0 28px; }
.pfx-article__img img { border-radius: 18px; display: block; }
.pfx-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; border-radius: 999px; background: var(--pf-bg-soft); color: #4B5563; font-size: 13px; text-decoration: none; }

.pf-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
nav.pf-pagination { margin-top: 32px; }

.pfx-comments__list { padding-left: 0; list-style: none; }
.pfx-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--pf-line); }
.pfx-comments input[type=text], .pfx-comments input[type=email], .pfx-comments input[type=url], .pfx-comments textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--pf-line); border-radius: 12px; font-size: 16px;
}
.pfx-comments .submit {
	height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--pf-accent); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
}

/* ---------- 404 ---------- */
.pfx-404 { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.pfx-404 .pfx-fox { margin: 0 auto 20px; }
.pfx-404 .pfx-lead { margin: 12px auto 24px; }

/* ---------- Footer ---------- */
.pfx-footer { background: var(--pf-bg-soft); border-top: 1px solid var(--pf-line); }
.pfx-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding: 52px 0 36px;
}
.pfx-footer__brand p { margin: 14px 0 18px; max-width: 300px; font-size: 15px; color: var(--pf-muted); }
.pfx-footer__title { margin: 4px 0 14px; font-size: 15px; font-weight: 800; }
.pfx-footer__links { list-style: none; margin: 0; padding: 0; }
.pfx-footer__links li { margin: 0 0 10px; }
.pfx-footer__links a { color: #4B5563; font-size: 15px; text-decoration: none; }
.pfx-footer__links a:hover { color: var(--pf-accent); }
.pfx-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pfx-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--pf-line);
	color: #4B5563;
}
.pfx-social a:hover { color: #fff; background: var(--pf-accent); border-color: var(--pf-accent); }
.pfx-footer__bottom { padding: 20px 0 28px; border-top: 1px solid var(--pf-line); }
.pfx-footer__bottom p { margin: 0; font-size: 14px; color: var(--pf-muted); }
@media (max-width: 860px) {
	.pfx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pfx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.pfx-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 40px; }
}

/* WordPress core classes */
.alignwide { max-width: 1100px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--pf-muted); }

@media (prefers-reduced-motion: reduce) {
	.pfx-chev { transition: none; }
}
