/* ==========================================================================
   FH Shop UI — filters, product cards, single product
   Colours come from Woo > Shop UI. Fonts inherit from Elementor global fonts.
   ========================================================================== */

:root {
	--fh-container: 1200px;
	--fh-sale: #d92d20;
	--fh-primary: #0b5a2e;
	--fh-primary-dark: #084422;
	--fh-primary-soft: #eef5f1;
	--fh-primary-line: #c5dccd;
	--fh-black: #000;
	--fh-text: #1d1d1d;
	--fh-muted: #5d6862;
	--fh-line: #e4e8e5;
	--fh-soft: #f4f6f5;
	--fh-white: #fff;
	--fh-radius: 16px;
	--fh-radius-sm: 10px;
	--fh-font: inherit;
	--fh-font-body: inherit;
	--fh-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 32px -18px rgba(11, 90, 46, .35);
}

.fh-ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Buttons (override Hello theme reset) ---------- */
.fh-btn,
.woocommerce a.fh-btn,
.woocommerce button.fh-btn,
.woocommerce .fh-card a.button.fh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1.5px solid var(--fh-primary);
	border-radius: 999px;
	background: var(--fh-primary);
	color: var(--fh-white);
	font-family: var(--fh-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.fh-btn:hover,
.fh-btn:focus,
.woocommerce a.fh-btn:hover,
.woocommerce button.fh-btn:hover,
.woocommerce .fh-card a.button.fh-btn:hover {
	background: var(--fh-primary-dark);
	border-color: var(--fh-primary-dark);
	color: var(--fh-white);
	text-decoration: none;
}
.fh-btn--outline,
.woocommerce a.fh-btn--outline,
.woocommerce button.fh-btn--outline {
	background: var(--fh-white);
	border-color: var(--fh-black);
	color: var(--fh-black);
}
.fh-btn--outline:hover,
.fh-btn--outline:focus,
.woocommerce a.fh-btn--outline:hover,
.woocommerce button.fh-btn--outline:hover {
	background: var(--fh-black);
	border-color: var(--fh-black);
	color: var(--fh-white);
}
.fh-btn--muted,
.woocommerce a.fh-btn--muted {
	background: var(--fh-soft);
	border-color: var(--fh-soft);
	color: var(--fh-muted);
}
.fh-btn--muted:hover,
.woocommerce a.fh-btn--muted:hover { background: var(--fh-line); border-color: var(--fh-line); color: var(--fh-black); }

.fh-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fh-black);
	cursor: pointer;
}
.fh-iconbtn:hover { background: var(--fh-soft); color: var(--fh-black); }

.fh-btn:focus-visible,
.fh-iconbtn:focus-visible,
.fh-qty button:focus-visible,
.fh-qty-btn:focus-visible,
.fh-chip:focus-visible,
.fh-var-pill:focus-visible,
.fh-sort__select:focus-visible,
.fh-card__title a:focus-visible,
.fh-fgroup > summary:focus-visible {
	outline: 2px solid var(--fh-primary);
	outline-offset: 2px;
}

/* ---------- Product grid ---------- */
.woocommerce ul.products.fh-grid,
ul.products.fh-grid {
	display: grid;
	grid-template-columns: repeat(var(--fh-cols, 4), minmax(0, 1fr));
	gap: calc(var(--fh-gap, 24px) + 8px) var(--fh-gap, 24px);
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products.fh-grid::before,
.woocommerce ul.products.fh-grid::after { content: none; display: none; }

@media (max-width: 1100px) {
	.woocommerce ul.products.fh-grid, ul.products.fh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.woocommerce ul.products.fh-grid, ul.products.fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* ---------- Product card ---------- */
.woocommerce ul.products li.product.fh-card,
.fh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--fh-card-bg, var(--fh-white));
	border: 1px solid var(--fh-card-border, var(--fh-line));
	border-radius: var(--fh-radius);
	text-align: left;
	transition: border-color .2s, box-shadow .25s;
}
.woocommerce ul.products li.product.fh-card:hover,
.fh-card:hover { border-color: var(--fh-primary-line); box-shadow: var(--fh-shadow); }

.fh-card__media {
	position: relative;
	aspect-ratio: var(--fh-card-ratio, 1 / 1);
	overflow: hidden;
	background: var(--fh-card-img-bg, var(--fh-soft));
}
.fh-card__img { display: block; height: 100%; }
.woocommerce ul.products li.product.fh-card .fh-card__media img,
.fh-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
	transition: opacity .35s ease, transform .6s ease;
}
.woocommerce ul.products li.product.fh-card .fh-card__media img.fh-card__img-alt,
.fh-card__img-alt { position: absolute; inset: 0; opacity: 0; }
.fh-card:hover .fh-card__img-alt { opacity: 1; }
.fh-card:hover .fh-card__media img { transform: scale(1.04); }

.fh-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.fh-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--fh-black);
	color: var(--fh-white);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.fh-badge--sale { background: var(--fh-sale, #d92d20); letter-spacing: .01em; }
.fh-badge--out { background: var(--fh-white); color: var(--fh-black); box-shadow: inset 0 0 0 1px var(--fh-line); }

.fh-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: var(--fh-card-pad, 18px) calc(var(--fh-card-pad, 18px) + 2px) calc(var(--fh-card-pad, 18px) + 2px); }

.fh-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.fh-card__cat { overflow: hidden; color: var(--fh-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.fh-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--fh-black); font-size: 12.5px; font-weight: 600; }
.fh-rating .fh-ico { fill: #f2a90d; stroke: #f2a90d; }
.fh-rating__n { color: var(--fh-muted); font-weight: 500; }

.woocommerce ul.products li.product.fh-card .fh-card__title,
.fh-card__title {
	display: -webkit-box;
	min-height: 2.6em;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--fh-black);
	font-family: var(--fh-font);
	font-size: var(--fh-card-title, 16px);
	font-weight: 600;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.fh-card__title a { color: inherit; text-decoration: none; }
.fh-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.fh-card__title a:hover { color: var(--fh-primary); }

.fh-card__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 8px; }

.fh-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--fh-black); font-family: var(--fh-font); font-size: 18px; font-weight: 700; line-height: 1.2; }
.fh-price del { order: 2; color: var(--fh-muted); font-size: .72em; font-weight: 500; opacity: 1; }
.fh-price ins { order: 1; color: inherit; font-weight: inherit; text-decoration: none; background: none; }
.fh-price .woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 600; }

.fh-from {
	align-self: center;
	margin-right: 2px;
	color: var(--fh-muted);
	font-size: .62em;
	font-weight: 500;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.woocommerce div.product.fh-single p.price .fh-from { font-size: .45em; }

.fh-save {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--fh-primary-soft);
	color: var(--fh-primary);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.fh-save .amount, .fh-save .woocommerce-Price-currencySymbol { font-size: inherit; font-weight: inherit; color: inherit; }

.fh-card__buy { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 14px; }
.fh-card__buy .fh-btn { flex: 1; min-height: 42px; padding: 0 14px; }

/* Beat WooCommerce's loop button rule (.woocommerce ul.products li.product .button:
   display:inline-block; margin-top:1em) which pushed the Add button down */
.woocommerce ul.products li.product.fh-card .fh-card__buy .button,
.woocommerce ul.products li.product.fh-card .fh-card__buy .fh-btn,
.fh-w .fh-card .fh-card__buy .fh-btn {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: stretch;
	height: auto;
	min-height: 42px;
	margin: 0;
	padding: 0 14px;
	border-radius: 999px;
	font-family: var(--fh-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	vertical-align: middle;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.woocommerce ul.products li.product.fh-card .fh-card__buy :is(.button, .fh-btn),
	.fh-w .fh-card .fh-card__buy .fh-btn { min-height: 40px; padding: 0 10px; font-size: 14px; }
}
.woocommerce ul.products li.product.fh-card .fh-card__buy .fh-qty { align-self: stretch; height: auto; min-height: 42px; }
.fh-card__buy { align-items: stretch; }

/* card qty */
.fh-qty {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 42px;
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
}
.fh-qty button,
.woocommerce .fh-qty button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fh-black);
	cursor: pointer;
}
.fh-qty button:hover { background: var(--fh-soft); color: var(--fh-black); }
.fh-qty input,
.fh-qty input[type="number"] {
	width: 30px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--fh-black);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.fh-qty input::-webkit-outer-spin-button,
.fh-qty input::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* add button states */
.fh-btn-add .fh-ico-check { display: none; }
.fh-btn-add.added .fh-ico-bag { display: none; }
.fh-btn-add.added .fh-ico-check { display: inline-block; }
.woocommerce .fh-card a.button.fh-btn-add.loading { opacity: .75; pointer-events: none; }
.woocommerce .fh-card a.button.fh-btn-add.loading .fh-ico { display: none; }
.woocommerce .fh-card a.button.fh-btn-add.loading::after,
.woocommerce .fh-card a.button.fh-btn-add::after {
	position: static;
	top: auto;
	right: auto;
	margin: 0;
	font-family: inherit;
	content: none;
}
.woocommerce .fh-card a.button.fh-btn-add.loading::after {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	animation: fh-spin .7s linear infinite;
}
.fh-card .added_to_cart { display: none !important; }
@keyframes fh-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.fh-card__body { padding: var(--fh-card-pad, 12px) var(--fh-card-pad, 12px) calc(var(--fh-card-pad, 12px) + 2px); gap: 6px; }
	.woocommerce ul.products li.product.fh-card .fh-card__title, .fh-card__title { font-size: var(--fh-card-title, 14.5px); }
	.fh-price { font-size: 16px; }
	.fh-card__meta .fh-rating { display: none; }
	.fh-card__buy { flex-direction: column; }
	.fh-qty { justify-content: space-between; width: 100%; height: 38px; }
	.fh-card__buy .fh-btn,
	.woocommerce .fh-card a.button.fh-btn,
	.woocommerce .fh-card a.fh-btn { min-height: 40px; padding: 0 10px; font-size: 14px; }
	.fh-badges { top: 8px; left: 8px; }
}

/* ---------- Shop layout ---------- */
.fh-shop { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 48px; align-items: start; margin: 16px 0 64px; }
.fh-shop__aside { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.admin-bar .fh-shop__aside { top: 56px; }
.fh-shop__main { min-width: 0; container-type: inline-size; }
.fh-shop__results { transition: opacity .2s; }
.fh-shop__results.is-loading { opacity: .45; pointer-events: none; }
.fh-overlay { display: none; }

/* Inside the shop layout, columns follow available width so cards never get cramped */
.woocommerce .fh-shop__results ul.products.fh-grid,
.fh-shop__results ul.products.fh-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@container (max-width: 560px) {
	.woocommerce .fh-shop__results ul.products.fh-grid,
	.fh-shop__results ul.products.fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Toolbar */
.fh-toolbar { margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid var(--fh-line); }
.fh-toolbar__row { display: flex; align-items: center; gap: 12px; }
.fh-count { margin: 0 auto 0 0; color: var(--fh-muted); font-size: 15px; }
.fh-count strong { color: var(--fh-black); font-weight: 700; }
.fh-toolbar .fh-filter-toggle,
.woocommerce .fh-toolbar button.fh-filter-toggle { display: none; }
.fh-filter-toggle__n {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--fh-primary);
	color: var(--fh-white);
	font-size: 11.5px;
}
.fh-filter-toggle:hover .fh-filter-toggle__n { background: var(--fh-white); color: var(--fh-black); }

.fh-sort { position: relative; display: inline-flex; align-items: center; margin: 0; }
.fh-sort .fh-ico { position: absolute; right: 14px; pointer-events: none; color: var(--fh-black); }
.fh-sort__select,
select.fh-sort__select {
	height: 44px;
	min-width: 190px;
	margin: 0;
	padding: 0 40px 0 16px;
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
	color: var(--fh-black);
	font-family: var(--fh-font-body);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
.fh-sort__select:hover { border-color: var(--fh-black); }

.fh-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.fh-chip,
button.fh-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	margin: 0;
	padding: 0 10px 0 12px;
	border: 0;
	border-radius: 999px;
	background: var(--fh-primary-soft);
	color: var(--fh-primary);
	font-family: var(--fh-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.fh-chip:hover, button.fh-chip:hover { background: var(--fh-primary); color: var(--fh-white); }
.fh-chip--clear, a.fh-chip--clear { padding: 0 6px; background: transparent; color: var(--fh-black); text-decoration: underline; text-underline-offset: 3px; }
.fh-chip--clear:hover, a.fh-chip--clear:hover { background: transparent; color: var(--fh-primary); }

/* Filter panel */
.fh-filters { padding: 4px 24px 12px; background: var(--fh-white); border: 1px solid var(--fh-line); border-radius: var(--fh-radius); }
.fh-filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--fh-line); }
.fh-filters__title { margin: 0; color: var(--fh-black); font-family: var(--fh-font); font-size: 18px; font-weight: 700; line-height: 1.2; }
.fh-filters__close { display: none; }

.fh-fgroup { border-bottom: 1px solid var(--fh-line); }
.fh-fgroup:last-of-type { border-bottom: 0; }
.fh-fgroup > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	color: var(--fh-black);
	font-size: 15px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.fh-fgroup > summary::-webkit-details-marker { display: none; }
.fh-fgroup > summary .fh-ico { color: var(--fh-muted); transition: transform .2s; }
.fh-fgroup[open] > summary .fh-ico { transform: rotate(180deg); }
.fh-fgroup__body { padding: 0 0 18px; }

.fh-check { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0; color: var(--fh-text); font-size: 14.5px; line-height: 1.3; cursor: pointer; }
.fh-check--child { padding-left: 28px; font-size: 14px; }
.fh-check input,
.fh-pill input,
.fh-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.fh-check__box {
	display: grid;
	flex: none;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid #c2cac5;
	border-radius: 5px;
	background: var(--fh-white);
	color: var(--fh-white);
	transition: background-color .15s, border-color .15s;
}
.fh-check__box .fh-ico { opacity: 0; stroke-width: 3; }
.fh-check:hover .fh-check__box { border-color: var(--fh-black); }
.fh-check input:checked + .fh-check__box { background: var(--fh-primary); border-color: var(--fh-primary); }
.fh-check input:checked + .fh-check__box .fh-ico { opacity: 1; }
.fh-check input:checked ~ .fh-check__label { color: var(--fh-black); font-weight: 600; }
.fh-check input:focus-visible + .fh-check__box { outline: 2px solid var(--fh-primary); outline-offset: 2px; }
.fh-check__count { margin-left: auto; color: var(--fh-muted); font-size: 12.5px; }

.fh-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.fh-pill { position: relative; margin: 0; cursor: pointer; }
.fh-pill span {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
	color: var(--fh-text);
	font-size: 13.5px;
	font-weight: 500;
	transition: background-color .15s, border-color .15s, color .15s;
}
.fh-pill:hover span { border-color: var(--fh-black); }
.fh-pill input:checked + span { background: var(--fh-black); border-color: var(--fh-black); color: var(--fh-white); }
.fh-pill input:focus-visible + span { outline: 2px solid var(--fh-primary); outline-offset: 2px; }

.fh-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; color: var(--fh-text); font-size: 14.5px; cursor: pointer; }
.fh-switch__track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #d3dad6; transition: background-color .2s; }
.fh-switch__track::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--fh-white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	content: "";
	transition: transform .2s;
}
.fh-switch input:checked ~ .fh-switch__track { background: var(--fh-primary); }
.fh-switch input:checked ~ .fh-switch__track::after { transform: translateX(16px); }
.fh-switch input:focus-visible ~ .fh-switch__track { outline: 2px solid var(--fh-primary); outline-offset: 2px; }

.fh-filters__foot { display: flex; gap: 10px; padding: 12px 0 8px; }
.fh-filters__foot .fh-btn { flex: 1; }
.fh-js .fh-filters__foot { display: none; }

/* Empty state & pagination inside results */
.fh-shop__results .woocommerce-info,
.fh-shop__results .woocommerce-no-products-found .woocommerce-info {
	margin: 0;
	padding: 40px 24px;
	border: 1px dashed var(--fh-line);
	border-radius: var(--fh-radius);
	background: var(--fh-soft);
	color: var(--fh-text);
	text-align: center;
}
.fh-shop__results .woocommerce-info::before { display: none; }

.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	border: 0;
}
.woocommerce nav.woocommerce-pagination ul li { float: none; overflow: visible; border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--fh-line);
	border-radius: 999px;
	color: var(--fh-black);
	font-weight: 600;
	line-height: 1;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus { background: var(--fh-soft); border-color: var(--fh-black); color: var(--fh-black); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--fh-black); border-color: var(--fh-black); color: var(--fh-white); }

/* Mobile drawer */
@media (max-width: 900px) {
	.fh-shop { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.fh-shop__aside {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		width: min(380px, 90vw);
		max-height: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--fh-white);
		transform: translateX(-102%);
		transition: transform .3s ease;
		visibility: hidden;
	}
	.admin-bar .fh-shop__aside { top: 0; }
	.fh-shop__aside.is-open { transform: none; visibility: visible; }
	.fh-overlay {
		position: fixed;
		inset: 0;
		z-index: 99999;
		display: block;
		background: rgba(0, 0, 0, .45);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	.fh-overlay.is-open { opacity: 1; visibility: visible; }
	.fh-filters { display: flex; flex-direction: column; min-height: 100%; padding: 0 20px; border: 0; border-radius: 0; }
	.fh-filters__head { position: sticky; top: 0; z-index: 2; background: var(--fh-white); }
	.fh-filters__close { display: inline-grid; }
	.fh-filters__foot,
	.fh-js .fh-filters__foot { position: sticky; bottom: 0; display: flex; margin-top: auto; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--fh-line); background: var(--fh-white); }
	.fh-toolbar .fh-filter-toggle,
	.woocommerce .fh-toolbar button.fh-filter-toggle { display: inline-flex; }
	.fh-toolbar__row { flex-wrap: wrap; }
	.fh-count { order: 3; width: 100%; margin: 4px 0 0; font-size: 14px; }
	.fh-sort { margin-left: auto; }
	.fh-sort__select, select.fh-sort__select { min-width: 0; max-width: 58vw; }
	html.fh-lock, html.fh-lock body { overflow: hidden; }
}

/* ---------- Single product ---------- */
.woocommerce div.product.fh-single {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 20px 56px;
	align-items: start;
	margin: 12px 0 56px;
}
.woocommerce div.product.fh-single > * { grid-column: 1 / -1; }
.woocommerce div.product.fh-single > div.images,
.woocommerce div.product.fh-single > .woocommerce-product-gallery {
	grid-column: 1;
	float: none;
	width: 100%;
	margin: 0;
}
.woocommerce div.product.fh-single > div.summary {
	grid-column: 2;
	float: none;
	width: 100%;
	margin: 0;
}

/* gallery */
.fh-single .woocommerce-product-gallery { position: relative; }
.fh-single .woocommerce-product-gallery .flex-viewport,
.fh-single .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: var(--fh-radius); background: var(--fh-soft); }
.fh-single .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
.woocommerce div.product.fh-single div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.woocommerce div.product.fh-single div.images .flex-control-thumbs li { float: none; width: auto; margin: 0; }
.woocommerce div.product.fh-single div.images .flex-control-thumbs li img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: var(--fh-radius-sm);
	opacity: .65;
	transition: opacity .2s, border-color .2s;
}
.woocommerce div.product.fh-single div.images .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product.fh-single div.images .flex-control-thumbs li img.flex-active { border-color: var(--fh-primary); opacity: 1; }
.fh-single .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 9;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--fh-white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
	font-size: 0;
}

.fh-badges--single { position: absolute; top: 14px; left: 14px; z-index: 3; }
.fh-badges--single .fh-badge { height: 30px; padding: 0 13px; font-size: 13.5px; }
@media (max-width: 767px) { .fh-badges--single { top: 10px; left: 10px; } }

/* summary */
.fh-single-cat {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--fh-primary-soft);
	color: var(--fh-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.fh-single-cat:hover { background: var(--fh-primary); color: var(--fh-white); }

.woocommerce div.product.fh-single .product_title {
	margin: 12px 0 8px;
	color: var(--fh-black);
	font-family: var(--fh-font);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.015em;
}
.woocommerce div.product.fh-single .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.woocommerce div.product.fh-single .woocommerce-product-rating .star-rating { float: none; margin: 0; color: #f2a90d; }
.woocommerce div.product.fh-single .woocommerce-review-link { color: var(--fh-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.woocommerce div.product.fh-single p.price,
.woocommerce div.product.fh-single span.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 10px;
	margin: 0;
	color: var(--fh-black);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}
.woocommerce div.product.fh-single p.price ins,
.woocommerce div.product.fh-single span.price ins { order: 1; background: none; color: inherit; font-weight: inherit; text-decoration: none; }
.woocommerce div.product.fh-single p.price del,
.woocommerce div.product.fh-single span.price del { order: 2; color: var(--fh-muted); font-size: .6em; font-weight: 500; opacity: 1; }

.woocommerce div.product.fh-single .woocommerce-product-details__short-description {
	margin: 20px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--fh-line);
	color: #3b433e;
	font-size: 15.5px;
	line-height: 1.65;
}
.woocommerce div.product.fh-single .woocommerce-product-details__short-description p:first-child { margin-top: 0; }
.woocommerce div.product.fh-single .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

.woocommerce div.product.fh-single form.cart { margin: 24px 0 0; }
.woocommerce div.product.fh-single form.cart:not(.variations_form),
.woocommerce div.product.fh-single .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.woocommerce div.product.fh-single form.cart::before,
.woocommerce div.product.fh-single form.cart::after { display: none; }

/* variations */
.woocommerce div.product.fh-single form.cart table.variations { display: block; margin: 0 0 8px; border: 0; }
.woocommerce div.product.fh-single form.cart table.variations tbody,
.woocommerce div.product.fh-single form.cart table.variations tr { display: block; }
.woocommerce div.product.fh-single form.cart table.variations tr { margin: 0 0 18px; }
.woocommerce div.product.fh-single form.cart table.variations th,
.woocommerce div.product.fh-single form.cart table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; line-height: 1.3; }
.woocommerce div.product.fh-single form.cart table.variations th.label { margin: 0 0 10px; }
.woocommerce div.product.fh-single form.cart table.variations label { color: var(--fh-black); font-size: 14.5px; font-weight: 600; }
.woocommerce div.product.fh-single form.cart table.variations select {
	width: 100%;
	max-width: 320px;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--fh-line);
	border-radius: var(--fh-radius-sm);
	background-color: var(--fh-white);
	color: var(--fh-black);
}
.woocommerce div.product.fh-single form.cart table.variations td.fh-has-pills select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.woocommerce div.product.fh-single form.cart .reset_variations { display: inline-block; margin: 10px 0 0; color: var(--fh-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.fh-var-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fh-var-pill,
button.fh-var-pill {
	min-width: 56px;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
	color: var(--fh-black);
	font-family: var(--fh-font-body);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.fh-var-pill:hover, button.fh-var-pill:hover { border-color: var(--fh-black); background: var(--fh-white); color: var(--fh-black); }
.fh-var-pill.is-active, button.fh-var-pill.is-active { background: var(--fh-black); border-color: var(--fh-black); color: var(--fh-white); }
.fh-var-pill:disabled, button.fh-var-pill:disabled { border-style: dashed; color: #a3aba6; cursor: not-allowed; }

.woocommerce div.product.fh-single .single_variation_wrap .woocommerce-variation { margin: 0 0 14px; }
.woocommerce div.product.fh-single .woocommerce-variation-price .price { font-size: 22px; }
.woocommerce div.product.fh-single .stock { margin: 0 0 12px; color: var(--fh-primary); font-size: 14px; font-weight: 600; }
.woocommerce div.product.fh-single .stock.out-of-stock { color: #b42318; }

/* quantity stepper (product page + cart) */
.woocommerce .quantity:has(> .fh-qty-btn) {
	display: inline-flex;
	align-items: center;
	height: 52px;
	margin: 0;
	padding: 0 4px;
	border: 1.5px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
	float: none;
}
.woocommerce .quantity:has(> .fh-qty-btn) .qty {
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fh-black);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.woocommerce .quantity .fh-qty-btn,
.woocommerce .quantity button.fh-qty-btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fh-black);
	cursor: pointer;
}
.woocommerce .quantity .fh-qty-btn:hover { background: var(--fh-soft); color: var(--fh-black); }
.woocommerce table.cart .quantity:has(> .fh-qty-btn) { height: 44px; }
.woocommerce table.cart .quantity .fh-qty-btn { width: 34px; height: 34px; }

.woocommerce div.product.fh-single form.cart .single_add_to_cart_button,
.woocommerce div.product.fh-single form.cart .single_add_to_cart_button.alt {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 200px;
	height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--fh-primary);
	color: var(--fh-white);
	font-family: var(--fh-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	float: none;
	transition: background-color .2s;
}
.woocommerce div.product.fh-single form.cart .single_add_to_cart_button:hover { background: var(--fh-primary-dark); color: var(--fh-white); }
.woocommerce div.product.fh-single form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product.fh-single form.cart .single_add_to_cart_button:disabled { background: var(--fh-primary); opacity: .45; cursor: not-allowed; }

.fh-wa-order,
.woocommerce a.fh-wa-order { display: inline-flex; width: 100%; min-height: 52px; margin: 12px 0 0; font-size: 15.5px; }

.fh-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.fh-trust__item { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border-radius: 12px; background: var(--fh-soft); }
.fh-trust__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fh-white); color: var(--fh-primary); }
.fh-trust__item strong { display: block; color: var(--fh-black); font-size: 14px; font-weight: 700; line-height: 1.3; }
.fh-trust__item small { display: block; margin-top: 2px; color: var(--fh-muted); font-size: 12.5px; line-height: 1.4; }

.woocommerce div.product.fh-single .product_meta {
	margin: 24px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--fh-line);
	color: var(--fh-muted);
	font-size: 13.5px;
	line-height: 1.8;
}
.woocommerce div.product.fh-single .product_meta > span { display: block; }
.woocommerce div.product.fh-single .product_meta a { color: var(--fh-black); text-decoration: none; }
.woocommerce div.product.fh-single .product_meta a:hover { color: var(--fh-primary); }

/* tabs */
.woocommerce div.product.fh-single .woocommerce-tabs { margin: 40px 0 0; }
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 28px;
	padding: 0;
	overflow-x: auto;
	border-bottom: 1px solid var(--fh-line);
	scrollbar-width: none;
}
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs::before,
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li a {
	display: block;
	margin-bottom: -1px;
	padding: 14px 18px;
	border-bottom: 2px solid transparent;
	color: var(--fh-muted);
	font-size: 15.5px;
	font-weight: 600;
	white-space: nowrap;
}
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li a:hover { color: var(--fh-black); }
.woocommerce div.product.fh-single .woocommerce-tabs ul.tabs li.active a { border-color: var(--fh-primary); color: var(--fh-black); }
.woocommerce div.product.fh-single .woocommerce-tabs .panel { max-width: 780px; margin: 0; color: #3b433e; font-size: 15.5px; line-height: 1.7; }
.woocommerce div.product.fh-single .woocommerce-tabs .panel > h2:first-child { margin: 0 0 12px; color: var(--fh-black); font-size: 20px; }

.woocommerce div.product.fh-single .related > h2,
.woocommerce div.product.fh-single .upsells > h2 { margin: 48px 0 20px; color: var(--fh-black); font-family: var(--fh-font); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }

/* sticky bar */
.fh-sticky { display: none; }

@media (max-width: 900px) {
	.woocommerce div.product.fh-single { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 0; }
	.woocommerce div.product.fh-single > div.images,
	.woocommerce div.product.fh-single > .woocommerce-product-gallery,
	.woocommerce div.product.fh-single > div.summary { grid-column: 1; }
	.fh-trust { grid-template-columns: minmax(0, 1fr); }
	.fh-trust__item { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
	.woocommerce div.product.fh-single .related > h2, .woocommerce div.product.fh-single .upsells > h2 { font-size: 22px; }
}

@media (max-width: 767px) {
	.fh-sticky {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--fh-line);
		background: var(--fh-white);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .15);
		transform: translateY(110%);
		transition: transform .3s ease;
	}
	.fh-sticky.is-visible { transform: none; }
	.fh-sticky__info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
	.fh-sticky__title { overflow: hidden; color: var(--fh-black); font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
	.fh-sticky__price { font-size: 15px; }
	.fh-sticky .fh-btn { min-height: 46px; }
	.woocommerce div.product.fh-single form.cart .single_add_to_cart_button { min-width: 0; }
}

/* ---------- Toast ---------- */
.fh-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 10px 10px 10px 12px;
	border-radius: 999px;
	background: var(--fh-black);
	color: var(--fh-white);
	font-size: 14.5px;
	font-weight: 500;
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 16px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.fh-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fh-toast__ico { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fh-primary); }
.fh-toast__ico .fh-ico { stroke-width: 3; }
.fh-toast__msg { white-space: nowrap; }
.fh-toast__link, a.fh-toast__link { padding: 9px 16px; border-radius: 999px; background: var(--fh-white); color: var(--fh-black); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fh-toast__link:hover { background: var(--fh-primary-soft); color: var(--fh-black); }
@media (max-width: 767px) { .single-product .fh-toast { bottom: 88px; } }

@media (prefers-reduced-motion: reduce) {
	.fh-card, .fh-card *, .fh-shop__aside, .fh-overlay, .fh-toast, .fh-sticky, .fh-switch__track, .fh-switch__track::after { transition: none !important; animation: none !important; }
	.fh-card:hover .fh-card__media img { transform: none; }
}

/* ---------- Live product search ---------- */
.fh-search {
	--fh-search-h: 50px;
	--fh-search-r: 999px;
	--fh-search-bg: var(--fh-soft);
	--fh-search-border: transparent;
	--fh-search-text: var(--fh-black);
	position: relative;
	width: 100%;
	max-width: 620px;
	font-family: var(--fh-font-body);
}
.fh-search__form { position: relative; display: flex; align-items: center; margin: 0; }
.fh-search__ico { position: absolute; left: 18px; display: flex; color: var(--fh-muted); pointer-events: none; }

.fh-search input.fh-search__input,
.fh-search input[type="search"].fh-search__input {
	width: 100%;
	height: var(--fh-search-h);
	margin: 0;
	padding: 0 52px 0 50px;
	border: 1.5px solid var(--fh-search-border);
	border-radius: var(--fh-search-r);
	background: var(--fh-search-bg);
	color: var(--fh-search-text);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1;
	outline: 0;
	box-shadow: none;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.fh-search input.fh-search__input::placeholder { color: var(--fh-muted); opacity: 1; }
.fh-search input.fh-search__input:hover { border-color: var(--fh-line); }
.fh-search input.fh-search__input:focus {
	border-color: var(--fh-primary);
	background: var(--fh-white);
	box-shadow: 0 0 0 4px var(--fh-primary-soft);
}
.fh-search input.fh-search__input::-webkit-search-cancel-button,
.fh-search input.fh-search__input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.fh-search.is-open input.fh-search__input { background: var(--fh-white); }

/* Clear button: small solid circle, always centred */
body .fh-search button.fh-search__clear {
	position: absolute;
	top: 50%;
	right: 12px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	min-height: 0;
	margin: -15px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e3e8e5;
	color: var(--fh-black);
	line-height: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
body .fh-search button.fh-search__clear:hover,
body .fh-search button.fh-search__clear:focus-visible { background: var(--fh-black); color: var(--fh-white); }
body .fh-search button.fh-search__clear:focus:not(:focus-visible) { background: #e3e8e5; color: var(--fh-black); }
body .fh-search button.fh-search__clear[hidden] { display: none; }
body .fh-search button.fh-search__clear .fh-ico { stroke-width: 2.4; }

.fh-search__spinner {
	position: absolute;
	right: 18px;
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--fh-primary);
	border-right-color: transparent;
	border-radius: 50%;
	animation: fh-spin .7s linear infinite;
}
.fh-search.is-loading .fh-search__spinner { display: block; }
.fh-search.is-loading button.fh-search__clear { opacity: 0; pointer-events: none; }

/* optional submit button */
.fh-search--button input.fh-search__input { padding-right: 150px; }
.fh-search--button .fh-search__spinner,
body .fh-search--button button.fh-search__clear { right: 112px; }
body .fh-search button.fh-search__submit {
	position: absolute;
	top: 5px;
	right: 5px;
	bottom: 5px;
	min-height: 0;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: var(--fh-search-r);
	background: var(--fh-primary);
	color: var(--fh-white);
	font: 600 14.5px/1 var(--fh-font-body);
	cursor: pointer;
}
body .fh-search button.fh-search__submit:hover,
body .fh-search button.fh-search__submit:focus { background: var(--fh-primary-dark); color: var(--fh-white); }

/* results panel */
.fh-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10050;
	width: max(100%, min(460px, calc(100vw - 24px)));
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 8px;
	border: 1px solid var(--fh-line);
	border-radius: 18px;
	background: var(--fh-white);
	box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .28);
	text-align: left;
}
.fh-search__panel[hidden] { display: none; }
.fh-search__status { margin: 0; padding: 20px 14px; color: var(--fh-muted); font-size: 14.5px; text-align: center; }
.fh-search__status[hidden] { display: none; }
.fh-search__list { margin: 0; padding: 0; list-style: none; }
.fh-search__opt { margin: 0; padding: 0; }
.fh-search__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 10px;
	border-radius: 12px;
	color: var(--fh-black);
	text-decoration: none;
}
.fh-search__item:hover,
.fh-search__opt.is-active .fh-search__item { background: var(--fh-soft); color: var(--fh-black); }
.fh-search__thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--fh-soft); object-fit: cover; }
.fh-search__text { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
.fh-search__name { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.fh-search__name mark { padding: 0; background: none; color: var(--fh-primary); }
.fh-search__meta { color: var(--fh-muted); font-size: 12.5px; }
.fh-search__price { flex: none; flex-direction: column; align-items: flex-end; gap: 0; font-size: 15px; text-align: right; }
.fh-search__price del { font-size: 12px; }
.fh-search__all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 6px 0 0;
	padding: 12px;
	border-top: 1px solid var(--fh-line);
	border-radius: 0 0 12px 12px;
	color: var(--fh-primary);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}
.fh-search__all:hover { background: var(--fh-primary-soft); color: var(--fh-primary); }
.fh-search__all[hidden] { display: none; }

@media (max-width: 600px) {
	.fh-search { --fh-search-h: 46px; }
	.fh-search input.fh-search__input { font-size: 16px; }
	.fh-search__thumb { width: 44px; height: 44px; }
}

/* ---------- Theme guard ----------
   Hello theme and Elementor kits style every <button> (pink border, pink hover).
   These selectors are specific enough to win without !important. */
body button.fh-iconbtn.fh-iconbtn,
body .fh-qty button.fh-qty-guard,
body .fh-qty button[type="button"],
body .quantity button.fh-qty-btn.fh-qty-btn {
	min-height: 0;
	border: 0;
	box-shadow: none;
	text-decoration: none;
}
body button.fh-iconbtn.fh-iconbtn {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: var(--fh-soft);
	color: var(--fh-black);
	line-height: 0;
}
body button.fh-iconbtn.fh-iconbtn:hover,
body button.fh-iconbtn.fh-iconbtn:focus-visible { background: var(--fh-black); color: var(--fh-white); }
body button.fh-iconbtn.fh-iconbtn:focus:not(:focus-visible) { background: var(--fh-soft); color: var(--fh-black); }
body button.fh-iconbtn.fh-iconbtn .fh-ico { stroke-width: 2.2; }

body .fh-qty button[type="button"],
body .quantity button.fh-qty-btn.fh-qty-btn { padding: 0; background: transparent; color: var(--fh-black); }
body .fh-qty button[type="button"]:hover,
body .quantity button.fh-qty-btn.fh-qty-btn:hover { background: var(--fh-soft); color: var(--fh-black); }
body .fh-qty button[type="button"]:focus:not(:focus-visible),
body .quantity button.fh-qty-btn.fh-qty-btn:focus:not(:focus-visible) { background: transparent; color: var(--fh-black); }

body button.fh-chip.fh-chip { border: 0; box-shadow: none; }
body button.fh-chip.fh-chip:focus:not(:focus-visible) { background: var(--fh-primary-soft); color: var(--fh-primary); }
body button.fh-var-pill.fh-var-pill:focus:not(:focus-visible):not(.is-active) { background: var(--fh-white); color: var(--fh-black); }
body button.fh-var-pill.fh-var-pill.is-active { background: var(--fh-black); color: var(--fh-white); }

/* ==========================================================================
   Elementor widgets: Shop with Filters, Product Cards, Product Card
   ========================================================================== */
.fh-w { position: relative; font-family: var(--fh-font-body, inherit); }
.fh-w .fh-shop { margin: 0; }

/* sidebar variants */
.fh-shop.fh-shop--nofilters { grid-template-columns: minmax(0, 1fr); }
.fh-shop.fh-shop--right { grid-template-columns: minmax(0, 1fr) 264px; }
.fh-shop.fh-shop--right > .fh-shop__aside { grid-column: 2; grid-row: 1; }
.fh-shop.fh-shop--right > .fh-shop__main { grid-column: 1; grid-row: 1; }
@media (max-width: 900px) {
	.fh-shop.fh-shop--right { grid-template-columns: minmax(0, 1fr); }
	.fh-shop.fh-shop--right > .fh-shop__main { grid-column: 1; }
}
.fh-shop--nofilters .fh-toolbar__row .fh-count { margin-right: auto; }

/* fixed columns chosen in the widget (Elementor sets --fh-w-cols per breakpoint) */
body .fh-w--fixed ul.products.fh-grid,
body .fh-w--fixed .fh-shop__results ul.products.fh-grid {
	grid-template-columns: repeat(var(--fh-w-cols, 3), minmax(0, 1fr));
	gap: calc(var(--fh-gap, 24px) + 8px) var(--fh-gap, 24px);
}
/* auto columns for the Product Cards grid */
body .fh-w--grid:not(.fh-w--fixed) ul.products.fh-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 767px) {
	body .fh-w--grid:not(.fh-w--fixed) ul.products.fh-grid,
	body .fh-w--shop:not(.fh-w--fixed) .fh-shop__results ul.products.fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* heading row */
.fh-w__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; }
.fh-w .fh-w__title { margin: 0; color: var(--fh-black); font-family: var(--fh-font); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.fh-w__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.fh-w__link { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--fh-black); font-size: 15px; font-weight: 600; text-decoration: none; }
.fh-w__link:hover { color: var(--fh-primary); }
.fh-w__link .fh-ico { transition: transform .2s; }
.fh-w__link:hover .fh-ico { transform: translateX(3px); }

body button.fh-iconbtn.fh-car__btn { width: 44px; height: 44px; border: 1.5px solid var(--fh-line); background: var(--fh-white); }
body button.fh-iconbtn.fh-car__btn:hover:not(:disabled) { border-color: var(--fh-black); background: var(--fh-black); color: var(--fh-white); }
body button.fh-iconbtn.fh-car__btn:disabled { opacity: .35; cursor: default; }

/* carousel */
body .fh-w--carousel ul.products.fh-grid.fh-track {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--fh-slides, 4) - 1) * var(--fh-gap, 24px)) / var(--fh-slides, 4));
	gap: var(--fh-gap, 24px);
	margin: -6px -6px -26px;
	padding: 6px 6px 26px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 6px;
	scrollbar-width: none;
}
body .fh-w--carousel ul.products.fh-grid.fh-track::-webkit-scrollbar { display: none; }
body .fh-w--carousel ul.products.fh-grid.fh-track > li.fh-card { scroll-snap-align: start; }
@media (max-width: 767px) {
	body .fh-w--carousel ul.products.fh-grid.fh-track { gap: var(--fh-gap, 12px); grid-auto-columns: calc((100% - (var(--fh-slides, 2) - 1) * var(--fh-gap, 12px)) / var(--fh-slides, 2)); }
	.fh-w--carousel .fh-car__btn { display: none; }

	/* "On mobile: 2-column grid" — the same cards, wrapped instead of scrolling */
	body .fh-w--carousel.fh-w--mgrid ul.products.fh-grid.fh-track {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-columns: auto;
		gap: 20px var(--fh-gap, 12px);
		margin: 0;
		padding: 0;
		overflow: visible;
		scroll-snap-type: none;
	}
}

/* load more */
.fh-loadmore { display: flex; justify-content: center; margin: 8px 0 0; }
.fh-loadmore .fh-btn { min-width: 200px; min-height: 50px; }
.fh-loadmore .fh-btn.is-loading { opacity: .6; pointer-events: none; }

/* single card widget: fill Loop Grid cells */
.elementor-widget-fh-product-card,
.elementor-widget-fh-product-card > .elementor-widget-container,
.fh-w--card,
.fh-w--card > .fh-card { height: 100%; }
.e-loop-item:has(.elementor-widget-fh-product-card) { height: 100%; }

.fh-w-empty { padding: 24px; border: 1px dashed var(--fh-line); border-radius: var(--fh-radius); color: var(--fh-muted); font-size: 14px; text-align: center; }

/* ==========================================================================
   WooCommerce page frame: shop, category, tag and product pages are always
   centred at the same width (Hello drops its centring on some archives).
   ========================================================================== */
body.fh-woo-page #primary.content-area,
body.fh-woo-page main#main.site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--fh-container, 1200px);
	margin-right: auto;
	margin-left: auto;
	float: none;
}
body.fh-woo-page main#main.site-main { padding: 24px 20px 64px; }
body.fh-woo-page #primary.content-area > main#main.site-main { max-width: none; padding-right: 0; padding-left: 0; }
body.fh-woo-page #primary.content-area { padding-right: 20px; padding-left: 20px; }
body.fh-woo-page #sidebar, body.fh-woo-page .widget-area { display: none; }

body.fh-woo-page .woocommerce-breadcrumb {
	margin: 0 0 12px;
	color: var(--fh-muted);
	font-size: 13.5px;
	line-height: 1.5;
}
body.fh-woo-page .woocommerce-breadcrumb a { color: var(--fh-muted); text-decoration: none; }
body.fh-woo-page .woocommerce-breadcrumb a:hover { color: var(--fh-black); }

/* archive header */
body.fh-woo-page .woocommerce-products-header { margin: 0 0 8px; padding: 0; text-align: left; }
body.fh-woo-page .woocommerce-products-header__title.page-title {
	margin: 0 0 8px;
	color: var(--fh-black);
	font-family: var(--fh-font);
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
}
body.fh-woo-page :is(.term-description, .page-description) { max-width: 720px; margin: 0; color: var(--fh-muted); font-size: 15.5px; line-height: 1.65; }
body.fh-woo-page :is(.term-description, .page-description) p { margin: 0 0 8px; }
body.fh-woo-page :is(.term-description, .page-description) p:last-child { margin-bottom: 0; }

/* category chips */
.fh-subcats {
	display: flex;
	gap: 8px;
	margin: 18px 0 4px;
	padding: 2px 0 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.fh-subcats::-webkit-scrollbar { display: none; }
.fh-subcat {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border: 1.5px solid var(--fh-line);
	border-radius: 999px;
	background: var(--fh-white);
	color: var(--fh-black);
	font-family: var(--fh-font-body);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s, background-color .15s, color .15s;
}
.fh-subcat:hover { border-color: var(--fh-black); color: var(--fh-black); }
.fh-subcat.is-active { border-color: var(--fh-black); background: var(--fh-black); color: var(--fh-white); }
.fh-subcat:focus-visible { outline: 2px solid var(--fh-primary); outline-offset: 2px; }
@media (min-width: 901px) { .fh-subcats { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }

/* the old sub-category tiles, if another plugin prints them */
.woocommerce ul.products.fh-grid li.product-category { display: none; }

@media (max-width: 767px) {
	body.fh-woo-page main#main.site-main { padding: 16px 16px 48px; }
	body.fh-woo-page #primary.content-area { padding-right: 16px; padding-left: 16px; }
}

/* ==========================================================================
   Cart, checkout and account pages: centred like the shop
   (Hello pages; pages built with Elementor keep their own layout)
   ========================================================================== */
body.fh-cart-page:not([class*="elementor-page-"]) main#content.site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--fh-container, 1200px);
	margin-right: auto;
	margin-left: auto;
	padding: 28px 20px 72px;
}
body.fh-cart-page:not([class*="elementor-page-"]) main#content.site-main .page-header {
	max-width: none;
	margin: 0 0 28px;
	padding: 0;
}
body.fh-cart-page:not([class*="elementor-page-"]) main#content.site-main .page-header .entry-title {
	max-width: none;
	margin: 0;
	color: var(--fh-black);
	font-family: var(--fh-font);
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
}
body.fh-cart-page main#content.site-main .page-content { max-width: none; margin: 0; padding: 0; }
body.fh-cart-page main#content.site-main :is(.alignwide, .alignfull, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
	width: auto;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}
@media (max-width: 767px) {
	body.fh-cart-page:not([class*="elementor-page-"]) main#content.site-main { padding: 18px 16px 56px; }
	body.fh-cart-page:not([class*="elementor-page-"]) main#content.site-main .page-header { margin-bottom: 20px; }
}
