/* ==========================================================================
   Gaming Products 页专用样式
   --------------------------------------------------------------------------
     1. 首屏的椅子转盘
     2. 产品目录：搜索框、四个分页、系列卡片、产品卡片
   产品卡片的 HTML 是 assets/js/catalogue.js 产生的。
   ========================================================================== */

/* ── 1. 椅子转盘 ── */
.rx-chair {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin-left: auto;
	aspect-ratio: 1;
}

/* 地上的发光转盘：两圈，往反方向转 */
.rx-chair__disc {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 2%;
	height: 26%;
	transform: perspective(500px) rotateX(70deg);
}

.rx-chair__disc span {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(34, 230, 220, 0.6);
	box-shadow: 0 0 30px rgba(34, 230, 220, 0.4), inset 0 0 40px rgba(43, 107, 255, 0.4);
	background: conic-gradient(from 0deg, transparent, rgba(34, 230, 220, 0.25), transparent 30%);
	animation: rx-spin 6s linear infinite;
}

.rx-chair__disc span + span {
	inset: 14%;
	border-color: rgba(43, 107, 255, 0.6);
	animation-direction: reverse;
	animation-duration: 9s;
}

.rx-chair__image {
	position: relative;
	z-index: 1;
	width: 84%;
	margin: 0 auto;
	filter: drop-shadow(0 0 1px rgba(150, 230, 255, 0.7)) drop-shadow(0 0 22px rgba(34, 230, 220, 0.25)) drop-shadow(0 40px 50px rgba(0, 0, 0, 0.8));
	animation: rx-float 6s ease-in-out infinite;
}

/* 三个标签：从椅子旁边连一条线出去 */
.rx-chair__callout {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border: 1px solid var(--rx-line-strong);
	background: rgba(0, 0, 0, 0.75);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: var(--rx-display);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	animation: rx-callout 0.8s var(--rx-ease) forwards;
	animation-delay: calc(0.8s + var(--i) * 0.25s);
}

.rx-chair__callout i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rx-cyan);
	box-shadow: 0 0 0 4px rgba(34, 230, 220, 0.2);
}

.rx-chair__callout:nth-of-type(1) { left: -4%; top: 16%; }
.rx-chair__callout:nth-of-type(2) { right: -2%; top: 42%; }
.rx-chair__callout:nth-of-type(3) { left: 2%; top: 66%; }

@keyframes rx-callout {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
	.rx-chair {
		margin: 0 auto;
		max-width: 420px;
	}

	.rx-chair__callout {
		font-size: 12px;
	}
}

/* ── 2. 产品目录 ── */
.rx-section--shop {
	padding-top: 40px;
}

.rx-shop__search {
	max-width: 760px;
	margin: 0 auto 32px;
	text-align: center;
}

.rx-shop__search label {
	display: block;
	margin-bottom: 14px;
	font-family: var(--rx-display);
	font-size: 22px;
	font-weight: 600;
}

.rx-shop__searchbox {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--rx-line-strong);
	background: var(--rx-carbon);
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.rx-shop__searchbox:focus-within {
	border-color: var(--rx-cyan);
	box-shadow: 0 0 0 1px var(--rx-cyan), var(--rx-glow);
}

.rx-shop__searchbox input {
	min-width: 0;
	padding: 13px 16px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--rx-frost);
	font-size: 16px;
}

.rx-shop__searchbox input::placeholder {
	color: var(--rx-dim);
}

.rx-shop__searchbox input.needs-input {
	background: rgba(255, 77, 94, 0.1);
}

.rx-shop__search-button {
	padding: 0 26px;
	border: 0;
	background: var(--rx-signal);
	color: #00131a;
	font-family: var(--rx-display);
	font-weight: 600;
	cursor: pointer;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.rx-shop__search > small {
	display: block;
	margin-top: 10px;
	color: var(--rx-dim);
	font-size: 13px;
}

.rx-shop__tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 36px;
	padding: 6px;
	border: 1px solid var(--rx-line);
	background: var(--rx-carbon);
}

.rx-shop__tabs button {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: var(--rx-steel);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.rx-shop__tabs button > span {
	font-family: var(--rx-display);
	font-size: 17px;
	font-weight: 600;
}

.rx-shop__tabs button > small {
	font-size: 12px;
	opacity: 0.75;
}

.rx-shop__tabs button:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--rx-frost);
}

.rx-shop__tabs button.is-active {
	background: var(--rx-signal);
	color: #00131a;
}

@media (max-width: 760px) {
	.rx-shop__tabs {
		grid-template-columns: 1fr 1fr;
	}
}

.rx-shop__browser[hidden],
.rx-shop__results[hidden],
.rx-shop__more[hidden] {
	display: none;
}

.rx-shop__browser,
.rx-shop__results {
	scroll-margin-top: calc(var(--rx-header) + 24px);
}

.rx-shop__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 22px;
}

.rx-shop__head > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.rx-shop__head strong {
	font-family: var(--rx-display);
	font-size: 22px;
}

.rx-shop__head p {
	color: var(--rx-dim);
	font-size: 14px;
}

.rx-shop__step {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--rx-cyan);
	color: var(--rx-cyan);
	font-family: var(--rx-display);
	font-size: 13px;
	font-weight: 600;
	clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.rx-shop__groups {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	min-height: 160px;
}

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

@media (max-width: 480px) {
	.rx-shop__groups,
	.rx-shop__grid {
		grid-template-columns: 1fr;
	}
}

.rx-shop__group {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0;
	border: 0;
	text-align: left;
	cursor: pointer;
	animation: rx-item-in 0.6s var(--rx-ease) both;
}

.rx-shop__group:hover {
	--edge: linear-gradient(135deg, var(--rx-cyan), var(--rx-line-strong) 60%);
}

.rx-shop__group-image {
	position: relative;
	display: block;
	height: 180px;
	margin: 1px 1px 0;
	background: radial-gradient(circle at 50% 60%, rgba(43, 107, 255, 0.22), transparent 65%);
	overflow: hidden;
}

.rx-shop__group-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.6s var(--rx-ease);
}

.rx-shop__group:hover img {
	transform: scale(1.08) translateY(-4px);
}

.rx-shop__group-copy {
	display: grid;
	gap: 4px;
	padding: 16px 18px 20px;
}

.rx-shop__group-copy small {
	color: var(--rx-cyan);
	font-size: 12px;
}

.rx-shop__group-copy strong {
	font-family: var(--rx-display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.15;
}

.rx-shop__group-copy em {
	color: var(--rx-steel);
	font-size: 13px;
	font-style: normal;
}

.rx-shop__group-arrow {
	position: absolute;
	right: 16px;
	bottom: 16px;
	color: var(--rx-cyan);
	font-size: 18px;
	transition: transform 0.35s var(--rx-ease);
}

.rx-shop__group:hover .rx-shop__group-arrow {
	transform: translate(3px, -3px);
}

.rx-shop__loading,
.rx-shop__empty {
	grid-column: 1 / -1;
	padding: 40px 0;
	color: var(--rx-steel);
	text-align: center;
}

.rx-shop__empty strong {
	display: block;
	color: var(--rx-frost);
}

.rx-shop__head--results {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--rx-line);
}

.rx-shop__title {
	font-size: clamp(28px, 4vw, 44px);
}

.rx-shop__count {
	width: 100%;
	color: var(--rx-dim);
	font-size: 14px;
}

.rx-shop__back {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rx-cyan);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.rx-shop__head--results label {
	display: grid;
	gap: 6px;
	min-width: 200px;
	color: var(--rx-steel);
	font-size: 13px;
}

.rx-shop__sort {
	padding: 10px 12px;
	border: 1px solid var(--rx-line-strong);
	background: var(--rx-carbon);
	color: var(--rx-frost);
	font: inherit;
}

.rx-shop__status {
	margin: 14px 0;
	color: var(--rx-steel);
}

.rx-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.rx-shop__product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	animation: rx-item-in 0.6s var(--rx-ease) both;
}

.rx-shop__product:hover {
	--edge: linear-gradient(135deg, var(--rx-cyan), var(--rx-line-strong) 60%);
}

@keyframes rx-item-in {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

/* 产品照片是白底，所以放在浅色底上 */
.rx-shop__product-image {
	position: relative;
	display: block;
	height: 250px;
	margin: 1px 1px 0;
	background: linear-gradient(160deg, #f1f5f9, #d8e2ec);
	overflow: hidden;
}

.rx-shop__product-image img {
	width: 100%;
	height: 100%;
	padding: 12px;
	object-fit: contain;
	transition: transform 0.6s var(--rx-ease);
}

.rx-shop__product:hover .rx-shop__product-image img {
	transform: scale(1.06);
}

.rx-shop__variants {
	position: absolute;
	left: 10px;
	top: 10px;
	padding: 3px 8px;
	background: #000;
	color: var(--rx-cyan);
	font-size: 11px;
	font-weight: 600;
}

.rx-shop__product-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	padding: 16px 18px 18px;
}

.rx-shop__product-body small {
	color: var(--rx-cyan);
	font-size: 12px;
}

.rx-shop__product-body h3 {
	font-size: 18px;
	line-height: 1.2;
}

.rx-shop__product-body p {
	color: var(--rx-steel);
	font-size: 13px;
}

.rx-shop__price {
	margin-top: auto;
	padding-top: 8px;
	font-family: var(--rx-display);
	font-size: 22px;
	font-weight: 700;
}

.rx-shop__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 10px;
}

.rx-shop__actions a {
	display: grid;
	place-items: center;
	min-height: 40px;
	border: 1px solid var(--rx-line-strong);
	font-size: 13px;
	font-weight: 600;
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
	transition: background-color 0.3s, color 0.3s;
}

.rx-shop__actions a:hover {
	background: var(--rx-frost);
	color: var(--rx-void);
}

.rx-shop__actions .rx-shop__enquire {
	border-color: transparent;
	background: #25d366;
	color: #04150a;
}

.rx-shop__more {
	display: block;
	margin: 32px auto 0;
	padding: 14px 28px;
	border: 1px solid var(--rx-line-strong);
	background: transparent;
	font-family: var(--rx-display);
	font-weight: 600;
	cursor: pointer;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.rx-shop__more:hover {
	background: var(--rx-frost);
	color: var(--rx-void);
}
