/* ============================================================
   Product Detail Page
   ============================================================ */

/* ---- Detail top: gallery + info ---- */
.pd-top {
	display: grid;
 grid-template-columns: 1.05fr .95fr;
	gap: 50px;
	align-items: start;
}
/* Gallery */
.pd-gallery__main {
	/* border-radius: 18px; */
	overflow: hidden;
	/* aspect-ratio: 1/1; */
	background: var(--bg-soft);
	/* box-shadow: var(--shadow); */
	position: relative;
}
.pd-gallery__main img {
	width: 100%;
	border: 1px solid var(--line);
	/* height: 100%;
	object-fit: cover; */
	transition: opacity .4s var(--ease);
}
.pd-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 14px;
}
.pd-gallery__thumb {
	border-radius: 12px;
	overflow: hidden;
	/* aspect-ratio: 1/1; */
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pd-gallery__thumb img {
	width: 100%;/* height: 100%;
	object-fit: cover; */
}
.pd-gallery__thumb:hover {
	transform: translateY(-3px);
}
.pd-gallery__thumb.is-active {
	border-color: var(--accent);
	box-shadow: 0 6px 18px rgba(185,28,28,.25);
}
/* Info */
.pd-info__cat {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
}
.pd-info__title {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ink);
	margin-bottom: 14px;
}
.pd-info__model {
	font-size: 15px;
	color: var(--gray);
	margin-bottom: 18px;
}
.pd-info__model b {
	color: var(--ink);
}
.pd-info__short {
	font-size: 15.5px;
	color: var(--gray);
	line-height: 1.8;
	margin-bottom: 26px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}
.pd-info__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.pd-info__actions .btn--primary {
	background: var(--accent);
}
.pd-info__actions .btn--ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--line);
}
.pd-info__actions .btn--ghost:hover {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}
/* Spec highlight cards */
.pd-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.pd-spec {
	background: var(--bg-soft);
	border-radius: 12px;
	padding: 18px 16px;
	text-align: center;
	border: 1px solid var(--line);
}
.pd-spec__val {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 4px;
}
.pd-spec__label {
	font-size: 12px;
	color: var(--gray);
	letter-spacing: .04em;
}
/* ---- Tabs ---- */
.pd-tabs {
	margin-top: 48px;
}
.pd-tabs__nav {
	display: flex;
	gap: 6px;
	border-bottom: 2px solid var(--line);
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.pd-tabs__btn {
	padding: 14px 22px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--gray);
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: all .3s var(--ease);
	font-family: inherit;
}
.pd-tabs__btn:hover {
	color: var(--accent);
}
.pd-tabs__btn.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
}
.pd-tabs__pane {
	display: none;
	animation: fadeIn .4s var(--ease);
}
.pd-tabs__pane.is-active {
	display: block;
}
@keyframes fadeIn {
 from {
opacity: 0;
transform: translateY(12px);
}
to {
	opacity: 1;
	transform: none;
}
}
.pd-tabs__pane p {
	font-size: 15.5px;
	color: var(--gray);
	line-height: 1.85;
	margin-bottom: 14px;
}
.pd-tabs__pane ul {
	margin: 16px 0;
}
.pd-tabs__pane ul li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	font-size: 15px;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.pd-tabs__pane ul li:last-child {
	border-bottom: 0;
}
.pd-tabs__pane ul li::before {
	content: '';
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	margin-top: 9px;
}
/* Spec table */
.spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}
.spec-table th, .spec-table td {
	padding: 14px 18px;
	text-align: left;
	font-size: 14.5px;
	border-bottom: 1px solid var(--line);
}
.spec-table th {
	background: var(--bg-soft);
	color: var(--ink);
	font-weight: 700;
	width: 38%;
}
.spec-table td {
	color: var(--gray);
}
/* ---- Related products ---- */
.pd-related {
	margin-top: 60px;
}
.pd-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
}
.pd-related__head h2 {
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
}
.pd-related__head h2 em {
	font-style: normal;
	color: var(--accent);
}
.pd-related .prod-grid {
	grid-template-columns: repeat(4, 1fr);
}
 @media(max-width:1100px) {
.pd-top {
	grid-template-columns: 1fr;
	gap: 36px;
}
.pd-related .prod-grid {
	grid-template-columns: repeat(2, 1fr);
}
}
@media(max-width:640px) {
.pd-specs {
	grid-template-columns: 1fr;
}
.pd-related .prod-grid {
	grid-template-columns: 1fr;
}
}
