/* ============================================================
   PRODUCTS — index grid + detail
   ============================================================ */

/* ---------- Index ---------- */
.prod-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.8vw, 26px);
}

.prod-card {
	display: flex;
	flex-direction: column;
	background: var(--ink-3);
	/*border: 1px solid var(--line);*/
	transition: transform 0.55s var(--ease), border-color 0.4s, box-shadow 0.5s;
}

.prod-card:hover {
	transform: translateY(-5px);
	border-color: rgba(240, 136, 10, 0.55);
	box-shadow: 0 18px 40px rgba(28, 28, 34, 0.08);
}

.prod-media {
	position: relative;
	/* aspect-ratio: 4 / 4.4; */
	overflow: hidden;
	background: #241708;
}

.prod-media img {
	width: 100%;
	/* height: 100%;
	object-fit: cover;
	filter: brightness(0.97); */
	transition: transform 1.1s var(--ease), filter 0.6s;
}

.prod-card:hover .prod-media img {
	transform: scale(1.06);
	filter: brightness(1.02);
}

.prod-code {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.52);
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(4px);
}

.prod-go {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s, border-color 0.3s;
}

.prod-go svg {
	width: 12px;
	height: 12px;
	fill: #fff;
}

.prod-card:hover .prod-go {
	opacity: 1;
	transform: translateY(0);
	background: var(--brass);
	border-color: var(--brass);
}

.prod-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 7px;
	padding: 17px 18px 20px;
}

.prod-cat {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brass);
}

.prod-body h3 {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.prod-spec {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.prod-spec div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.prod-spec dt {
	color: var(--ivory-25);
}

.prod-spec dd {
	color: var(--ivory-70);
}

/* ---------- OEM band ---------- */
.oem-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(22px, 3vw, 46px);
	align-items: center;
	margin-top: clamp(40px, 5vw, 64px);
	padding: clamp(28px, 3.6vw, 48px) clamp(24px, 3.6vw, 52px);
	background: var(--ivory);
	color: #fff;
}

.oem-band .eyebrow {
	color: var(--amber-1);
}

.oem-band .eyebrow::after {
	background: rgba(255, 176, 32, 0.4);
}

.oem-band h2 {
	margin-top: 10px;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 32px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.oem-band h2 em {
	color: var(--amber-1);
}

.oem-band p {
	margin-top: 12px;
	max-width: 62ch;
	font-size: 14.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   DETAIL
   ============================================================ */
.pd-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 70px);
	align-items: start;
}

.pd-main {
	position: relative;
	/* aspect-ratio: 1 / 1.02; */
	overflow: hidden;
	background: #f2eee6;
	border: 1px solid var(--line);
}

.pd-main img {
	width: 100%;
	/* height: 100%;
	object-fit: cover; */
	transition: opacity 0.4s var(--ease), transform 1.2s var(--ease);
}

.pd-main img.is-fading {
	opacity: 0.25;
}

.pd-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.pd-thumb {
	aspect-ratio: 1;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.35s, border-color 0.35s;
}

.pd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-thumb:hover {
	opacity: 0.9;
}

.pd-thumb.is-on {
	opacity: 1;
	border-color: var(--brass);
}

.pd-info h2 {
	margin: 12px 0 16px;
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.pd-info .lead {
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.8;
}

.pd-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 40px 0 80px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.pd-facts > div {
	padding: 16px 14px;
	border-left: 1px solid var(--line);
}

.pd-facts > div:first-child {
	padding-left: 0;
	border-left: 0;
}

.pd-facts b {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.1;
	color: var(--ivory);
}

.pd-facts span {
	display: block;
	margin-top: 6px;
	font-family: var(--mono);
	font-size: 18px;
	/* letter-spacing: 0.14em; */
	text-transform: uppercase;
	color: #f0880a;
}

.pd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.pd-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 20px;
	font-family: var(--mono);
	font-size: 11.5px;
	line-height: 1.7;
	letter-spacing: 0.06em;
	color: var(--ivory-45);
}

.pd-note svg {
	width: 14px;
	height: 14px;
	margin-top: 2px;
	fill: none;
	stroke: var(--brass);
	stroke-width: 1.6;
	flex-shrink: 0;
}

/* ---------- Tabs ---------- */
.pd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(18px, 2.6vw, 40px);
	margin-bottom: clamp(24px, 3vw, 38px);
	border-bottom: 1px solid var(--line);
}

.pd-tab {
	position: relative;
	padding: 0 0 15px;
	border: 0;
	background: none;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(14px, 1.2vw, 16px);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ivory-25);
	cursor: pointer;
	transition: color 0.3s;
}

.pd-tab::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 0;
	height: 2px;
	background: var(--brass);
	transition: width 0.45s var(--ease);
}

.pd-tab:hover {
	color: var(--ivory);
}

.pd-tab.is-on {
	color: var(--ivory);
}

.pd-tab.is-on::after {
	width: 100%;
}

.pd-panel {
	display: none;
}

.pd-panel.is-on {
	display: block;
	animation: pdFade 0.5s var(--ease);
}

@keyframes pdFade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pd-panel-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(26px, 4vw, 64px);
	align-items: start;
}

.pd-panel h3 {
	margin-bottom: 12px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(18px, 1.6vw, 22px);
	letter-spacing: -0.01em;
}

.kv {
	border-top: 1px solid var(--line);
}

.kv-row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid var(--line);
}

.kv-row dt {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-45);
}

.kv-row dd {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ivory-70);
	text-align: right;
}

.pd-apps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

/* ---------- Application panel ---------- */
.pd-app-grid {
	display: grid;
	/* grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); */
	gap: clamp(28px, 4vw, 10px);
	align-items: start;
	margin-top: 40px;
}

.pd-app-head h3 {
	margin: 0 0 14px;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(24px, 2.8vw, 36px);
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--ivory);
}

.pd-app-head h3 em {
	font-style: italic;
	color: var(--brass);
}

.pd-app-head p {
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--ivory-55);
	max-width: 48ch;
	margin: 0;
}

.pd-app-icons {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(10px, 1.4vw, 16px);
}

.pd-app-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: clamp(18px, 2.2vw, 28px) 12px;
	background: var(--ink-3);
	border: 1px solid var(--line);
	text-decoration: none;
	color: var(--ivory-65);
	transition: border-color 0.35s, color 0.35s, background 0.35s, transform 0.4s var(--ease);
	position: relative;
	overflow: hidden;
}

.pd-app-item::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: var(--brass);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.45s var(--ease);
}

.pd-app-item svg {
	width: clamp(36px, 3.6vw, 48px);
	height: clamp(36px, 3.6vw, 48px);
	stroke: currentColor;
	fill: none;
	transition: transform 0.5s var(--ease), stroke 0.35s;
}

.pd-app-item span {
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(13px, 1.1vw, 15px);
	letter-spacing: 0.02em;
	text-align: center;
	line-height: 1.25;
}

.pd-app-item:hover {
	color: var(--ivory);
	border-color: rgba(240, 136, 10, 0.55);
	transform: translateY(-3px);
	background: rgba(240, 136, 10, 0.04);
}

.pd-app-item:hover::before {
	transform: scaleX(1);
}

.pd-app-item:hover svg {
	color: var(--brass);
	transform: translateY(-2px) scale(1.04);
}

/* ---------- Related ---------- */
.related-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 20px;
	margin-bottom: clamp(22px, 3vw, 34px);
	border-bottom: 1px solid var(--line);
}

.related-head h2 {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(22px, 2.4vw, 30px);
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.related-head a {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-45);
	transition: color 0.3s;
}

.related-head a:hover {
	color: var(--brass);
}

@media (max-width: 1200px) {
	.prod-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.prod-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pd-grid {
		grid-template-columns: 1fr;
	}

	.pd-panel-grid {
		grid-template-columns: 1fr;
	}

	.pd-app-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.pd-app-head p {
		max-width: none;
	}

	.pd-app-icons {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.oem-band {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.pd-facts > div {
		padding: 14px 10px;
	}
}

@media (max-width: 520px) {
	.prod-grid {
		grid-template-columns: 1fr 1fr;
	}

	.pd-facts {
		grid-template-columns: 1fr;
	}

	.pd-facts > div {
		padding: 12px 0;
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.pd-facts > div:first-child {
		border-top: 0;
	}

	.pd-app-icons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
