/* ==========================================================================
   Salmod header, search, mini cart, bottom navigation, category sheet & footer.
   Mobile-first. Colours: --salmod-* tokens only.
   Theme CSS (WoodMart) is partly printed later in <body> and styles bare buttons/inputs,
   so our controls are reset with a higher-specificity "html body" prefix.
   ========================================================================== */

/* Hide WoodMart's header-builder header, its mobile bottom toolbar and the Elementor footer. */
.salmod-has-hd .whb-header,
.salmod-has-hd .whb-sticky-header,
.salmod-has-hd .whb-clone,
.salmod-has-hd .wd-toolbar { display: none !important; }
.salmod-has-hd.sticky-toolbar-on { padding-bottom: 0 !important; }
.salmod-has-ft .wd-footer { display: none !important; }

.salmod-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salmod-skip { position: absolute; inset-inline-start: 12px; top: -100px; z-index: 10001; padding: 10px 16px; border-radius: 8px; background: var(--salmod-primary); color: var(--salmod-on-primary) !important; font-weight: 700; }
.salmod-skip:focus { top: 12px; }
.s-ico { flex: 0 0 auto; }
html.salmod-lock, html.salmod-lock body { overflow: hidden; }

/* ---- Hard reset for our controls (wins over theme button/input styles) ---- */
html body .sh__icon, html body .sh__pill, html body .sh__search-go, html body .ss__back, html body .ss__clear,
html body .ss__recent-item, html body .sb__item, html body .sh-cart__close {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	font-family: inherit;
}
html body .sh__search input[type="search"] {
	all: unset;
	box-sizing: border-box;
	flex: 1 1 auto; min-width: 0; height: 100%;
	padding: 0 6px;
	font: inherit; font-size: 15px; color: var(--salmod-primary);
	-webkit-appearance: none; appearance: none;
	cursor: text;
}
html body .sh__search input[type="search"]::-webkit-search-cancel-button,
html body .sh__search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
html body .sh__search input[type="search"]::placeholder { color: var(--salmod-muted-fg); opacity: 1; }
:where(.sh, .ss, .sb, .sh-drawer, .sh-cart) :focus:not(:focus-visible) { outline: none; }
:where(.sh, .ss, .sb, .sh-drawer, .sh-cart) :focus-visible { outline: 2px solid var(--salmod-ring) !important; outline-offset: 2px; }
.sh-cart:focus, .sh-drawer__panel:focus { outline: none !important; }
/* The search pill shows focus itself (border + halo), so the inner field needs no extra ring. */
html body .sh__search input[type="search"]:focus, html body .sh__search input[type="search"]:focus-visible { outline: none !important; box-shadow: none !important; }

/* ---------------- Announcement ---------------- */
.sh-announce { background: var(--salmod-brand); color: var(--salmod-on-brand); text-align: center; font-size: 13px; font-weight: 700; line-height: 1.6; padding: 7px 16px; }

/* ---------------- Header bar ---------------- */
.sh {
	position: sticky; top: 0; z-index: 400;
	height: auto;
	background: var(--salmod-surface);
	border-bottom: 1px solid var(--salmod-line-soft);
	transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.admin-bar .sh { top: 32px; }
.sh.is-scrolled { box-shadow: 0 4px 18px rgba(28,25,23,.06); }
.sh.is-hidden { transform: translateY(-100%); }
.sh.is-overlay, .sh.is-search-open { z-index: 100000; transform: none !important; }
.sh__row {
	max-width: 1400px; margin: 0 auto;
	padding: 12px clamp(16px, 3vw, 32px);
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center; gap: clamp(12px, 3vw, 40px);
}
.sh__logo { display: inline-flex; align-items: center; }
.sh__logo img { height: 34px; width: auto; max-width: 200px; object-fit: contain; }
html body .sh__icon {
	position: relative; width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; color: var(--salmod-primary);
	transition: background-color .2s ease, color .2s ease;
}
html body .sh__icon:hover { background: var(--salmod-brand-soft); color: var(--salmod-brand-ink); }
.sh__tools { display: flex; align-items: center; gap: 4px; }
html body .sh__pill { display: none; }
.sh__count {
	position: absolute; top: 3px; inset-inline-end: 1px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--salmod-brand); color: var(--salmod-on-brand);
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.sh__count.is-empty { display: none; }

/* Desktop nav */
.sh__nav { border-top: 1px solid var(--salmod-line-soft); }
.sh__nav-in { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.sh__menu, .sh__menu ul { list-style: none; margin: 0; padding: 0; }
.sh__menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; }
.sh__menu > li { position: relative; }
.sh__menu > li > a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; font-size: 14.5px; font-weight: 700; color: var(--salmod-primary) !important; position: relative; }
.sh__menu > li > a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 8px; height: 2px; background: var(--salmod-brand); transform: scaleX(0); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.sh__menu > li:hover > a::after, .sh__menu > li.current-menu-item > a::after, .sh__menu > li > a:focus-visible::after { transform: scaleX(1); }
.sh__menu > li > a:hover { color: var(--salmod-brand-ink) !important; }
.sh__menu .sub-menu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 10; min-width: 220px; padding: 10px; background: var(--salmod-surface); border: 1px solid var(--salmod-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(28,25,23,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.sh__menu li:hover > .sub-menu, .sh__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sh__menu .sub-menu a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--salmod-primary) !important; }
.sh__menu .sub-menu a:hover { background: var(--salmod-brand-soft); color: var(--salmod-brand-ink) !important; }

/* ==================== SEARCH ==================== */
.ss { position: relative; width: 100%; max-width: 580px; justify-self: center; }
.ss__bar { position: relative; display: flex; align-items: center; gap: 8px; }
html body .ss__back { display: none; }
/* The pill: border lives on the form, the input is fully neutral, the button sits inside. */
.sh__search {
	position: relative; flex: 1; min-width: 0;
	display: flex; align-items: center; gap: 4px;
	height: 48px; margin: 0;
	padding-inline: 14px 5px;
	border: 1.5px solid transparent; border-radius: 999px;
	background: var(--salmod-field);
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.sh__search:focus-within { border-color: var(--salmod-primary); background: var(--salmod-surface); box-shadow: 0 0 0 4px var(--salmod-brand-soft); }
.sh__search-ico { display: inline-flex; color: var(--salmod-muted-fg); }
.sh__search-ico .s-ico { width: 20px; height: 20px; }
html body .sh__search-go {
	flex: 0 0 auto; height: 38px; padding: 0 18px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--salmod-primary); color: var(--salmod-on-primary);
	font-size: 14px; font-weight: 800;
	transition: background-color .2s ease;
}
html body .sh__search-go:hover { background: var(--salmod-brand); }
/* Loading: a thin indeterminate bar under the field (no spinning icon) */
.ss__progress { position: absolute; inset-inline: 22px; bottom: -3px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.ss__progress::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--salmod-brand); border-radius: inherit; animation: ss-bar 1s cubic-bezier(.4,0,.2,1) infinite; }
.ss.is-loading .ss__progress { opacity: 1; }
@keyframes ss-bar { 0% { right: -40%; } 100% { right: 100%; } }

.ss__panel {
	position: absolute; top: calc(100% + 10px); inset-inline: 0; z-index: 20;
	max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain;
	padding: 16px;
	background: var(--salmod-surface);
	border: 1px solid var(--salmod-line-soft); border-radius: 20px;
	box-shadow: 0 24px 60px rgba(28,25,23,.14);
	scrollbar-width: thin;
}
.ss__panel[hidden] { display: none; }
.ss__label { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--salmod-muted-fg); }
.ss__recent + .ss__label { margin-top: 18px; }
.ss__row-head { display: flex; align-items: center; justify-content: space-between; }
.ss__row-head .ss__label { margin: 0; }
html body .ss__clear { min-height: 36px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--salmod-brand-ink); }
.ss__recent-list { list-style: none; margin: 4px 0 0; padding: 0; }
html body .ss__recent-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 4px; border-radius: 10px; font-size: 14.5px; color: var(--salmod-primary); }
html body .ss__recent-item:hover { background: var(--salmod-ivory); }
.ss__recent-ico { width: 18px; height: 18px; border-radius: 999px; border: 1.6px solid var(--salmod-muted-fg); position: relative; flex: 0 0 auto; }
.ss__recent-ico::after { content: ""; position: absolute; top: 3px; right: 6.5px; width: 4px; height: 5px; border-right: 1.6px solid var(--salmod-muted-fg); border-bottom: 1.6px solid var(--salmod-muted-fg); }
.ss__recent-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ss__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ss__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--salmod-ivory); color: var(--salmod-primary) !important; font-size: 12.5px; font-weight: 700; text-align: center; }
.ss__tile:hover { background: var(--salmod-brand-soft); color: var(--salmod-brand-ink) !important; }
.ss__tile-ico { width: 38px; height: 38px; border-radius: 999px; background: var(--salmod-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--salmod-brand-ink); }
.ss__tile-ico .s-ico { width: 22px; height: 22px; }

/* Results */
.ss__skeleton { display: none; }
.ss.is-loading .ss__skeleton { display: grid; gap: 12px; margin-bottom: 8px; }
.ss.is-loading .ss__list, .ss.is-loading .ss__none, .ss.is-loading .ss__all, .ss.is-loading .ss__fix { display: none !important; }
.ss__skeleton span { display: block; height: 70px; border-radius: 12px; background: linear-gradient(90deg, var(--salmod-field) 0%, var(--salmod-ivory) 50%, var(--salmod-field) 100%); background-size: 200% 100%; animation: ss-shimmer 1.1s linear infinite; }
@keyframes ss-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ss__fix { margin: 0 0 8px; font-size: 13px; color: var(--salmod-muted-fg); }
.ss__fix strong { color: var(--salmod-primary); }
.ss__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ss__cats:not(:empty) { margin-bottom: 10px; }
.ss__catlink { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--salmod-brand-soft); color: var(--salmod-brand-ink) !important; font-size: 13px; }
.ss__list { list-style: none; margin: 0; padding: 0; }
.ss__list li + li { border-top: 1px solid var(--salmod-line-soft); }
.ss__item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: var(--salmod-primary) !important; }
.ss__list [aria-selected="true"] .ss__item, .ss__item:hover { background: var(--salmod-ivory); }
.ss__thumb { flex: 0 0 56px; width: 56px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--salmod-field); }
.ss__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ss__title { font-size: 14px; font-weight: 600; line-height: 1.75; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html body .ss__title mark { background: transparent; padding: 0; margin: 0; color: var(--salmod-brand-ink); font-weight: 800; }
.ss__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ss__price { font-size: 14px; font-weight: 800; color: var(--salmod-primary); font-variant-numeric: tabular-nums; }
.ss__badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--salmod-brand-soft); color: var(--salmod-brand-ink); }
.ss__badge--out { background: var(--salmod-field); color: var(--salmod-muted-fg); }
.ss__none { margin: 6px 0; color: var(--salmod-muted-fg); font-size: 14px; line-height: 1.9; }
.ss__all { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; border-radius: 999px; background: var(--salmod-primary); color: var(--salmod-on-primary) !important; font-size: 14px; font-weight: 800; }
.ss__all:hover { background: var(--salmod-brand); }

/* ==================== MINI CART ==================== */
/* WoodMart renders its own mini-cart markup; we only provide the frame (one scroll area). */
.sh__cartwrap { position: relative; }
.sh-cart {
	position: absolute; top: calc(100% + 10px); inset-inline-end: -8px; z-index: 30;
	width: 380px; max-height: min(78vh, 680px);
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--salmod-surface);
	border: 1px solid var(--salmod-line-soft); border-radius: 20px;
	box-shadow: 0 24px 60px rgba(28,25,23,.16);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.sh-cart::before { content: ""; position: absolute; top: -12px; inset-inline: 0; height: 12px; } /* hover bridge */
@media (hover: hover) and (min-width: 1025px) {
	.sh__cartwrap:hover .sh-cart, .sh__cartwrap.is-focus .sh-cart { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
}
.sh-cart__head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 4px 8px 4px 16px; border-bottom: 1px solid var(--salmod-line-soft); }
.sh-cart__head strong { font-size: 15px; color: var(--salmod-primary); }
html body .sh-cart__close { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; color: var(--salmod-primary); }
html body .sh-cart__close:hover { background: var(--salmod-field); }
.sh-cart .widget_shopping_cart_content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; scrollbar-width: thin; }
/* Flatten WoodMart's inner scroll areas so there's a single scrollbar */
.sh-cart .shopping-cart-widget-body, .sh-cart .wd-scroll, .sh-cart .wd-scroll-content { max-height: none !important; height: auto !important; overflow: visible !important; }
.sh-cart .woocommerce-mini-cart, .sh-cart .cart_list { list-style: none; margin: 0 !important; padding: 0 !important; }
/* Item row — works for WoodMart's template (image link + .cart-info) and WooCommerce's default (a > img + name). */
.sh-cart .mini_cart_item {
	position: relative !important;
	display: flex !important; align-items: flex-start; gap: 12px;
	margin: 0 !important; padding: 14px 0 14px 0 !important; padding-inline-end: 34px !important;
	border: 0 !important; background: none !important;
	font-size: 14px; line-height: 1.7;
}
.sh-cart .mini_cart_item + .mini_cart_item { border-top: 1px solid var(--salmod-line-soft) !important; }
.sh-cart .mini_cart_item .cart-item-link { position: absolute; inset: 0; z-index: 0; font-size: 0; }
.sh-cart .mini_cart_item .cart-item-image { position: relative; z-index: 1; flex: 0 0 64px; margin: 0 !important; }
.sh-cart .mini_cart_item img { display: block; width: 64px !important; height: 80px !important; max-width: none; object-fit: cover; border-radius: 10px; margin: 0 !important; float: none !important; }
.sh-cart .mini_cart_item .cart-info { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; pointer-events: none; }
.sh-cart .mini_cart_item .cart-info a, .sh-cart .mini_cart_item .cart-info button, .sh-cart .mini_cart_item .cart-info input { pointer-events: auto; }
.sh-cart .mini_cart_item .wd-entities-title, .sh-cart .mini_cart_item > a:not(.remove):not(.cart-item-link):not(.cart-item-image) {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 14px !important; font-weight: 600 !important; line-height: 1.7 !important; color: var(--salmod-primary) !important;
}
/* WooCommerce default markup: <a><img>Name</a> */
.sh-cart .mini_cart_item > a:not(.remove):not(.cart-item-link):not(.cart-item-image) { display: flex; gap: 12px; flex: 1 1 auto; min-width: 0; }
.sh-cart .mini_cart_item .wd-product-detail, .sh-cart .mini_cart_item dl.variation { margin: 2px 0 0 !important; font-size: 12.5px; color: var(--salmod-muted-fg); }
.sh-cart .mini_cart_item .quantity { display: block; margin-top: 4px; font-size: 13px; color: var(--salmod-muted-fg); font-variant-numeric: tabular-nums; }
.sh-cart .mini_cart_item .quantity .amount { color: var(--salmod-brand-ink); font-weight: 800; }
/* Remove button: one "×" only (WoodMart adds an icon via ::before as well) */
.sh-cart .mini_cart_item a.remove {
	position: absolute !important; inset-inline-end: 0; top: 14px; z-index: 2;
	width: 28px !important; height: 28px !important; margin: 0 !important; padding: 0 !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--salmod-field) !important; border: 0 !important;
	font-size: 17px !important; line-height: 1 !important; font-weight: 400 !important; color: var(--salmod-muted-fg) !important;
	text-indent: 0 !important; overflow: hidden;
}
.sh-cart .mini_cart_item a.remove::before, .sh-cart .mini_cart_item a.remove::after { display: none !important; content: none !important; }
.sh-cart .mini_cart_item a.remove:hover { background: var(--salmod-brand-soft) !important; color: var(--salmod-brand-ink) !important; }
.sh-cart .shopping-cart-widget-footer, .sh-cart .woocommerce-mini-cart__total { padding-top: 12px; }
.sh-cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0 0 10px !important; font-weight: 800; color: var(--salmod-primary); }
.sh-cart .woocommerce-mini-cart__buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0 !important; }
.sh-cart .woocommerce-mini-cart__buttons > a {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: auto !important; min-height: 48px; margin: 0 !important; padding: 0 12px !important;
	border-radius: 999px !important; font-size: 14px !important; font-weight: 800 !important;
	background: var(--salmod-field) !important; color: var(--salmod-primary) !important; border: 0 !important; box-shadow: none !important;
}
.sh-cart .woocommerce-mini-cart__buttons > a.checkout { background: var(--salmod-brand) !important; color: var(--salmod-on-brand) !important; }
.sh-cart .woocommerce-mini-cart__empty-message, .sh-cart .wd-empty-mini-cart { margin: 24px 0 8px; text-align: center; color: var(--salmod-muted-fg); }

.sh-scrim { position: fixed; inset: 0; z-index: 99999; background: rgba(12,10,9,.45); opacity: 0; transition: opacity .25s ease; }
.sh-scrim[hidden] { display: none; }
.sh-scrim.is-on { opacity: 1; }

/* ==================== BOTTOM NAVIGATION (mobile) ==================== */
.sb { display: none; }

/* ==================== MOBILE (≤1024px) ==================== */
@media (max-width: 1024px) {
	.admin-bar .sh { top: 0; }
	.sh-announce { font-size: 12px; padding: 5px 12px; }
	/* Header: logo + search pill only */
	.sh__row { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 6px 12px; min-height: 56px; }
	.sh__logo img { height: 24px; max-width: 120px; }
	html body .sh__pill {
		display: flex; align-items: center; gap: 8px;
		height: 44px; padding: 0 14px;
		border-radius: 999px; background: var(--salmod-field);
		color: var(--salmod-muted-fg); font-size: 14px;
		overflow: hidden; white-space: nowrap;
	}
	html body .sh__pill .s-ico { width: 20px; height: 20px; color: var(--salmod-primary); }
	.sh__tools { position: absolute; width: 0; height: 0; overflow: visible; } /* keeps the cart sheet in the DOM; icons hidden */
	.sh__tools > .sh__icon, .sh__cartwrap > .sh__cart { display: none !important; }
	.sh__nav { display: none; }

	/* Search sheet */
	.ss { position: fixed; inset: 0; z-index: 1000; max-width: none; display: none; flex-direction: column; background: var(--salmod-surface); }
	.ss.is-open { display: flex; }
	.ss__bar { gap: 4px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); border-bottom: 1px solid var(--salmod-line-soft); }
	html body .ss__back { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; color: var(--salmod-primary); flex: 0 0 auto; }
	.sh__search { height: 46px; padding-inline: 12px 4px; }
	html body .sh__search input[type="search"] { font-size: 16px; }
	html body .sh__search-go { height: 36px; padding: 0 14px; font-size: 13px; }
	.ss__progress { inset-inline: 60px 14px; bottom: 0; }
	.ss__panel { position: static; flex: 1; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: 14px 14px 0; }
	.ss__panel[hidden] { display: block; }
	.ss__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ss__all { position: sticky; bottom: 0; margin: 12px -14px 0; border-radius: 0; min-height: 54px; padding-bottom: env(safe-area-inset-bottom); }

	/* Cart: bottom sheet (same style as the category sheet) */
	.sh-cart {
		position: fixed; top: auto; bottom: 0; inset-inline: 0; z-index: 1000;
		width: auto; max-height: 85vh; max-height: 85dvh;
		border-radius: 22px 22px 0 0; border: 0;
		padding-bottom: env(safe-area-inset-bottom);
		transform: translateY(100%); opacity: 1; visibility: hidden;
		transition: transform .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s;
	}
	.sh-cart::before { content: ""; position: static; display: block; flex: 0 0 auto; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--salmod-border); }
	.sh__cartwrap.is-open .sh-cart { transform: none; visibility: visible; transition-delay: 0s; }
	html body .sh-cart__close { display: inline-flex; }

	/* Bottom navigation */
	.sb {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
		display: flex; justify-content: space-around; align-items: stretch;
		height: calc(62px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--salmod-surface);
		border-top: 1px solid var(--salmod-line-soft);
		box-shadow: 0 -6px 20px rgba(28,25,23,.05);
	}
	html body .sb__item {
		flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-width: 0; font-size: 11px; font-weight: 700; color: var(--salmod-muted-fg); text-decoration: none;
		position: relative;
	}
	html body .sb__item .s-ico { width: 23px; height: 23px; }
	html body .sb__item.is-active, html body .sb__item[aria-expanded="true"] { color: var(--salmod-brand-ink); }
	html body .sb__item.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--salmod-brand); }
	.sb__ico { position: relative; display: inline-flex; }
	.sb__ico .sh__count { top: -6px; inset-inline-end: -10px; }
	body.salmod-has-hd { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* ==================== CATEGORY SHEET (opened from the bottom navigation) ==================== */
.sh-drawer { position: fixed; inset: 0; z-index: 100001; }
.sh-drawer[hidden] { display: none; }
.sh-drawer__scrim { position: absolute; inset: 0; background: rgba(12,10,9,.45); opacity: 0; transition: opacity .25s ease; }
.sh-drawer__panel {
	position: absolute; inset-inline: 0; bottom: 0;
	max-height: 86vh; max-height: 86dvh;
	display: flex; flex-direction: column;
	background: var(--salmod-surface);
	border-radius: 22px 22px 0 0;
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.2,.7,.2,1);
	padding-bottom: env(safe-area-inset-bottom);
}
.sh-drawer__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--salmod-border); }
.sh-drawer.is-open .sh-drawer__scrim { opacity: 1; }
.sh-drawer.is-open .sh-drawer__panel { transform: none; }
.sh-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 2px 8px 2px 16px; border-bottom: 1px solid var(--salmod-line-soft); }
.sh-drawer__head strong { font-size: 15px; color: var(--salmod-primary); }
.sh-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px; }
.sh-drawer__label { margin: 18px 4px 6px; font-size: 12px; font-weight: 800; color: var(--salmod-muted-fg); }
.sh-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sh-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 2px; border-radius: 14px; background: var(--salmod-ivory); color: var(--salmod-primary) !important; text-align: center; transition: background-color .2s ease, color .2s ease; }
.sh-cat:hover { background: var(--salmod-brand-soft); color: var(--salmod-brand-ink) !important; }
.sh-cat__ico { width: 40px; height: 40px; border-radius: 999px; background: var(--salmod-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--salmod-brand-ink); }
.sh-cat__ico .s-ico { width: 24px; height: 24px; }
.sh-cat__name { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.sh-drawer__links .sf__list { display: block; }
.sh-drawer__links li { border-bottom: 1px solid var(--salmod-line-soft); }
.sh-drawer__links li:last-child { border-bottom: 0; }
.sh-drawer__links a { display: flex !important; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; font-size: 14.5px; font-weight: 600; color: var(--salmod-primary) !important; }
.sh-drawer__links a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--salmod-muted-fg); border-left: 2px solid var(--salmod-muted-fg); transform: rotate(-45deg); }
.sh-drawer__foot { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--salmod-line-soft); }
.sh-drawer__foot a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; background: var(--salmod-ivory); font-size: 13px; font-weight: 700; color: var(--salmod-primary) !important; }
.sh-drawer__foot a:hover { background: var(--salmod-brand-soft); }
@media (min-width: 768px) {
	.sh-drawer__panel { max-width: 560px; margin-inline: auto; inset-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sh, .sh-drawer__panel, .sh-drawer__scrim, .sh__menu .sub-menu, .sh-cart, .ss__progress::before, .ss__skeleton span { transition: none; animation: none; }
}

/* ---------------- Footer ---------------- */
.sf { background: var(--salmod-primary); color: var(--salmod-on-dark); margin-top: 0; }
.sf a { color: var(--salmod-on-dark-strong) !important; transition: color .2s ease; }
.sf a:hover { color: var(--salmod-brand-on-dark) !important; }
.sf__in {
	max-width: 1400px; margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px) 32px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
	gap: clamp(24px, 4vw, 56px);
}
.sf__logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.sf__brand p { margin: 18px 0 0; line-height: 2; font-size: 14px; color: var(--salmod-on-dark); max-width: 42ch; }
.sf__social { display: flex; gap: 8px; margin-top: 20px; }
.sf__social a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; justify-content: center; }
.sf__social a:hover { background: var(--salmod-brand); border-color: var(--salmod-brand); color: var(--salmod-on-primary) !important; }
.sf__col h2 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--salmod-on-primary); }
.sf__col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.sf__col summary::-webkit-details-marker { display: none; }
.sf__col summary .s-ico { display: none; }
.sf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sf__list a { display: inline-flex; align-items: center; min-height: 40px; min-width: 44px; font-size: 14px; }
.sf__list--contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; line-height: 1.9; }
.sf__list--contact .s-ico { width: 18px; height: 18px; margin-top: 4px; color: var(--salmod-brand-on-dark); }
.sf__list--contact a { min-height: 32px; min-width: 0; display: inline-flex; vertical-align: middle; }
.sf__seals { display: flex; gap: 10px; margin-top: 18px; }
.sf__seals a { width: 92px; height: 92px; border-radius: 12px; background: var(--salmod-surface); display: inline-flex; align-items: center; justify-content: center; padding: 6px; }
.sf__seals img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.sf__bottom {
	max-width: 1400px; margin: 0 auto;
	padding: 18px clamp(16px, 3vw, 32px) 24px;
	border-top: 1px solid rgba(255,255,255,.12);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	font-size: 13px; color: var(--salmod-on-dark-muted);
}
.sf__bottom p { margin: 0; }

@media (max-width: 900px) {
	.sf__in { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
	.sf__brand { padding-bottom: 24px; }
	.sf__col { border-top: 1px solid rgba(255,255,255,.12); }
	.sf__col summary { cursor: pointer; min-height: 56px; }
	.sf__col summary h2 { margin: 0; }
	.sf__col summary .s-ico { display: block; transition: transform .25s ease; }
	.sf__col[open] summary .s-ico { transform: rotate(180deg); }
	.sf__col .sf__list { padding-bottom: 16px; }
	.sf__contact { padding-top: 18px; }
	.sf__bottom { flex-direction: column; text-align: center; }
	/* Leave room for WoodMart's fixed mobile toolbar */
	.salmod-has-hd .sf__bottom { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sh, .sh-drawer__panel, .sh-drawer__scrim, .sh__menu .sub-menu { transition: none; }
}
