/* Smart Shop Flow – custom global header */
:root {
	--ssf-hdr-bg: rgba(255, 255, 255, .78);
	--ssf-hdr-line: rgba(17, 24, 39, .07);
	--ssf-field: #f1f3f6;
	--ssf-ease: cubic-bezier(.22, 1, .36, 1);
}

.ssf-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------------------------------------------------------------- bar */
.ssf-hdr {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 9995;
	background: var(--ssf-hdr-bg);
	-webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid var(--ssf-hdr-line);
	transition: transform .35s var(--ssf-ease), box-shadow .3s ease, background .3s ease;
	font-size: 15px; color: #111827;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ssf-hdr { background: #fff; }
}
.ssf-hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .35); }
.ssf-hdr.is-hidden { transform: translateY(-110%); }

.ssf-hdr__inner {
	max-width: 1440px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 40px);
	display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
	height: 74px; transition: height .3s var(--ssf-ease);
}
.ssf-hdr.is-scrolled .ssf-hdr__inner { height: 64px; }

.ssf-logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none !important; color: inherit !important; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.ssf-logo img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; transition: height .3s var(--ssf-ease); }
.ssf-hdr.is-scrolled .ssf-logo img { height: 38px; }

.ssf-hdr__btn {
	all: unset; box-sizing: border-box; cursor: pointer; position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 14px; color: #1f2937;
	transition: background .2s, transform .2s var(--ssf-ease), color .2s;
	-webkit-tap-highlight-color: transparent;
}
.ssf-hdr__btn:hover { background: var(--ssf-field); color: var(--ssf-brand); }
.ssf-hdr__btn:active { transform: scale(.92); }
.ssf-hdr__btn:focus-visible { outline: 2px solid var(--ssf-brand); outline-offset: 2px; }
.ssf-hdr__back { display: none; }
.ssf-hdr__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }

/* Badges */
.ssf-hdr .ssf-hdr-badge, .ssf-hdr .ssf-hdr-cart-count, .ssf-bnav .ssf-hdr-badge, .ssf-bnav .ssf-hdr-cart-count {
	position: absolute; top: 3px; right: 2px; left: auto;
	min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
	font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; color: #fff;
	background: var(--ssf-brand); box-shadow: 0 0 0 2px #fff;
	animation: ssf-badge .35s var(--ssf-ease);
}
.ssf-hdr .ssf-wl-count, .ssf-bnav .ssf-wl-count { background: var(--ssf-heart); }
.ssf-hdr-cart-count[data-count="0"], .ssf-hdr .ssf-wl-count[data-count="0"], .ssf-bnav .ssf-wl-count[data-count="0"] { display: none !important; }
@keyframes ssf-badge { from { transform: scale(.4); opacity: 0; } }

/* ---------------------------------------------------------------- desktop menu */
.ssf-nav { flex: 1 1 auto; min-width: 0; }
.ssf-nav__list, .ssf-nav__list ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ssf-nav__list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.ssf-nav__list > li { position: relative; }
.ssf-nav__list > li > a {
	display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px;
	font-weight: 600; color: #1f2937 !important; text-decoration: none !important; white-space: nowrap;
	transition: background .2s, color .2s;
}
.ssf-nav__list > li > a:hover, .ssf-nav__list > li.current-menu-item > a, .ssf-nav__list > li.current-menu-ancestor > a { background: var(--ssf-field); color: var(--ssf-brand) !important; }
.ssf-nav__list > li.menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 4px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.ssf-nav__list .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; z-index: 5;
	padding: 8px !important; background: #fff; border-radius: 18px; border: 1px solid #eef0f3;
	box-shadow: 0 24px 50px -20px rgba(17, 24, 39, .3);
	opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
	transition: opacity .2s ease, transform .25s var(--ssf-ease), visibility .2s;
}
.ssf-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.ssf-nav__list li:hover > .sub-menu, .ssf-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ssf-nav__list .sub-menu li { position: relative; }
.ssf-nav__list .sub-menu a {
	display: block; padding: 10px 14px; border-radius: 12px; color: #374151 !important; text-decoration: none !important; font-size: 14.5px;
	transition: background .15s, color .15s, padding .2s var(--ssf-ease);
}
.ssf-nav__list .sub-menu a:hover { background: var(--ssf-field); color: var(--ssf-brand) !important; padding-left: 18px; }
.ssf-nav__list .sub-menu .sub-menu { top: -8px; left: calc(100% + 8px); }

/* ---------------------------------------------------------------- search */
.ssf-search {
	position: relative; display: flex; align-items: center; gap: 10px;
	flex: 1 1 auto; min-width: 200px; height: 48px; padding: 0 5px 0 18px; margin: 0;
	background: var(--ssf-field); border-radius: 999px; border: 1px solid transparent;
	transition: flex-basis .35s var(--ssf-ease), background .2s, border-color .2s, box-shadow .2s;
	color: #6b7280;
}
.ssf-search--bar { max-width: 780px; margin: 0 auto; }
.ssf-search.is-focus { background: #fff; border-color: color-mix(in srgb, var(--ssf-brand) 35%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ssf-brand) 12%, transparent); color: var(--ssf-brand); }
.ssf-search input[type="search"] {
	all: unset; flex: 1 1 auto; min-width: 0; height: 100%; font-size: 15px; color: #111827;
}
.ssf-search input[type="search"]::placeholder { color: #9ca3af; }
.ssf-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.ssf-search__go {
	all: unset; cursor: pointer; box-sizing: border-box; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 38px; border-radius: 999px; color: #fff;
	background: var(--ssf-brand); transition: transform .2s var(--ssf-ease), filter .2s;
}
.ssf-search__go:hover { filter: brightness(1.1); }
.ssf-search__go:active { transform: scale(.94); }
.ssf-search__go .ssf-i { width: 19px; height: 19px; stroke-width: 2.2; }
.ssf-search--sheet .ssf-search__go { display: none; }
.ssf-search > .ssf-i { color: #9ca3af; }
.ssf-search__clear { all: unset; cursor: pointer; display: inline-flex; padding: 6px; border-radius: 50%; color: #6b7280; }
.ssf-search__clear[hidden] { display: none; }
.ssf-search__clear .ssf-i { width: 16px; height: 16px; }
.ssf-search.is-loading::after {
	content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
	border: 2px solid #e5e7eb; border-top-color: var(--ssf-brand); animation: ssf-spin .6s linear infinite;
}

.ssf-search__panel {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 20;
	min-width: 320px; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px;
	background: #fff; border-radius: 20px; border: 1px solid #eef0f3;
	box-shadow: 0 30px 60px -24px rgba(17, 24, 39, .35);
	animation: ssf-drop .25s var(--ssf-ease);
}
.ssf-search__panel[hidden] { display: none; }
@keyframes ssf-drop { from { opacity: 0; transform: translateY(-6px); } }
.ssf-sr__item, .ssf-sr__recent, .ssf-sr__all {
	display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px;
	color: #111827 !important; text-decoration: none !important; transition: background .15s;
}
.ssf-sr__item:hover, .ssf-sr__recent:hover, .ssf-sr__all:hover, .ssf-search__panel .is-active { background: var(--ssf-field); }
.ssf-sr__img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--ssf-field); }
.ssf-sr__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssf-sr__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ssf-sr__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ssf-sr__name mark { background: color-mix(in srgb, var(--ssf-brand) 14%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ssf-sr__price { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.ssf-sr__now { font-weight: 700; }
.ssf-sr__price del { color: #9ca3af; font-size: 12px; }
.ssf-sr__off { color: #059669; font-weight: 700; font-size: 12px; }
.ssf-sr__all { justify-content: space-between; margin-top: 4px; font-weight: 600; color: var(--ssf-brand) !important; }
.ssf-sr__all svg, .ssf-sr__recent svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ssf-sr__recent { font-size: 14px; color: #374151 !important; }
.ssf-sr__recent svg { color: #9ca3af; }
.ssf-sr__head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.ssf-sr__clear { all: unset; cursor: pointer; color: var(--ssf-brand); font-size: 12px; text-transform: none; letter-spacing: 0; }
.ssf-sr__empty { padding: 18px 12px; color: #6b7280; font-size: 14px; text-align: center; }

/* ---------------------------------------------------------------- desktop: [menu] [logo] [—— search ——] [icons] */
.ssf-nav { display: none !important; } /* menu lives in the drawer on every screen size */
.ssf-hdr__inner { gap: clamp(8px, 1.6vw, 22px); }
.ssf-hdr__actions { margin-left: 0; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 768px) {
	.ssf-hdr__inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; row-gap: 8px; column-gap: 4px; }
	.ssf-hdr.is-scrolled .ssf-hdr__inner { height: auto; }
	.ssf-logo img { height: 34px; }
	.ssf-hdr.is-scrolled .ssf-logo img { height: 32px; }
	.ssf-hdr__actions { margin-left: auto; }
	.ssf-search.ssf-search--bar { order: 10; flex: 1 1 100%; max-width: none; height: 44px; }
	.ssf-search__go { width: 36px; height: 34px; }
	.ssf-search__panel { min-width: 0; }
	.ssf-has-bnav .ssf-hdr__account { display: none; }
	.ssf-hdr__btn { width: 42px; height: 42px; }

	/* Product, shop, category & search pages: just [←] [search] like a shopping app */
	.ssf-hdr-compact .ssf-hdr__inner { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; column-gap: 6px; }
	.ssf-hdr-compact .ssf-hdr__back { display: inline-flex; flex: 0 0 auto; }
	.ssf-hdr-compact .ssf-hdr__menu,
	.ssf-hdr-compact .ssf-hdr .ssf-logo,
	.ssf-hdr-compact .ssf-hdr__actions { display: none !important; }
	.ssf-hdr-compact .ssf-search.ssf-search--bar { order: 0; flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- bottom navigation (phones) */
.ssf-bnav { display: none; }
@media (max-width: 768px) {
	.ssf-bnav {
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9989;
		display: flex; justify-content: space-around; align-items: stretch;
		height: 64px; padding: 6px; border-radius: 22px;
		background: rgba(255, 255, 255, .86);
		-webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
		border: 1px solid rgba(17, 24, 39, .06);
		box-shadow: 0 18px 40px -16px rgba(17, 24, 39, .35);
		transition: transform .35s var(--ssf-ease), opacity .3s;
	}
	body.ssf-scrolling-down .ssf-bnav { transform: translateY(calc(100% + 24px)); opacity: 0; }
	.ssf-has-bnav { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
	/* Product pages use the sticky Add to Cart / Buy Now bar instead */
	.single-product .ssf-bnav { display: none; }
	.single-product.ssf-has-bnav { padding-bottom: 0; }
	.ssf-has-bnav:not(.single-product) .ssf-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
.ssf-bnav__item {
	all: unset; box-sizing: border-box; cursor: pointer; position: relative;
	flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border-radius: 16px; color: #6b7280; font-size: 11px; font-weight: 600; text-decoration: none !important;
	-webkit-tap-highlight-color: transparent; transition: color .2s, background .25s var(--ssf-ease), transform .15s;
}
.ssf-bnav__item:active { transform: scale(.92); }
.ssf-bnav__item .ssf-i { width: 23px; height: 23px; transition: transform .3s var(--ssf-ease); }
.ssf-bnav__item.is-active { color: var(--ssf-brand); background: color-mix(in srgb, var(--ssf-brand) 10%, transparent); }
.ssf-bnav__item.is-active .ssf-i { transform: translateY(-1px); stroke-width: 2.1; }
.ssf-bnav .ssf-hdr-badge, .ssf-bnav .ssf-hdr-cart-count { top: 2px; right: calc(50% - 22px); }

/* ---------------------------------------------------------------- drawers */
.ssf-sheet, .ssf-cartpanel { position: fixed; inset: 0; z-index: 99998; visibility: hidden; }
.ssf-sheet.is-open, .ssf-cartpanel.is-open { visibility: visible; }
.ssf-sheet__bg { position: absolute; inset: 0; background: rgba(17, 24, 39, .42); opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.is-open > .ssf-sheet__bg { opacity: 1; }
.ssf-sheet__panel, .ssf-cartpanel__panel {
	position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
	background: #fff; outline: none; overflow: hidden;
	box-shadow: 0 0 60px rgba(17, 24, 39, .25);
	transition: transform .4s var(--ssf-ease);
}
.ssf-sheet__panel { left: 0; width: min(380px, 88vw); border-radius: 0 26px 26px 0; transform: translateX(-102%); }
.ssf-cartpanel__panel { right: 0; width: min(420px, 100vw); border-radius: 26px 0 0 26px; transform: translateX(102%); }
.is-open .ssf-sheet__panel, .is-open .ssf-cartpanel__panel { transform: none; }

.ssf-sheet__head, .ssf-cartpanel__head {
	display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid #f0f1f4; flex: 0 0 auto;
}
.ssf-sheet__head .ssf-logo img { height: 34px; }
.ssf-sheet__head .ssf-hdr__btn, .ssf-cartpanel__head .ssf-hdr__btn { margin-left: auto; }
.ssf-sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 16px 28px; overscroll-behavior: contain; }
.ssf-sheet__body .ssf-search { flex: none; width: 100%; min-width: 0; }
.ssf-sheet__label { margin: 22px 4px 10px !important; font-size: 12px; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; }

.ssf-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.ssf-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; color: #1f2937 !important; text-align: center; }
.ssf-cat__img {
	width: 64px; height: 64px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ssf-brand) 14%, #fff), color-mix(in srgb, var(--ssf-buy) 14%, #fff));
	font-size: 22px; font-weight: 800; color: var(--ssf-brand);
	transition: transform .3s var(--ssf-ease), box-shadow .3s;
}
.ssf-cat:hover .ssf-cat__img { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 10px 20px -10px rgba(17, 24, 39, .35); }
.ssf-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.ssf-cat__name { font-size: 12px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ssf-mmenu, .ssf-mmenu ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ssf-mmenu li { position: relative; }
.ssf-mmenu a { display: block; padding: 13px 48px 13px 12px; border-radius: 14px; color: #111827 !important; text-decoration: none !important; font-weight: 600; font-size: 15.5px; }
.ssf-mmenu a:hover, .ssf-mmenu .current-menu-item > a { background: var(--ssf-field); color: var(--ssf-brand) !important; }
.ssf-mmenu .sub-menu { display: none; padding-left: 12px !important; border-left: 2px solid #eef0f3; margin-left: 14px !important; }
.ssf-mmenu .sub-menu a { font-weight: 500; font-size: 14.5px; padding-top: 10px; padding-bottom: 10px; }
.ssf-mmenu li.is-open > .sub-menu { display: block; animation: ssf-drop .25s var(--ssf-ease); }
.ssf-mmenu__toggle { all: unset; cursor: pointer; position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6b7280; }
.ssf-mmenu__toggle:hover { background: var(--ssf-field); }
.ssf-mmenu__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s var(--ssf-ease); }
.ssf-mmenu li.is-open > .ssf-mmenu__toggle svg { transform: rotate(90deg); }

.ssf-sheet__account { margin-top: 22px; padding-top: 14px; border-top: 1px solid #f0f1f4; display: grid; gap: 4px; }
.ssf-sheet__account a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: #374151 !important; text-decoration: none !important; font-weight: 600; }
.ssf-sheet__account a:hover { background: var(--ssf-field); }
.ssf-sheet__account .ssf-i { color: var(--ssf-brand); }

/* ---------------------------------------------------------------- cart panel (WooCommerce mini cart) */
.ssf-cartpanel__head strong { font-size: 18px; }
.ssf-cartpanel__n { font-size: 13px; color: #6b7280; background: var(--ssf-field); padding: 3px 10px; border-radius: 999px; }
.ssf-cartpanel__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 18px 20px; overscroll-behavior: contain; }
.ssf-cartpanel__body .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.ssf-cartpanel .woocommerce-mini-cart { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ssf-cartpanel .woocommerce-mini-cart-item {
	position: relative; display: grid !important; grid-template-columns: 68px 1fr; column-gap: 14px; align-items: center;
	padding: 14px 34px 14px 0 !important; margin: 0 !important; border-bottom: 1px solid #f0f1f4;
	animation: ssf-drop .3s var(--ssf-ease);
}
.ssf-cartpanel .woocommerce-mini-cart-item a:not(.remove) { grid-column: 2; font-weight: 600; font-size: 14.5px; color: #111827 !important; text-decoration: none !important; line-height: 1.35; display: contents; }
.ssf-cartpanel .woocommerce-mini-cart-item img {
	grid-column: 1; grid-row: 1 / span 2; width: 68px !important; height: 68px !important; object-fit: cover; border-radius: 14px; margin: 0 !important; float: none !important;
}
.ssf-cartpanel .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: 13px; color: #6b7280; margin-top: 4px; }
.ssf-cartpanel .woocommerce-mini-cart-item .remove {
	position: absolute !important; top: 14px; right: 0; left: auto !important;
	width: 26px !important; height: 26px !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center;
	background: var(--ssf-field) !important; color: #6b7280 !important; font-size: 16px !important; line-height: 1 !important; text-decoration: none !important;
	transition: background .2s, color .2s, transform .2s;
}
.ssf-cartpanel .woocommerce-mini-cart-item .remove:hover { background: #fff1f2 !important; color: #e11d48 !important; transform: rotate(90deg); }
.ssf-cartpanel .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 0 !important; padding: 18px 0 12px !important;
	border: 0 !important; font-size: 15px;
}
.ssf-cartpanel .woocommerce-mini-cart__total .amount { font-size: 20px; font-weight: 800; }
.ssf-cartpanel .woocommerce-mini-cart__buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 !important; }
.ssf-cartpanel .woocommerce-mini-cart__buttons .button {
	display: flex !important; align-items: center; justify-content: center; min-height: 50px; margin: 0 !important; padding: 0 12px !important;
	border-radius: 14px !important; font-weight: 700 !important; font-size: 14.5px !important; text-transform: none !important; letter-spacing: 0 !important;
	background: var(--ssf-field) !important; color: #111827 !important; border: 0 !important; box-shadow: none !important;
}
.ssf-cartpanel .woocommerce-mini-cart__buttons .button.checkout {
	color: #fff !important; background: var(--ssf-buy) !important;
	background: linear-gradient(135deg, color-mix(in srgb, var(--ssf-buy) 88%, #fff), color-mix(in srgb, var(--ssf-buy) 82%, #000)) !important;
	box-shadow: 0 10px 22px -12px var(--ssf-buy) !important;
}
.ssf-cartpanel .woocommerce-mini-cart__empty-message { text-align: center; padding: 60px 10px; color: #6b7280; margin: auto 0; }

@media (max-width: 600px) {
	.ssf-cartpanel__panel { top: auto; height: min(88vh, 720px); width: 100%; border-radius: 26px 26px 0 0; transform: translateY(102%); }
	.ssf-cartpanel__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: #e5e7eb; }
	.ssf-cartpanel__head { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.ssf-hdr, .ssf-bnav, .ssf-sheet__panel, .ssf-cartpanel__panel, .ssf-search { transition: none !important; }
	.ssf-hdr.is-hidden { transform: none; }
}

/* ---------------------------------------------------------------- category list (bottom sheet) */
.ssf-cats-sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
	max-height: 82vh; display: flex; flex-direction: column; background: #fff; outline: none;
	border-radius: 26px 26px 0 0; box-shadow: 0 -10px 50px rgba(17, 24, 39, .25);
	transform: translateY(102%); transition: transform .4s var(--ssf-ease);
	padding-bottom: env(safe-area-inset-bottom);
}
.ssf-cats-sheet.is-open .ssf-cats-sheet__panel { transform: none; }
.ssf-cats-sheet__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: #e5e7eb; }
.ssf-cats-sheet .ssf-cartpanel__head { padding-top: 22px; }
.ssf-cats-sheet__body { overflow-y: auto; padding: 6px 12px 18px; overscroll-behavior: contain; }

.ssf-catlist { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ssf-catlist__item { position: relative; margin: 0 !important; }
.ssf-catlist__item > a {
	display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 54px 6px 8px; border-radius: 16px;
	color: #111827 !important; text-decoration: none !important; font-weight: 600; font-size: 15.5px;
	transition: background .15s;
}
.ssf-catlist__item > a:hover, .ssf-catlist__item.is-current > a { background: var(--ssf-field); }
.ssf-catlist__item.is-current > a { color: var(--ssf-brand) !important; }
.ssf-catlist__img {
	flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--ssf-brand) 10%, #fff); color: var(--ssf-brand); font-weight: 800; font-size: 17px;
}
.ssf-catlist__img img { width: 100%; height: 100%; object-fit: cover; }
.ssf-catlist__name { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.ssf-catlist__count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #6b7280; background: var(--ssf-field); padding: 2px 8px; border-radius: 999px; }
.ssf-catlist__item:not(.has-children) > a { padding-right: 12px; }
.ssf-catlist__toggle {
	all: unset; cursor: pointer; position: absolute; top: 8px; right: 6px; width: 40px; height: 40px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center; color: #6b7280;
}
.ssf-catlist__toggle:hover { background: var(--ssf-field); }
.ssf-catlist__toggle .ssf-i { width: 18px; height: 18px; transition: transform .25s var(--ssf-ease); }
.ssf-catlist__item.is-open > .ssf-catlist__toggle .ssf-i { transform: rotate(90deg); }
.ssf-catlist--sub { display: none; margin: 2px 0 6px 30px !important; padding-left: 12px !important; border-left: 2px solid #eef0f3; }
.ssf-catlist__item.is-open > .ssf-catlist--sub { display: block; animation: ssf-drop .25s var(--ssf-ease); }
.ssf-catlist--sub .ssf-catlist__item > a { min-height: 44px; font-size: 14.5px; font-weight: 500; }
