/* ==========================================================================
   search.goods.css — Product filter / list (flat, clean, simple)
   Loaded by frontend/views/default/mall/search.goods.html
   Scoped under .sg-wrap. v1 — minimalist filter sidebar, soft surfaces, ample air.
   ========================================================================== */

:root {
	/* Neutral surfaces */
	--sg-bg:            #f7f7f8;
	--sg-surface:       #ffffff;
	--sg-line:          #ececef;
	--sg-line-strong:   #d9d9de;

	/* Text */
	--sg-text-1:        #1a1a1a;
	--sg-text-2:        #555560;
	--sg-text-3:        #8a8a93;

	/* Single accent — used for the active filter state + sort highlight */
	--sg-accent:        #409627;
	--sg-accent-soft:   #ecf8ed;

	/* Type scale */
	--sg-fs-xs:         12px;
	--sg-fs-sm:         13px;
	--sg-fs-base:       14px;
	--sg-fs-md:         15px;
	--sg-fs-lg:         16px;

	/* Rhythm */
	--sg-r-1:           4px;
	--sg-r-2:           8px;
	--sg-r-3:           12px;
	--sg-r-4:           16px;
	--sg-r-5:           20px;
	--sg-r-6:           24px;
	--sg-r-7:           32px;

	/* Radius */
	--sg-radius-sm:     4px;
	--sg-radius:        8px;
	--sg-radius-lg:     12px;

	--sg-ease:          cubic-bezier(0.2, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   Local reset
   -------------------------------------------------------------------------- */
.sg-wrap,
.sg-wrap *,
.sg-wrap *::before,
.sg-wrap *::after { box-sizing: border-box; }

.sg-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	font-size: var(--sg-fs-base);
	line-height: 1.55;
	color: var(--sg-text-1);
	/*background: var(--sg-bg);*/
	padding: var(--sg-r-6) 0;
	border-radius: var(--sg-radius);
}

.sg-wrap a { color: inherit; text-decoration: none; transition: color .15s var(--sg-ease); }
.sg-wrap a:hover { color: var(--sg-accent); }
.sg-wrap img { display: block; max-width: 100%; }
.sg-wrap button,
.sg-wrap input { font: inherit; color: inherit; }
.sg-wrap button { cursor: pointer; }
.sg-wrap ul,
.sg-wrap ol { list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   Filter panel — flat card with subtle dividers
   -------------------------------------------------------------------------- */
.sg-filter {
	background: var(--sg-surface);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	overflow: hidden;
	margin-bottom: var(--sg-r-5);
}

/* Selected tags row */
.sg-selected {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sg-r-2);
	padding: var(--sg-r-3) var(--sg-r-5);
	background: var(--sg-accent-soft);
	border-bottom: 1px solid var(--sg-line);
	font-size: var(--sg-fs-sm);
}

.sg-selected-title {
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-2);
	margin-right: var(--sg-r-1);
}

.sg-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: var(--sg-surface);
	border: 1px solid var(--sg-line-strong);
	border-radius: 999px;
	color: var(--sg-text-1);
	font-size: var(--sg-fs-xs);
	line-height: 1.4;
	cursor: pointer;
	transition: border-color .15s var(--sg-ease), color .15s var(--sg-ease);
}
.sg-tag b { font-weight: 600; }
.sg-tag span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: var(--sg-text-3);
	font-size: 12px;
	line-height: 1;
	border-radius: 50%;
	transition: background .15s var(--sg-ease), color .15s var(--sg-ease);
}
.sg-tag:hover { border-color: var(--sg-accent); color: var(--sg-accent); }
.sg-tag:hover span { background: var(--sg-accent); color: #fff; }

/* Each filter row */
.sg-row {
	display: flex;
	align-items: flex-start;
	gap: var(--sg-r-5);
	padding: var(--sg-r-4) var(--sg-r-5);
	border-bottom: 1px solid var(--sg-line);
}
.sg-row:last-child { border-bottom: 0; }

.sg-row-label {
	flex: 0 0 72px;
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-3);
	line-height: 28px;
}

.sg-row-body {
	flex: 1;
	min-width: 0;
}

.sg-values {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sg-r-2);
}

.sg-val {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 28px;
	padding: 0 10px;
	background: transparent;
	border: 0;
	border-radius: var(--sg-radius-sm);
	color: var(--sg-text-2);
	font-size: var(--sg-fs-sm);
	line-height: 1;
	cursor: pointer;
	transition: color .15s var(--sg-ease), background .15s var(--sg-ease);
	user-select: none;
}
.sg-val:hover { color: var(--sg-accent); }
.sg-val.is-active {
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	font-weight: 500;
}
.sg-val .sg-count {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
}
.sg-val.is-active .sg-count { color: var(--sg-accent); }
.sg-val:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }

.sg-val .sg-color {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid var(--sg-line-strong);
	margin-right: 2px;
}
.sg-val .sg-color--duo {
	background: linear-gradient(135deg, #ff7a7a 0%, #ffd27a 33%, #7ad7ff 66%, #a07aff 100%);
}

.sg-val .sg-brand {
	width: 24px;
	height: 24px;
	border-radius: 2px;
	object-fit: cover;
}

/* "More" toggle */
.sg-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: var(--sg-r-2);
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-2);
	cursor: pointer;
	user-select: none;
}
.sg-more:hover { color: var(--sg-accent); }
.sg-more::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform .15s var(--sg-ease);
}
.sg-more.is-open::after { transform: rotate(180deg); }

.sg-values.is-collapsed .sg-val.is-overflow { display: none; }

/* Show/hide all advanced rows */
.sg-toggle-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: var(--sg-r-3) var(--sg-r-5);
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-2);
	background: var(--sg-bg);
	border-top: 1px solid var(--sg-line);
	cursor: pointer;
	user-select: none;
	transition: color .15s var(--sg-ease);
}
.sg-toggle-all:hover { color: var(--sg-accent); }
.sg-toggle-all::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform .15s var(--sg-ease);
}
.sg-toggle-all.is-open::after { transform: rotate(180deg); }
.sg-row.is-overflow,
.sg-row.hidden { display: none; }
.sg-filter.is-open .sg-row.is-overflow,
.sg-filter.is-open .sg-row.hidden { display: flex; }

/* --------------------------------------------------------------------------
   Sort bar — clean one-line toolbar
   -------------------------------------------------------------------------- */
.sg-sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--sg-r-3);
	padding: var(--sg-r-3) var(--sg-r-4);
	background: var(--sg-surface);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	margin-bottom: var(--sg-r-5);
}

.sg-sort-loc {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 10px;
	border: 1px solid var(--sg-line-strong);
	border-radius: var(--sg-radius-sm);
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-1);
	cursor: pointer;
	background: var(--sg-surface);
	transition: border-color .15s var(--sg-ease), color .15s var(--sg-ease);
	max-width: 200px;
}
.sg-sort-loc:hover,
.J_FilterArea:hover .sg-sort-loc {
	border-color: var(--sg-accent);
	color: var(--sg-accent);
}
/* When the popup is open, blend the trigger's bottom border into the popup */
.J_FilterArea:hover .sg-sort-loc {
	border-bottom-color: transparent;
}
.J_FilterArea:hover .fa-list { border-top-color: var(--sg-accent); }

.sg-loc-icon {
	flex: 0 0 auto;
	color: var(--sg-text-3);
	transition: color .15s var(--sg-ease);
}
.sg-sort-loc:hover .sg-loc-icon,
.J_FilterArea:hover .sg-loc-icon { color: var(--sg-accent); }

.sg-loc-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sg-loc-caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	opacity: .6;
	transition: transform .15s var(--sg-ease);
}
.J_FilterArea:hover .sg-loc-caret { transform: rotate(180deg); opacity: 1; }

/* --------------------------------------------------------------------------
   Region dropdown — flat card, two columns
   -------------------------------------------------------------------------- */
.fa-list {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: -1px;
	z-index: 100;
	min-width: 480px;
	max-width: 560px;
	background: var(--sg-surface);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	padding: 0;
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-1);
	animation: sg-fa-in .15s var(--sg-ease);
}
.fa-list::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 24px;
	width: 10px;
	height: 10px;
	background: var(--sg-surface);
	border-top: 1px solid var(--sg-line);
	border-left: 1px solid var(--sg-line);
	transform: rotate(45deg);
}
.fa-list.hidden { display: none; }

@keyframes sg-fa-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fa-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sg-r-3);
	padding: var(--sg-r-3) var(--sg-r-4);
	border-bottom: 1px solid var(--sg-line);
}
.fa-title {
	font-size: var(--sg-fs-md);
	font-weight: 600;
	color: var(--sg-text-1);
}
.fa-current {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60%;
	text-align: right;
}

.fa-body {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 0;
	/*max-height: 320px;*/
}

.fa-col {
	padding: var(--sg-r-3) var(--sg-r-2) var(--sg-r-3) var(--sg-r-4);
	border-right: 1px solid var(--sg-line);
	overflow-y: auto;
	scrollbar-width: thin;
}
.fa-col:last-child { border-right: 0; padding-left: var(--sg-r-3); padding-right: var(--sg-r-4); }

.fa-col-label {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	margin-bottom: var(--sg-r-2);
	letter-spacing: .5px;
	text-transform: uppercase;
}

.fa-loc {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fa-loc li { display: block; }

.fa-loc a {
	display: block;
	padding: 6px 10px;
	border-radius: var(--sg-radius-sm);
	color: var(--sg-text-2);
	font-size: var(--sg-fs-sm);
	line-height: 1.3;
	cursor: pointer;
	transition: background .12s var(--sg-ease), color .12s var(--sg-ease);
	user-select: none;
	white-space: nowrap;
}
.fa-loc a:hover {
	background: var(--sg-bg);
	color: var(--sg-text-1);
}
.fa-loc a:focus-visible {
	outline: 2px solid var(--sg-accent);
	outline-offset: 1px;
}
.fa-loc a.selected,
.fa-loc a.is-selected {
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	font-weight: 500;
}
.fa-loc a.selected:hover,
.fa-loc a.is-selected:hover {
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
}

.fa-col-city .fa-loc { gap: 4px; }
.fa-col-city .fa-loc a { padding: 6px 10px; min-width: 84px; text-align: center; }

.fa-col-empty {
	padding: 24px 0;
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	text-align: center;
}
.fa-col-city .J_GetCity:not(:empty) ~ .fa-col-empty { display: none; }

.fa-ft {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sg-r-3);
	padding: var(--sg-r-3) var(--sg-r-4);
	border-top: 1px solid var(--sg-line);
	background: var(--sg-bg);
	border-bottom-left-radius: var(--sg-radius);
	border-bottom-right-radius: var(--sg-radius);
}
.fa-link {
	font-size: var(--sg-fs-sm);
	color: var(--sg-text-2);
	cursor: pointer;
	transition: color .15s var(--sg-ease);
}
.fa-link:hover { color: var(--sg-accent); }

.fa-confirm {
	height: 30px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--sg-radius-sm);
	background: var(--sg-accent);
	color: #fff;
	font-size: var(--sg-fs-sm);
	font-weight: 500;
	cursor: pointer;
	transition: background .15s var(--sg-ease);
}
.fa-confirm:hover { background: #e84a2d; }
.fa-confirm:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }

.sg-sort-tabs {
	display: flex;
	align-items: center;
	gap: var(--sg-r-1);
}

.sg-sort-tab {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 6px 12px;
	background: transparent;
	border: 0;
	border-radius: var(--sg-radius-sm);
	color: var(--sg-text-2);
	font-size: var(--sg-fs-sm);
	line-height: 1;
	cursor: pointer;
	transition: color .15s var(--sg-ease), background .15s var(--sg-ease);
}
.sg-sort-tab:hover { color: var(--sg-accent); }
.sg-sort-tab.is-active,
.sg-sort-tab.btn-order-cur,
.sg-sort-tab.is-active-desc,
.sg-sort-tab.is-active-asc {
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	font-weight: 500;
}

/* Override the legacy main.css .btn-order / .btn-order-click look inside .sg-sort */
.sg-sort .btn-order,
.sg-sort .btn-order-click {
	height: auto;
	line-height: 1;
	margin: 0;
	padding: 6px 12px;
	border: 0;
	border-radius: var(--sg-radius-sm);
	float: none;
	background: transparent;
	color: var(--sg-text-2);
}
.sg-sort .btn-order-click:hover {
	background: transparent;
	color: var(--sg-accent);
	text-decoration: none;
}
.sg-sort .btn-order-click#price { display: inline-flex; }
.sg-sort .btn-order-click b {
	background: none;
	top: auto;
	right: auto;
	overflow: visible;
	display: none;
	position: static;
	width: auto;
	height: auto;
}
.sg-sort .btn-order-cur {
	background: var(--sg-accent-soft);
	color: var(--sg-accent);
	font-weight: 500;
}
.sg-sort .btn-order-cur b { display: none; }
.sg-sort-tab .sg-arrow {
	display: inline-flex;
	flex-direction: column;
	gap: 1px;
	margin-left: 2px;
}
.sg-sort-tab .sg-arrow i {
	display: block;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
}
.sg-sort-tab .sg-arrow i.up   { border-bottom: 4px solid currentColor; opacity: .35; }
.sg-sort-tab .sg-arrow i.down { border-top: 4px solid currentColor; opacity: .35; }
.sg-sort-tab:hover .sg-arrow i.up,
.sg-sort-tab:hover .sg-arrow i.down { opacity: .65; }
.sg-sort-tab.is-active-desc .sg-arrow i.up,
.sg-sort-tab.btn-order-cur.order-down .sg-arrow i.up { opacity: .25; }
.sg-sort-tab.is-active-desc .sg-arrow i.down,
.sg-sort-tab.btn-order-cur.order-down .sg-arrow i.down { opacity: 1; }
.sg-sort-tab.is-active-asc .sg-arrow i.up,
.sg-sort-tab.btn-order-cur.order-up .sg-arrow i.up { opacity: 1; }
.sg-sort-tab.is-active-asc .sg-arrow i.down,
.sg-sort-tab.btn-order-cur.order-up .sg-arrow i.down { opacity: .25; }

.sg-sort-price {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--sg-line-strong);
	border-radius: var(--sg-radius-sm);
	overflow: hidden;
	background: var(--sg-surface);
}
.sg-sort-price input {
	width: 56px;
	height: 30px;
	border: 0;
	text-align: center;
	font-size: var(--sg-fs-sm);
	font-variant-numeric: tabular-nums;
	color: var(--sg-text-1);
	background: var(--sg-surface);
}
.sg-sort-price input:focus-visible { outline: 2px solid var(--sg-accent); outline-offset: -2px; }
.sg-sort-price .sg-price-split {
	display: inline-flex;
	align-items: center;
	padding: 0 6px;
	color: var(--sg-text-3);
	font-size: var(--sg-fs-sm);
	background: var(--sg-bg);
}
.sg-sort-price .sg-price-submit {
	padding: 0 14px;
	border: 0;
	border-left: 1px solid var(--sg-line);
	background: transparent;
	color: var(--sg-text-1);
	font-size: var(--sg-fs-sm);
	transition: color .15s var(--sg-ease), background .15s var(--sg-ease);
}
.sg-sort-price .sg-price-submit:hover { color: var(--sg-accent); background: var(--sg-accent-soft); }

/* --------------------------------------------------------------------------
   Goods grid — flat cards, single 1px border, no heavy shadow
   -------------------------------------------------------------------------- */
.sg-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--sg-r-4);
}

@media (max-width: 1180px) { .sg-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .sg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .sg-grid { grid-template-columns: repeat(2, 1fr); } }

.sg-card {
	display: flex;
	flex-direction: column;
	background: var(--sg-surface);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius);
	overflow: hidden;
	transition: border-color .15s var(--sg-ease), transform .15s var(--sg-ease);
}
.sg-card:hover {
	border-color: var(--sg-line-strong);
	transform: translateY(-2px);
}
.sg-card:hover .sg-card-name { color: var(--sg-accent); }

.sg-card-pic {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--sg-bg);
	overflow: hidden;
}
.sg-card-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s var(--sg-ease);
}
.sg-card:hover .sg-card-pic img { transform: scale(1.04); }

.sg-card-body {
	padding: var(--sg-r-3) var(--sg-r-3) var(--sg-r-4);
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sg-card-price {
	font-size: var(--sg-fs-lg);
	font-weight: 600;
	color: var(--sg-accent);
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.2px;
}
.sg-card-price small { font-size: var(--sg-fs-sm); font-weight: 500; margin-right: 1px; opacity: .9; }

.sg-card-name {
	display: block;
	font-size: var(--sg-fs-base);
	color: var(--sg-text-1);
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .15s var(--sg-ease);
}

.sg-card-store {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sg-card-store a { color: var(--sg-text-3); }
.sg-card-store a:hover { color: var(--sg-accent); }

/* --------------------------------------------------------------------------
   Pagination row
   Yii's LinkPager renders <ul class="pagination pagination-default"> — we
   override the legacy Bootstrap-style rules (red primary, float layout) so
   the pager matches the cool green surface of the rest of the page.
   -------------------------------------------------------------------------- */
.sg-pager {
	display: flex;
	justify-content: center;
	margin-top: var(--sg-r-5);
	margin-bottom: var(--sg-r-5);
}

/* Reset the Bootstrap-style <ul> to a clean flex row with gap */
.sg-pager .pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--sg-r-2);
	float: none;
	padding: 0;
	margin: 0;
	list-style: none;
	border-radius: 0;
}

/* Each page cell */
.sg-pager .pagination > li {
	display: inline-flex;
}

.sg-pager .pagination > li > a,
.sg-pager .pagination > li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 12px;
	float: none;
	margin: 0;
	font-size: var(--sg-fs-sm);
	font-weight: 500;
	line-height: 1;
	color: var(--sg-text-2);
	background: var(--sg-surface);
	border: 1px solid var(--sg-line);
	border-radius: var(--sg-radius-sm);
	cursor: pointer;
	user-select: none;
	text-decoration: none;
	transition: color .15s var(--sg-ease),
	            background .15s var(--sg-ease),
	            border-color .15s var(--sg-ease);
}

/* Hover / focus — light green tint, green border, green text */
.sg-pager .pagination > li > a:hover,
.sg-pager .pagination > li > span:hover {
	color: var(--sg-accent);
	background: var(--sg-accent-soft);
	border-color: var(--sg-accent);
	text-decoration: none;
}

.sg-pager .pagination > li > a:focus-visible,
.sg-pager .pagination > li > span:focus-visible {
	outline: 2px solid var(--sg-accent);
	outline-offset: 2px;
}

/* Active — solid green, white text */
.sg-pager .pagination > .active > a,
.sg-pager .pagination > .active > span,
.sg-pager .pagination > .active > a:hover,
.sg-pager .pagination > .active > span:hover,
.sg-pager .pagination > .active > a:focus,
.sg-pager .pagination > .active > span:focus {
	color: #fff;
	background: var(--sg-accent);
	border-color: var(--sg-accent);
	cursor: default;
	font-weight: 600;
}

/* Disabled — flat gray, non-interactive */
.sg-pager .pagination > .disabled > span,
.sg-pager .pagination > .disabled > a,
.sg-pager .pagination > .disabled > span:hover,
.sg-pager .pagination > .disabled > a:hover,
.sg-pager .pagination > .disabled > span:focus,
.sg-pager .pagination > .disabled > a:focus {
	color: var(--sg-text-3);
	background: var(--sg-bg);
	border-color: var(--sg-line);
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Recommend — "猜你喜欢" section
   Uses the same .sg-card pattern as the main grid for visual consistency.
   -------------------------------------------------------------------------- */
.sg-recommend {
	margin-top: var(--sg-r-6);
}

.sg-recommend-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sg-r-3);
	margin-bottom: var(--sg-r-4);
	padding-bottom: var(--sg-r-3);
	border-bottom: 1px solid var(--sg-line);
}

.sg-recommend-title {
	display: flex;
	align-items: center;
	gap: var(--sg-r-2);
	font-size: var(--sg-fs-lg);
	font-weight: 600;
	color: var(--sg-text-1);
	letter-spacing: 0.2px;
}

.sg-recommend-title::before {
	content: "";
	width: 3px;
	height: 16px;
	background: var(--sg-accent);
	border-radius: 2px;
}

.sg-recommend-hint {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	letter-spacing: 0.4px;
}

/* Sales meta line — replaces .sg-card-store in the recommend context */
.sg-card-meta {
	font-size: var(--sg-fs-xs);
	color: var(--sg-text-3);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

@media (max-width: 640px) {
	.sg-pager .pagination { gap: 6px; }
	.sg-pager .pagination > li > a,
	.sg-pager .pagination > li > span { min-width: 30px; height: 30px; padding: 0 8px; font-size: var(--sg-fs-xs); }
	.sg-recommend-hd { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* --------------------------------------------------------------------------
   A11y / motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.sg-wrap *,
	.sg-wrap *::before,
	.sg-wrap *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}


.fa-confirm-txt{
	color: #ffffff !important;
}