/* ==========================================================================
   PHAST PRODUCTS — Stylesheet
   --------------------------------------------------------------------------
   These CSS variables have sensible defaults but are OVERRIDDEN by the
   colors/fonts you set in wp-admin under Products → Settings — you don't
   need to edit this file to re-brand. Defaults here only apply if the
   settings page hasn't been saved yet.

   To pixel-match phastgh.com exactly: open the live site, use your browser's
   inspector on a heading/button, note the hex color, and paste it into
   Products → Settings.
   ========================================================================== */

:root {
	--phast-primary: #0B1C33;
	--phast-accent: #2F80ED;
	--phast-dark: #071322;
	--phast-heading-font: 'Poppins', sans-serif;
	--phast-body-font: 'Inter', sans-serif;
	--phast-radius: 14px;
	--phast-light-bg: #F6F8FB;
	--phast-border: #E4E8EE;
	--phast-text-muted: #5C6B7A;
}

.phast-products-block,
.phast-product-page,
.phast-shop-page {
	font-family: var(--phast-body-font);
	color: var(--phast-primary);
}

.phast-products-block *,
.phast-product-page *,
.phast-shop-page * {
	box-sizing: border-box;
}

.phast-block-title,
.phast-product-title,
.phast-shop-hero h1,
.phast-product-description h2,
.phast-related h2,
.phast-product-cta-banner h2 {
	font-family: var(--phast-heading-font);
	font-weight: 600;
}

/* ---------- Grid & Cards ---------- */

.phast-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 28px 0;
}

@media (max-width: 900px) {
	.phast-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.phast-grid { grid-template-columns: 1fr; }
}

.phast-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--phast-border);
	border-radius: var(--phast-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .25s ease, box-shadow .25s ease;
}

.phast-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(11, 28, 51, 0.12);
	text-decoration: none;
	color: inherit;
}

.phast-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--phast-light-bg);
	overflow: hidden;
}

.phast-card-img,
.phast-card-img--placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phast-card-img--placeholder {
	background: linear-gradient(135deg, var(--phast-light-bg), var(--phast-border));
}

.phast-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--phast-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: .02em;
}

.phast-badge--single {
	top: 16px;
	left: 16px;
}

.phast-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.phast-card-tag {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--phast-accent);
	font-weight: 600;
	margin-bottom: 8px;
}

.phast-card-title {
	font-size: 18px;
	margin: 0 0 8px;
	line-height: 1.3;
}

.phast-card-desc {
	font-size: 14px;
	color: var(--phast-text-muted);
	margin: 0 0 16px;
	flex: 1;
	line-height: 1.5;
}

.phast-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--phast-border);
	padding-top: 14px;
	margin-top: auto;
}

.phast-card-price {
	font-weight: 700;
	font-size: 15px;
}

.phast-card-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--phast-accent);
}

.phast-no-products {
	color: var(--phast-text-muted);
	padding: 40px 0;
	text-align: center;
}

/* ---------- Buttons ---------- */

.phast-btn {
	display: inline-block;
	font-family: var(--phast-body-font);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 15px;
	transition: opacity .2s ease, transform .2s ease;
	cursor: pointer;
}
.phast-btn:hover { opacity: .88; text-decoration: none; }

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

.phast-btn-outline {
	background: transparent;
	border: 2px solid var(--phast-primary);
	color: var(--phast-primary) !important;
}

.phast-btn-large {
	padding: 15px 34px;
	font-size: 16px;
}

.phast-view-all {
	text-align: center;
	margin-top: 20px;
}

/* ---------- Shortcode block ---------- */

.phast-block-title {
	font-size: 30px;
	text-align: center;
	margin-bottom: 4px;
}

/* ---------- Breadcrumb ---------- */

.phast-breadcrumb {
	font-size: 13px;
	color: var(--phast-text-muted);
	padding: 24px 0 0;
}
.phast-breadcrumb a { color: var(--phast-text-muted); text-decoration: none; }
.phast-breadcrumb a:hover { color: var(--phast-accent); }

/* ---------- Single product ---------- */

.phast-product-page,
.phast-shop-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 60px;
}

.phast-product-hero {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	margin-top: 24px;
}

@media (max-width: 860px) {
	.phast-product-hero { grid-template-columns: 1fr; gap: 32px; }
}

.phast-gallery-main {
	position: relative;
	border-radius: var(--phast-radius);
	overflow: hidden;
	background: var(--phast-light-bg);
	aspect-ratio: 4 / 3;
}

.phast-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phast-gallery-main--placeholder {
	background: linear-gradient(135deg, var(--phast-light-bg), var(--phast-border));
}

.phast-gallery-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.phast-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: .7;
	transition: opacity .2s ease, border-color .2s ease;
}
.phast-thumb:hover,
.phast-thumb.is-active {
	opacity: 1;
	border-color: var(--phast-accent);
}

.phast-product-info { padding-top: 4px; }

.phast-product-title {
	font-size: 34px;
	margin: 6px 0 14px;
	line-height: 1.2;
}

.phast-product-short-desc {
	font-size: 16px;
	color: var(--phast-text-muted);
	line-height: 1.6;
	margin-bottom: 18px;
}

.phast-product-price {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 22px;
}

.phast-features {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
}
@media (max-width: 500px) {
	.phast-features { grid-template-columns: 1fr; }
}

.phast-features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.phast-check {
	color: var(--phast-accent);
	font-weight: 700;
	flex-shrink: 0;
}

.phast-product-description {
	margin-top: 60px;
	border-top: 1px solid var(--phast-border);
	padding-top: 40px;
}

.phast-product-content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--phast-primary);
	max-width: 760px;
}

.phast-related {
	margin-top: 60px;
	border-top: 1px solid var(--phast-border);
	padding-top: 40px;
}

/* ---------- CTA banner ---------- */

.phast-product-cta-banner {
	margin-top: 64px;
	background: var(--phast-dark);
	color: #fff;
	border-radius: var(--phast-radius);
	padding: 56px 40px;
	text-align: center;
}
.phast-product-cta-banner h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.phast-product-cta-banner p { color: rgba(255,255,255,.7); margin: 0 0 26px; }

/* ---------- Shop archive ---------- */

.phast-shop-hero {
	text-align: center;
	padding: 48px 0 12px;
}
.phast-shop-hero h1 { font-size: 38px; margin: 0 0 12px; }
.phast-shop-hero p { color: var(--phast-text-muted); font-size: 16px; max-width: 560px; margin: 0 auto; }

.phast-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 30px 0 10px;
}

.phast-filter-tab {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1px solid var(--phast-border);
	color: var(--phast-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.phast-filter-tab:hover { border-color: var(--phast-accent); color: var(--phast-accent); text-decoration: none; }
.phast-filter-tab.is-active {
	background: var(--phast-primary);
	border-color: var(--phast-primary);
	color: #fff;
}

.phast-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}
.phast-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid var(--phast-border);
	text-decoration: none;
	color: var(--phast-primary);
	font-size: 14px;
}
.phast-pagination .page-numbers.current {
	background: var(--phast-accent);
	border-color: var(--phast-accent);
	color: #fff;
}
