/**
 * Single Product Page Styles
 *
 * @package Hello_Elementor_Child
 */

/* ═══════════════════════════════════════════════════════════
   Variables
═══════════════════════════════════════════════════════════ */
:root {
	--prod-primary:     #5B7699;
	--prod-accent:      #B87456;
	--prod-accent-dark: #9a5e3f;
	--prod-text:        #24272D;
	--prod-muted:       #6b7280;
	--prod-border:      #e5e7eb;
	--prod-bg-light:    #f8f9fa;
	--prod-white:       #ffffff;
	--prod-radius:      10px;
	--prod-max:         1440px;
}

/* ═══════════════════════════════════════════════════════════
   Container
═══════════════════════════════════════════════════════════ */
.nbp-prod-container {
	max-width: var(--prod-max);
	margin: 0 auto;
	padding: 0 32px;
}
@media (max-width: 600px) {
	.nbp-prod-container { padding: 0 18px; }
}

/* ═══════════════════════════════════════════════════════════
   Breadcrumb Bar
═══════════════════════════════════════════════════════════ */
.nbp-prod-breadcrumb-bar {
	background: var(--prod-white);
	border-bottom: 1px solid var(--prod-border);
	padding: 14px 0;
}
.nbp-prod-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--prod-muted);
}
.nbp-prod-breadcrumb a {
	color: var(--prod-accent);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s;
}
.nbp-prod-breadcrumb a:hover { color: var(--prod-accent-dark); text-decoration: underline; }
.nbp-prod-breadcrumb span:last-child {
	color: var(--prod-text);
	font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   Product Hero — two-column grid
═══════════════════════════════════════════════════════════ */
.nbp-prod-hero {
	background: var(--prod-white);
	padding: 48px 0 56px;
}
.nbp-prod-grid {
	display: grid;
	grid-template-columns: 55% 1fr;
	gap: 56px;
	align-items: start;
}
@media (max-width: 900px) {
	.nbp-prod-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ── Gallery ───────────────────────────────────────────── */
.nbp-prod-gallery {
	position: sticky;
	top: 100px;
}
@media (max-width: 900px) {
	.nbp-prod-gallery { position: static; }
}

.nbp-prod-main-wrap {
	position: relative;
	background: var(--prod-white);
	border-radius: var(--prod-radius);
	border: 1px solid var(--prod-border);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nbp-prod-main-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity 0.15s ease;
	padding: 16px;
	box-sizing: border-box;
}
.nbp-prod-main-img.nbp-fading {
	opacity: 0;
}
.nbp-prod-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* Nav arrows */
.nbp-prod-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.92);
	border: 1px solid var(--prod-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	z-index: 2;
}
.nbp-prod-nav svg { width: 18px; height: 18px; color: var(--prod-text); }
.nbp-prod-nav:hover { background: var(--prod-white); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.nbp-prod-prev { left: 12px; }
.nbp-prod-next { right: 12px; }

/* Thumbnails */
.nbp-prod-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.nbp-prod-thumb {
	width: 72px;
	height: 72px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid var(--prod-border);
	padding: 0;
	cursor: pointer;
	transition: border-color 0.2s;
	background: var(--prod-bg-light);
}
.nbp-prod-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nbp-prod-thumb.active,
.nbp-prod-thumb:hover {
	border-color: var(--prod-accent);
}
@media (max-width: 600px) {
	.nbp-prod-thumb { width: 60px; height: 60px; }
}

/* ── Info Column ───────────────────────────────────────── */
.nbp-prod-info {
	padding-top: 8px;
}

.nbp-prod-title {
	font-size: clamp(22px, 2.5vw, 36px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--prod-text);
	margin: 0 0 10px;
}

.nbp-prod-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--prod-muted);
	margin: 0 0 18px;
}

/* ── Color Swatches (image-based) ──────────────────────── */
.nbp-prod-colors {
	margin-bottom: 32px;
}
.nbp-prod-colors-header {
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.nbp-prod-colors-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--prod-muted);
}
.nbp-prod-color-count {
	font-size: 11px;
	color: var(--prod-muted);
}

/* Selected color name bar */
.nbp-prod-selected-bar {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 12px;
	min-height: 22px;
}
.nbp-prod-selected-code {
	font-size: 13px;
	font-weight: 800;
	color: var(--prod-text);
}
.nbp-prod-selected-name {
	font-size: 13px;
	font-weight: 500;
	color: var(--prod-muted);
}

/* Swatch scroll wrapper */
.nbp-prod-swatches-wrap {
	position: relative;
}

/* Swatch grid */
.nbp-prod-swatches {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	max-height: 280px;
	overflow-y: auto;
	padding: 4px 4px 4px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--prod-border) transparent;
}
.nbp-prod-swatches::-webkit-scrollbar {
	width: 4px;
}
.nbp-prod-swatches::-webkit-scrollbar-track { background: transparent; }
.nbp-prod-swatches::-webkit-scrollbar-thumb {
	background: var(--prod-border);
	border-radius: 2px;
}

/* Individual swatch button */
.nbp-prod-swatch,
.nbp-prod-swatch:not([class*="elementor"]) {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 6px 6px 5px;
	border: 2px solid var(--prod-border) !important;
	border-radius: 8px;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: inherit !important;
	cursor: pointer;
	transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
	text-align: center;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}
/* Image fills most of the swatch */
.nbp-prod-swatch img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	background: #ffffff;
}
.nbp-prod-swatch:hover {
	border-color: var(--prod-accent) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.nbp-prod-swatch.active {
	border-color: var(--prod-text) !important;
	box-shadow: 0 0 0 3px rgba(91,118,153,0.22);
}

/* Swatch label (code + name) */
.nbp-prod-swatch-label {
	display: flex;
	flex-direction: column;
	padding: 5px 2px 2px;
	line-height: 1.3;
	width: 100%;
}
.nbp-prod-swatch-code {
	font-size: 10px;
	font-weight: 700;
	color: var(--prod-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nbp-prod-swatch-name {
	font-size: 9px;
	color: var(--prod-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 600px) {
	.nbp-prod-swatches {
		grid-template-columns: repeat(3, 1fr);
		max-height: 240px;
	}
}

/* ── CTA Button ────────────────────────────────────────── */
.nbp-prod-cta-wrap {
	display: flex;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--prod-border);
}
.nbp-prod-cta-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s, transform 0.15s;
	letter-spacing: 0.02em;
	background: var(--prod-accent) !important;
	background-color: var(--prod-accent) !important;
	color: #ffffff !important;
	border: none !important;
	cursor: pointer;
}
.nbp-prod-cta-btn:hover {
	background: var(--prod-accent-dark) !important;
	background-color: var(--prod-accent-dark) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
}
.nbp-prod-cta-btn svg {
	stroke: #ffffff;
	flex-shrink: 0;
}
@media (max-width: 480px) {
	.nbp-prod-cta-btn { justify-content: center; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   Section Title (shared)
═══════════════════════════════════════════════════════════ */
.nbp-prod-section-title {
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 800;
	color: var(--prod-text);
	margin: 0 0 32px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--prod-border);
}

/* ═══════════════════════════════════════════════════════════
   Description
═══════════════════════════════════════════════════════════ */
.nbp-prod-description {
	background: var(--prod-bg-light);
	padding: 64px 0;
	border-top: 1px solid var(--prod-border);
}
.nbp-prod-desc-inner {
	max-width: 860px;
}
.nbp-prod-content {
	font-size: 15px;
	line-height: 1.8;
	color: var(--prod-text);
}
.nbp-prod-content h2,
.nbp-prod-content h3,
.nbp-prod-content h4 {
	font-weight: 700;
	color: var(--prod-text);
	margin-top: 28px;
	margin-bottom: 10px;
}
.nbp-prod-content h2 { font-size: 22px; }
.nbp-prod-content h3 { font-size: 18px; }
.nbp-prod-content p  { margin-bottom: 16px; }
.nbp-prod-content ul,
.nbp-prod-content ol {
	padding-left: 22px;
	margin-bottom: 16px;
}
.nbp-prod-content li { margin-bottom: 6px; }
.nbp-prod-content a  { color: var(--prod-accent); }
.nbp-prod-content a:hover { color: var(--prod-accent-dark); }
.nbp-prod-content img {
	max-width: 100%;
	border-radius: var(--prod-radius);
}
.nbp-prod-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	font-size: 14px;
}
.nbp-prod-content th,
.nbp-prod-content td {
	padding: 10px 14px;
	border: 1px solid var(--prod-border);
	text-align: left;
}
.nbp-prod-content th {
	background: var(--prod-white);
	font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Technical Specs Buttons
═══════════════════════════════════════════════════════════ */
.nbp-tech-specs {
	margin-top: 24px;
	margin-bottom: 20px;
	padding: 18px 20px;
	background: var(--prod-bg-light);
	border: 1px solid var(--prod-border);
	border-left: 4px solid var(--prod-accent);
	border-radius: var(--prod-radius);
}
.nbp-tech-specs strong {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--prod-muted);
	margin-bottom: 12px;
}
.file-buttons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.btn-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none !important;
	border-radius: 5px;
	transition: background 0.2s;
	cursor: pointer;
	line-height: 1;
}
.btn-icon {
	display: inline-flex;
	align-items: center;
	height: 16px;
}
.btn-text {
	display: inline-flex;
	align-items: center;
}
.btn-pdf {
	background: #b87456;
	color: #fff !important;
	border: 2px solid #b87456;
}
.btn-pdf:hover {
	background: #a0623e;
	border-color: #a0623e;
	color: #fff !important;
}
.btn-dwg {
	background: transparent;
	color: #b87456 !important;
	border: 2px solid #b87456;
}
.btn-dwg:hover {
	background: #b87456;
	color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   Product Models
═══════════════════════════════════════════════════════════ */
.nbp-prod-models {
	margin-top: 24px;
	margin-bottom: 20px;
	padding: 18px 20px;
	background: var(--prod-bg-light);
	border: 1px solid var(--prod-border);
	border-left: 4px solid var(--prod-primary);
	border-radius: var(--prod-radius);
}
.nbp-prod-models > strong {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--prod-muted);
	margin-bottom: 12px;
}
.nbp-prod-models-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nbp-model-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--prod-text);
	background: var(--prod-white);
	border: 2px solid var(--prod-border);
	border-radius: 6px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
	line-height: 1.2;
}
.nbp-model-btn:hover,
.nbp-model-btn:focus,
.nbp-model-btn:focus-visible {
	border-color: var(--prod-primary);
	color: var(--prod-primary);
	transform: translateY(-1px);
	background: transparent;
	outline: none;
	box-shadow: none;
}
.nbp-model-btn:active {
	background: var(--prod-primary);
	border-color: var(--prod-primary);
	color: var(--prod-white);
	outline: none;
	box-shadow: none;
}
.nbp-model-btn.active {
	background: var(--prod-primary);
	border-color: var(--prod-primary);
	color: var(--prod-white);
}
.nbp-model-btn.active:hover,
.nbp-model-btn.active:focus,
.nbp-model-btn.active:focus-visible {
	background: var(--prod-primary);
	border-color: var(--prod-primary);
	color: var(--prod-white);
	outline: none;
	box-shadow: none;
}
.nbp-model-info {
	margin-top: 12px;
	padding: 10px 14px;
	background: var(--prod-light, #f5f5f5);
	border-left: 3px solid var(--prod-primary);
	border-radius: 4px;
}
.nbp-model-info-name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 4px;
	color: var(--prod-dark, #111);
}
.nbp-model-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--prod-muted, #555);
}

/* ═══════════════════════════════════════════════════════════
   Related Products
═══════════════════════════════════════════════════════════ */
.nbp-prod-related {
	background: var(--prod-white);
	padding: 64px 0 72px;
	border-top: 1px solid var(--prod-border);
}
.nbp-prod-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 1024px) {
	.nbp-prod-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.nbp-prod-related-grid { grid-template-columns: 1fr; gap: 16px; }
}

.nbp-prod-related-card {
	display: block;
	text-decoration: none;
	border-radius: var(--prod-radius);
	overflow: hidden;
	border: 1px solid var(--prod-border);
	background: var(--prod-white);
	transition: box-shadow 0.25s, transform 0.2s;
}
.nbp-prod-related-card:hover {
	box-shadow: 0 8px 32px rgba(0,0,0,0.10);
	transform: translateY(-3px);
}
.nbp-prod-related-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--prod-bg-light);
}
.nbp-prod-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.nbp-prod-related-card:hover .nbp-prod-related-thumb img {
	transform: scale(1.04);
}
.nbp-prod-related-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.nbp-prod-related-info {
	padding: 16px 18px 18px;
}
.nbp-prod-related-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--prod-text);
	margin: 0 0 8px;
	line-height: 1.4;
}
.nbp-prod-related-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--prod-accent);
	letter-spacing: 0.02em;
}
