/*
 * Hooshinex inner-page layouts (complements the canonical main.css design
 * system extracted from the approved static design).
 */

/* ===== Inner page hero ===== */

.hx-page-hero {
	padding: 3rem 0 2.5rem;
	background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 50%, var(--bg-light) 100%);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--bg-subtle);
}

.hx-page-hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 40%;
	height: 140%;
	background: radial-gradient(ellipse, rgba(31, 46, 99, 0.04) 0%, transparent 70%);
	pointer-events: none;
}

@media (min-width: 640px) {
	.hx-page-hero { padding: 4rem 0 3rem; }
}

.hx-page-title {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--primary);
	line-height: 1.5;
	margin: 0.5rem 0 0.25rem;
}

@media (min-width: 768px) {
	.hx-page-title { font-size: 2.125rem; }
}

.hx-page-sub {
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 1.9;
	max-width: 46rem;
	margin: 0.25rem 0 0;
}

/* ===== Breadcrumbs ===== */

.hx-breadcrumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.75rem;
	color: var(--text-light);
}

.hx-breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.hx-breadcrumbs li:not(:last-child)::after {
	content: '/';
	color: var(--black-30);
}

.hx-breadcrumbs a { color: var(--text-light); transition: color 0.2s; }
.hx-breadcrumbs a:hover { color: var(--primary); }
.hx-breadcrumbs [aria-current] { color: var(--primary); font-weight: 600; }

/* ===== Blog grid on archives ===== */

.hx-blog-grid { padding-top: 0; }

/* ===== Pagination ===== */

.hx-pagination, .woocommerce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	flex-wrap: wrap;
}

.hx-pagination .nav-links, .woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.375rem;
	height: 2.375rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	background: var(--white);
	border: 1.5px solid var(--bg-subtle);
	color: var(--text);
	font-size: 0.8125rem;
	font-weight: 600;
	transition: all 0.2s;
}

.hx-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--white);
}

.hx-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover {
	border-color: var(--primary-20);
	color: var(--primary);
}

.hx-pagination .page-numbers.dots { border: none; background: none; }

/* ===== Article (single post) ===== */

.hx-article-hero .hx-article-tag {
	display: inline-block;
	margin-bottom: 0.75rem;
}

.hx-article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 1rem;
	color: var(--text-light);
	font-size: 0.8125rem;
}

.hx-article-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.hx-article-meta-item svg { width: 1rem; height: 1rem; }

.hx-article-thumb { margin-top: -1rem; position: relative; z-index: 1; }
.hx-article-thumb img {
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
}

.hx-article-content {
	max-width: 50rem;
	margin: 3rem auto 0;
}

.hx-article-content h2 {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 2.25rem 0 0.875rem;
	padding-inline-start: 0.75rem;
	border-inline-start: 3px solid var(--secondary);
}

.hx-article-content h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 1.75rem 0 0.625rem;
}

.hx-article-content p {
	font-size: 0.9375rem;
	line-height: 2.1;
	color: var(--text);
	margin-bottom: 1.25rem;
}

.hx-article-content a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--primary-20);
	text-underline-offset: 4px;
}

.hx-article-content a:hover { text-decoration-color: var(--secondary); }

.hx-article-content ul, .hx-article-content ol {
	padding-inline-start: 1.5rem;
	margin: 1rem 0 1.5rem;
	color: var(--text);
	font-size: 0.9375rem;
	line-height: 2.1;
}

.hx-article-content li { margin-bottom: 0.5rem; }
.hx-article-content blockquote {
	border-inline-start: 3px solid var(--secondary);
	background: var(--bg-light);
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius-md);
	margin: 1.75rem 0;
	color: var(--text-dark);
	font-weight: 500;
}

.hx-article-content img { border-radius: var(--radius-lg); }

.hx-article-tags {
	max-width: 50rem;
	margin: 1.5rem auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hx-article-tags a {
	padding: 0.3rem 0.875rem;
	border-radius: 9999px;
	background: var(--primary-10);
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: 600;
	transition: all 0.2s;
}

.hx-article-tags a:hover { background: var(--primary); color: var(--white); }

.hx-article-comments { margin: 3rem auto 0; max-width: 50rem; }

/* ===== Comments ===== */

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	padding-inline-start: 2rem;
}

.comment-body {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-lg);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-sm);
}

.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { color: var(--text-dark); font-weight: 700; font-size: 0.875rem; font-style: normal; }
.comment-metadata a { color: var(--text-light); font-size: 0.75rem; }
.comment-metadata { margin-inline-start: auto; }
.comment-content { color: var(--text); font-size: 0.875rem; line-height: 1.95; }
.comment-content p { margin: 0 0 0.5rem; }
.comment-reply-link {
	display: inline-flex;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-md);
	background: var(--primary-10);
	color: var(--primary);
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 0.5rem;
}
.comment-reply-link:hover { background: var(--primary); color: var(--white); }

.comment-respond {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1.5rem;
	margin-top: 2rem;
	box-shadow: var(--shadow-base);
}

.comment-reply-title, .comments-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.comment-form label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.375rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--bg-subtle);
	border-radius: var(--radius-md);
	font-family: var(--font-family);
	font-size: 0.875rem;
	color: var(--text-dark);
	background: var(--bg-light);
	transition: border-color 0.2s, background 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--primary-20);
	background: var(--white);
	outline: none;
}

.comment-form .submit,
.comment-form input[type="submit"] {
	padding: 0.625rem 1.5rem;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: var(--radius-md);
	font-family: var(--font-family);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.comment-form .submit:hover { background: var(--primary-light); }

/* ===== 404 ===== */

.hx-404 { text-align: center; padding: 2rem 0; }
.hx-404-code {
	font-size: 6rem;
	font-weight: 800;
	line-height: 1.2;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hx-404 .hero-search {
	margin: 2rem auto 0;
	max-width: 30rem;
}

.hx-404-actions {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.75rem;
	flex-wrap: wrap;
}

/* ===== Contact page ===== */

.hx-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.hx-contact-grid { grid-template-columns: 340px 1fr; }
}

.hx-contact-cards { display: flex; flex-direction: column; gap: 0.875rem; }

.hx-contact-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-base);
	color: var(--text-dark);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hx-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-20);
	color: var(--primary);
}

.hx-contact-card .cat-icon { flex-shrink: 0; }
.hx-contact-card-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.hx-contact-card-text strong { font-size: 0.9375rem; font-weight: 700; }
.hx-contact-card-text small { font-size: 0.75rem; color: var(--text-light); }

.hx-contact-form-wrap {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
	box-shadow: var(--shadow-base);
}

.hx-contact-form-wrap h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 1.25rem;
}

.hx-form-field { display: block; margin-bottom: 1rem; }
.hx-form-field span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.375rem; }

.hx-form-field input,
.hx-form-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--bg-subtle);
	border-radius: var(--radius-md);
	font-family: var(--font-family);
	font-size: 0.875rem;
	color: var(--text-dark);
	background: var(--bg-light);
	transition: border-color 0.2s, background 0.2s;
}

.hx-form-field input:focus,
.hx-form-field textarea:focus {
	border-color: var(--primary-20);
	background: var(--white);
	outline: none;
}

.hx-form-submit {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.hx-form-submit svg { width: 1.125rem; height: 1.125rem; }

.hx-notice {
	padding: 0.875rem 1.125rem;
	border-radius: var(--radius-md);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

.hx-notice--success {
	background: rgba(30, 179, 91, 0.1);
	border: 1px solid rgba(30, 179, 91, 0.3);
	color: #178a47;
}

.hx-notice--error {
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #c53030;
}

/* ===== FAQ accordion ===== */

.hx-faq-accordion {
	max-width: 50rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hx-faq-item {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hx-faq-item.open {
	border-color: var(--primary-20);
	box-shadow: var(--shadow-md);
}

.hx-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.125rem 1.375rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: right;
	font-family: var(--font-family);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text-dark);
	transition: color 0.2s;
}

.hx-faq-item.open .hx-faq-q { color: var(--primary); }

.hx-faq-q svg {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	color: var(--text-light);
	transition: transform 0.28s ease;
}

.hx-faq-item.open .hx-faq-q svg { transform: rotate(180deg); color: var(--primary); }

.hx-faq-a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.hx-faq-item.open .hx-faq-a { grid-template-rows: 1fr; }

.hx-faq-a-inner {
	overflow: hidden;
	padding: 0 1.375rem;
}

.hx-faq-item.open .hx-faq-a-inner { padding: 0 1.375rem 1.25rem; }

.hx-faq-a-inner p { font-size: 0.875rem; line-height: 2; color: var(--text); margin: 0; }

/* ===== About page ===== */

.hx-values-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) { .hx-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hx-values-grid { grid-template-columns: repeat(4, 1fr); } }

.hx-value-card {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1.5rem 1.25rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	box-shadow: var(--shadow-base);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hx-value-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--primary-20);
}

.hx-value-card .cat-icon { width: 3.5rem; height: 3.5rem; }

.hx-value-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.hx-value-card p { font-size: 0.8125rem; color: var(--text); line-height: 1.9; margin: 0; }

/* ===== Shop (WooCommerce) ===== */

.hx-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px dashed var(--bg-subtle);
}

.hx-shop-toolbar .woocommerce-result-count {
	color: var(--text-light);
	font-size: 0.8125rem;
	margin: 0;
}

.hx-shop-toolbar .woocommerce-ordering { margin: 0; }

.hx-shop-toolbar .orderby {
	padding: 0.5rem 1.25rem;
	background: var(--white);
	border: 1.5px solid var(--bg-subtle);
	border-radius: 9999px;
	font-family: var(--font-family);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--text);
	cursor: pointer;
}

.hx-shop-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.25rem;
}

@media (min-width: 640px) { .hx-shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hx-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .hx-shop-grid { grid-template-columns: repeat(4, 1fr); } }

.hx-shop-grid > .slider-card,
.hx-shop-grid > .product-card {
	min-width: 0;
	max-width: none;
	width: auto;
}

.hx-shop-grid ul.products,
.hx-shop-grid.woocommerce ul.products {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-shop-grid .woocommerce-products-header { display: none; }
.hx-shop-grid .woocommerce-result-count,
.hx-shop-grid .woocommerce-ordering { display: none; }

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 0.875rem 1.125rem;
	border-radius: var(--radius-md);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	background: var(--primary-10);
	border: 1px solid var(--primary-20);
	color: var(--primary);
	list-style: none;
}

.woocommerce-error {
	background: rgba(239, 68, 68, 0.08);
	border-color: rgba(239, 68, 68, 0.3);
	color: #c53030;
}

/* ===== Single product ===== */

.hx-product-single { position: relative; }

.hx-product-single-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.hx-product-single-grid { grid-template-columns: 1.15fr 1fr; }
}

.hx-product-gallery .woocommerce-product-gallery {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1rem;
	box-shadow: var(--shadow-base);
}

.hx-product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.hx-product-gallery .woocommerce-product-gallery__image img {
	border-radius: var(--radius-lg);
	width: 100%;
	height: auto;
}

.hx-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 0.625rem;
	margin-top: 0.875rem;
	list-style: none;
	padding: 0;
}

.hx-product-gallery .flex-control-thumbs li { width: 72px; }
.hx-product-gallery .flex-control-thumbs img {
	border-radius: var(--radius-md);
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s;
}

.hx-product-gallery .flex-control-thumbs img.flex-active,
.hx-product-gallery .flex-control-thumbs img:hover { border-color: var(--primary-20); }

.hx-product-summary .price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--text-dark);
	display: block;
	margin-bottom: 1.25rem;
}

.hx-product-summary .price del {
	color: var(--text-light);
	font-size: 1rem;
	font-weight: 500;
	margin-inline-end: 0.5rem;
}

.hx-product-summary .price ins { text-decoration: none; color: var(--primary); }
.hx-product-summary .woocommerce-product-details__short-description { color: var(--text); font-size: 0.9375rem; line-height: 2; margin-bottom: 1.5rem; }
.hx-product-summary .woocommerce-product-rating { margin-bottom: 1rem; color: var(--text-light); font-size: 0.8125rem; }

.hx-product-summary form.cart {
	display: flex;
	gap: 0.75rem;
	align-items: stretch;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.hx-product-summary .single_add_to_cart_button {
	padding: 0.75rem 1.75rem;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: var(--radius-md);
	font-family: var(--font-family);
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.hx-product-summary .single_add_to_cart_button:hover { background: var(--primary-light); transform: translateY(-1px); }

.hx-product-summary .qty {
	padding: 0.75rem 0.5rem;
	width: 4.5rem;
	text-align: center;
	border: 1.5px solid var(--bg-subtle);
	border-radius: var(--radius-md);
	font-family: var(--font-family);
}

.hx-product-summary .product_meta {
	border-top: 1px dashed var(--bg-subtle);
	padding-top: 1.25rem;
	margin-top: 1.5rem;
	color: var(--text-light);
	font-size: 0.8125rem;
	line-height: 2;
}

.hx-product-summary .product_meta a { color: var(--primary); font-weight: 600; }

.hx-product-stats {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.75rem;
	padding: 1.25rem;
	background: var(--bg-light);
	border-radius: var(--radius-xl);
	border: 1px solid var(--bg-subtle);
	justify-content: space-around;
}

.hx-product-single .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	list-style: none;
	margin: 3rem 0 1.5rem;
	padding: 0;
}

.hx-product-single .woocommerce-tabs ul.tabs li {
	padding: 0.5rem 1.25rem;
	border-radius: 9999px;
	background: var(--bg-light);
	border: 1.5px solid var(--bg-subtle);
	font-size: 0.8125rem;
	font-weight: 600;
	transition: all 0.2s;
}

.hx-product-single .woocommerce-tabs ul.tabs li.active {
	background: var(--primary);
	border-color: var(--primary);
}

.hx-product-single .woocommerce-tabs ul.tabs li.active a { color: var(--white); }

.hx-product-single .woocommerce-tabs ul.tabs a {
	color: var(--text);
	display: block;
}

.hx-product-single .woocommerce-tabs ul.tabs li:not(.active):hover { border-color: var(--primary-20); color: var(--primary); }

.hx-product-single .woocommerce-Tabs-panel {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
}

.hx-product-single .woocommerce-Tabs-panel h2:first-of-type,
.hx-product-single .woocommerce-Tabs-panel h2:first-child {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-top: 0;
	margin-bottom: 1rem;
}

.hx-product-single .woocommerce-Tabs-panel p,
.hx-product-single #reviews #comments ol.commentlist li .comment-text p {
	font-size: 0.9375rem;
	line-height: 2;
	color: var(--text);
}

.hx-product-single .related.products > h2,
.hx-product-single .upsells > h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 3rem 0 1.5rem;
}

.hx-product-single .related ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hx-product-single .related ul.products li.product { min-width: 0; width: auto; max-width: none; }

/* Mobile buy bar */
.hx-mobile-buybar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	background: var(--white);
	border-top: 1px solid var(--bg-subtle);
	box-shadow: 0 -8px 24px rgba(31, 46, 99, 0.12);
	z-index: 90;
}

@media (max-width: 767px) {
	.hx-mobile-buybar { display: flex; }
	.hx-mobile-buybar .product-card-footer__price__original { font-size: 0.75rem; }
	.hx-mobile-buybar .product-card-footer__price { min-height: 0; width: auto; }
	.hx-mobile-buybar .product-card-footer__price::after { display: none; }
	.scroll-top { bottom: 5.25rem; }
}

/* ===== Shop sidebar widgets ===== */

.hx-shop-widget, .hx-blog-widget {
	background: var(--white);
	border: 1px solid var(--bg-subtle);
	border-radius: var(--radius-xl);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-sm);
}

.hx-shop-widget .widget-title, .hx-blog-widget .widget-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 1rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px dashed var(--bg-subtle);
}

.hx-shop-widget ul, .hx-blog-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.hx-shop-widget a, .hx-blog-widget a {
	display: block;
	padding: 0.375rem 0.5rem;
	border-radius: var(--radius-md);
	color: var(--text);
	font-size: 0.8125rem;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.hx-shop-widget a:hover, .hx-blog-widget a:hover { background: var(--primary-10); color: var(--primary); }

/* ===== Custom logo compat (WP logo vs bundled logo) ===== */

.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { height: 2.25rem; width: auto; display: block; }
@media (min-width: 768px) {
	.custom-logo-link img { height: 2.6rem; }
}

/* ===== Search form on 404 / search pages ===== */

.hx-search-form {
	margin-top: 1.5rem;
	box-shadow: var(--shadow-base);
}

/* ===== Entry content (pages / terms) ===== */

.hx-page-content {
	max-width: 50rem;
	margin: 0 auto;
}

.hx-page-content h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-dark);
	margin: 2rem 0 0.875rem;
	padding-inline-start: 0.75rem;
	border-inline-start: 3px solid var(--secondary);
}

.hx-page-content p {
	font-size: 0.9375rem;
	line-height: 2.1;
	color: var(--text);
	margin-bottom: 1.25rem;
}

/* ===== Blog image fallback (no thumbnail) ===== */

.blog-card-img {
	position: relative;
	overflow: hidden;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.blog-card-img-fallback {
	width: 100%;
	height: 100%;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-10) 0%, var(--secondary-10) 100%);
}

.blog-card-img-fallback svg { width: 3rem; height: 3rem; opacity: 0.25; }

/* ===== WooCommerce no-products / notices ===== */

.hx-shop-grid + .woocommerce-pagination { margin-top: 2.5rem; }
p.woocommerce-info { margin: 2rem 0; }
