/* Soft shop page styles. */
.soft-shop {
	position: relative;
	background: linear-gradient(180deg, #f8fbfd 0%, #eff4f8 100%);
	color: #13263a;
}

.soft-shop__hero,
.soft-shop__layout {
	position: relative;
	z-index: 1;
}

.soft-shop__hero-inner,
.soft-shop__layout {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.soft-shop__hero {
	padding: 10px 0 0;
}

.soft-shop__hero-inner--simple {
	max-width: 1200px;
}

.soft-shop__trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

.soft-shop__trust-card {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(167, 199, 222, 0.34);
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(16, 38, 58, 0.04);
}

.soft-shop__trust-icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(79, 70, 229, 0.08);
	color: #4f46e5;
	font-size: 12px;
	line-height: 1;
}

.soft-shop__trust-title {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	color: #13263a;
}

.soft-shop__trust-text {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(19, 38, 56, 0.74);
}

.soft-shop__eyebrow {
	margin: 0 0 12px;
	color: #4f46e5;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.soft-shop h1,
.soft-shop h2,
.soft-shop h3 {
	margin: 0;
	letter-spacing: -0.03em;
	color: #10263a;
}

.soft-shop h1 {
	max-width: 9ch;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 0.92;
	font-weight: 700;
}

.soft-shop__lead {
	max-width: 540px;
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(19, 38, 56, 0.82);
}

.soft-shop__actions,
.soft-shop__sort,
.soft-shop__cta-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.soft-shop__actions {
	margin-top: 10px;
}

.soft-shop__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.soft-shop__button:hover {
	transform: translateY(-1px);
}

.soft-shop__button--primary {
	color: #f8fffd;
	background: #4f46e5;
	box-shadow: none;
}

.soft-shop__button--ghost {
	color: #4f46e5;
	background: #ffffff;
	border: 1px solid rgba(79, 70, 229, 0.14);
}

.soft-shop__hero-note,
.soft-shop__hero-panel,
.soft-shop__highlights {
	display: none;
}

.soft-shop__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding-top: 8px;
	padding-bottom: 42px;
}

.soft-shop__sidebar {
	display: grid;
	gap: 14px;
	position: sticky;
	top: 16px;
}

.soft-shop__side-card {
	padding: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid rgba(167, 199, 222, 0.30);
}

.soft-shop__side-card--note {
	background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.soft-shop__side-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 13px 16px;
	background: linear-gradient(120deg, #4f46e5, #4338ca);
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 11px;
	font-weight: 800;
}

.soft-shop__side-title svg { width: 15px; height: 15px; flex: 0 0 auto; }

.soft-shop__search {
	display: flex;
	gap: 8px;
}

.soft-shop__search input {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	border-radius: 10px;
	border: 1px solid rgba(167, 199, 222, 0.40);
	background: #ffffff;
	font-size: 13px;
	color: #10263a;
}

.soft-shop__search button {
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: #4d5160;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
}

.soft-shop__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.soft-shop__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 11px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	color: #13263a;
	background: #f7fafc;
	border: 1px solid rgba(167, 199, 222, 0.32);
}

.soft-shop__chip.is-active {
	color: #4f46e5;
	background: rgba(79, 70, 229, 0.08);
	border-color: rgba(79, 70, 229, 0.16);
}

.soft-shop__side-card p {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(19, 38, 56, 0.76);
}

.soft-shop__results {
	min-width: 0;
}

.soft-shop__results-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.soft-shop__results-head h2 {
	font-size: clamp(24px, 2vw, 34px);
	font-weight: 700;
}

.soft-shop__sort {
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #4f46e5;
	background: rgba(79, 70, 229, 0.08);
}

.soft-shop__filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 14px;
	margin-bottom: 16px;
	border: 1px solid rgba(167, 199, 222, 0.30);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.82);
}

.soft-shop__filters-main {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.soft-shop__filter-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	color: #13263a;
	background: #f7fafc;
	border: 1px solid rgba(167, 199, 222, 0.32);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.soft-shop__filter-pill:hover,
.soft-shop__filter-pill.is-active {
	color: #4f46e5;
	background: rgba(79, 70, 229, 0.08);
	border-color: rgba(79, 70, 229, 0.16);
}

.soft-shop__filter-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	color: rgba(19, 38, 56, 0.72);
}

.soft-shop__filter-sort select {
	min-height: 34px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid rgba(167, 199, 222, 0.34);
	background: #ffffff;
	color: #13263a;
	font-size: 11px;
	font-weight: 700;
}

.soft-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	transition: opacity 0.15s ease;
}

.soft-shop__card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid rgba(167, 199, 222, 0.30);
	box-shadow: 0 16px 38px rgba(16, 38, 58, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.soft-shop__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 22px 50px rgba(16, 38, 58, 0.12);
	border-color: rgba(79, 70, 229, 0.2);
}

.soft-shop__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(99, 102, 241, 0.05));
	text-decoration: none;
	overflow: hidden;
}

.soft-shop__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.soft-shop__card:hover .soft-shop__thumb img { transform: scale(1.05); }

.soft-shop__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 30px;
	color: #4f46e5;
	opacity: 0.72;
}

.soft-shop__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 6px 9px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 800;
	color: #4f46e5;
	background: rgba(255, 255, 255, 0.90);
	backdrop-filter: blur(8px);
}

.soft-shop__body {
	padding: 14px 14px 8px;
}

.soft-shop__apps {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	overflow: hidden;
	gap: 5px;
	margin: 8px 0 0;
	min-height: 18px;
}
.soft-shop__apps-ico { display: inline-flex; color: #4f46e5; flex: 0 0 auto; }
.soft-shop__apps-ico svg { width: 12px; height: 12px; }
.soft-shop__chip {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 1px 6px;
	border-radius: 5px;
	background: transparent;
	border: 1px solid rgba(79, 70, 229, 0.4);
	color: #4338ca;
	font-size: 9px;
	font-weight: 500;
	line-height: 1.5;
}
.soft-shop__chip--more { flex: 0 0 auto; background: transparent; border-color: rgba(0, 0, 0, 0.14); color: #6b7670; }

.soft-shop__title {
	font-size: 12px;
	line-height: 1.3;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.soft-shop__title a {
	color: #10263a;
	text-decoration: none;
}

.soft-shop__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 8px;
}

.soft-shop__price-old {
	font-size: 11px;
	color: rgba(19, 38, 56, 0.5);
	text-decoration: line-through;
}

.soft-shop__price-now {
	font-size: 14px;
	font-weight: 700;
	color: #4f46e5;
}

.soft-shop__price-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(79, 70, 229, 0.85);
}

.soft-shop__price-ask {
	font-size: 14px;
	font-weight: 700;
	color: #4f46e5;
}

.soft-shop__cta-link {
	display: inline-flex;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #4f46e5;
	text-decoration: none;
}

.soft-shop__empty {
	padding: 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(167, 199, 222, 0.42);
	color: rgba(19, 38, 56, 0.74);
}

.soft-shop__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.soft-shop__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid rgba(167, 199, 222, 0.34);
	text-decoration: none;
	color: #13263a;
}

.soft-shop__pagination .page-numbers.current {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #ffffff;
}

@media (max-width: 1100px) {
	.soft-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.soft-shop__sidebar {
		position: static;
	}
}

@media (max-width: 720px) {
	.soft-shop__hero-inner,
	.soft-shop__layout {
		padding-left: 16px;
		padding-right: 16px;
	}

	.soft-shop__trust-grid,
	.soft-shop__grid {
		grid-template-columns: 1fr;
	}

	.soft-shop__results-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.soft-shop__filters {
		padding: 12px;
	}

	.soft-shop__filter-sort {
		width: 100%;
		justify-content: space-between;
	}
}

.soft-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 16px;
	margin-bottom: 16px;
	border: 1px solid rgba(167, 199, 222, 0.30);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 12px 28px rgba(16, 38, 58, 0.05);
}

.soft-shop__toolbar-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	min-width: 0;
}

.soft-shop__toolbar-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #4f46e5;
	flex: 0 0 auto;
}

.soft-shop__toolbar-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.soft-shop__toolbar-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 0;
	margin: 0;
}

.soft-shop__toolbar-sort-label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(19, 38, 56, 0.70);
}

.soft-shop__toolbar-sort select {
	min-height: 38px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid rgba(167, 199, 222, 0.34);
	background: #ffffff;
	color: #13263a;
	font-size: 11px;
	font-weight: 700;
	outline: none;
	box-shadow: none;
}

.soft-shop__toolbar-sort select:focus {
	border-color: rgba(79, 70, 229, 0.42);
}

.soft-shop__toolbar-sort option {
	font-weight: 700;
}

.soft-shop__results-head {
	margin-bottom: 10px;
}

.soft-shop__results-head h2 {
	letter-spacing: -0.04em;
}

@media (max-width: 900px) {
	.soft-shop__toolbar {
		align-items: flex-start;
	}

	.soft-shop__toolbar-sort {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 720px) {
	.soft-shop__toolbar {
		padding: 12px;
	}

	.soft-shop__toolbar-sort,
	.soft-shop__toolbar-sort select {
		width: 100%;
	}

	.soft-shop__toolbar-sort {
		flex-direction: column;
		align-items: stretch;
	}

	.soft-shop__toolbar-sort-label {
		margin-bottom: -2px;
	}
}

/* Sidebar category nav (vertical, icon + label + count) */
.soft-shop__catnav { display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; }

.soft-shop__catnav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 9px;
	border-radius: 10px;
	text-decoration: none;
	color: #26384b;
	font-size: 13.5px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.soft-shop__catnav-item:hover { background: rgba(79, 70, 229, 0.06); }
.soft-shop__catnav-item.is-active { background: rgba(79, 70, 229, 0.1); color: #4338ca; }

.soft-shop__catnav-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--cbg, #e0e7ff);
	color: var(--cfg, #4338ca);
}

.soft-shop__catnav-ico svg { width: 17px; height: 17px; }
.soft-shop__catnav-label { min-width: 0; }
.soft-shop__catnav-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #9aa7b2; }
.soft-shop__catnav-item.is-active .soft-shop__catnav-count { color: #4338ca; }

/* ===== A+B mix: header search + toolbar + view toggle + list mode ===== */
.soft-shop__results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.soft-shop__head-search {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	min-width: 260px;
	padding: 0 6px 0 13px;
	background: #ffffff;
	border: 1px solid #dfe7ea;
	border-radius: 11px;
}
.soft-shop__head-search:focus-within { border-color: rgba(79, 70, 229, 0.5); }
.soft-shop__head-search-ico { display: inline-flex; color: #4f46e5; flex: 0 0 auto; }
.soft-shop__head-search-ico svg { width: 18px; height: 18px; }
.soft-shop__head-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 13.5px; color: #16263a; }
.soft-shop__head-search-btn { flex: 0 0 auto; height: 32px; padding: 0 15px; border: 0; border-radius: 8px; background: #4f46e5; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.soft-shop__head-search-btn:hover { background: #4338ca; }

.soft-shop__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.soft-shop__viewing { font-size: 13.5px; color: #516170; }
.soft-shop__viewing strong { color: #16263a; font-weight: 700; }
.soft-shop__viewing span { color: #c2ccd4; margin: 0 3px; }
.soft-shop__toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; flex: 1 1 auto; }
.soft-shop__toolbar-right .soft-shop__head-search { flex: 1 1 240px; }
.soft-shop__toolbar-right .soft-shop__head-search-btn { height: 28px; padding: 0 12px; }

.soft-shop__viewtoggle { display: inline-flex; border: 1px solid #dfe7ea; border-radius: 9px; overflow: hidden; background: #fff; }
.soft-shop__viewbtn { width: 36px; min-width: 36px; height: 36px; padding: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #7a8c97; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.soft-shop__viewbtn + .soft-shop__viewbtn { border-left: 1px solid #dfe7ea; }
.soft-shop__viewbtn svg { width: 17px !important; height: 17px !important; flex: 0 0 auto; }
.soft-shop__viewbtn.is-active { background: #e0e7ff; color: #4338ca; }

/* card shared structure */
.soft-shop__card { display: flex; flex-direction: column; }
.soft-shop__body { flex: 1 1 auto; }
.soft-shop__foot { display: flex; align-items: center; gap: 10px; padding: 0 14px 14px; }
.soft-shop__meta, .soft-shop__excerpt, .soft-shop__card-cta { display: none; }
.soft-shop__card-cta {
	flex: 0 0 auto;
	background: #4f46e5; color: #fff;
	font-size: 12px; font-weight: 600;
	padding: 8px 15px; border-radius: 9px;
	text-decoration: none; white-space: nowrap;
	transition: background 0.15s ease;
}
.soft-shop__card-cta:hover { background: #4338ca; color: #fff; }

/* ----- LIST mode ----- */
.soft-shop__grid--list { display: flex; flex-direction: column; gap: 10px; grid-template-columns: none; }
.soft-shop__grid--list .soft-shop__card { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
.soft-shop__grid--list .soft-shop__thumb { width: 150px; height: 96px; flex: 0 0 auto; aspect-ratio: auto; border-radius: 10px; }
.soft-shop__grid--list .soft-shop__badge { font-size: 9.5px; padding: 2px 8px; }
.soft-shop__grid--list .soft-shop__body { flex: 1 1 auto; min-width: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.soft-shop__grid--list .soft-shop__title { font-size: 15px; min-height: 0; }
.soft-shop__grid--list .soft-shop__meta { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #4f46e5; }
.soft-shop__grid--list .soft-shop__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 12px; line-height: 1.45; color: #7a8c97; }
.soft-shop__grid--list .soft-shop__foot { flex: 0 0 auto; flex-direction: column; align-items: flex-end; justify-content: center; gap: 9px; padding: 0; min-width: 160px; }
.soft-shop__grid--list .soft-shop__card-cta { display: inline-flex; align-items: center; }

@media (max-width: 640px) {
	.soft-shop__grid--list .soft-shop__card { flex-wrap: wrap; }
	.soft-shop__grid--list .soft-shop__thumb { width: 110px; height: 72px; }
	.soft-shop__grid--list .soft-shop__foot { min-width: 0; flex-direction: row; width: 100%; justify-content: space-between; }
	.soft-shop__grid--list .soft-shop__excerpt { display: none; }
}

/* Mobile: stack the shop layout (sidebar full-width on top, content below) */
@media (max-width: 720px) {
	.soft-shop__layout { grid-template-columns: 1fr !important; }
	.soft-shop__sidebar { position: static !important; top: auto !important; }
}

/* Mobile: tidy the shop toolbar — search full row, sort + view toggle on one row */
@media (max-width: 720px) {
	.soft-shop__toolbar-right { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: center !important; }
	.soft-shop__head-search { order: 1 !important; flex: 1 1 100% !important; }
	.soft-shop__toolbar-sort { order: 2 !important; flex: 1 1 auto !important; flex-direction: row !important; align-items: center !important; width: auto !important; min-width: 0 !important; }
	.soft-shop__toolbar-sort-label { display: none !important; }
	.soft-shop__toolbar-sort select { width: 100% !important; }
	.soft-shop__viewtoggle { order: 3 !important; flex: 0 0 auto !important; }
}

/* Whole shop card clickable (stretched-link via title); keep chips hoverable for tooltips */
.soft-shop__card { position: relative; }
.soft-shop__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.soft-shop__title a:focus-visible::after { outline: 2px solid #4f46e5; outline-offset: 2px; border-radius: 13px; }
.soft-shop__chip { position: relative; z-index: 2; }
.soft-shop__card-cta { position: relative; z-index: 2; }

.soft-shop__h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
