/*
Theme Name: WP Pro Shop Theme
Theme URI: https://example.com/wp-pro-shop-theme
Author: Codex
Author URI: https://example.com
Description: Lightweight companion theme for the WP Pro Shop plugin. Keeps homepage and product page design controlled by the plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: wp-pro-shop-theme
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Intentionally minimal.
 * The WP Pro Shop plugin provides primary front-end styling for homepage and product pages.
 */

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
}

a {
	color: inherit;
}

.site-main {
	display: block;
}

/* Override plugin top padding so content starts at the top as requested. */
body.wps-has-topbar,
body.admin-bar.wps-has-topbar {
	padding-top: 0 !important;
}

/* Keep product type menu visible directly under the fixed plugin header. */
.wps-nav {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 30 !important;
}

body.admin-bar .wps-nav {
	top: 32px !important;
}

.wps-type-menu-wrap {
	position: fixed !important;
	top: 72px !important;
	left: 0 !important;
	right: 0 !important;
	margin: 0 !important;
	z-index: 29 !important;
}

body.admin-bar .wps-type-menu-wrap {
	top: 104px !important;
}

@media (max-width: 782px) {
	body.admin-bar .wps-nav {
		top: 46px !important;
	}

	body.admin-bar .wps-type-menu-wrap {
		top: 116px !important;
	}
}

.wppst-blog-shell {
	--wppst-bg: #0f131a;
	--wppst-panel: #171f2b;
	--wppst-panel-soft: #1b2430;
	--wppst-text: #e8ecf2;
	--wppst-muted: #9ba7b7;
	--wppst-border: #2a3442;
	--wppst-accent: #f79521;
	--wppst-accent-strong: #ff6e24;
	--wppst-header-offset: 126px;
	color: var(--wppst-text);
	background: radial-gradient(circle at 20% -10%, rgba(247, 149, 33, 0.2), transparent 35%), var(--wppst-bg);
	min-height: 100vh;
	padding-top: var(--wppst-header-offset);
	padding-bottom: 88px;
}

body.admin-bar .wppst-blog-shell {
	--wppst-header-offset: 158px;
}

@media (max-width: 782px) {
	body.admin-bar .wppst-blog-shell {
		--wppst-header-offset: 170px;
	}
}

.wppst-container {
	width: min(1200px, 92%);
	margin: 0 auto;
}

.wppst-blog-hero {
	padding: 48px 0 28px;
}

.wppst-kicker {
	margin: 0 0 10px;
	color: var(--wppst-accent);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	font-weight: 700;
}

.wppst-blog-title {
	margin: 0;
	font-size: clamp(34px, 6vw, 62px);
	line-height: 0.95;
	font-family: "Oswald", Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wppst-blog-intro {
	margin: 14px 0 0;
	max-width: 720px;
	color: var(--wppst-muted);
	font-size: 18px;
}

.wppst-blog-grid-wrap {
	margin-top: 20px;
}

.wppst-blog-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wppst-post-card {
	border: 1px solid var(--wppst-border);
	background: linear-gradient(180deg, var(--wppst-panel), var(--wppst-panel-soft));
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wppst-post-card:hover {
	transform: translateY(-3px);
	border-color: #3a495b;
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.wppst-post-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #121927;
	overflow: hidden;
}

.wppst-post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

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

.wppst-media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: "Oswald", Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wppst-muted);
}

.wppst-post-body {
	padding: 18px 18px 20px;
}

.wppst-post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.wppst-post-cats a {
	text-decoration: none;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 6px 9px;
	border: 1px solid var(--wppst-border);
	color: var(--wppst-muted);
}

.wppst-post-cats a:hover {
	color: var(--wppst-text);
	border-color: var(--wppst-accent);
}

.wppst-post-title {
	margin: 0 0 8px;
	font-family: "Oswald", Impact, sans-serif;
	font-size: clamp(23px, 3vw, 31px);
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wppst-post-title a {
	text-decoration: none;
	color: var(--wppst-text);
}

.wppst-post-title a:hover {
	color: #fff;
}

.wppst-post-meta {
	margin: 0 0 10px;
	color: var(--wppst-muted);
	font-size: 13px;
}

.wppst-post-excerpt {
	color: #d5dce7;
	font-size: 15px;
}

.wppst-post-excerpt p:last-child {
	margin-bottom: 0;
}

.wppst-read-more {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 13px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-family: "Oswald", Impact, sans-serif;
	font-size: 12px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--wppst-accent), var(--wppst-accent-strong));
	color: #0f131a;
}

.wppst-read-more:hover {
	filter: brightness(1.05);
}

.wppst-blog-shell .navigation.pagination {
	margin-top: 28px;
}

.wppst-blog-shell .navigation.pagination .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.wppst-blog-shell .navigation.pagination .page-numbers {
	text-decoration: none;
	border: 1px solid var(--wppst-border);
	color: var(--wppst-muted);
	padding: 8px 11px;
	font-size: 13px;
}

.wppst-blog-shell .navigation.pagination .page-numbers.current {
	color: #0f131a;
	background: var(--wppst-accent);
	border-color: var(--wppst-accent);
}

.wppst-single-hero {
	position: relative;
	overflow: hidden;
	background: #121927;
	border-top: 1px solid #212c3a;
	border-bottom: 1px solid #212c3a;
}

.wppst-single-hero-media {
	position: absolute;
	inset: 0;
}

.wppst-single-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wppst-single-hero.has-image {
	min-height: min(62vh, 620px);
}

.wppst-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 19, 26, 0.4), rgba(15, 19, 26, 0.92));
}

.wppst-single-hero-content {
	position: relative;
	z-index: 1;
	padding-top: 88px;
	padding-bottom: 72px;
}

.wppst-single-title {
	margin: 0;
	max-width: 940px;
	font-family: "Oswald", Impact, sans-serif;
	font-size: clamp(34px, 7vw, 74px);
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.03em;
}

.wppst-single-meta {
	margin-top: 12px;
	color: var(--wppst-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.wppst-single-content-wrap {
	margin-top: 32px;
}

.wppst-single-content {
	max-width: 840px;
	margin: 0 auto;
	border: 1px solid var(--wppst-border);
	background: #141c28;
	padding: 28px;
	color: #e8ecf2;
}

.wppst-single-content p,
.wppst-single-content li,
.wppst-single-content blockquote {
	font-size: 18px;
	line-height: 1.75;
	color: #d5dce7;
}

.wppst-single-content h2,
.wppst-single-content h3,
.wppst-single-content h4 {
	margin-top: 1.9em;
	margin-bottom: 0.4em;
	font-family: "Oswald", Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.1;
	color: #fff;
}

.wppst-single-content a {
	color: #ffb14f;
}

.wppst-single-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

.wppst-single-content figure {
	margin-left: 0;
	margin-right: 0;
}

.wppst-single-content blockquote {
	border-left: 3px solid var(--wppst-accent);
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1em;
}

.wppst-related {
	margin-top: 58px;
}

.wppst-related h2 {
	margin: 0 0 20px;
	font-family: "Oswald", Impact, sans-serif;
	text-transform: uppercase;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1;
	letter-spacing: 0.03em;
}

@media (max-width: 1024px) {
	.wppst-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.wppst-blog-shell {
		padding-bottom: 56px;
	}

	.wppst-blog-grid {
		grid-template-columns: 1fr;
	}

	.wppst-single-hero-content {
		padding-top: 64px;
		padding-bottom: 48px;
	}

	.wppst-single-content {
		padding: 20px;
	}

	.wppst-single-content p,
	.wppst-single-content li,
	.wppst-single-content blockquote {
		font-size: 17px;
	}
}
