/* ============================================================
   GAMEKURA — main.css
   Dark gaming aesthetic, minimalista
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
	--color-bg: #0c0e16;
	--color-surface: #161825;
	--color-surface2: #1e2033;
	--color-border: #272a3a;
	--color-primary: #e94560;
	--color-primary-h: #ff5a73;
	--text-main: #f0f1f5;
	--text-mid: #8b8fa8;
	--text-soft: #5a5d74;
	--font-base: "Inter", sans-serif;
	--font-display: "Space Grotesk", sans-serif;
	--radius: 6px;
	--radius-lg: 12px;
	--header-h: 64px;
	--transition: 0.18s ease;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-base);
	background: var(--color-bg);
	color: var(--text-main);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}
ul {
	list-style: none;
}
img {
	max-width: 100%;
	display: block;
}
button {
	cursor: pointer;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
}

#wrap {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main {
	flex: 1;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	line-height: 1.2;
}
h1 {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
}
h2 {
	font-size: clamp(1.3rem, 3vw, 1.9rem);
	font-weight: 600;
}
h3 {
	font-size: 1.15rem;
	font-weight: 600;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(12, 14, 22, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 2.4rem;
}

/* Logo */
.site-logo {
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--text-main);
	flex-shrink: 0;
}
.site-logo span {
	color: var(--color-primary);
}
.site-logo--footer {
	font-size: 1.3rem;
}

/* Nav principal */
.nav-main {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex: 1;
}
.nav-main__item {
	position: relative;
}
.nav-main__link {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.55rem 0.9rem;
	border-radius: var(--radius);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-mid);
	transition:
		color var(--transition),
		background var(--transition);
}
.nav-main__link:hover {
	color: var(--text-main);
	background: var(--color-surface2);
}

/* Dropdown */
.nav-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 0.6rem;
	box-shadow: var(--shadow);
	z-index: 200;
}
.nav-main__item--dropdown:hover .nav-dropdown {
	display: flex;
	flex-direction: column;
}
.nav-dropdown::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}
.nav-dropdown a {
	padding: 0.55rem 0.9rem;
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--text-mid);
	transition:
		background var(--transition),
		color var(--transition);
}
.nav-dropdown a:hover {
	background: var(--color-surface2);
	color: var(--text-main);
}

/* Actions */
.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
}
.nav-actions__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius);
	color: var(--text-mid);
	transition:
		color var(--transition),
		background var(--transition);
}
.nav-actions__btn:hover {
	color: var(--text-main);
	background: var(--color-surface2);
}

.nav-actions__user {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	color: var(--text-mid);
	padding: 0.4rem 0.8rem;
	border-radius: var(--radius);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}
#nav-username {
	color: var(--color-primary);
	font-weight: 600;
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#nav-logout-link {
	color: var(--text-soft);
	transition: color var(--transition);
}
#nav-logout-link:hover {
	color: var(--color-primary);
}

/* Cart badge */
.cart-badge {
	position: relative;
}
.cart_count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 99px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0 3px;
}

/* Hamburger */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	transition: background var(--transition);
}
.hamburger:hover {
	background: var(--color-surface2);
}
.hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text-mid);
	border-radius: 2px;
	transition:
		transform var(--transition),
		opacity var(--transition);
}

/* ── MOBILE NAV ─────────────────────────────────────────────── */
.mobile-nav {
	position: fixed;
	top: 0;
	right: -280px;
	width: 280px;
	height: 100%;
	background: var(--color-surface);
	border-left: 1px solid var(--color-border);
	z-index: 300;
	padding: 24px;
	transition: right 0.28s ease;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.mobile-nav.is-open {
	right: 0;
}
.mobile-nav__close {
	align-self: flex-end;
	color: var(--text-mid);
	padding: 4px;
	margin-bottom: 16px;
	transition: color var(--transition);
}
.mobile-nav__close:hover {
	color: var(--text-main);
}
.mobile-nav__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.mobile-nav__links a {
	padding: 0.7rem 0.9rem;
	border-radius: var(--radius);
	font-size: 0.92rem;
	color: var(--text-mid);
	transition:
		background var(--transition),
		color var(--transition);
}
.mobile-nav__links a:hover {
	background: var(--color-surface2);
	color: var(--text-main);
}
.mobile-nav__overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 299;
}
.mobile-nav__overlay.is-open {
	display: block;
}

/* ── SEARCH OVERLAY ─────────────────────────────────────────── */
.search-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 400;
	align-items: flex-start;
	justify-content: center;
	padding-top: 120px;
}
.search-overlay.is-open {
	display: flex;
}
.search-overlay__box {
	width: 100%;
	max-width: 600px;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.search-overlay__form {
	display: flex;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.search-overlay__input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	padding: 1rem 1.2rem;
	font-size: 1.05rem;
	color: var(--text-main);
	font-family: var(--font-base);
}
.search-overlay__input::placeholder {
	color: var(--text-soft);
}
.search-overlay__btn {
	padding: 0 1.2rem;
	color: var(--text-mid);
	transition: color var(--transition);
}
.search-overlay__btn:hover {
	color: var(--color-primary);
}
.search-overlay__close {
	align-self: center;
	font-size: 0.82rem;
	color: var(--text-mid);
	padding: 0.3rem 0.8rem;
	border-radius: var(--radius);
	transition: color var(--transition);
}
.search-overlay__close:hover {
	color: var(--text-main);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.6rem;
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 600;
	font-family: var(--font-base);
	transition:
		background var(--transition),
		color var(--transition),
		border-color var(--transition),
		transform 0.1s;
	cursor: pointer;
	border: 1px solid transparent;
	line-height: 1;
}
.btn:active {
	transform: scale(0.97);
}
.btn-primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}
.btn-primary:hover {
	background: var(--color-primary-h);
	border-color: var(--color-primary-h);
}
/* Aliases con doble guion (btn--) */
.btn--primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}
.btn--primary:hover {
	background: var(--color-primary-h);
	border-color: var(--color-primary-h);
}
.btn--outline {
	background: transparent;
	color: var(--text-main);
	border-color: var(--color-border);
}
.btn--outline:hover {
	border-color: var(--text-mid);
	background: var(--color-surface2);
}
.btn--block {
	width: 100%;
}
.btn--lg {
	padding: 1.3rem 2rem;
	font-size: 1rem;
}
.btn--added {
	background: #1a8a4a !important;
	border-color: #1a8a4a !important;
	transform: scale(0.97);
	transition:
		background 0.2s,
		transform 0.15s;
}
.btn-outline {
	background: transparent;
	color: var(--text-main);
	border-color: var(--color-border);
}
.btn-outline:hover {
	border-color: var(--text-mid);
	background: var(--color-surface2);
}
.btn-block {
	width: 100%;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1.2rem 0;
	font-size: 0.8rem;
	color: var(--text-soft);
}
.breadcrumb a {
	color: var(--text-soft);
	transition: color var(--transition);
}
.breadcrumb a:hover {
	color: var(--text-main);
}
.breadcrumb span {
	color: var(--text-soft);
}

/* ── PRODUCT CARDS ──────────────────────────────────────────── */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

/* Paginador */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}
.pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 500;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	color: var(--text-main);
	text-decoration: none;
	transition:
		border-color 0.18s,
		background 0.18s,
		color 0.18s;
}
a.pagination__btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background: rgba(233, 69, 96, 0.07);
}
.pagination__btn.is-active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	font-weight: 700;
}
.pagination__btn.is-disabled {
	opacity: 0.3;
	cursor: default;
}
.pagination__btn--prev,
.pagination__btn--next {
	font-size: 1.1rem;
}
.pagination__ellipsis {
	color: var(--text-mid);
	padding: 0 4px;
	font-size: 0.9rem;
}

.product-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition:
		border-color var(--transition),
		transform var(--transition),
		box-shadow var(--transition);
	display: flex;
	flex-direction: column;
}
.product-card:hover {
	border-color: var(--color-primary);
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(233, 69, 96, 0.15);
}
.product-card__img {
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--color-surface2);
}
.product-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.product-card:hover .product-card__img img {
	transform: scale(1.04);
}
.product-card__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.product-card__platform {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-primary);
}
.product-card__name {
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-main);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card__price {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-main);
	margin-top: auto;
}
.product-card__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
}
.badge--new {
	background: #1a2e1a;
	color: #4ade80;
}
.badge--sale {
	background: #2a1018;
	color: var(--color-primary);
}

/* ── HOME PAGE ──────────────────────────────────────────────── */

/* Hero Slider */
.hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--color-bg);
	aspect-ratio: 16 / 7;
	min-height: 420px;
}
.hero-slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* ── Slide 1: Marca / Glow animado ─────────────────── */
.hero-slide--brand {
	background: var(--color-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}
/* Grid lines */
.hero-slide--brand::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 52px 52px;
	pointer-events: none;
	z-index: 0;
	-webkit-mask-image: radial-gradient(
		ellipse at 50% 40%,
		black 30%,
		transparent 75%
	);
	mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.hero-slide__glow {
	position: absolute;
	top: -10%;
	left: 50%;
	transform: translateX(-50%);
	width: 820px;
	height: 600px;
	background: radial-gradient(
		ellipse at center,
		rgba(233, 69, 96, 0.28) 0%,
		rgba(233, 69, 96, 0.08) 45%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
	animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
	0%,
	100% {
		opacity: 0.5;
		transform: translateX(-50%) scale(0.95);
	}
	50% {
		opacity: 1;
		transform: translateX(-50%) scale(1.18);
		filter: blur(4px);
	}
}
.hero-slide__brand-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.4rem;
	text-align: center;
	padding: 0 24px;
}
.hero-slide--brand h1 {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5.5vw, 4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}
.hero-slide--brand p {
	font-size: 1.05rem;
	color: var(--text-mid);
	max-width: 460px;
}
/* Entrada animada del brand al activarse */
.hero-slide--brand.is-active .hero-slide__tag {
	animation: heroFade 0.6s ease 0.05s both;
}
.hero-slide--brand.is-active h1 {
	animation: heroFade 0.65s ease 0.18s both;
}
.hero-slide--brand.is-active p {
	animation: heroFade 0.65s ease 0.3s both;
}

/* ── Slides imagen (link a categoría) ──────────────── */
/* Color fallback mientras no haya imagen */
.hero-slide:nth-child(2) {
	background: #0a0020;
}
.hero-slide:nth-child(3) {
	background: #001a10;
}
.hero-slide:nth-child(4) {
	background: #001424;
}
.hero-slide:nth-child(5) {
	background: #0e0c00;
}
.hero-slide--link {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
/* Gradiente oscuro en la parte baja para el caption */
.hero-slide--link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.6) 0%,
		rgba(0, 0, 0, 0.1) 45%,
		transparent 100%
	);
	z-index: 1;
}
.hero-slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0.65;
	transition:
		opacity 0.4s ease,
		transform 0.5s ease;
}
.hero-slide--link:hover .hero-slide__img {
	opacity: 0.8;
	transform: scale(1.035);
}
.hero-slide__caption {
	position: absolute;
	bottom: 52px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	white-space: nowrap;
}
.hero-slide--link.is-active .hero-slide__caption {
	animation: heroFade 0.6s ease 0.15s both;
}

/* ── Tag (compartido brand + link) ─────────────────── */
.hero-slide__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 16px;
	border: 1px solid rgba(233, 69, 96, 0.45);
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-primary);
	background: rgba(233, 69, 96, 0.1);
}

/* ── Flechas ────────────────────────────────────────── */
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background var(--transition),
		border-color var(--transition),
		transform var(--transition);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.hero-arrow:hover {
	background: rgba(233, 69, 96, 0.7);
	border-color: var(--color-primary);
	transform: translateY(-50%) scale(1.08);
}
.hero-arrow--prev {
	left: 18px;
}
.hero-arrow--next {
	right: 18px;
}

/* ── Dots ───────────────────────────────────────────── */
.hero-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}
.hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.32);
	border: none;
	cursor: pointer;
	transition:
		background var(--transition),
		width var(--transition);
	padding: 0;
}
.hero-dot.active {
	background: var(--color-primary);
	width: 24px;
}
@keyframes heroFade {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Sections */
.home-section {
	padding: 3.5rem 24px;
	max-width: 1200px;
	margin: 0 auto;
}
.home-section + .home-section {
	padding-top: 0;
}
.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.6rem;
	gap: 1rem;
}
.section-header a {
	font-size: 0.82rem;
	color: var(--color-primary);
	font-weight: 600;
	transition: color var(--transition);
}
.section-header a:hover {
	color: var(--color-primary-h);
}

/* Home product row */
.home-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}
.home-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease;
}
.home-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 8px 28px rgba(233, 69, 96, 0.14);
	transform: translateY(-4px);
}
.home-card__img {
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--color-surface2);
}
.home-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.home-card:hover .home-card__img img {
	transform: scale(1.05);
}
.home-card__body {
	padding: 0.7rem 0.9rem 0.9rem;
}
.home-card__name {
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--text-main);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.4rem;
}
.home-card__price {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--color-primary);
}
@media (max-width: 900px) {
	.home-row {
		grid-template-columns: repeat(3, 1fr);
	}
	.home-row .home-card:nth-child(n + 4) {
		display: none;
	}
}
@media (max-width: 560px) {
	.home-row {
		grid-template-columns: repeat(2, 1fr);
	}
	.home-row .home-card:nth-child(n + 3) {
		display: none;
	}
}

/* Category cards grid */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.cat-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	opacity: 0;
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease;
}
.cat-card.is-visible {
	animation: catCardIn 0.5s ease var(--anim-delay, 0s) both;
}
.cat-card:hover {
	border-color: var(--color-primary);
	box-shadow: 0 10px 30px rgba(233, 69, 96, 0.14);
	transform: translateY(-5px);
}
/* Thumbnail area — swapear por <img> cuando haya fotos */
.cat-card__thumb {
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, var(--color-surface2) 0%, #1c1f36 100%);
	position: relative;
	overflow: hidden;
}
.cat-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.cat-card:hover .cat-card__thumb img {
	transform: scale(1.05);
}
.cat-card__info {
	padding: 0.88rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.cat-card__name {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text-main);
	line-height: 1.3;
}
.cat-card__arrow {
	color: var(--color-primary);
	font-size: 0.9rem;
	flex-shrink: 0;
	transition: transform 0.18s ease;
}
.cat-card:hover .cat-card__arrow {
	transform: translateX(5px);
}
@keyframes catCardIn {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Divider */
.section-divider {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 0 24px;
}

/* Banner strip */
.home-banner {
	background: linear-gradient(135deg, #1a0a0f 0%, #2a0e1a 100%);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding: 2.4rem 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.home-banner__text h3 {
	font-size: 1.25rem;
	color: var(--text-main);
}
.home-banner__text p {
	color: var(--text-mid);
	font-size: 0.9rem;
	margin-top: 0.3rem;
}

/* ── CATEGORY PAGE ──────────────────────────────────────────── */
.cat-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2.5rem;
	align-items: start;
	padding-bottom: 4rem;
}

/* Sidemenu */
.cat-sidebar {
	position: sticky;
	top: calc(var(--header-h) + 20px);
}
.cat-sidebar__inner {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.cat-sidebar__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 1rem 1.1rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-soft);
	border-bottom: 1px solid var(--color-border);
}
.cat-sidebar__list {
	list-style: none;
	padding: 0.4rem 0;
}
.cat-sidebar__item {
	position: relative;
}
.cat-sidebar__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1.1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-mid);
	transition:
		color var(--transition),
		background var(--transition);
}
.cat-sidebar__link:hover {
	color: var(--text-main);
	background: var(--color-surface2);
}
.cat-sidebar__item.is-active .cat-sidebar__link {
	color: var(--color-primary);
	background: rgba(233, 69, 96, 0.07);
	font-weight: 600;
}
.cat-sidebar__item.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	background: var(--color-primary);
	border-radius: 0 3px 3px 0;
}
.cat-sidebar__arrow {
	font-size: 1rem;
	line-height: 1;
	color: var(--color-primary);
}

/* Category main content */
.cat-main {
	min-width: 0;
}
.page-hero {
	padding: 2.4rem 0 2rem;
	text-align: center;
}
.page-hero h1 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* Filters bar (placeholder) */
.filters-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 1.8rem;
}
.filter-chip {
	padding: 0.4rem 0.9rem;
	border-radius: 99px;
	font-size: 0.8rem;
	font-weight: 500;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	color: var(--text-mid);
	cursor: pointer;
	transition:
		border-color var(--transition),
		color var(--transition);
}
.filter-chip:hover,
.filter-chip.active {
	border-color: var(--color-primary);
	color: var(--text-main);
}

/* Empty state */
.empty-state {
	text-align: center;
	padding: 6rem 24px;
	color: var(--text-soft);
}
.empty-state h3 {
	color: var(--text-mid);
	margin: 1rem 0 0.5rem;
}
.empty-state__icon svg {
	width: 48px;
	height: 48px;
	margin: 0 auto;
	opacity: 0.4;
}

/* ── CART ───────────────────────────────────────────────────── */
#cart {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px 4rem;
}
.cart-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 2.4rem;
	align-items: start;
}
.cart-item {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 1rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--color-border);
	align-items: center;
}
.cart-item__img {
	width: 80px;
	height: 100px;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--color-surface2);
}
.cart-item__name {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-main);
}
.cart-item__price {
	font-size: 0.82rem;
	color: var(--text-mid);
	margin-top: 4px;
}
.cart-item__qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 10px;
}
.cart-item__qty button {
	width: 26px;
	height: 26px;
	border-radius: 4px;
	background: var(--color-surface2);
	border: 1px solid var(--color-border);
	font-size: 1rem;
	color: var(--text-main);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
}
.cart-item__qty button:hover {
	background: var(--color-border);
}
.cart-item__qty span {
	min-width: 24px;
	text-align: center;
	font-weight: 600;
}
.cart-item__remove {
	color: var(--text-soft);
	font-size: 0.75rem;
	cursor: pointer;
	transition: color var(--transition);
}
.cart-item__remove:hover {
	color: var(--color-primary);
}
.cart-item__line {
	text-align: right;
	font-weight: 700;
	font-family: var(--font-display);
}

.cart-summary {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.8rem;
	position: sticky;
	top: calc(var(--header-h) + 16px);
}
.cart-summary h3 {
	margin-bottom: 1.2rem;
	font-size: 1rem;
}
.cart-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 0.6rem 0;
	font-size: 0.9rem;
	color: var(--text-mid);
	border-bottom: 1px solid var(--color-border);
}
.cart-summary__row--total {
	color: var(--text-main);
	font-weight: 700;
	font-size: 1rem;
	border-bottom: none;
	margin-top: 0.4rem;
}

/* ── CHECKOUT / FORMS ───────────────────────────────────────── */
#checkout,
#login-page,
#register-page,
#contact-page {
	max-width: 680px;
	margin: 0 auto;
	padding: 2rem 24px 4rem;
}

/* ── AUTH PAGE (login / register) ───────────────────────────── */
.auth-page {
	min-height: calc(100vh - 140px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
}
.auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2.6rem 2.4rem;
}
.auth-card__header {
	text-align: center;
	margin-bottom: 2rem;
}
.auth-logo {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	display: inline-block;
}
.auth-card__header h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.auth-card__sub {
	font-size: 0.85rem;
	color: var(--text-mid);
	line-height: 1.6;
}
.auth-error {
	background: rgba(233, 69, 96, 0.1);
	border: 1px solid rgba(233, 69, 96, 0.3);
	border-radius: var(--radius);
	padding: 0.75rem 1rem;
	color: var(--color-primary);
	font-size: 0.88rem;
	margin-bottom: 1.1rem;
}
.auth-card__footer {
	text-align: center;
	margin-top: 1.8rem;
	font-size: 0.85rem;
	color: var(--text-mid);
}
.auth-card__footer a {
	color: var(--color-primary);
	font-weight: 600;
}
.auth-card__footer a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 2rem 1.4rem;
	}
}

.form-section {
	margin-bottom: 2rem;
}
.form-section h3 {
	margin-bottom: 1rem;
	font-size: 1rem;
	color: var(--text-mid);
}

.form-group {
	margin-bottom: 1.2rem;
}
.form-group label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-mid);
	margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0.7rem 0.9rem;
	font-size: 0.9rem;
	color: var(--text-main);
	font-family: var(--font-base);
	transition:
		border-color var(--transition),
		box-shadow var(--transition);
	outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--text-soft);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}
.form-group select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%235a5d74'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px;
	padding-right: 2.5rem;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-error {
	display: none;
	padding: 0.7rem 0.9rem;
	background: rgba(233, 69, 96, 0.12);
	border: 1px solid rgba(233, 69, 96, 0.3);
	border-radius: var(--radius);
	font-size: 0.85rem;
	color: #ff8a9a;
	margin-bottom: 1rem;
}

/* ── STATIC PAGES (privacy, terms, guide, etc.) ─────────────── */
.static-page {
	width: 100%;
	margin: 0 auto;
	padding: 2rem 0 5rem;
}
.static-page h1 {
	margin-bottom: 2rem;
}
.static-page h2 {
	font-size: 1.1rem;
	margin: 2rem 0 0.6rem;
	color: var(--text-main);
}
.static-page p,
.static-page li {
	color: var(--text-mid);
	line-height: 1.9;
}
.static-page ul {
	padding-left: 1.4rem;
	margin-bottom: 1rem;
}
.static-page ul li {
	list-style: disc;
	margin-bottom: 0.4rem;
}
.static-page a {
	color: var(--color-primary);
}
.static-page a:hover {
	text-decoration: underline;
}

/* ── SEARCH PAGE ────────────────────────────────────────────── */
#search-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 4rem;
}
.search-form-bar {
	display: flex;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 2rem;
}
.search-form-bar input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	padding: 0.9rem 1.2rem;
	font-size: 1rem;
	color: var(--text-main);
	font-family: var(--font-base);
}
.search-form-bar input::placeholder {
	color: var(--text-soft);
}
.search-form-bar button {
	padding: 0 1.4rem;
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background var(--transition);
}
.search-form-bar button:hover {
	background: var(--color-primary-h);
}

/* ── THANKS PAGE ────────────────────────────────────────────── */
#thanks-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6rem 24px;
	gap: 1.2rem;
}
#thanks-page .icon-check {
	width: 64px;
	height: 64px;
	background: rgba(233, 69, 96, 0.12);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}
#thanks-page h1 {
	font-size: 2rem;
}
#thanks-page p {
	color: var(--text-mid);
	max-width: 420px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	margin-top: auto;
}
.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 2.4rem;
	padding: 3.5rem 0 2.5rem;
}
.footer-tagline {
	color: var(--text-mid);
	font-size: 0.9rem;
	margin: 0.6rem 0 0.4rem;
}
.footer-desc {
	color: var(--text-soft);
	font-size: 0.82rem;
	line-height: 1.7;
}
.footer-col h4 {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-soft);
	margin-bottom: 1rem;
}
.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.footer-col a {
	font-size: 0.82rem;
	color: var(--text-mid);
	transition: color var(--transition);
}
.footer-col a:hover {
	color: var(--text-main);
}
.footer-bottom {
	border-top: 1px solid var(--color-border);
	padding: 1.2rem 0;
	font-size: 0.78rem;
	color: var(--text-soft);
	display: flex;
	justify-content: center;
	text-align: center;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fade-in {
	animation: fadeInUp 0.5s ease both;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.footer-top {
		grid-template-columns: 1fr 1fr;
		gap: 2rem 2.4rem;
	}
	.cart-layout {
		grid-template-columns: 1fr;
	}
	.cart-summary {
		position: static;
	}
	.cat-layout {
		grid-template-columns: 190px 1fr;
		gap: 1.8rem;
	}
}

@media (max-width: 768px) {
	.nav-main {
		display: none;
	}
	.hamburger {
		display: flex;
	}
	.footer-top {
		grid-template-columns: 1fr;
		gap: 1.6rem;
		padding: 2.4rem 0 2rem;
	}
	.product-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
	.form-row {
		grid-template-columns: 1fr;
	}
	.hero-slider {
		aspect-ratio: 16 / 8;
		min-height: 320px;
	}
	.hero-arrow {
		width: 38px;
		height: 38px;
		font-size: 1.5rem;
	}
	.hero-arrow--prev {
		left: 10px;
	}
	.hero-arrow--next {
		right: 10px;
	}
	.hero-slide h1 {
		font-size: clamp(1.6rem, 6vw, 2.4rem);
	}
	.cat-layout {
		grid-template-columns: 1fr;
	}
	.cat-sidebar {
		position: static;
		display: none;
	}
}

@media (max-width: 480px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.cart-item {
		grid-template-columns: 64px 1fr;
	}
	.cart-item__line {
		grid-column: 2;
	}
}

/* ── STATIC PAGE EXTRAS ─────────────────────────────────────── */
.static-page__title {
	font-size: 2rem;
	margin-bottom: 0.4rem;
	text-align: center;
}
.static-page__updated,
.static-page__lead {
	color: var(--text-mid);
	margin-bottom: 1.6rem;
	font-size: 0.95rem;
}
.static-page__section {
	margin-bottom: 2.6rem;
}
.static-page__section h2 {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}
.static-page dt {
	font-weight: 600;
	color: var(--text-main);
	margin-top: 1.4rem;
}
.static-page dd {
	margin: 0.3rem 0 0 0;
	color: var(--text-mid);
	line-height: 1.8;
}
.static-page dl.faq-list {
	margin: 0;
}
.static-page__cta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 3rem;
}
.static-page code {
	background: var(--color-surface2);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85em;
}

/* Tokusho table (tokusho.php) */
.tokusho-table {
	width: 100%;
	max-width: 1100px;
	border-collapse: collapse;
	font-size: 0.95rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}
.tokusho-table tr {
	border-bottom: 1px solid var(--color-border);
}
.tokusho-table tr:last-child {
	border-bottom: none;
}
.tokusho-table th {
	width: 28%;
	padding: 1rem 1.4rem;
	text-align: center;
	font-weight: 600;
	color: var(--text-main);
	background: var(--color-surface);
	vertical-align: middle;
	white-space: nowrap;
	border-right: 1px solid var(--color-border);
}
.tokusho-table td {
	padding: 1rem 1.4rem;
	color: var(--text-mid);
	line-height: 1.8;
	text-align: center;
}
.tokusho-table a {
	color: var(--color-primary);
}
.tokusho-table a:hover {
	text-decoration: underline;
}
@media (max-width: 600px) {
	.tokusho-table th,
	.tokusho-table td {
		display: block;
		width: 100%;
		padding: 0.6rem 0.8rem;
		border-right: none;
	}
	.tokusho-table th {
		background: var(--color-surface);
		padding-bottom: 0.3rem;
		white-space: normal;
		border-bottom: none;
	}
	.tokusho-table td {
		padding-top: 0.2rem;
		padding-bottom: 0.8rem;
	}
}

/* Info grid (shipping-payment.php) */
.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.2rem;
	margin-top: 1rem;
}
.info-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.4rem;
}
.info-card h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: var(--text-main);
}
.info-card p {
	font-size: 0.9rem;
	color: var(--text-mid);
	line-height: 1.7;
	margin-bottom: 0.3rem;
}
.info-card__cost {
	color: var(--text-main) !important;
	font-weight: 600;
	margin-top: 0.6rem !important;
}
.info-card--highlight {
	border-color: var(--color-primary);
	background: rgba(233, 69, 96, 0.06);
}
.info-card--highlight h3 {
	color: var(--color-primary);
}

/* ── CART EXTRAS ─────────────────────────────────────────────── */
.cart-empty {
	text-align: center;
	padding: 5rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	color: var(--text-mid);
}
.cart-empty p {
	font-size: 1.1rem;
}

.cart-summary__free {
	font-size: 0.85rem;
	color: #4caf50;
	margin-top: 0.5rem;
}
.cart-summary__note {
	font-size: 0.8rem;
	color: var(--text-soft);
	margin-top: 0.4rem;
}
.cart-summary__row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	font-size: 0.92rem;
	color: var(--text-mid);
	border-bottom: 1px solid var(--color-border);
}
.cart-summary__row--total {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--text-main);
	border-bottom: none;
	padding-top: 0.8rem;
}

/* ── CHECKOUT ────────────────────────────────────────────────── */
.checkout-page {
	padding: 2rem 0 5rem;
}
.checkout-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 2.4rem;
	align-items: start;
}
.checkout-form fieldset {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.4rem 1.6rem 1.6rem;
	margin-bottom: 1.6rem;
	background: var(--color-surface);
}
.checkout-form legend {
	padding: 0 0.6rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-mid);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.payment-methods {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.2rem;
}
.payment-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	cursor: pointer;
	padding: 0.7rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	transition: border-color 0.15s, background 0.15s;
}
.payment-option:has(input:checked) {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.payment-option input[type="radio"] {
	accent-color: var(--color-primary);
	width: 16px;
	height: 16px;
}
#card-fields {
	margin-top: 0.4rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--color-border);
}
.form-row--3 {
	grid-template-columns: 140px 1fr;
}
.form-group--wide {
	grid-column: span 1;
}
.checkout-summary {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.6rem;
	position: sticky;
	top: 90px;
}
.checkout-summary h2 {
	font-size: 1rem;
	margin-bottom: 1rem;
}
.checkout-items {
	margin-bottom: 1rem;
}
.co-item {
	display: grid;
	grid-template-columns: 48px 1fr auto auto;
	gap: 0.6rem;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.85rem;
}
.co-item img {
	border-radius: 4px;
	object-fit: cover;
	background: var(--color-surface2);
}
.co-item__name {
	color: var(--text-main);
}
.co-item__qty {
	color: var(--text-soft);
}
.co-item__price {
	font-weight: 600;
}
.checkout-form__note {
	font-size: 0.78rem;
	color: var(--text-soft);
	margin-top: 0.8rem;
	text-align: center;
}
.checkout-form__note a {
	color: var(--color-primary);
}
.form-error {
	background: rgba(233, 69, 96, 0.1);
	border: 1px solid rgba(233, 69, 96, 0.3);
	border-radius: var(--radius);
	padding: 0.8rem 1rem;
	color: var(--color-primary);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

@media (max-width: 860px) {
	.checkout-layout {
		grid-template-columns: 1fr;
	}
	.checkout-summary {
		position: static;
	}
}

/* ── PRODUCT DETAIL ──────────────────────────────────────────── */
.product-page {
	padding: 0 0 5rem;
}
.product-detail {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 3rem;
	align-items: start;
	margin-top: 1.5rem;
}
.product-detail__main-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
}
.product-detail__no-img {
	aspect-ratio: 1/1;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-soft);
	font-size: 0.9rem;
}
.product-detail__thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.7rem;
	flex-wrap: wrap;
}
.product-detail__thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color var(--transition);
	background: var(--color-surface);
}
.product-detail__thumb.active,
.product-detail__thumb:hover {
	border-color: var(--color-primary);
}
.product-detail__platform {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin-bottom: 0.4rem;
}
.product-detail__title {
	font-size: 1.6rem;
	margin-bottom: 0.7rem;
	line-height: 1.3;
}
.product-detail__price {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-main);
	margin: 0.8rem 0 1.2rem;
}
.product-detail__desc {
	color: var(--text-mid);
	line-height: 1.8;
	font-size: 0.92rem;
	margin-bottom: 1.4rem;
}
.product-detail__meta {
	margin-top: 1.4rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.82rem;
	color: var(--text-mid);
}
.product-detail__meta p {
	margin-bottom: 0.3rem;
}
.product-detail__meta b {
	color: var(--text-main);
}

/* Tabla de specs scrapeada */
.product-spec {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.product-spec h2 {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-mid);
	margin: 0 0 1.2rem;
}
.product-spec table,
.product-spec .product-detail-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	background: var(--color-surface);
	border-radius: 10px;
	overflow: hidden;
}
.product-spec tr:nth-child(even),
.product-spec .product-detail-content tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.03);
}
.product-spec th,
.product-spec td,
.product-spec .product-detail-content th,
.product-spec .product-detail-content td {
	padding: 0.7rem 1.2rem;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	text-align: left;
	vertical-align: top;
	line-height: 1.6;
}
.product-spec tr:last-child th,
.product-spec tr:last-child td,
.product-spec .product-detail-content tr:last-child th,
.product-spec .product-detail-content tr:last-child td {
	border-bottom: none;
}
.product-spec th,
.product-spec .product-detail-content th {
	width: 200px;
	min-width: 140px;
	white-space: nowrap;
	color: var(--color-primary);
	font-weight: 500;
	font-size: 0.8rem;
	background: rgba(233, 69, 96, 0.06);
}
.product-spec td,
.product-spec .product-detail-content td {
	color: var(--text-main);
}

/* Ocultar bloques no deseados del scraper (fallback) */
.product-spec [class*="goodsproductdetail_"],
.product-spec [class*="goods_date_share_"],
.product-spec [class*="goods_date_"] {
	display: none;
}

@media (max-width: 780px) {
	.product-detail {
		grid-template-columns: 1fr;
	}
	.product-spec th,
	.product-spec .product-detail-content th {
		width: auto;
		min-width: unset;
		display: block;
		padding-bottom: 0.2rem;
		border-bottom: none;
		white-space: normal;
	}
	.product-spec td,
	.product-spec .product-detail-content td {
		display: block;
		padding-top: 0.2rem;
		padding-bottom: 0.8rem;
	}
}
