/* Page-specific styles: product.php (PDP) */

.pdp-breadcrumb {
	background: transparent;
	padding: 12px 0;
	margin-bottom: 0;
	font-size: 0.85rem;
}

.pdp-gallery {
	position: sticky;
	top: 90px;
}

.pdp-gallery__main {
	border: 1px solid var(--sb-border);
	border-radius: var(--sb-radius-lg);
	background: var(--sb-surface-alt);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pdp-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.pdp-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.pdp-thumb {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	border: 2px solid var(--sb-border);
	border-radius: var(--sb-radius);
	background: var(--sb-surface-alt);
	padding: 4px;
	cursor: pointer;
	transition: border-color 0.15s var(--sb-ease);
}

.pdp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.pdp-thumb.is-active,
.pdp-thumb:hover {
	border-color: var(--sb-primary);
}

.pdp-brand {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sb-ink-muted);
	text-decoration: none;
}

.pdp-brand:hover {
	color: var(--sb-primary);
	text-decoration: none;
}

.pdp-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.2;
	margin: 6px 0 4px;
}

.pdp-sku {
	font-size: 0.8rem;
	color: var(--sb-ink-muted);
}

.pdp-price-block {
	margin: 18px 0;
	padding: 16px;
	background: var(--sb-primary-50);
	border-radius: var(--sb-radius);
}

.pdp-variants {
	margin: 18px 0;
}

.pdp-variants__label {
	font-weight: 800;
	font-size: 0.9rem;
	margin-bottom: 8px;
	display: block;
}

.pdp-variant-btn {
	display: inline-block;
	border: 2px solid var(--sb-border);
	border-radius: var(--sb-radius-pill);
	background: var(--sb-surface);
	color: var(--sb-ink);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 8px 18px;
	margin: 0 6px 8px 0;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.pdp-variant-btn:hover {
	border-color: var(--sb-primary);
}

.pdp-variant-btn.is-selected {
	border-color: var(--sb-primary);
	background: var(--sb-primary);
	color: #fff;
}

.pdp-variant-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
}

.pdp-buy-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0;
	flex-wrap: wrap;
}

.pdp-buy-row .btn-addcart-pdp {
	flex: 1 1 220px;
	min-height: 48px;
	font-size: 1.05rem;
}

.pdp-tabs .nav-link {
	font-weight: 700;
	color: var(--sb-ink-soft);
	border: none;
	border-bottom: 3px solid transparent;
	border-radius: 0;
}

.pdp-tabs .nav-link.active {
	color: var(--sb-primary);
	border-bottom-color: var(--sb-primary);
	background: transparent;
}

.pdp-tab-content {
	padding: 20px 4px;
	color: var(--sb-ink-soft);
	line-height: 1.65;
}

/* Sticky mobile add-to-cart bar */
.pdp-sticky-bar {
	display: none;
}

@media (max-width: 767.98px) {
	.pdp-gallery { position: static; }

	.pdp-sticky-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 990;
		background: var(--sb-surface);
		border-top: 1px solid var(--sb-border);
		box-shadow: 0 -4px 16px rgba(0, 50, 75, 0.1);
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	}

	body.pdp-page {
		padding-bottom: 84px;
	}
}
