:root {
	--ap-surface: #f8f9ff;
	--ap-surface-low: #eff4ff;
	--ap-surface-container: #e6eeff;
	--ap-surface-high: #d9e3f6;
	--ap-white: #ffffff;
	--ap-text: #121c2a;
	--ap-muted: #444653;
	--ap-outline: #c4c5d5;
	--ap-outline-strong: #757684;
	--ap-primary: #00288e;
	--ap-primary-soft: #dde1ff;
	--ap-primary-hover: #1e40af;
	--ap-secondary: #0058be;
	--ap-amber: #f59e0b;
	--ap-inverse: #27313f;
	--ap-success-bg: #ecfdf3;
	--ap-success: #15803d;
	--ap-danger-bg: #fff1f2;
	--ap-danger: #be123c;
	--ap-radius-sm: 4px;
	--ap-radius: 8px;
	--ap-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--ap-shadow-lg: 0 16px 34px rgba(0, 40, 142, 0.12);
	--ap-container: 1280px;
	--ap-gutter: 24px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ap-surface);
	color: var(--ap-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea {
	font: inherit;
}

.material-symbols-outlined {
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	vertical-align: middle;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 10px 14px;
	background: var(--ap-primary);
	color: var(--ap-white);
	clip: auto;
}

.ap-container {
	width: min(100% - 48px, var(--ap-container));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 249, 255, 0.96);
	border-bottom: 1px solid var(--ap-outline);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
	backdrop-filter: blur(12px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	gap: 24px;
}

.site-title,
.footer-title {
	color: var(--ap-primary);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
}

.custom-logo {
	max-height: 56px;
	width: auto;
}

.main-navigation .menu,
.site-footer ul {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.main-navigation .menu-item-has-children {
	position: relative;
	display: flex;
	align-items: center;
}

.main-navigation .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
}

.main-navigation .menu-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-left: 6px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.main-navigation .menu-submenu-toggle .material-symbols-outlined {
	font-size: 18px;
	transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children.is-open > .menu-submenu-toggle .material-symbols-outlined {
	transform: rotate(180deg);
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% - 2px);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--ap-white);
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-lg);
	z-index: 20;
}

.main-navigation .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.main-navigation .sub-menu li {
	width: 100%;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 10px 16px;
	border-bottom: 0;
	white-space: nowrap;
}

.main-navigation .sub-menu li + li {
	border-top: 1px solid var(--ap-surface-low);
}

.main-navigation a {
	color: var(--ap-muted);
	font-weight: 500;
	padding-block: 28px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--ap-primary);
	border-color: var(--ap-primary);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-search {
	position: relative;
	display: flex;
	align-items: center;
}

.header-search span {
	position: absolute;
	left: 12px;
	color: var(--ap-outline-strong);
	font-size: 20px;
}

.header-search input,
.newsletter-section input,
.newsletter-box input,
.comment-form input,
.comment-form textarea,
.search-form input {
	width: 100%;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius-sm);
	background: var(--ap-white);
	color: var(--ap-text);
	padding: 12px 14px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
	width: 260px;
	padding-left: 40px;
	background: var(--ap-surface-low);
}

input:focus,
textarea:focus {
	border-color: var(--ap-primary);
	box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12);
}

.menu-toggle {
	display: none;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius-sm);
	background: var(--ap-white);
	color: var(--ap-primary);
	padding: 8px;
}

.ap-btn,
.search-submit,
.form-submit .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	border: 1px solid transparent;
	border-radius: var(--ap-radius-sm);
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-btn:hover,
.search-submit:hover,
.form-submit .submit:hover {
	transform: translateY(-1px);
}

.ap-btn-primary,
.search-submit,
.form-submit .submit {
	background: var(--ap-primary);
	color: var(--ap-white);
	box-shadow: 0 8px 18px rgba(0, 40, 142, 0.16);
}

.ap-btn-primary:hover,
.search-submit:hover,
.form-submit .submit:hover {
	background: var(--ap-primary-hover);
}

.ap-btn-secondary {
	background: var(--ap-white);
	color: var(--ap-primary);
	border-color: var(--ap-outline);
}

.ap-btn-ghost {
	background: transparent;
	color: var(--ap-muted);
	border-color: var(--ap-outline);
}

.ap-btn-light {
	width: 100%;
	background: var(--ap-white);
	color: var(--ap-primary);
}

.ap-btn-sm {
	min-height: 36px;
	padding: 9px 16px;
}

.ap-btn-lg {
	min-height: 56px;
	padding: 15px 28px;
}

.hero-section {
	overflow: hidden;
	background: linear-gradient(135deg, var(--ap-surface), var(--ap-surface-container));
	padding: 64px 0 88px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
	align-items: center;
	gap: 72px;
}

.hero-copy {
	display: grid;
	gap: 24px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ap-primary-soft);
	color: #001453;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.hero-copy h1 {
	max-width: 700px;
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: 0;
}

.hero-copy p {
	max-width: 610px;
	margin: 0;
	color: var(--ap-muted);
	font-size: 18px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.hero-media {
	position: relative;
	padding: 16px;
	border-radius: 28px;
	background: var(--ap-white);
	box-shadow: var(--ap-shadow-lg);
	transform: rotate(2deg);
	transition: transform 0.35s ease;
}

.hero-media:hover {
	transform: rotate(0deg);
}

.hero-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
}

.ap-section {
	padding-block: 80px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.section-heading.is-centered {
	display: block;
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.section-heading h2,
.archive-header h1,
.single-header h1,
.entry-header h1 {
	margin: 0 0 8px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.18;
	letter-spacing: 0;
}

.section-heading p,
.archive-header p {
	margin: 0;
	color: var(--ap-muted);
}

.section-heading a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ap-primary);
	font-weight: 700;
}

.category-grid,
.product-grid,
.post-grid,
.related-grid,
.coupon-grid {
	display: grid;
	gap: 24px;
}

.category-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 32px 20px;
	background: var(--ap-surface-low);
	border: 1px solid transparent;
	border-radius: var(--ap-radius);
	text-align: center;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover,
.post-card:hover,
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ap-shadow-lg);
}

.category-card .material-symbols-outlined {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--ap-radius);
	background: var(--ap-primary-soft);
	color: var(--ap-primary);
	font-size: 28px;
}

/* Product detail hero: image and purchase information stay visually connected. */
.single-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	gap: clamp(24px, 4vw, 52px);
	align-items: center;
	margin: 28px 0 48px;
	padding: clamp(18px, 3vw, 34px);
	background: #fff;
	border: 1px solid #e7eaf0;
	border-radius: 20px;
	box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.single-product-media {
	overflow: hidden;
	background: #f5f7fa;
	border-radius: 14px;
}

.single-product-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.single-product-hero .single-product-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.single-product-hero .single-header h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.15;
}

.single-product-hero .single-product-summary p {
	margin: 0;
	color: #526071;
	font-size: 16px;
	line-height: 1.75;
}

.single-buy-button {
	min-width: 180px;
	min-height: 50px;
	gap: 8px;
}

@media (max-width: 800px) {
	.single-product-hero {
		grid-template-columns: 1fr;
		gap: 22px;
		margin: 18px 0 32px;
		padding: 16px;
		border-radius: 14px;
	}

	.single-product-hero .single-header h1 {
		font-size: clamp(26px, 8vw, 36px);
	}

	.single-buy-button {
		width: 100%;
	}
}

.category-card .material-symbols-outlined svg {
	display: block;
	width: 1em;
	height: 1em;
	color: var(--ap-primary);
	fill: var(--ap-primary);
}

.category-card .material-symbols-outlined svg path {
	fill: var(--ap-primary);
}

.category-card small {
	color: var(--ap-muted);
}

.products-band {
	background: var(--ap-surface-low);
}

.product-filter {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.45fr) minmax(160px, 0.45fr) auto;
	align-items: end;
	gap: 16px;
	margin-bottom: 28px;
	padding: 20px;
	background: var(--ap-white);
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
}

.product-filter-field {
	display: grid;
	gap: 7px;
}

.product-filter label {
	color: var(--ap-text);
	font-size: 13px;
	font-weight: 700;
}

.product-filter input {
	width: 100%;
	min-height: 42px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius-sm);
	background: var(--ap-surface);
	color: var(--ap-text);
	padding: 10px 12px;
	outline: none;
}

.product-filter-actions {
	display: flex;
	gap: 10px;
}

.product-filter-actions .ap-btn {
	min-height: 42px;
	white-space: nowrap;
}

.product-filter-empty {
	grid-column: 1 / -1;
	padding: 28px;
	text-align: center;
}

.product-filter-empty p {
	margin: 0;
	color: var(--ap-muted);
	font-weight: 600;
}

.product-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.post-card,
.ap-card,
.related-card {
	overflow: hidden;
	background: var(--ap-white);
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-image,
.post-card-image {
	position: relative;
	display: block;
	overflow: hidden;
}

.product-image img,
.post-card-image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.product-card:hover img,
.post-card:hover img,
.feature-article:hover img,
.related-card:hover img {
	transform: scale(1.04);
}

.product-image span,
.post-card-image span {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 9px;
	border-radius: var(--ap-radius-sm);
	background: var(--ap-primary);
	color: var(--ap-white);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}


.product-body,
.post-card-body {
	display: grid;
	gap: 14px;
	padding: 24px;
}

.product-body h3,
.post-card h2,
.feature-article h3 {
	margin: 0;
	font-size: 22px;
	line-height: 1.3;
}

.product-body h3 a:hover,
.post-card h2 a:hover,
.feature-article h3 a:hover,
.related-card:hover strong {
	color: var(--ap-primary);
}

.ap-rating {
	display: flex;
	align-items: center;
	gap: 2px;
	color: var(--ap-amber);
	font-size: 18px;
}

.ap-rating .material-symbols-outlined {
	font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ap-rating .is-muted {
	color: var(--ap-outline);
}

.ap-rating strong {
	margin-left: 8px;
	color: var(--ap-primary);
	font-size: 14px;
}

.price-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
}

.price-line strong {
	color: var(--ap-primary);
	font-size: 22px;
}

.price-line del {
	color: var(--ap-muted);
	font-size: 14px;
}

.article-feature-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
}

.feature-article img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--ap-radius);
	margin-bottom: 14px;
	transition: transform 0.45s ease;
}

.feature-article.is-large img {
	aspect-ratio: 16 / 10;
}

.feature-article span {
	color: var(--ap-primary);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.feature-article p {
	color: var(--ap-muted);
}

.coupon-band {
	padding: 72px 0;
	background: var(--ap-inverse);
	color: var(--ap-white);
}

.coupon-band h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 32px;
}

.coupon-band h2 span {
	color: var(--ap-amber);
}

.coupon-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coupon-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px;
	background: var(--ap-white);
	color: var(--ap-text);
	border-left: 8px solid var(--ap-primary);
	border-radius: var(--ap-radius);
}

.coupon-card.secondary {
	border-left-color: var(--ap-secondary);
}

.coupon-card.amber {
	border-left-color: var(--ap-amber);
}

.coupon-card div {
	display: grid;
	gap: 3px;
}

.coupon-card small {
	font-weight: 800;
}

.coupon-card span {
	color: var(--ap-muted);
	font-size: 12px;
}

.coupon-card button {
	border: 1px dashed currentColor;
	border-radius: var(--ap-radius-sm);
	background: var(--ap-primary-soft);
	color: var(--ap-primary);
	padding: 8px 12px;
	font-weight: 800;
	cursor: pointer;
}

.newsletter-section {
	padding: 72px 0;
	text-align: center;
	background: var(--ap-surface);
}

.newsletter-section .ap-container {
	max-width: 760px;
}

.newsletter-section h2 {
	margin: 0 0 12px;
}

.newsletter-section p {
	color: var(--ap-muted);
}

.newsletter-section form {
	display: flex;
	gap: 12px;
	max-width: 620px;
	margin: 26px auto 10px;
}

.newsletter-section small {
	color: var(--ap-outline-strong);
}

.site-footer {
	background: var(--ap-inverse);
	color: #d9e3f6;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr repeat(3, 1fr);
	gap: 64px;
	padding-block: 72px;
}

.site-footer h2 {
	margin: 0 0 18px;
	color: var(--ap-white);
	font-size: 16px;
}

.site-footer ul {
	display: grid;
	gap: 12px;
}

.site-footer a:hover {
	color: var(--ap-white);
}

.footer-title {
	display: inline-block;
	color: var(--ap-white);
	margin-bottom: 20px;
}

.footer-social {
	display: flex;
	gap: 12px;
}

.footer-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 24px;
	text-align: center;
}

.ap-archive-layout,
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 40px;
	padding-block: 48px 96px;
}

.archive-header {
	margin-bottom: 34px;
}

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	color: var(--ap-muted);
	font-size: 13px;
}

.breadcrumb a:hover {
	color: var(--ap-primary);
}

.breadcrumb span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 24px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--ap-outline);
}

.filter-row button {
	border: 1px solid var(--ap-outline-strong);
	border-radius: var(--ap-radius-sm);
	background: var(--ap-white);
	color: var(--ap-muted);
	padding: 10px 22px;
	cursor: pointer;
}

.filter-row button.is-active,
.filter-row button:hover {
	border-color: var(--ap-primary);
	background: var(--ap-primary);
	color: var(--ap-white);
}

.post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-date {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ap-muted);
	font-size: 13px;
}

.post-card p {
	margin: 0;
	color: var(--ap-muted);
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	color: var(--ap-primary);
	font-weight: 800;
}

.archive-sidebar,
.single-sidebar {
	display: grid;
	align-content: start;
	gap: 28px;
}

.archive-sidebar .ap-card,
.single-sidebar .ap-card {
	padding: 24px;
}

.archive-sidebar h2,
.single-sidebar h2,
.widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	font-size: 22px;
}

.mini-post {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 14px;
	margin-top: 18px;
}

.mini-post img {
	width: 80px;
	height: 80px;
	border-radius: var(--ap-radius-sm);
	object-fit: cover;
}

.mini-post strong {
	display: block;
	line-height: 1.35;
}

.mini-post small {
	color: var(--ap-muted);
}

.promo-box {
	position: relative;
	overflow: hidden;
	padding: 32px;
	border-radius: var(--ap-radius);
	background: var(--ap-primary-hover);
	color: var(--ap-white);
}

.promo-box > span {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ap-amber);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.newsletter-box {
	background: var(--ap-inverse);
	color: var(--ap-white);
}

.newsletter-box p {
	color: var(--ap-surface-high);
}

.newsletter-box form {
	display: grid;
	gap: 12px;
}

.single-layout {
	grid-template-columns: minmax(0, 860px) minmax(300px, 360px);
	align-items: start;
}

.single-header h1 {
	margin-bottom: 24px;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--ap-outline);
	border-bottom: 1px solid var(--ap-outline);
}

.post-meta img {
	border-radius: 999px;
}

.post-meta div,
.post-meta span {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.post-meta div {
	display: block;
}

.post-meta strong {
	display: block;
	color: var(--ap-primary);
}

.post-meta span {
	display: inline-flex;
	margin-right: 10px;
	color: var(--ap-muted);
	font-size: 14px;
}

.post-meta .material-symbols-outlined {
	font-size: 16px;
}

.single-featured img {
	width: 100%;
	margin: 32px 0;
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
}

.toc-box {
	padding: 24px;
	margin-bottom: 34px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	background: var(--ap-surface-low);
}

.toc-box h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--ap-primary);
	font-size: 18px;
}

.toc-box ol {
	margin: 0;
	padding-left: 22px;
	color: var(--ap-muted);
}

.toc-box a:hover {
	color: var(--ap-primary);
}

.prose {
	color: var(--ap-muted);
}

.prose h2,
.prose h3 {
	color: var(--ap-primary);
	line-height: 1.3;
}

.prose h2 {
	margin: 42px 0 16px;
	font-size: 28px;
}

.prose h3 {
	margin: 24px 0 12px;
	font-size: 20px;
}

.prose p {
	margin: 0 0 20px;
}

.prose a {
	color: var(--ap-primary);
	text-decoration: underline;
}

.comparison-table {
	overflow-x: auto;
	margin: 28px 0;
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow);
}

.comparison-table table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	background: var(--ap-white);
}

.comparison-table th {
	background: var(--ap-primary);
	color: var(--ap-white);
	text-align: left;
}

.comparison-table th,
.comparison-table td {
	padding: 16px;
	border-bottom: 1px solid var(--ap-outline);
}

.comparison-table tbody tr:nth-child(even) {
	background: #f9fbff;
}

.pros-cons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 32px 0;
}

.pros,
.cons {
	padding: 24px;
	border-radius: var(--ap-radius);
}

.pros {
	background: var(--ap-success-bg);
	border: 1px solid #bbf7d0;
	color: var(--ap-success);
}

.cons {
	background: var(--ap-danger-bg);
	border: 1px solid #fecdd3;
	color: var(--ap-danger);
}

.recommendation-card {
	position: relative;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 28px;
	align-items: center;
	margin: 48px 0;
	padding: 32px;
	border: 2px solid var(--ap-primary);
	border-radius: var(--ap-radius);
	background: var(--ap-white);
	box-shadow: var(--ap-shadow);
}

.recommendation-card .recommendation-badge {
	position: absolute;
	top: 0;
	right: 0;
	padding: 8px 18px;
	border-bottom-left-radius: var(--ap-radius);
	background: var(--ap-primary);
	color: var(--ap-white);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.recommendation-card .recommendation-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ap-radius-sm);
}

.recommendation-card .recommendation-content h2 {
	margin: 8px 0 10px;
	font-size: 24px;
}

.recommendation-card .recommendation-actions,
.post-card .recommendation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.post-card-product {
	position: relative;
}

.post-card-product .recommendation-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 5px 9px;
	border-radius: var(--ap-radius-sm);
	background: var(--ap-primary);
	color: var(--ap-white);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.related-posts {
	padding-top: 32px;
	margin-top: 42px;
	border-top: 1px solid var(--ap-outline);
}

.related-posts h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
}

.related-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.related-card strong,
.related-card span {
	display: block;
	padding: 0 18px;
}

.related-card strong {
	padding-top: 16px;
	line-height: 1.35;
}

.related-card span {
	padding-bottom: 18px;
	color: var(--ap-muted);
	font-size: 14px;
}

.sticky-toc {
	position: sticky;
	top: 104px;
}

.sticky-toc a {
	display: block;
	padding: 8px 0 8px 12px;
	border-left: 2px solid transparent;
	color: var(--ap-muted);
}

.sticky-toc a:hover {
	border-color: var(--ap-primary);
	color: var(--ap-primary);
}

.comments-area {
	padding: 32px;
	margin-top: 48px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	background: var(--ap-surface-low);
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 20px;
	padding: 18px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	background: var(--ap-white);
}

.comment-form {
	display: grid;
	gap: 12px;
}

.comment-form textarea {
	min-height: 140px;
}

.narrow-page {
	max-width: 960px;
	padding-block: 56px 96px;
}

.ap-page-content {
	padding: 32px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
	background: var(--ap-white);
}

.empty-state {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 48px;
	text-align: center;
}

.empty-state > .material-symbols-outlined {
	color: var(--ap-primary);
	font-size: 54px;
}

.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius-sm);
	background: var(--ap-white);
	font-weight: 700;
}

.page-numbers.current {
	background: var(--ap-primary);
	color: var(--ap-white);
	border-color: var(--ap-primary);
}

.scroll-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--ap-primary);
	color: var(--ap-white);
	box-shadow: var(--ap-shadow-lg);
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.error-404 {
	padding-block: 72px;
}

@media (max-width: 1100px) {
	.header-search {
		display: none;
	}

	.hero-grid,
	.ap-archive-layout,
	.single-layout {
		grid-template-columns: 1fr;
	}

	.single-sidebar {
		display: none;
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 820px) {
	.ap-container {
		width: min(100% - 32px, var(--ap-container));
	}

	.header-inner {
		min-height: 68px;
	}

	.menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--ap-white);
		border-bottom: 1px solid var(--ap-outline);
		box-shadow: var(--ap-shadow);
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation .menu {
		display: grid;
		gap: 0;
		width: min(100% - 32px, var(--ap-container));
		margin-inline: auto;
		padding: 12px 0;
	}

	.main-navigation a {
		display: block;
		padding: 12px 0;
	}

	.main-navigation .menu-item-has-children {
		position: static;
		display: inline-flex;
		flex-wrap: wrap;
		align-items: center;
		width: auto;
		max-width: 100%;
	}

	.main-navigation .menu-item-has-children > a {
		justify-content: flex-start;
		width: auto;
		max-width: 100%;
	}

	.main-navigation .menu-submenu-toggle {
		margin-left: 6px;
		flex-shrink: 0;
	}

	.main-navigation .sub-menu {
		display: none;
		position: static;
		flex-basis: 100%;
		width: 100%;
		padding: 0 0 4px 14px;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.main-navigation .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.main-navigation .sub-menu a {
		padding: 10px 0 10px 6px;
		font-size: 14px;
		font-weight: 500;
	}

	.main-navigation .sub-menu li + li {
		border-top: 0;
	}

	.header-actions .ap-btn {
		display: none;
	}

	.hero-section,
	.ap-section {
		padding-block: 48px;
	}

	.hero-grid {
		gap: 32px;
	}

	.hero-media {
		transform: none;
	}

	.category-grid,
	.product-grid,
	.post-grid,
	.coupon-grid,
	.article-feature-grid,
	.related-grid,
	.pros-cons,
	.footer-grid,
	.recommendation-card {
		grid-template-columns: 1fr;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-heading {
		display: grid;
		align-items: start;
	}

	.newsletter-section form {
		display: grid;
	}
}

@media (max-width: 520px) {
	.category-grid {
		grid-template-columns: 1fr;
	}

	.hero-copy h1,
	.archive-header h1,
	.single-header h1,
	.entry-header h1 {
		font-size: 34px;
	}

	.product-body,
	.post-card-body,
	.comments-area,
	.ap-page-content {
		padding: 20px;
	}

	.coupon-card {
		display: grid;
	}
}

/* Visual alignment pass: closer to the supplied BanChay24h mockups. */
body {
	background: #f5f7ff;
	color: #101828;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.ap-container {
	width: min(100% - 32px, 1240px);
}

/*
 * Keep the content frame centred on every page type.  Product pages place an
 * .ap-container inside <main>, whereas archive, search, post and regular
 * page templates apply it directly to <main>.  Explicitly covering both
 * structures prevents page-specific layout rules from producing different
 * left and right gutters.
 */
.site-main.ap-container,
.site-main > .ap-container {
	margin-left: auto;
	margin-right: auto;
}

.site-header {
	background: rgba(248, 249, 255, 0.98);
	border-bottom-color: #d6dbea;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
	min-height: 64px;
	gap: 20px;
}

.site-branding {
	flex: 0 0 auto;
}

.site-title,
.footer-title {
	font-size: 22px;
	color: #00288e;
	letter-spacing: 0;
	white-space: nowrap;
}

.main-navigation {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.main-navigation .menu {
	gap: 30px;
}

.main-navigation a {
	padding-block: 20px;
	font-size: 14px;
	color: #2d3748;
}

.main-navigation .current-menu-item > a,
.main-navigation a:hover {
	color: #00288e;
	border-bottom-color: #00288e;
}

.header-actions {
	flex: 0 0 auto;
	gap: 14px;
}

.header-search input {
	width: 250px;
	height: 38px;
	border-color: #cbd5e1;
	border-radius: 4px;
	background: #eef3ff;
	font-size: 13px;
}

.ap-btn,
.search-submit,
.form-submit .submit {
	border-radius: 4px;
	font-size: 13px;
	box-shadow: none;
}

.ap-btn-primary,
.search-submit,
.form-submit .submit {
	background: #00288e;
	box-shadow: 0 6px 14px rgba(0, 40, 142, 0.18);
}

.ap-btn-primary:hover,
.search-submit:hover,
.form-submit .submit:hover {
	background: #1e40af;
}

.ap-btn-sm {
	min-height: 38px;
	padding: 9px 18px;
}

.ap-btn-lg {
	min-height: 52px;
	padding: 14px 26px;
}

.hero-section {
	padding: 58px 0 76px;
	background: linear-gradient(135deg, #f8f9ff 0%, #eaf1ff 100%);
}

.hero-grid {
	grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
	gap: 72px;
}

.hero-copy {
	gap: 22px;
}

.eyebrow {
	padding: 5px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #001453;
	font-size: 10px;
	letter-spacing: 0.02em;
}

.eyebrow .material-symbols-outlined {
	font-size: 15px;
}

.hero-copy h1 {
	max-width: 610px;
	font-size: clamp(40px, 4.8vw, 58px);
	line-height: 1.08;
	font-weight: 800;
}

.hero-copy h1::first-line {
	color: #00288e;
}

.hero-copy p {
	max-width: 570px;
	font-size: 15px;
	line-height: 1.75;
	color: #475569;
}

.hero-actions {
	gap: 14px;
	margin-top: 2px;
}

.hero-actions .ap-btn-secondary {
	background: #ffffff;
	color: #27313f;
	border-color: #cbd5e1;
	box-shadow: none;
}

.hero-media {
	padding: 14px;
	border-radius: 24px;
	transform: rotate(2deg);
	box-shadow: 0 24px 46px rgba(0, 40, 142, 0.16);
}

.hero-media img {
	border-radius: 18px;
}

.ap-section {
	padding-block: 72px;
}

.section-heading {
	margin-bottom: 34px;
}

.section-heading h2 {
	margin-bottom: 4px;
	font-size: 26px;
	line-height: 1.25;
}

.section-heading p {
	font-size: 14px;
	color: #64748b;
}

.section-heading.is-centered {
	max-width: 650px;
	margin-bottom: 44px;
}

.section-heading.is-centered h2 {
	font-size: 25px;
}

.category-grid {
	gap: 22px;
}

.category-card {
	min-height: 168px;
	padding: 34px 20px 28px;
	background: #eff4ff;
	border-color: transparent;
	box-shadow: none;
}

.category-card .material-symbols-outlined {
	width: 58px;
	height: 58px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: #dde4ff;
}

.category-card strong {
	font-size: 16px;
}

.category-card small {
	font-size: 12px;
	color: #64748b;
}

.products-band {
	background: #edf3ff;
}

.product-grid {
	gap: 28px;
}

.product-card,
.post-card,
.ap-card,
.related-card {
	border-color: #cbd5e1;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.product-card {
	display: flex;
	flex-direction: column;
}

.product-image img {
	height: 248px;
}

.post-card-image img {
	height: 235px;
}

.product-image span,
.post-card-image span {
	top: 12px;
	left: 12px;
	border-radius: 3px;
	font-size: 10px;
	letter-spacing: 0.03em;
}

.product-body {
	flex: 1;
	padding: 18px 18px 20px;
	gap: 11px;
}

.product-body h3 {
	min-height: 58px;
	font-size: 18px;
	font-weight: 600;
}

.ap-rating {
	font-size: 16px;
}

.ap-rating .material-symbols-outlined {
	font-size: 17px;
}

.ap-rating strong {
	font-size: 12px;
	color: #475569;
}

.price-line strong {
	font-size: 20px;
}

.product-body .ap-btn {
	width: 100%;
	min-height: 40px;
}

.article-feature-grid {
	grid-template-columns: 2fr 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.feature-article img {
	margin-bottom: 14px;
	border-radius: 8px;
}

.feature-article span {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10px;
	letter-spacing: 0.04em;
}

.feature-article h3 {
	font-size: 19px;
	font-weight: 600;
}

.feature-article.is-large h3 {
	font-size: 25px;
}

.feature-article p {
	font-size: 14px;
	line-height: 1.65;
	color: #64748b;
}

.coupon-band {
	padding: 64px 0;
	background: #27313f;
}

.coupon-band h2 {
	font-size: 25px;
	margin-bottom: 28px;
}

.coupon-card {
	min-height: 96px;
	padding: 20px;
	border-left-width: 6px;
	box-shadow: none;
}

.coupon-card strong {
	font-size: 18px;
	line-height: 1.25;
}

.newsletter-section {
	padding: 68px 0;
	background: linear-gradient(90deg, #f8f9ff 0%, #eef3ff 50%, #f8f9ff 100%);
}

.newsletter-section h2 {
	font-size: 25px;
}

.newsletter-section p {
	max-width: 650px;
	margin-inline: auto;
	font-size: 14px;
}

.newsletter-section form {
	max-width: 570px;
}

.site-footer {
	background: #27313f;
}

.footer-grid {
	grid-template-columns: 1.15fr 0.8fr 0.8fr 1fr;
	gap: 58px;
	padding-block: 64px;
}

.footer-title {
	color: #ffffff;
}

.site-footer p,
.site-footer a {
	font-size: 14px;
	line-height: 1.7;
}

.site-footer h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.footer-bottom {
	font-size: 13px;
}

.blog-page,
.ap-archive-layout {
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 38px;
	padding-top: 42px;
}

.archive-header {
	margin-bottom: 36px;
}

.archive-header h1 {
	font-size: clamp(38px, 4vw, 52px);
}

.archive-header p {
	max-width: 680px;
	font-size: 18px;
	line-height: 1.65;
	color: #374151;
}

.filter-row {
	gap: 12px;
	margin-bottom: 38px;
}

.filter-row button {
	border-radius: 8px;
	padding: 10px 24px;
	background: transparent;
	font-size: 14px;
	color: #27313f;
}

.post-grid {
	gap: 28px;
}

.post-card-body {
	padding: 22px 24px 24px;
	gap: 12px;
}

.post-card h2 {
	font-size: 24px;
	line-height: 1.28;
}

.post-card h2 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-card p {
	font-size: 15px;
	line-height: 1.65;
	color: #475569;
}

.read-more {
	margin-top: 4px;
	font-size: 15px;
}

.archive-sidebar {
	gap: 30px;
}

.archive-sidebar .ap-card,
.single-sidebar .ap-card {
	padding: 26px;
}

.archive-sidebar h2,
.single-sidebar h2,
.widget-title {
	font-size: 22px;
	font-weight: 500;
}

.mini-post {
	grid-template-columns: 76px 1fr;
	gap: 14px;
}

.mini-post img {
	width: 76px;
	height: 76px;
}

.mini-post strong {
	font-size: 14px;
}

.promo-box {
	padding: 32px;
	background: #1e40af;
}

.promo-box h2 {
	font-size: 28px;
	line-height: 1.18;
}

.single-layout {
	grid-template-columns: minmax(0, 820px) 340px;
	gap: 40px;
	padding-top: 34px;
}

.single-header h1 {
	font-size: clamp(38px, 4.1vw, 54px);
	line-height: 1.13;
}

.single-featured img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 32px 0;
}

.toc-box {
	padding: 22px;
	background: #edf3ff;
}

.prose {
	font-size: 16px;
	line-height: 1.75;
}

.prose h2 {
	margin-top: 44px;
	font-size: 26px;
	color: #00288e;
}

.comparison-table th,
.comparison-table td {
	padding: 15px 18px;
}

.recommendation-card {
	grid-template-columns: 210px 1fr;
	gap: 24px;
	padding: 30px;
	border-radius: 8px;
}

.comments-area {
	background: #edf3ff;
}

.inner-page {
	max-width: 1040px;
	padding-block: 36px 64px;
}

.inner-page .ap-page-content {
	padding: 28px 32px;
	border-radius: 8px;
	box-shadow: none;
}

.inner-page .entry-header h1 {
	margin: 0 0 18px;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.18;
}

.inner-products-page .compact-hero {
	padding: 34px 0 28px;
	background: #f6f8ff;
}

.inner-products-page .compact-hero .hero-copy {
	max-width: 820px;
	gap: 14px;
}

.inner-products-page .compact-hero .hero-copy h1 {
	max-width: 780px;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.16;
}

.inner-products-page .compact-hero .hero-copy p {
	max-width: 760px;
	font-size: 14px;
	line-height: 1.65;
}

.inner-products-page .compact-hero + .products-band {
	padding-block: 36px 58px;
}

.inner-products-page .product-filter {
	grid-template-columns: minmax(260px, 1fr) 170px 170px auto;
	align-items: end;
	margin-bottom: 22px;
	padding: 16px;
	border-radius: 8px;
	box-shadow: none;
}

.inner-products-page .product-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.inner-products-page .product-image img {
	height: 198px;
}

.inner-products-page .product-body {
	padding: 16px;
	gap: 10px;
}

.inner-products-page .product-body h3 {
	min-height: 48px;
	font-size: 16px;
	line-height: 1.35;
}

.inner-products-page .price-line strong {
	font-size: 18px;
}

.inner-single-page {
	display: block;
	max-width: 920px;
	padding-block: 30px 64px;
}

.inner-single-page .breadcrumb {
	margin-bottom: 16px;
}

.inner-single-page .single-header h1 {
	margin-bottom: 18px;
	font-size: clamp(30px, 3.25vw, 46px);
	line-height: 1.16;
}

.inner-single-page .post-meta {
	padding-block: 12px;
}

.inner-single-page .single-featured img {
	margin: 24px 0;
	border-radius: 8px;
	box-shadow: none;
}

.inner-single-page .prose {
	font-size: 15.5px;
	line-height: 1.72;
}

.inner-single-page .prose h2 {
	margin-top: 34px;
	font-size: 24px;
}

.inner-single-page .recommendation-card {
	margin: 36px 0;
	padding: 24px;
}

.inner-single-page .related-posts {
	margin-top: 32px;
	padding-top: 26px;
}

.inner-single-page .comments-area {
	margin-top: 36px;
	padding: 24px;
}

@media (max-width: 1180px) {
	.main-navigation .menu {
		gap: 20px;
	}

	.header-search input {
		width: 210px;
	}

	.blog-page,
	.ap-archive-layout,
	.single-layout {
		grid-template-columns: 1fr;
	}

	.inner-products-page .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.inner-products-page .product-filter {
		grid-template-columns: minmax(240px, 1fr) 1fr 1fr;
	}

	.inner-products-page .product-filter-actions {
		grid-column: 1 / -1;
	}

	.single-sidebar {
		display: none;
	}
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hero-copy h1 {
		font-size: 40px;
	}

	.product-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.inner-products-page .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-filter {
		grid-template-columns: 1fr 1fr;
	}

	.product-filter-search,
	.product-filter-actions {
		grid-column: 1 / -1;
	}

	.article-feature-grid {
		grid-template-columns: 1fr 1fr;
	}

	.feature-article.is-large {
		grid-column: 1 / -1;
	}
}

@media (max-width: 820px) {
	.main-navigation {
		justify-content: start;
	}

	.main-navigation a {
		padding: 12px 0;
	}

	.header-inner {
		min-height: 64px;
	}

	.site-title {
		font-size: 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.ap-container {
		width: min(100% - 28px, 1240px);
	}

	.hero-section {
		padding: 40px 0 52px;
	}

	.inner-page {
		padding-block: 24px 44px;
	}

	.inner-page .ap-page-content {
		padding: 22px 18px;
	}

	.inner-products-page .compact-hero {
		padding: 28px 0 24px;
	}

	.inner-products-page .compact-hero + .products-band {
		padding-block: 28px 44px;
	}

	.hero-copy h1,
	.archive-header h1,
	.single-header h1 {
		font-size: 34px;
	}

	.hero-copy p,
	.archive-header p {
		font-size: 15px;
	}

	.category-grid,
	.product-grid,
	.post-grid,
	.article-feature-grid,
	.coupon-grid,
	.related-grid,
	.pros-cons,
	.footer-grid,
	.recommendation-card {
		grid-template-columns: 1fr;
	}

	.hero-actions,
	.newsletter-section form,
	.recommendation-card .recommendation-actions,
	.post-card .recommendation-actions {
		display: grid;
	}

	.product-filter {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.inner-products-page .product-filter,
	.inner-products-page .product-grid {
		grid-template-columns: 1fr;
	}

	.product-filter-search,
	.product-filter-actions {
		grid-column: auto;
	}

	.product-filter-actions {
		display: grid;
	}

	.product-image img,
	.post-card-image img {
		height: 220px;
	}
}

@media (min-width: 821px) {
	.header-inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 20px;
	}

	.site-branding,
	.header-actions {
		min-width: 0;
	}

	.site-branding {
		max-width: min(100%, 280px);
	}

	.custom-logo {
		max-width: 100%;
		height: auto;
	}

	.main-navigation {
		min-width: 0;
		width: 100%;
	}

	.main-navigation .menu {
		flex-wrap: nowrap;
		justify-content: center;
		gap: clamp(14px, 1.8vw, 28px);
	}

	.main-navigation li {
		min-width: 0;
	}

	.main-navigation a {
		display: block;
		white-space: nowrap;
		padding-block: 20px;
	}

	.header-actions {
		display: flex;
		justify-content: flex-end;
	}

	.header-search {
		flex: 0 1 clamp(220px, 20vw, 280px);
		min-width: 220px;
	}

	.header-search input {
		width: 100%;
		min-width: 0;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
		gap: clamp(32px, 4vw, 64px);
	}

	.hero-copy,
	.hero-media {
		min-width: 0;
	}

	.hero-copy h1,
	.hero-copy p {
		max-width: none;
	}

	.hero-media img {
		width: 100%;
	}
}

@media (min-width: 821px) and (max-width: 1180px) {
	.header-inner {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"branding actions"
			"nav nav";
		row-gap: 0;
	}

	.site-branding {
		grid-area: branding;
	}

	.header-actions {
		grid-area: actions;
	}

	.main-navigation {
		grid-area: nav;
	}

	.main-navigation .menu {
		justify-content: flex-start;
		padding-bottom: 10px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.main-navigation .menu::-webkit-scrollbar {
		display: none;
	}

	.main-navigation a {
		padding-block: 14px;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
	}
}

/* Mobile usability pass: larger touch targets, denser product focus, clearer hierarchy. */
@media (max-width: 820px) {
	/* Only the homepage has full-bleed rails that need horizontal containment. */
	html:has(body.home),
	body.home {
		overflow-x: hidden;
	}

	body {
		font-size: 15px;
	}

	.ap-container {
		width: min(100% - 28px, 1240px);
	}

	.site-header {
		background: rgba(255, 255, 255, 0.98);
	}

	.header-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 44px;
		gap: 12px;
		min-height: 60px;
	}

	.site-branding {
		min-width: 0;
	}

	.site-title {
		display: block;
		overflow: hidden;
		font-size: 19px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.custom-logo {
		max-width: min(100%, 190px);
		max-height: 44px;
	}

	.menu-toggle {
		width: 44px;
		height: 44px;
		padding: 0;
		border-color: #cbd5e1;
		background: #ffffff;
		box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	}

	.menu-toggle .material-symbols-outlined {
		font-size: 26px;
	}

	.main-navigation {
		top: calc(100% + 1px);
		padding: 8px 0 14px;
		background: #ffffff;
		border-bottom-color: #cbd5e1;
		box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
	}

	.main-navigation .menu {
		width: min(100% - 28px, 1240px);
		padding: 0;
	}

	.main-navigation li + li {
		border-top: 1px solid #eef2f7;
	}

	.main-navigation a {
		min-height: 48px;
		padding: 13px 4px;
		border-bottom: 0;
		font-size: 15px;
		font-weight: 700;
	}

	.header-actions {
		display: none;
	}

	.hero-section,
	.ap-section,
	.coupon-band,
	.newsletter-section {
		padding-block: 38px;
	}

	.hero-grid {
		gap: 24px;
	}

	.hero-copy {
		gap: 16px;
	}

	.eyebrow {
		max-width: 100%;
		font-size: 10px;
		white-space: normal;
	}

	.hero-copy h1,
	.archive-header h1,
	.single-header h1,
	.entry-header h1,
	.inner-products-page .compact-hero .hero-copy h1 {
		font-size: 30px;
		line-height: 1.16;
	}

	.hero-copy p,
	.archive-header p,
	.inner-products-page .compact-hero .hero-copy p {
		font-size: 14px;
		line-height: 1.65;
	}

	.hero-actions {
		grid-template-columns: 1fr;
		gap: 10px;
		width: 100%;
	}

	.hero-actions .ap-btn,
	.ap-btn-lg {
		width: 100%;
		min-height: 48px;
	}

	.hero-media {
		padding: 8px;
		border-radius: 16px;
		box-shadow: 0 14px 28px rgba(0, 40, 142, 0.14);
	}

	.hero-media img {
		aspect-ratio: 16 / 10;
		border-radius: 12px;
	}

	.section-heading {
		gap: 10px;
		margin-bottom: 22px;
	}

	.section-heading h2,
	.section-heading.is-centered h2,
	.coupon-band h2,
	.newsletter-section h2 {
		font-size: 23px;
		line-height: 1.25;
	}

	.section-heading a {
		min-height: 42px;
		width: fit-content;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.category-card {
		min-height: 136px;
		padding: 20px 12px;
	}

	.category-card .material-symbols-outlined {
		width: 48px;
		height: 48px;
		margin-bottom: 4px;
		font-size: 25px;
	}

	.products-band {
		background: #eef4ff;
	}

	.product-grid,
	.inner-products-page .product-grid {
		gap: 16px;
	}

	.product-card {
		border-color: #b9c5d8;
		box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
	}

	.product-card:hover,
	.post-card:hover,
	.category-card:hover {
		transform: none;
	}

	.product-image img,
	.inner-products-page .product-image img {
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}

	.product-image span,
	.post-card-image span {
		top: 10px;
		left: 10px;
		max-width: calc(100% - 20px);
		padding: 6px 10px;
		font-size: 10px;
		line-height: 1.2;
	}

	.product-body,
	.inner-products-page .product-body {
		gap: 10px;
		padding: 15px;
	}

	.product-body h3,
	.inner-products-page .product-body h3 {
		min-height: 0;
		font-size: 17px;
		line-height: 1.32;
	}

	.price-line {
		justify-content: space-between;
		gap: 8px;
	}

	.price-line strong,
	.inner-products-page .price-line strong {
		font-size: 19px;
	}

	.product-body .ap-btn {
		min-height: 46px;
		font-size: 14px;
	}

	.product-body .ap-btn + .ap-btn {
		margin-top: -2px;
	}

	.product-filter,
	.inner-products-page .product-filter {
		position: sticky;
		top: 61px;
		z-index: 20;
		gap: 12px;
		margin-inline: 0;
		margin-bottom: 18px;
		padding: 14px;
		border-color: #b9c5d8;
		box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
	}

	.product-filter input {
		min-height: 46px;
		font-size: 16px;
	}

	.product-filter-actions {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.product-filter-actions .ap-btn {
		min-height: 46px;
		padding-inline: 10px;
	}

	.article-feature-grid {
		gap: 18px;
	}

	.feature-article img,
	.feature-article.is-large img {
		aspect-ratio: 16 / 10;
	}

	.feature-article h3,
	.feature-article.is-large h3 {
		font-size: 19px;
	}

	.coupon-grid {
		gap: 14px;
	}

	.coupon-card {
		align-items: stretch;
		gap: 12px;
		min-height: 0;
	}

	.coupon-card button {
		min-height: 44px;
	}

	.newsletter-section form {
		gap: 10px;
	}

	.newsletter-section input,
	.newsletter-section .ap-btn {
		min-height: 48px;
	}

	.footer-grid {
		gap: 28px;
		padding-block: 40px;
	}

	.ap-archive-layout,
	.blog-page,
	.single-layout,
	.inner-single-page {
		padding-block: 28px 48px;
	}

	.archive-sidebar {
		display: none;
	}
}

@media (max-width: 480px) {
	.ap-container {
		width: min(100% - 24px, 1240px);
	}

	.hero-copy h1,
	.archive-header h1,
	.single-header h1,
	.entry-header h1,
	.inner-products-page .compact-hero .hero-copy h1 {
		font-size: 28px;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-card strong {
		font-size: 14px;
	}

	.category-card small {
		font-size: 11px;
	}

	.product-filter-actions {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.scroll-top {
		right: 14px;
		bottom: 14px;
		width: 44px;
		height: 44px;
	}
}

.mobile-search-bar {
	display: none;
}

.single-product-summary {
	display: none;
}

.mobile-all-products-section {
	display: block;
}

.product-filter select {
	width: 100%;
	min-height: 42px;
	padding: 8px 34px 8px 12px;
	background: #fff;
	color: var(--ap-text);
	border: 1px solid var(--ap-outline);
	border-radius: var(--ap-radius);
}

.woo-product-card .price-line {
	display: flex;
	gap: 8px;
	align-items: baseline;
	color: #dc2626;
	font-size: 18px;
	font-weight: 800;
}

.woo-product-card .price-line del {
	color: var(--ap-muted);
	font-size: 13px;
	font-weight: 500;
}

.woo-product-card .price-line ins {
	color: #dc2626;
	text-decoration: none;
}

.woo-product-card .price-line ins .woocommerce-Price-amount {
	color: inherit;
}

.woo-card-stock {
	margin: 4px 0 12px;
	color: #15803d;
	font-size: 13px;
	font-weight: 700;
}

.woo-card-stock.out-of-stock {
	color: #be123c;
}

.product-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 32px;
}

.product-pagination .page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	background: #fff;
	border: 1px solid var(--ap-outline);
	border-radius: 8px;
}

.product-pagination .page-numbers.current,
.product-pagination .page-numbers:hover {
	background: var(--ap-primary);
	color: #fff;
	border-color: var(--ap-primary);
}

.woo-category-card .woo-category-media {
	display: grid;
	width: 72px;
	height: 72px;
	margin: 0 auto 12px;
	place-items: center;
	overflow: hidden;
	background: var(--ap-surface-low);
	border-radius: 50%;
}

.woo-category-card .woo-category-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.woocommerce-archive-grid {
	margin: 24px 0 32px;
}

.navbar-product-category-page {
	/* Keep category card grids aligned with the header's content frame. */
	max-width: var(--ap-container);
	padding-top: clamp(28px, 5vw, 64px);
	padding-bottom: clamp(44px, 7vw, 88px);
}

.navbar-product-category-page .ap-page-content {
	margin-bottom: 34px;
}

.navbar-category-products {
	margin-top: 28px;
}

.navbar-category-products .product-grid {
	margin-top: 22px;
}

.woocommerce .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 0;
	border: 0;
}

.woocommerce .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.woocommerce .woocommerce-pagination ul.page-numbers a,
.woocommerce .woocommerce-pagination ul.page-numbers span {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	background: #fff;
	border: 1px solid var(--ap-outline);
	border-radius: 8px;
}

.woocommerce .woocommerce-pagination ul.page-numbers .current,
.woocommerce .woocommerce-pagination ul.page-numbers a:hover {
	background: var(--ap-primary);
	color: #fff;
	border-color: var(--ap-primary);
}

/* Featured product categories. */
.featured-categories-section {
	padding-block: clamp(52px, 7vw, 88px);
}

.featured-categories-section .section-heading {
	margin-bottom: 28px;
}

.featured-categories-section .category-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.featured-categories-section .category-card {
	min-height: auto;
	padding: 20px 16px;
	background: var(--ap-white);
	border: 1px solid var(--ap-outline);
	border-radius: 12px;
	color: var(--ap-text);
	box-shadow: var(--ap-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.featured-categories-section .woo-category-media {
	position: static;
	width: 50px;
	height: 50px;
	margin: 0 auto 6px;
	background: var(--ap-primary-soft);
	border-radius: 50%;
}

.featured-categories-section .woo-category-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.featured-categories-section .category-card > .material-symbols-outlined,
.featured-categories-section .woo-category-media > .material-symbols-outlined {
	position: static;
	width: 48px;
	height: 48px;
	background: var(--ap-primary-soft);
	color: var(--ap-primary);
	font-size: 24px;
	transform: none;
}

.featured-categories-section .category-card strong,
.featured-categories-section .category-card small {
	max-width: 100%;
}

.featured-categories-section .category-card strong {
	font-size: 16px;
}

.featured-categories-section .category-card small {
	color: var(--ap-muted);
	font-size: 13px;
}

.featured-categories-section .category-card:hover {
	border-color: var(--ap-primary);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-6px);
}

/* WooCommerce shop and product category archive. */
.woo-archive-page {
	padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.woo-archive-content {
	padding: clamp(18px, 3vw, 30px);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.woo-archive-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e7edf5;
}

.woo-archive-toolbar::after {
	display: none;
}

.woo-archive-toolbar .woocommerce-result-count,
.woo-archive-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}

.woo-archive-toolbar .woocommerce-result-count {
	color: var(--ap-muted);
	font-size: 14px;
}

.woo-archive-toolbar .orderby {
	min-width: 220px;
	height: 44px;
	padding: 0 38px 0 14px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	color: var(--ap-text);
	cursor: pointer;
}

.woo-archive-page .woocommerce-archive-grid {
	margin: 0 0 36px;
}

.woo-archive-empty {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 64px 20px;
	text-align: center;
}

.woo-archive-empty > .material-symbols-outlined {
	display: grid;
	width: 72px;
	height: 72px;
	place-items: center;
	background: var(--ap-primary-soft);
	border-radius: 50%;
	color: var(--ap-primary);
	font-size: 34px;
}

@media (max-width: 767px) {
	.featured-categories-section .category-grid {
		grid-template-columns: 1fr;
	}

	.featured-categories-section .category-card {
		padding: 18px 14px;
	}

	.woo-archive-page {
		width: min(100% - 24px, var(--ap-container));
		padding-top: 18px;
	}

	.woo-archive-content {
		padding: 14px 10px 20px;
		border-radius: 12px;
	}

	.woo-archive-toolbar {
		align-items: stretch;
		flex-direction: column;
		margin-bottom: 18px;
		padding: 4px 4px 14px;
	}

	.woo-archive-toolbar .orderby {
		width: 100%;
		min-width: 0;
	}
}

/* Desktop homepage: visually separate the hero and align shopping-tip titles. */
@media (min-width: 821px) {
	.home .hero-section {
		position: relative;
		overflow: hidden;
		background:
			radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.28), transparent 30%),
			linear-gradient(135deg, #071a3d 0%, #0a2f6f 58%, #124da0 100%);
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		color: #ffffff;
	}

	.home .hero-copy {
		position: relative;
		z-index: 1;
	}

	.home .hero-copy .eyebrow {
		background: rgba(255, 255, 255, 0.12);
		border: 1px solid rgba(255, 255, 255, 0.22);
		color: #dbeafe;
	}

	.home .hero-copy h1,
	.home .hero-copy h1::first-line {
		color: #ffffff;
	}

	.home .hero-copy p {
		color: #dbe7fa;
	}

	.home .hero-actions .ap-btn-secondary {
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(255, 255, 255, 0.5);
		color: #ffffff;
	}

	.home .hero-actions .ap-btn-secondary:hover {
		background: #ffffff;
		border-color: #ffffff;
		color: #0a2f6f;
	}

	.home .hero-media {
		background: rgba(255, 255, 255, 0.95);
		box-shadow: 0 26px 54px rgba(0, 0, 0, 0.3);
	}

	.home .shopping-tips-rail .feature-article h3,
	.home .shopping-tips-rail .feature-article.is-large h3 {
		display: -webkit-box;
		min-height: 2.7em;
		overflow: hidden;
		line-height: 1.35;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}
}

/* Clear separation and strong contrast across homepage product areas. */
.home .recommended-products-section {
	background: #eef4ff;
	border-block: 1px solid #d9e5fb;
}

.home .mobile-all-products-section {
	background: #f7f9fc;
	border-bottom: 1px solid #dbe3ef;
}

.home .recommended-products-section .section-heading h2 {
	color: #08245c;
}

.home .mobile-all-products-section .section-heading h2 {
	color: #172033;
}

.home .today-products-title {
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.home .today-products-title:hover,
.home .today-products-title:focus-visible {
	color: #00288e;
	transform: translateY(-1px);
}

.home .today-products-heading {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
}

.home .today-category-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.home .today-category-links button {
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	padding: 7px 12px;
	color: #172033;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home .today-category-links button:hover,
.home .today-category-links button:focus-visible {
	background: #eef4ff;
	border-color: #c8d6f3;
	color: #172033;
}

.home .today-category-links button.is-active {
	background: #00288e;
	border-color: #00288e;
	color: #ffffff;
}

.home .product-category-panels {
	position: relative;
}

.home .product-category-panel {
	display: none;
}

.home .product-category-panel.is-active {
	display: block;
	animation: ap-home-panel-in 0.32s ease both;
}

@keyframes ap-home-panel-in {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.home .recommended-products-section .product-card,
.home .mobile-all-products-section .product-card {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d6dfec;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.home .recommended-products-section .product-body,
.home .mobile-all-products-section .product-body {
	background: #ffffff;
	color: #172033;
}

.home .recommended-products-section .product-body h3 a,
.home .mobile-all-products-section .product-body h3 a {
	color: #102a56;
}

.home .recommended-products-section .price-line strong,
.home .mobile-all-products-section .price-line strong {
	color: #b42318;
}

.home .recommended-products-section .product-card:hover,
.home .mobile-all-products-section .product-card:hover {
	border-color: #7ea2df;
	box-shadow: 0 12px 28px rgba(8, 36, 92, 0.15);
}

@media (max-width: 820px) {
	body {
		background: #f7f9fc;
		color: #111827;
	}

	.site-header {
		position: sticky;
		top: 0;
		z-index: 80;
	}

	.mobile-search-bar {
		position: sticky;
		top: 60px;
		z-index: 70;
		display: block;
		padding: 10px 0;
		background: rgba(247, 249, 252, 0.96);
		border-bottom: 1px solid #dbe3ef;
		backdrop-filter: blur(10px);
	}

	.mobile-search-row {
		display: flex;
		gap: 8px;
		align-items: center;
	}

	.mobile-search-form {
		position: relative;
		flex: 1;
	}

	.mobile-search-form > .material-symbols-outlined {
		position: absolute;
		top: 50%;
		left: 13px;
		color: #64748b;
		font-size: 21px;
		transform: translateY(-50%);
	}

	.mobile-back-button {
		display: inline-grid;
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: #64748b;
		cursor: pointer;
		place-items: center;
	}

	.mobile-back-button:focus-visible {
		outline: 2px solid #00288e;
		outline-offset: 2px;
	}

	.mobile-search-form input {
		width: 100%;
		height: 44px;
		border: 1px solid #aebbd0;
		border-radius: 8px;
		background: #ffffff;
		color: #111827;
		font-size: 16px;
		outline: 0;
		padding: 10px 12px 10px 42px;
		box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	}

	.mobile-search-form input:focus {
		border-color: #00288e;
		box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.12);
	}

	.main-navigation {
		position: fixed;
		top: 60px;
		right: 0;
		bottom: auto;
		left: 0;
		z-index: 120;
		display: block;
		/* Avoid widening the page on browsers where 100vw includes a scrollbar. */
		width: 100%;
		max-height: calc(100vh - 60px);
		max-height: calc(100dvh - 60px);
		padding: 10px 14px 18px;
		background: #ffffff;
		border-left: 0;
		border-bottom: 1px solid #dbe3ef;
		box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateY(-110%);
		transition: transform 0.22s ease;
	}

	.main-navigation.is-open {
		transform: translateY(0);
	}

	.main-navigation .menu {
		width: min(100%, 520px);
		margin-inline: auto;
	}

	.main-navigation a {
		display: flex;
		align-items: center;
		min-height: 54px;
		padding: 14px 2px;
		color: #172033;
		font-size: 16px;
	}

	.menu-toggle {
		position: relative;
		z-index: 100;
	}

	.hero-section {
		padding-block: 22px 18px;
		background: #f7f9fc;
	}

	.home .hero-section {
		display: none;
	}

	.home .featured-categories-section {
		display: none;
	}

	.home .products-band {
		padding-top: 24px;
	}

	.home .recommended-products-section,
	.home .shopping-tips-section,
	.home .mobile-all-products-section {
		display: block;
		padding-block: 22px;
	}

	.home .recommended-products-section .section-heading,
	.home .shopping-tips-section .section-heading,
	.home .mobile-all-products-section .section-heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}

	.home .today-products-heading {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
	}

	.home .today-products-title {
		flex: 0 0 auto;
	}

	.home .today-category-links {
		flex: 1 1 0;
		min-width: 0;
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		padding: 2px 0 8px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		touch-action: pan-x;
		font-size: 13px;
		-webkit-overflow-scrolling: touch;
	}

	.home .today-category-links::-webkit-scrollbar {
		display: none;
	}

	.home .today-category-links button {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.home .recommended-products-section .section-heading p,
	.home .shopping-tips-section .section-heading p {
		display: none;
	}

	.home .recommended-products-section .section-heading h2,
	.home .shopping-tips-section .section-heading h2,
	.home .mobile-all-products-section .section-heading h2 {
		margin: 0;
		font-size: 20px;
		line-height: 1.25;
	}

	.home .shopping-tips-section .section-heading a {
		min-height: 36px;
		font-size: 13px;
		white-space: nowrap;
	}

	.home .recommended-product-rail,
	.home .shopping-tips-rail {
		display: flex;
		gap: 12px;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		margin-inline: 0;
		padding: 2px 0 12px;
		scroll-padding-inline: 0;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.home .recommended-product-rail::-webkit-scrollbar,
	.home .shopping-tips-rail::-webkit-scrollbar {
		height: 4px;
	}

	.home .recommended-product-rail::-webkit-scrollbar-thumb,
	.home .shopping-tips-rail::-webkit-scrollbar-thumb {
		background: #b9c5d8;
		border-radius: 999px;
	}

	.home .recommended-product-rail .product-card {
		flex: 0 0 148px;
		scroll-snap-align: start;
	}

	.home .recommended-product-rail .product-image img {
		aspect-ratio: 1 / 1;
	}

	.home .recommended-product-rail .product-body {
		padding: 9px;
		gap: 6px;
	}

	.home .recommended-product-rail .product-body h3 {
		min-height: 38px;
		font-size: 13px;
		line-height: 1.35;
	}

	.home .recommended-product-rail .price-line strong {
		font-size: 14px;
	}

	.home .shopping-tips-rail .feature-article {
		flex: 0 0 190px;
		scroll-snap-align: start;
		padding: 0;
	}

	.home .shopping-tips-rail .feature-article img,
	.home .shopping-tips-rail .feature-article.is-large img {
		aspect-ratio: 4 / 3;
		margin-bottom: 8px;
		border-radius: 8px;
	}

	.home .shopping-tips-rail .feature-article span {
		margin-bottom: 4px;
		font-size: 10px;
	}

	.home .shopping-tips-rail .feature-article h3,
	.home .shopping-tips-rail .feature-article.is-large h3 {
		display: -webkit-box;
		overflow: hidden;
		margin: 0;
		font-size: 14px;
		line-height: 1.38;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.home .shopping-tips-rail .feature-article p {
		display: none;
	}

	.home .all-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.product-image span {
		display: none;
	}

	.product-body .ap-rating {
		display: none;
	}

	.product-body h3,
	.inner-products-page .product-body h3 {
		display: -webkit-box;
		overflow: hidden;
		min-height: 40px;
		color: #111827;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.4;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.price-line {
		display: block;
		min-height: 24px;
	}

	.price-line strong,
	.inner-products-page .price-line strong {
		display: block;
		overflow: hidden;
		color: #00288e;
		font-size: 15px;
		font-weight: 800;
		line-height: 1.35;
		text-overflow: ellipsis;
		white-space: nowrap;
	}


	/* Keep both sale and regular prices visible in mobile product cards. */
	.woo-product-card .price-line {
		display: flex;
		flex-wrap: wrap;
		gap: 2px 8px;
		min-height: 42px;
	}

	.woo-product-card .price-line ins {
		order: 1;
		flex-basis: 100%;
	}

	.woo-product-card .price-line del {
		display: block;
		order: 2;
		color: var(--ap-muted);
		font-size: 12px;
		line-height: 1.3;
	}

	.product-body .ap-btn-primary {
		display: none;
	}

	.product-body .ap-btn-ghost {
		width: 100%;
		min-height: 38px;
		border-color: #00288e;
		background: #00288e;
		color: #ffffff;
		font-size: 12px;
		font-weight: 800;
		padding: 8px 6px;
	}

	.product-filter,
	.inner-products-page .product-filter {
		position: static;
		margin-inline: 0;
		padding: 12px;
		border-radius: 8px;
		box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
	}

	.product-filter label {
		font-size: 12px;
	}

	.product-filter-actions {
		grid-template-columns: 1fr 1fr;
	}

	.product-filter-actions .ap-btn {
		font-size: 13px;
	}

	.inner-products-page .compact-hero {
		padding: 20px 0 14px;
	}

	.inner-products-page .compact-hero .eyebrow,
	.inner-products-page .compact-hero .hero-copy p {
		display: none;
	}

	.inner-products-page .compact-hero .hero-copy h1 {
		font-size: 24px;
	}

	.single-layout,
	.inner-single-page {
		width: min(100% - 24px, 1240px);
		padding-top: 20px;
	}

	.breadcrumb,
	.single-header .post-meta {
		display: none;
	}

	.single-header h1 {
		margin-bottom: 14px;
		font-size: 25px;
		line-height: 1.24;
	}

	.single-featured img {
		aspect-ratio: 1 / 1;
		margin: 0 0 12px;
		border-radius: 8px;
		box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
	}

	.single-product-summary {
		display: grid;
		gap: 10px;
		margin-bottom: 18px;
		padding: 14px;
		border: 1px solid #dbe3ef;
		border-radius: 8px;
		background: #ffffff;
	}

	.single-product-summary .ap-rating {
		font-size: 15px;
	}

	.single-product-summary .ap-rating .material-symbols-outlined {
		font-size: 16px;
	}

	.single-product-price {
		color: #00288e;
		font-size: 22px;
		font-weight: 800;
		line-height: 1.2;
	}

	.single-product-summary p {
		margin: 0;
		color: #475569;
		font-size: 14px;
		line-height: 1.6;
	}

	.single-product-summary .ap-btn {
		min-height: 46px;
	}

	.prose {
		color: #334155;
		font-size: 15px;
		line-height: 1.72;
	}

	.prose h2 {
		margin-top: 28px;
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.product-grid,
	.inner-products-page .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.product-body,
	.inner-products-page .product-body {
		padding: 9px;
	}

	.product-body h3,
	.inner-products-page .product-body h3 {
		font-size: 13px;
	}

	.price-line strong,
	.inner-products-page .price-line strong {
		font-size: 14px;
	}

	.product-body .ap-btn-ghost {
		min-height: 36px;
	}
}

.menu-overlay,
.menu-close {
	display: none;
}

/* Consistent article/product card grid. */
.product-grid,
.post-grid,
.inner-products-page .product-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.product-card,
.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover,
.post-card:hover {
	border-color: rgba(0, 40, 142, 0.2);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	transform: translateY(-4px);
}

.product-image,
.post-card-image {
	flex: 0 0 auto;
	aspect-ratio: 4 / 3;
}

.product-image img,
.post-card-image img {
	display: block;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.product-body,
.post-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.product-body h3,
.post-card h2 {
	min-height: calc(1.35em * 2);
	font-size: 17px;
	line-height: 1.35;
}

.product-body h3 a,
.post-card h2 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-card p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.product-body > .ap-btn:first-of-type,
.post-card .recommendation-actions {
	margin-top: auto;
}

.product-body .ap-btn,
.post-card .recommendation-actions .ap-btn {
	width: 100%;
}

/* Archive cards need the full container width to retain five useful columns. */
.ap-archive-layout,
.blog-page {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) and (max-width: 1199px) {
	.product-grid,
	.post-grid,
	.inner-products-page .product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.product-grid,
	.post-grid,
	.inner-products-page .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.product-grid,
	.post-grid,
	.inner-products-page .product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.product-body,
	.post-card-body,
	.inner-products-page .product-body {
		gap: 8px;
		padding: 10px;
	}

	.product-body h3,
	.post-card h2,
	.inner-products-page .product-body h3 {
		font-size: 14px;
	}
}

@media (max-width: 820px) {
	/* Keep full-width horizontal rails from increasing the document width. */
	html:has(body.home),
	body.home {
		overflow-x: hidden;
	}

	body.menu-is-open {
		overflow: hidden;
	}

	body.menu-is-open .site-header {
		z-index: 140;
	}

	.menu-overlay {
		position: fixed;
		inset: 0;
		z-index: 110;
		display: block;
		background: rgba(15, 23, 42, 0.42);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.18s ease;
	}

	body.menu-is-open .menu-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 130;
		display: block;
		width: min(84vw, 340px);
		max-height: none;
		height: 100vh;
		height: 100dvh;
		padding: 72px 18px 22px;
		background: #ffffff;
		border-left: 1px solid #dbe3ef;
		border-bottom: 0;
		box-shadow: -18px 0 42px rgba(15, 23, 42, 0.2);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(104%);
		transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
		visibility: hidden;
		will-change: transform;
	}

	.main-navigation.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.main-navigation .menu {
		width: 100%;
		margin: 0;
	}

	.menu-close {
		position: absolute;
		top: 14px;
		right: 14px;
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border: 1px solid #dbe3ef;
		border-radius: 8px;
		background: #ffffff;
		color: #172033;
		box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
		cursor: pointer;
	}

	.menu-close .material-symbols-outlined {
		font-size: 24px;
	}

	.main-navigation li + li {
		border-top: 1px solid #edf2f7;
	}

	.main-navigation a {
		min-height: 54px;
		padding: 14px 4px;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.25;
	}

	.mobile-search-bar {
		top: 60px;
	}

	.single-layout,
	.inner-single-page {
		width: min(100% - 22px, 1240px);
		padding-block: 14px 38px;
	}

	.single-header h1 {
		margin-bottom: 10px;
		font-size: 21px;
		line-height: 1.28;
		font-weight: 800;
	}

	.single-featured img {
		aspect-ratio: 4 / 3;
		margin: 0 0 10px;
		border-radius: 8px;
	}

	.single-product-summary {
		gap: 8px;
		margin-bottom: 14px;
		padding: 12px;
		border-radius: 8px;
	}

	.single-product-summary .ap-rating {
		font-size: 13px;
	}

	.single-product-summary .ap-rating .material-symbols-outlined {
		font-size: 15px;
	}

	.single-product-summary .ap-rating strong {
		font-size: 12px;
	}

	.single-product-price {
		font-size: 19px;
	}

	.single-product-summary p {
		display: -webkit-box;
		overflow: hidden;
		font-size: 13px;
		line-height: 1.55;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}

	.single-product-summary .ap-btn {
		min-height: 42px;
		font-size: 13px;
	}

	.prose {
		font-size: 14px;
		line-height: 1.68;
	}

	.prose p {
		margin-bottom: 14px;
	}

	.prose h2 {
		margin: 24px 0 10px;
		font-size: 19px;
		line-height: 1.32;
	}

	.prose h3 {
		margin: 18px 0 8px;
		font-size: 17px;
	}

	.recommendation-card,
	.comments-area,
	.related-posts {
		margin-top: 24px;
	}

	.product-grid .woo-product-card .ap-btn-primary {
		display: inline-flex;
		width: 100%;
		min-height: 44px;
		margin-top: auto;
		align-items: center;
		justify-content: center;
		background: var(--ap-primary);
		color: var(--ap-white);
		border-color: var(--ap-primary);
		font-size: 13px;
		font-weight: 700;
	}

	.woo-product-card:focus-visible {
		outline: 3px solid rgba(0, 40, 142, 0.35);
		outline-offset: 3px;
	}
}

/* Simple and consistent filters. */
.product-filter,
.inner-products-page .product-filter {
	display: grid;
	grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 1fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
	gap: 14px;
	align-items: end;
	margin-bottom: 28px;
	padding: 20px;
	background: #fff;
	border: 1px solid #dfe5ee;
	border-radius: 12px;
	box-shadow: none;
}

.product-filter-field {
	gap: 6px;
}

.product-filter label {
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.product-filter input,
.product-filter select {
	width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: var(--ap-text);
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-filter input::placeholder {
	color: #94a3b8;
}

.product-filter input:hover,
.product-filter select:hover {
	border-color: #94a3b8;
}

.product-filter input:focus,
.product-filter select:focus {
	border-color: var(--ap-primary);
	box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.1);
}

.product-filter-actions {
	display: flex;
	grid-column: 1 / -1;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 2px;
}

.product-filter-actions .ap-btn {
	min-width: 116px;
	min-height: 42px;
	border-radius: 8px;
	font-size: 14px;
}

.product-filter-actions .ap-btn-ghost {
	background: #fff;
	border: 1px solid #cbd5e1;
	color: #475569;
}

.product-filter-actions .ap-btn-ghost:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.woo-archive-toolbar {
	min-height: 60px;
	margin-bottom: 22px;
	padding: 8px 0 16px;
	border-bottom: 1px solid #e5eaf1;
}

.woo-archive-toolbar .woocommerce-result-count {
	color: #64748b;
	font-size: 14px;
}

.woo-archive-toolbar .orderby {
	height: 42px;
	min-width: 210px;
	padding: 0 36px 0 12px;
	background-color: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #334155;
	font-size: 14px;
	outline: none;
}

.woo-archive-toolbar .orderby:focus {
	border-color: var(--ap-primary);
	box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.1);
}

.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e5eaf1;
}

.filter-row button {
	min-height: 38px;
	padding: 8px 15px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.filter-row button:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: var(--ap-text);
}

.filter-row button.is-active {
	background: var(--ap-primary);
	border-color: var(--ap-primary);
	color: #fff;
}

@media (max-width: 900px) {
	.product-filter,
	.inner-products-page .product-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-filter-search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.product-filter,
	.inner-products-page .product-filter {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px;
	}

	.product-filter-search,
	.product-filter-actions {
		grid-column: auto;
	}

	.product-filter-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding-top: 4px;
	}

	.product-filter-actions .ap-btn {
		width: 100%;
		min-width: 0;
	}

	.woo-archive-toolbar {
		gap: 10px;
	}

	.woo-archive-toolbar .orderby {
		width: 100%;
		min-width: 0;
	}

	.filter-row {
		flex-wrap: nowrap;
		margin-inline: 0;
		padding-inline: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.filter-row::-webkit-scrollbar {
		display: none;
	}

	.filter-row button {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/*
 * Homepage mobile containment.
 *
 * These sections previously used full-bleed horizontal rails.  Their negative
 * margins and fixed card widths made the document wider than a phone viewport,
 * so swiping anywhere on the homepage could move the whole page sideways.
 * Keep each rail within the viewport while preserving its own horizontal scroll.
 */
@media (max-width: 820px) {
	/* The document scroller is <html> on mobile browsers, not always <body>. */
	html:has(body.home),
	body.home {
		overflow-x: hidden;
	}

	/* Match the 14px mobile container gutters; retain each rail's own scrolling. */
	.home .recommended-product-rail,
	.home .shopping-tips-rail {
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	/* The narrow-phone container uses 12px gutters. */
	.home .recommended-product-rail,
	.home .shopping-tips-rail {
		width: 100%;
		margin-inline: 0;
		padding-inline: 0;
		scroll-padding-inline: 0;
	}
}

/*
 * Final mobile overflow guard for all templates.
 *
 * Keep the document at the viewport width. Homepage rails retain their own
 * horizontal scrolling without enlarging the root scroll area.
 */
@media (max-width: 820px) {
	html,
	body {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden !important;
		overscroll-behavior-x: none;
	}

	#primary,
	#primary > section,
	.ap-container {
		min-width: 0;
		max-width: 100%;
	}

	#primary {
		width: 100%;
		overflow-x: hidden;
	}

	/* Preserve horizontal swipe on each rail without allowing page-level swipe. */
	body.home .recommended-product-rail,
	body.home .shopping-tips-rail {
		width: 100%;
		margin-inline: 0;
		padding-inline: 0;
		scroll-padding-inline: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
	}
}
