/*
 * HSVG Store — Main Stylesheet
 *
 * Extracted from HSVG_Store_Prototype_Phase1.html and adapted for
 * WordPress server-rendered output. All design tokens, layout rules,
 * and component styles are preserved exactly from the original HTML.
 *
 * No classes, colours, or spacing values have been changed.
 */

/* ── Reset ──────────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────────────────────────────── */
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
	background: #fafaf8;
	line-height: 1.6;
}
a {
	color: #2E7D32;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* ── Site Header ─────────────────────────────────────────────────────────────── */
.site-header {
	background: #2E7D32;
	color: white;
	padding: 12px 0;
}
.site-header .inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-header .logo {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.5px;
	display: flex;
	align-items: center;
	gap: 0;
}
.site-header .logo a {
	color: white;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.5px;
}
.site-header .logo a:hover {
	text-decoration: none;
	opacity: 0.9;
}
.site-header .logo img {
	height: 36px;
	width: auto;
	display: block;
}
.site-header .logo span {
	font-weight: 400;
	opacity: 0.8;
	font-size: 14px;
	margin-left: 8px;
}
.site-header nav a {
	color: white;
	margin-left: 24px;
	font-size: 14px;
	opacity: 0.9;
}
.site-header nav a:hover {
	opacity: 1;
	text-decoration: none;
}

/* ── Container ───────────────────────────────────────────────────────────────── */
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb {
	font-size: 13px;
	color: #888;
	padding: 16px 0 8px;
}
.breadcrumb a {
	color: #888;
}
.breadcrumb a:hover {
	color: #2E7D32;
}

/* ── Landing page ────────────────────────────────────────────────────────────── */
.page-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #1a1a1a;
}
.page-subtitle {
	font-size: 15px;
	color: #666;
	margin-bottom: 32px;
	max-width: 640px;
}
.kit-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}
.kit-card {
	background: white;
	border: 1px solid #e5e5e0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s;
	cursor: pointer;
	position: relative;
}
.kit-card:hover {
	border-color: #2E7D32;
}
.kit-card.featured {
	border: 2px solid #5D4037;
}
.kit-card.featured .badge {
	position: absolute;
	top: -10px;
	right: 16px;
	background: #5D4037;
	color: white;
	font-size: 11px;
	padding: 3px 12px;
	border-radius: 99px;
	font-weight: 500;
}
.kit-card .tier-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	margin-bottom: 12px;
}
.kit-card h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 4px;
}
.kit-card .kit-desc {
	font-size: 13px;
	color: #666;
	margin-bottom: 16px;
	flex: 1;
}
.kit-stats {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}
.kit-stat {
	background: #f5f5f0;
	border-radius: 8px;
	padding: 8px 12px;
	text-align: center;
	flex: 1;
}
.kit-stat .num {
	font-size: 20px;
	font-weight: 600;
}
.kit-stat .label {
	font-size: 11px;
	color: #888;
}
.kit-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 16px;
}
.kit-tag {
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 99px;
}
.kit-btn {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	color: white;
	transition: opacity 0.2s;
	text-align: center;
	display: block;
}
.kit-btn:hover {
	opacity: 0.9;
	text-decoration: none;
}
.phase-badge {
	display: inline-block;
	font-size: 11px;
	background: #f5f5f0;
	color: #888;
	padding: 3px 10px;
	border-radius: 99px;
	margin-bottom: 4px;
}

/* ── Detail page ─────────────────────────────────────────────────────────────── */
.detail-header {
	margin-bottom: 24px;
}
.detail-header h1 {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 2px;
}
.detail-header .pills {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.detail-header .pill {
	font-size: 12px;
	background: #E3F2FD;
	color: #0C447C;
	padding: 3px 12px;
	border-radius: 99px;
}

.detail-desc {
	font-size: 15px;
	color: #555;
	margin-bottom: 24px;
	max-width: 700px;
}

/* ── Buy bar ─────────────────────────────────────────────────────────────────── */
.buy-bar {
	background: #1565C0;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 20px;
}
.buy-bar .buy-text h3 {
	color: white;
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 2px;
}
.buy-bar .buy-text p {
	color: rgba(255,255,255,0.75);
	font-size: 13px;
}
.buy-bar .buy-actions {
	margin-left: auto;
	display: flex;
	gap: 8px;
}
.vendor-btn {
	border-radius: 8px;
	padding: 10px 18px;
	cursor: pointer;
	text-align: center;
	border: none;
	font-size: 13px;
	font-weight: 500;
}
.vendor-btn.primary {
	background: white;
	color: #1565C0;
}
.vendor-btn.secondary {
	background: rgba(255,255,255,0.15);
	color: white;
	border: 1px solid rgba(255,255,255,0.3);
}
.vendor-btn small {
	display: block;
	font-size: 10px;
	font-weight: 400;
	margin-top: 2px;
	opacity: 0.7;
}

/* ── Utility row ─────────────────────────────────────────────────────────────── */
.utility-row {
	display: flex;
	gap: 10px;
	margin-bottom: 28px;
}
.util-btn {
	background: #f5f5f0;
	border-radius: 8px;
	padding: 10px 16px;
	flex: 1;
	text-align: center;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	border: 1px solid transparent;
	transition: border-color 0.2s;
	text-decoration: none;
	display: block;
}
.util-btn:hover {
	border-color: #ccc;
	text-decoration: none;
	color: #555;
}

/* ── Section title ───────────────────────────────────────────────────────────── */
.section-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #1a1a1a;
}

/* ── Category headers ────────────────────────────────────────────────────────── */
.cat-header {
	background: #E8F5E9;
	border-radius: 8px;
	padding: 8px 14px;
	margin-bottom: 2px;
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
}
.cat-header:focus {
	outline: 2px solid #2E7D32;
	outline-offset: 2px;
}
.cat-header:first-of-type {
	margin-top: 0;
}
.cat-header h4 {
	font-size: 14px;
	font-weight: 600;
	color: #2E7D32;
}
.cat-header .cat-count {
	font-size: 12px;
	color: #66966a;
}
.cat-header .arrow {
	font-size: 12px;
	color: #2E7D32;
	transition: transform 0.2s;
	display: inline-block;
}
.cat-header .arrow::before {
	content: '\25B6'; /* ▶ — same character as prototype, rendered via CSS not HTML */
}
.cat-header.open .arrow {
	transform: rotate(90deg);
}
.cat-header.rx-cat {
	background: #FFF3E0;
}
.cat-header.rx-cat h4 {
	color: #E65100;
}
.cat-header.rx-cat .cat-count {
	color: #F4845F;
}
.cat-header.rx-cat .arrow {
	color: #E65100;
}

/* ── Category item lists ─────────────────────────────────────────────────────── */
.cat-items {
	border-left: 2px solid #e5e5e0;
	margin-left: 8px;
}
.cat-items.rx-items {
	border-left-color: #FFE0B2;
}

/* ── Item rows ───────────────────────────────────────────────────────────────── */
.item-row {
	display: flex;
	align-items: center;
	padding: 10px 0 10px 16px;
	border-bottom: 1px solid #f0f0ec;
}
.item-row:last-child {
	border-bottom: none;
}
.item-name {
	font-size: 14px;
	color: #2E7D32;
	flex: 1;
}
.item-name:hover {
	text-decoration: underline;
}
.item-qty {
	font-size: 12px;
	color: #888;
	margin-left: 8px;
	min-width: 40px;
}
.item-note {
	font-size: 12px;
	color: #999;
	font-style: italic;
	margin-left: 8px;
	max-width: 220px;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.item-buy {
	margin-left: 10px;
	font-size: 11px;
	color: white;
	background: #2E7D32;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	border: none;
	text-decoration: none;
	display: inline-block;
}
.item-buy:hover {
	background: #1B5E20;
	text-decoration: none;
	color: white;
}
.rx-badge {
	font-size: 10px;
	background: #FFF3E0;
	color: #E65100;
	padding: 2px 7px;
	border-radius: 99px;
	margin-left: 8px;
	white-space: nowrap;
}

/* ── Rx callout ──────────────────────────────────────────────────────────────── */
.rx-callout {
	background: white;
	border: 1px solid #FFE0B2;
	border-radius: 12px;
	padding: 20px 24px;
	margin-top: 20px;
	margin-bottom: 28px;
}
.rx-callout h4 {
	font-size: 15px;
	font-weight: 600;
	color: #E65100;
	margin-bottom: 6px;
}
.rx-callout p {
	font-size: 13px;
	color: #666;
	margin-bottom: 12px;
}
.rx-callout .rx-actions {
	display: flex;
	gap: 8px;
}
.rx-btn {
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	border: none;
	text-decoration: none;
	display: inline-block;
	font-family: inherit;
}
.rx-btn.primary {
	background: #FFF3E0;
	color: #E65100;
	font-weight: 500;
}
.rx-btn.secondary {
	background: #f5f5f0;
	color: #666;
}

/* ── Content note ────────────────────────────────────────────────────────────── */
.content-note {
	background: #f5f5f0;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 28px;
}
.content-note p {
	font-size: 13px;
	color: #666;
}
.content-note strong {
	color: #1a1a1a;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
	background: #f0f0ec;
	padding: 24px 0;
	margin-top: 40px;
	text-align: center;
	font-size: 13px;
	color: #888;
}
.footer a {
	color: #888;
}
.footer a:hover {
	color: #2E7D32;
}

/* ── Back button ─────────────────────────────────────────────────────────────── */
.back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #2E7D32;
	cursor: pointer;
	margin-bottom: 16px;
	background: none;
	border: none;
	font-family: inherit;
	text-decoration: none;
}
.back-btn:hover {
	text-decoration: underline;
	color: #2E7D32;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.kit-grid {
		grid-template-columns: 1fr;
	}
	.utility-row {
		flex-direction: column;
	}
	.buy-bar {
		flex-direction: column;
		align-items: flex-start;
	}
	.buy-bar .buy-actions {
		margin-left: 0;
	}
	.site-header nav {
		display: none;
	}
	.item-note {
		display: none;
	}
}
