/**
 * Shop Filter — CSS v2 (compact, high-density)
 *
 * Thay đổi v2:
 *  - Toolbar 1 hàng compact: search KHÔNG full-width, dạng pill 240px
 *  - Sort + counter inline cùng hàng, có separator
 *  - Sidebar dense: padding nhỏ hơn, brand list scrollable max-height
 *  - Chips inline gọn, có nút Clear all
 *  - Mobile: filter strip + drawer trượt
 *  - Tôn trọng prefers-reduced-motion + dark mode (commented)
 */

:root {
	--sf-bg:           #fff;
	--sf-bg-soft:      #f9fafb;
	--sf-fg:           #111827;
	--sf-fg-soft:      #374151;
	--sf-muted:        #6b7280;
	--sf-border:       #e5e7eb;
	--sf-border-soft:  #f0f1f3;
	--sf-accent:       #f59e0b;
	--sf-accent-fg:    #fff;
	--sf-accent-soft:  #fff7ed;
	--sf-radius-sm:    6px;
	--sf-radius:       8px;
	--sf-radius-lg:    12px;
	--sf-shadow:       0 4px 16px rgba(0,0,0,.08);
	--sf-z-drawer:     9998;
	--sf-z-fab:        9997;
}

/* =====================================================
 *  Common
 * ===================================================== */
.sf-app * { box-sizing: border-box; }
.sf-app [hidden] { display: none !important; }
.sf-app input, .sf-app select, .sf-app button { font: inherit; color: inherit; }
.sf-muted { color: var(--sf-muted); font-size: 13px; }

/* =====================================================
 *  TOOLBAR (Desktop Integrated Bar)
 * ===================================================== */
.sf-app .sf-toolbar {
	margin-bottom: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	overflow: hidden;
}
.sf-app .sf-toolbar-top {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: 100%;
	min-height: 48px;
}
#sf-sort{
	margin-bottom: 0px;
}
.sf-app .sf-toolbar .sf-counter {
	flex: 0 0 auto;
	padding: 0 20px;
	color: #6b7280;
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	position: relative;
}
.sf-app .sf-toolbar .sf-counter::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 24px;
	width: 1px;
	background: #e5e7eb;
}
.sf-app .sf-toolbar .sf-sort-desktop {
	flex: 0 0 auto;
	position: relative;
}
.sf-app .sf-toolbar .sf-sort-desktop::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 24px;
	width: 1px;
	background: #e5e7eb;
}
.sf-app .sf-toolbar select {
	border: none;
	background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 16px center / 12px;
	height: 48px;
	padding: 0 40px 0 20px;
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: background-color 0.2s;
}
.sf-app .sf-toolbar select:hover {
	background: rgba(0,0,0,0.02);
}
.sf-app .sf-toolbar select:focus {
	box-shadow: inset 0 -2px 0 #ea8618;
}

.sf-app .sf-toolbar .sf-search {
	flex: 1;
	min-width: 0;
	position: relative;
}
.sf-app .sf-toolbar .sf-search::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center / contain;
	pointer-events: none;
	z-index: 1;
}
.sf-app .sf-toolbar input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 20px 0 46px;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	outline: none;
	transition: background-color 0.2s;
}
.sf-app .sf-toolbar input[type="search"]:hover {
	background: rgba(0,0,0,0.02);
}
.sf-app .sf-toolbar input[type="search"]:focus {
	box-shadow: inset 0 -2px 0 #ea8618;
	background: #fff;
}

/* Desktop ẩn Mobile Sort */
.sf-app .sf-mobile-sort-bar {
	display: none;
}

/* =====================================================
 *  Active chips — inline, compact
 * ===================================================== */
.sf-app .sf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 12px;
}
.sf-app .sf-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 6px 3px 10px;
	font-size: 12px;
	line-height: 1.4;
	background: var(--sf-accent-soft);
	color: #9a3412;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s;
}
.sf-app .sf-chip:hover { background: #ffedd5; }
.sf-app .sf-chip span { font-weight: 600; }
.sf-app .sf-chip::after {
	content: "×";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(154,52,18,.12);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.sf-app .sf-chip-clear {
	background: transparent;
	color: var(--sf-muted);
	border: 1px dashed var(--sf-border);
}
.sf-app .sf-chip-clear::after { display: none; }
.sf-app .sf-chip-clear:hover { background: var(--sf-bg-soft); }

/* =====================================================
 *  SIDEBAR — dense & elegant
 * ===================================================== */
.sf-app .sf-sidebar {
	background: var(--sf-bg);
	border: 1px solid var(--sf-border-soft);
	border-radius: var(--sf-radius-lg);
	padding: 16px 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,.02);
	font-size: 13px;
	margin-bottom: 20px;
}
.sf-app .sf-sidebar h4 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--sf-fg);
	position: relative;
	padding-bottom: 8px;
}
.sf-app .sf-sidebar h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 2px;
	background: var(--sf-accent);
	border-radius: 2px;
}
.sf-app .sf-block {
	padding: 16px 0;
	border-bottom: 1px dashed var(--sf-border);
}
.sf-app .sf-block:first-child { padding-top: 0; }
.sf-app .sf-block:last-child  { border-bottom: 0; padding-bottom: 0; }

/* Custom Checkbox / Radio */
.sf-app .sf-radio,
.sf-app .sf-check {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--sf-fg-soft);
	transition: color 0.15s ease;
	position: relative;
	user-select: none;
	padding: 5px 0;
	margin: 0;
}
.sf-app .sf-radio:hover,
.sf-app .sf-check:hover { color: var(--sf-accent); }

.sf-app .sf-radio input,
.sf-app .sf-check input { 
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.sf-app .sf-radio span,
.sf-app .sf-check span {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 6px;
	position: relative;
	padding-left: 24px;
}

/* Pseudo element for the box/circle */
.sf-app .sf-radio span::before,
.sf-app .sf-check span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border: 1.5px solid #d1d5db;
	background-color: var(--sf-bg);
	transition: all 0.2s ease;
}
.sf-app .sf-check span::before { border-radius: 4px; }
.sf-app .sf-radio span::before { border-radius: 50%; }

/* Checked state visual */
.sf-app .sf-check input:checked ~ span::before {
	background-color: var(--sf-accent);
	border-color: var(--sf-accent);
}
.sf-app .sf-radio input:checked ~ span::before {
	border-color: var(--sf-accent);
	background-color: var(--sf-bg);
	border-width: 5px;
}

/* Checkmark icon for checkbox */
.sf-app .sf-check input:checked ~ span::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 5px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.sf-app .sf-radio input:checked ~ span,
.sf-app .sf-check input:checked ~ span { font-weight: 600; color: var(--sf-fg); }

.sf-app .sf-check em {
	color: var(--sf-muted);
	font-style: normal;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	background: var(--sf-bg-soft);
	padding: 2px 6px;
	border-radius: 12px;
	font-weight: 500;
}



/* Brand list: scrollable, không để dài lê thê */
.sf-app #sf-brand-list {
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}
.sf-app #sf-brand-list::-webkit-scrollbar { width: 6px; }
.sf-app #sf-brand-list::-webkit-scrollbar-thumb {
	background: var(--sf-border);
	border-radius: 3px;
}

/* Cây danh mục */
.sf-app .sf-cat-tree { list-style: none; margin: 0; padding: 0; }
.sf-app .sf-cat-tree .sf-children {
	margin: 4px 0 4px 14px;
	padding-left: 10px;
	border-left: 2px solid var(--sf-border-soft);
}
.sf-app .sf-cat-item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 2px;
}
.sf-app .sf-cat-item .sf-radio { flex: 1; min-width: 0; padding: 4px 0; }
.sf-app .sf-cat-item .sf-children { flex-basis: 100%; }
.sf-app .sf-toggle {
	width: 22px;
	height: 22px;
	border: none;
	background: var(--sf-bg-soft);
	border-radius: 50%;
	cursor: pointer;
	font-size: 12px;
	font-weight: bold;
	line-height: 22px;
	text-align: center;
	color: var(--sf-fg-soft);
	flex: 0 0 auto;
	transition: all 0.2s ease;
}
.sf-app .sf-toggle:hover { background: var(--sf-accent-soft); color: var(--sf-accent); }

/* Khoảng giá */
.sf-app .sf-price {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}
.sf-app .sf-price input {
	width: 100%;
	min-width: 0;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--sf-border);
	border-radius: var(--sf-radius-sm);
	background: var(--sf-bg-soft);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	transition: all 0.2s ease;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
}
.sf-app .sf-price input:focus { 
	outline: none; 
	border-color: var(--sf-accent);
	background: var(--sf-bg);
	box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.sf-app .sf-price-sep { color: var(--sf-muted); font-size: 12px; font-weight: bold; }

/* =====================================================
 *  Skeleton + empty + load more
 * ===================================================== */
.sf-skeleton {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.sf-skeleton-card {
	position: relative;
	height: 340px;
	border-radius: var(--sf-radius-lg);
	background-color: var(--sf-bg);
	border: 1px solid var(--sf-border-soft);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	background-image: 
		linear-gradient(#f3f4f6 100%, transparent 0), /* Ảnh SP */
		linear-gradient(#e5e7eb 100%, transparent 0), /* Dòng tên 1 */
		linear-gradient(#e5e7eb 100%, transparent 0), /* Dòng tên 2 */
		linear-gradient(#f3f4f6 100%, transparent 0); /* Giá */
	background-size:
		100% 220px,   /* Cỡ ảnh */
		85% 14px,     /* Cỡ Dòng 1 */
		55% 14px,     /* Cỡ Dòng 2 */
		45% 20px;     /* Cỡ Giá */
	background-position:
		0 0,          /* Vị trí ảnh */
		15px 245px,   /* Vị trí Dòng 1 */
		15px 270px,   /* Vị trí Dòng 2 */
		15px 305px;   /* Vị trí Giá */
	background-repeat: no-repeat;
}
.sf-skeleton-card::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
	transform: translateX(-100%);
	animation: sf-shimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sf-shimmer {
	100% { transform: translateX(100%); }
}

.sf-empty {
	padding: 40px 16px;
	text-align: center;
	color: var(--sf-muted);
	font-size: 14px;
}

.sf-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}
.sf-loadmore {
	min-width: 200px;
	height: 40px;
	padding: 0 22px;
	border: 1.5px solid var(--sf-accent);
	background: var(--sf-bg);
	color: var(--sf-accent);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}
.sf-loadmore:hover:not(:disabled) {
	background: var(--sf-accent);
	color: var(--sf-accent-fg);
}
.sf-loadmore:disabled { opacity: .6; cursor: not-allowed; }

/* =====================================================
 *  Tablet (~850-1023px)
 * ===================================================== */
@media (min-width: 850px) and (max-width: 1023px) {
	.sf-app .sf-sidebar h4 { font-size: 11px; }
	.sf-app .sf-radio,
	.sf-app .sf-check { font-size: 12.5px; }
}

/* =====================================================
 *  Mobile (≤ 849px)
 * ===================================================== */
.sf-app .sf-mobile-bar { display: none; }
.sf-drawer { display: none; }

@media (max-width: 849px) {
	.sf-app .sf-desktop-sidebar { display: none !important; }
	.sf-app .sf-content-col {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		padding: 0 8px !important;
	}

	.sf-app .sf-toolbar {
		margin-bottom: 12px;
		border: none;
		background: transparent;
		box-shadow: none;
	}
	.sf-app .sf-toolbar-top {
		padding: 0;
		margin-bottom: 12px;
		gap: 8px;
		min-height: auto;
	}
	.sf-app .sf-toolbar .sf-counter {
		height: 32px;
		line-height: 32px;
		padding: 0 12px;
		background: #f1f5f9;
		border-radius: 16px;
		border-right: none;
		font-size: 12.5px;
	}
	.sf-app .sf-toolbar .sf-counter::after { display: none; }
	
	/* Chỉ Ẩn Sort cũ trên Mobile */
	.sf-app .sf-sort-desktop {
		display: none !important;
	}

	.sf-app .sf-toolbar .sf-search {
		width: 100%;
		margin: 0;
	}
	.sf-app .sf-toolbar .sf-search::before {
		left: 10px;
		width: 14px;
		height: 14px;
	}
	.sf-app .sf-toolbar input[type="search"] {
		height: 32px;
		padding: 0 12px 0 28px;
		border-radius: 16px;
		border: 1px solid transparent;
		background: #f1f5f9;
		font-size: 13px;
		box-shadow: none;
		transition: all 0.2s ease;
	}
	.sf-app .sf-toolbar input[type="search"]:hover {
		background: #e2e8f0;
	}
	.sf-app .sf-toolbar input[type="search"]:focus {
		background: #fff;
		border-color: #ea8618;
		box-shadow: 0 2px 8px rgba(234, 134, 24, 0.05);
	}

	/* Hiển thị Mobile Sort */
	.sf-app .sf-mobile-sort-bar {
		display: flex;
		align-items: center;
		gap: 8px; /* Giữ chút khoảng cách */
		width: 100%;
		padding: 8px 0;
		position: sticky;
		top: 60px; /* Thêm sticky nếu có header cố định */
		z-index: 10;
		background: var(--sf-bg);
		border-top: 1px solid var(--sf-border-soft);
		border-bottom: 1px solid var(--sf-border-soft);
		margin-bottom: 12px;
	}

	.sf-app .sf-mobile-sort-scroll {
		display: flex;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		gap: 8px;
		flex: 1;
		min-width: 0;
		padding: 2px 4px 2px 0;
		-webkit-overflow-scrolling: touch;
		mask-image: linear-gradient(to right, black 85%, transparent 100%);
		-webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
	}
	.sf-app .sf-mobile-sort-scroll::-webkit-scrollbar {
		display: none;
	}

	.sf-app .sf-sort-pill {
		cursor: pointer;
		margin: 0;
		flex: 0 0 auto;
	}
	.sf-app .sf-sort-pill input {
		display: none;
	}
	.sf-app .sf-sort-pill span {
		display: inline-flex;
		align-items: center;
		height: 32px;
		padding: 0 12px;
		border: 1px solid #d1d5db;
		background: var(--sf-bg);
		border-radius: 4px; /* Viền vuông bo góc nhẹ */
		font-size: 13px;
		color: var(--sf-fg);
		font-weight: 400;
		white-space: nowrap;
		transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
		position: relative;
		overflow: hidden;
	}
	.sf-app .sf-sort-pill input:checked + span {
		border-color: var(--sf-accent);; /* Viền đỏ nét mảnh */
		color: var(--sf-fg);
		background: var(--sf-bg);
	}
	.sf-app .sf-sort-pill input:checked + span::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 0 16px 16px 0; /* Tam giác đỏ góc trên phải */
		border-color: transparent var(--sf-accent) transparent transparent;
		box-shadow: none;
		border-radius: 0;
		background: transparent;
	}
	.sf-app .sf-sort-pill input:checked + span::before {
		content: "";
		position: absolute;
		top: 2px;
		right: 2px;
		width: 4px;
		height: 7px;
		border: solid white;
		border-width: 0 1.5px 1.5px 0;
		transform: rotate(45deg);
		z-index: 1; /* Dấu check trắng */
	}

	.sf-app .sf-mobile-filter-btn-wrap {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		position: relative;
		padding-left: 8px;
	}
	.sf-app .sf-mobile-filter-btn-wrap::before {
		display: none; /* Bỏ đường kẻ dọc cũ đi để làm mảng nổi khối */
	}
	.sf-app .sf-btn-filter-inline {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		height: 32px;
		padding: 0 14px;
		background: #111827; /* Nền tối nổi bật */
		border: 1px solid #111827;
		font-size: 13px;
		font-weight: 600;
		color: #ffffff; /* Chữ trắng */
		border-radius: 16px; /* Hạt đậu nổi bật */
		white-space: nowrap;
		box-shadow: 0 2px 8px rgba(0,0,0,0.15);
		transition: all 0.2s;
	}
	.sf-app .sf-btn-filter-inline:active {
		transform: scale(0.96);
	}
	.sf-app .sf-btn-filter-inline svg {
		width: 16px;
		height: 16px;
		color: #ffffff;
	}

	/* Ẩn FAB cũ */
	.sf-app .sf-mobile-bar {
		display: none !important;
	}
	.sf-app .sf-fab { display: none; }

	/* Drawer */
	.sf-drawer {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0);
		z-index: var(--sf-z-drawer);
		visibility: hidden;
		transition: background .25s ease, visibility .25s ease;
	}
	.sf-drawer.is-open { background: rgba(0,0,0,.45); visibility: visible; }
	.sf-drawer-panel {
		position: absolute;
		left: 0; right: 0; bottom: 0;
		max-height: 88vh;
		background: var(--sf-bg);
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
		transition: transform .3s cubic-bezier(.32,.72,0,1);
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}
	.sf-drawer.is-open .sf-drawer-panel { transform: translateY(0); }
	.sf-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px;
		border-bottom: 1px solid var(--sf-border);
	}
	.sf-drawer-head h3 { margin: 0; font-size: 15px; }
	.sf-drawer-close {
		width: 34px; height: 34px;
		border: 0; background: transparent;
		font-size: 22px; cursor: pointer;
	}
	.sf-drawer-body {
		flex: 1;
		overflow-y: auto;
		padding: 16px 16px 24px;
		-webkit-overflow-scrolling: touch;
	}
	.sf-drawer-body .sf-block {
		margin-bottom: 20px;
		padding: 0;
		border: none;
	}
	.sf-drawer-body .sf-block:last-child { margin-bottom: 0; }
	.sf-drawer-body h4 {
		font-size: 14px;
		font-weight: 700;
		color: #111827;
		margin: 0 0 12px 0;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	
	/* Reset category tree in mobile */
	.sf-drawer-body .sf-cat-tree {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.sf-drawer-body .sf-cat-item {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		margin: 0;
		border-bottom: 1px solid #f3f4f6;
	}
	.sf-drawer-body .sf-cat-item:last-child {
		border-bottom: none;
	}
	.sf-drawer-body .sf-cat-item .sf-children {
		flex-basis: 100%;
		padding-left: 20px;
		border-top: 1px dashed #f3f4f6;
		margin-top: 4px;
	}
	
	/* Toggles */
	.sf-drawer-body .sf-toggle {
		width: 32px;
		height: 32px;
		padding: 0;
		background: transparent;
		border: none;
		color: #6b7280;
		font-size: 20px;
		font-weight: 300;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.sf-drawer-body .sf-radio, 
	.sf-drawer-body .sf-check-mobile {
		padding: 12px 0;
		margin: 0;
		font-size: 14px;
		color: #374151;
		display: flex;
		align-items: center;
		flex: 1;
		min-width: 0;
		position: relative;
		cursor: pointer;
	}
	.sf-drawer-body .sf-check-mobile {
		border-bottom: 1px solid #f3f4f6;
		width: 100%;
	}
	.sf-drawer-body .sf-check-mobile:last-child {
		border-bottom: none;
	}

	.sf-drawer-body .sf-radio span,
	.sf-drawer-body .sf-check-mobile span {
		display: flex;
		align-items: center;
		flex: 1;
		position: static;
		padding-left: 24px; /* Tighter space */
	}
	
	/* Force hide native inputs */
	.sf-drawer-body .sf-radio input,
	.sf-drawer-body .sf-check-mobile input {
		position: absolute !important;
		opacity: 0 !important;
		width: 0 !important;
		height: 0 !important;
		margin: 0 !important;
	}

	/* Custom shapes */
	.sf-drawer-body .sf-radio span::before,
	.sf-drawer-body .sf-check-mobile span::before {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		margin-top: -9px;
		width: 18px;
		height: 18px;
		border: 1px solid #d1d5db;
		background: #fff;
		transition: all 0.2s ease;
	}
	.sf-drawer-body .sf-radio span::before { border-radius: 50%; }
	.sf-drawer-body .sf-check-mobile span::before { border-radius: 4px; }

	/* Custom marks */
	.sf-drawer-body .sf-radio input:checked + span::after,
	.sf-drawer-body .sf-radio input:checked ~ span::after {
		content: "";
		position: absolute;
		left: 5px;
		top: 50%;
		margin-top: -4px; /* 8px height */
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: #fff;
	}
	.sf-drawer-body .sf-check-mobile input:checked + span::after,
	.sf-drawer-body .sf-check-mobile input:checked ~ span::after {
		content: "";
		position: absolute;
		left: 6px;
		top: 50%;
		margin-top: -5px;
		width: 5px;
		height: 9px;
		border: solid #fff;
		border-width: 0 1.5px 1.5px 0;
		transform: rotate(45deg);
	}

	/* Checked styles */
	.sf-drawer-body .sf-radio input:checked + span::before,
	.sf-drawer-body .sf-radio input:checked ~ span::before,
	.sf-drawer-body .sf-check-mobile input:checked + span::before,
	.sf-drawer-body .sf-check-mobile input:checked ~ span::before {
		background: #ea8618;
		border-color: #ea8618;
	}
	.sf-drawer-body .sf-radio input:checked + span,
	.sf-drawer-body .sf-radio input:checked ~ span,
	.sf-drawer-body .sf-check-mobile input:checked + span,
	.sf-drawer-body .sf-check-mobile input:checked ~ span {
		color: #111827;
		font-weight: 600;
	}
	.sf-price-mobile-box {
		display: flex !important;
		align-items: center;
		gap: 12px;
		width: 100%;
		border: none;
		position: static;
		opacity: 1;
	}
	.sf-price-mobile-wrap {
		flex: 1;
		position: relative;
	}
	.sf-price-mobile-wrap::after {
		content: "đ";
		position: absolute;
		right: 12px;
		top: 50%;
		margin-top: -10px;
		font-size: 13px;
		color: #9ca3af;
		pointer-events: none;
	}
	.sf-price-mobile-sep {
		width: 12px;
		height: 2px;
		background: #9ca3af;
		border-radius: 2px;
	}
	.sf-price-mobile-wrap input[type="number"] {
		width: 100% !important;
		height: 44px !important;
		padding: 0 30px 0 12px !important;
		border: 1px solid #d1d5db !important;
		border-radius: 8px !important;
		font-size: 14px !important;
		color: #111827 !important;
		background: #fff !important;
		opacity: 1 !important;
		position: relative !important;
		transition: all 0.2s !important;
		-webkit-appearance: none;
		appearance: none;
	}
	.sf-price-mobile-wrap input[type="number"]:focus {
		border-color: #ea8618 !important;
		outline: none !important;
		box-shadow: 0 0 0 3px rgba(234,134,24,0.1) !important;
	}

	.sf-drawer-foot {
		display: flex;
		gap: 8px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--sf-border);
		background: var(--sf-bg);
	}
	.sf-drawer-foot button {
		flex: 1;
		height: 42px;
		border-radius: 10px;
		border: 1px solid var(--sf-border);
		background: var(--sf-bg);
		font-weight: 600;
		font-size: 14px;
		cursor: pointer;
	}
	.sf-drawer-foot .sf-btn-primary {
		border: 0;
		background: var(--sf-accent);
		color: var(--sf-accent-fg);
	}

	body.sf-no-scroll { overflow: hidden; touch-action: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
