/* ==========================================================
   Product details page (product-data.php) - 2026-10-16
   ========================================================== */
.pd-page {
	--pd-brand: #7C3AED;
	--pd-brand-d: #5B21B6;
	--pd-soft: #F1EBFF;
	--pd-ink: #1F2937;
	--pd-muted: #6B7280;
	--pd-line: #ECE9F6;
	--pd-radius: 16px;
	--pd-shadow: 0 1px 2px rgba(17, 12, 46, .06), 0 6px 20px rgba(17, 12, 46, .06);
	padding: 6px 0 20px;
	color: var(--pd-ink);
}
.pd-page a { text-decoration: none; }

.pd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 16px; font-size: 13px; color: var(--pd-muted); }
.pd-crumbs a { color: var(--pd-muted); }
.pd-crumbs a:hover { color: var(--pd-brand); }
.pd-crumbs b { color: var(--pd-ink); font-weight: 600; }
.pd-alert { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-weight: 600; }

/* Hero */
.pd-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 32px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--pd-line);
	border-radius: 20px;
	box-shadow: var(--pd-shadow);
}
.pd-img {
	position: sticky;
	top: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 28px;
	border-radius: 16px;
	background: radial-gradient(circle at 50% 42%, #fff 0%, #F4F0FF 100%);
	overflow: hidden;
}
.pd-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.pd-img:hover img { transform: scale(1.06); }

.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pd-chip { padding: 4px 12px; font-size: 12px; font-weight: 700; border-radius: 999px; color: var(--pd-brand-d); background: var(--pd-soft); }
.pd-chip:hover { color: var(--pd-brand-d); background: #E6DCFF; }
.pd-chip-brand { color: #fff; background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.pd-chip-brand:hover { color: #fff; background: var(--pd-brand-d); }
.pd-chip-ok { color: #047857; background: #ECFDF5; }
.pd-title { margin: 0 0 10px; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--pd-ink); }
.pd-title small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--pd-brand); }
.pd-summary { margin: 0 0 16px; font-size: 15.5px; line-height: 1.65; color: var(--pd-muted); }

.pd-highlights { list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #FAF8FF; border: 1px solid var(--pd-line); }
.pd-highlights li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed #E7E2F5; }
.pd-highlights li:last-child { border-bottom: 0; }
.pd-highlights i { color: var(--pd-brand); font-size: 12px; }
.pd-highlights span { flex: 0 0 38%; color: var(--pd-muted); }
.pd-highlights b { font-weight: 600; color: var(--pd-ink); }

.pd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	font-size: 14.5px;
	font-weight: 700;
	border-radius: 12px;
	border: 1.5px solid transparent;
	transition: transform .2s, background .2s, border-color .2s;
}
.pd-btn:hover { transform: translateY(-2px); }
.pd-page .pd-btn-primary { color: #fff; background: linear-gradient(135deg, #8B5CF6, #6D28D9); box-shadow: 0 8px 20px rgba(109, 40, 217, .25); }
.pd-page .pd-btn-primary:hover { color: #fff; background: var(--pd-brand-d); }
.pd-page .pd-btn-ghost { color: var(--pd-brand-d); background: #fff; border-color: #D9CCFB; }
.pd-page .pd-btn-ghost:hover { background: var(--pd-soft); }
.pd-btn-block { width: 100%; margin-top: 6px; }
.pd-dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #B91C1C; }
.pd-dl:hover { color: #7F1D1D; }

.pd-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--pd-line); }
.pd-trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pd-muted); }
.pd-trust i { width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 9px; color: var(--pd-brand); background: var(--pd-soft); }

/* Section nav */
.pd-tabs {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	gap: 6px;
	margin: 22px 0 18px;
	padding: 8px;
	overflow-x: auto;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border: 1px solid var(--pd-line);
	border-radius: 14px;
	box-shadow: var(--pd-shadow);
}
.pd-tabs a { flex-shrink: 0; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--pd-muted); border-radius: 10px; }
.pd-tabs a:hover { color: var(--pd-brand-d); background: var(--pd-soft); }

/* Body */
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.pd-card { margin-bottom: 20px; padding: 24px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); scroll-margin-top: 80px; }
.pd-card h2 { margin: 0 0 14px; font-size: 21px; font-weight: 800; color: var(--pd-ink); }
.pd-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.pd-text, .pd-card p { font-size: 15px; line-height: 1.75; color: #374151; }
.pd-text h1, .pd-text h2, .pd-text h3, .pd-text h4 { margin: 18px 0 8px; font-size: 17px; font-weight: 700; color: var(--pd-ink); }
.pd-text img { max-width: 100%; height: auto; }
.pd-text ul, .pd-spec ul { padding-left: 20px; }
.pd-text li, .pd-spec li { margin-bottom: 6px; line-height: 1.6; }

.pd-spec { overflow-x: auto; }
.pd-spec table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--pd-line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.pd-spec td, .pd-spec th { padding: 11px 14px; border-bottom: 1px solid var(--pd-line); vertical-align: top; }
.pd-spec tr:last-child td { border-bottom: 0; }
.pd-spec tr:nth-child(odd) td { background: #FAF8FF; }
.pd-spec td:first-child { width: 36%; font-weight: 600; color: var(--pd-ink); }
.pd-spec td + td { color: #374151; }

.pd-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pd-downloads a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--pd-line); border-radius: 12px; color: var(--pd-ink); transition: border-color .2s, background .2s; }
.pd-downloads a:hover { border-color: #D9CCFB; background: #FAF8FF; }
.pd-downloads i { font-size: 26px; color: #B91C1C; }
.pd-downloads span { font-size: 13px; color: var(--pd-muted); }
.pd-downloads b { display: block; font-size: 15px; color: var(--pd-ink); }

/* Sidebar contact */
.pd-side { position: sticky; top: 80px; }
.pd-contact { border: 2px solid var(--pd-soft); }
.pd-contact p { font-size: 14px; line-height: 1.6; }
.pd-contact ul { list-style: none; margin: 0 0 10px; padding: 0; }
.pd-contact li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.5; border-bottom: 1px dashed var(--pd-line); }
.pd-contact li i { width: 16px; margin-top: 3px; text-align: center; color: var(--pd-brand); }
.pd-contact li a { color: var(--pd-ink); font-weight: 600; }
.pd-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 12px; }
.pd-group span { width: 100%; font-weight: 700; color: var(--pd-muted); }
.pd-group a { padding: 3px 9px; border-radius: 999px; color: var(--pd-brand-d); background: #F8F6FF; }
.pd-group a:hover { background: var(--pd-soft); }

/* Related */
.pd-related { margin-top: 10px; scroll-margin-top: 80px; }
.pd-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pd-rel { display: flex; flex-direction: column; padding: 10px 10px 14px; background: #fff; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pd-rel:hover { transform: translateY(-4px); border-color: #D9CCFB; box-shadow: 0 12px 32px rgba(91, 33, 182, .16); }
.pd-rel-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 14px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff 0%, #F6F3FE 100%); }
.pd-rel-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-rel-name { margin: 12px 4px 6px; min-height: 2.7em; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--pd-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rel-more { margin: auto 4px 0; font-size: 13px; font-weight: 700; color: var(--pd-brand); }
.pd-rel:hover .pd-rel-name { color: var(--pd-brand); }

@media (max-width: 991px) {
	.pd-hero { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
	.pd-img { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
	.pd-body { grid-template-columns: 1fr; }
	.pd-side { position: static; }
	.pd-rel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.pd-title { font-size: 23px; }
	.pd-cta .pd-btn { flex: 1 1 100%; }
	.pd-card { padding: 18px; }
	.pd-rel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pd-spec td:first-child { width: 42%; }
}

/* Section header (same look as the home page) */
.pd-page .modern-section-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; padding: 0 0 12px; background: none; border: 0; border-bottom: 1px solid var(--pd-line); box-shadow: none; border-radius: 0; }
.pd-page .modern-section-header h2 { position: relative; margin: 0; padding-left: 14px; font-size: 22px; font-weight: 800; color: var(--pd-ink); }
.pd-page .modern-section-header h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #8B5CF6, #5B21B6); }
.pd-page .modern-section-header .view-all-link { padding: 7px 16px; font-size: 12px; font-weight: 700; border-radius: 999px; border: 1px solid #D9CCFB; background: #fff; color: var(--pd-brand); }
.pd-page .modern-section-header .view-all-link:hover { background: var(--pd-brand); color: #fff; }
