/**
 * Biciclop product page template styles.
 * File: biciclop-product.css
 */

.bc-product-page {
	--bc-accent: var(--theme-palette-color-1, #7aa429);
	--bc-accent-dark: color-mix(in srgb, var(--bc-accent) 78%, #000 22%);
	--bc-text: var(--theme-text-color, #1f2933);
	--bc-muted: #667085;
	--bc-border: #e5e7eb;
	--bc-soft: #f8fafc;
	--bc-soft-green: #f3f8ea;
	--bc-warning: #ef8f00;
	--bc-white: #ffffff;
	--bc-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
	--bc-radius-lg: 22px;
	--bc-radius-md: 14px;
	color: var(--bc-text);
}

.bc-product-container {
	max-width: 1180px;
	margin-inline: auto;
	padding-block: clamp(18px, 3vw, 36px) clamp(44px, 6vw, 72px);
}

.bc-product-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
	font-size: 0.92rem;
	color: var(--bc-muted);
}

.bc-product-breadcrumbs a {
	color: var(--bc-muted);
	text-decoration: none;
}

.bc-product-breadcrumbs a:hover,
.bc-product-breadcrumbs a:focus-visible {
	color: var(--bc-accent-dark);
	text-decoration: underline;
}

.bc-product-hero {
	display: grid;
	grid-template-columns: minmax(280px, 1.08fr) minmax(320px, 0.92fr);
	gap: clamp(24px, 4vw, 52px);
	align-items: start;
	margin-bottom: clamp(24px, 5vw, 48px);
}

.bc-product-gallery,
.bc-product-summary,
.bc-product-section,
.bc-service-card {
	background: var(--bc-white);
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius-lg);
	box-shadow: var(--bc-shadow);
}

.bc-product-gallery {
	padding: clamp(16px, 2.6vw, 26px);
	position: sticky;
	top: 24px;
}

.bc-gallery-main-button {
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 0;
	border-radius: var(--bc-radius-md);
	background: #fff;
	cursor: zoom-in;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.bc-gallery-main-button:focus-visible,
.bc-gallery-thumb:focus-visible,
.bc-primary-cta:focus-visible,
.bc-service-card summary:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--bc-accent) 45%, transparent);
	outline-offset: 3px;
}

.bc-gallery-main-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 180ms ease;
}

.bc-gallery-main-button:hover .bc-gallery-main-image {
	transform: scale(1.025);
}

.bc-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.bc-gallery-thumb {
	aspect-ratio: 1 / 1;
	padding: 6px;
	border: 1px solid var(--bc-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bc-gallery-thumb:hover,
.bc-gallery-thumb.is-active {
	border-color: var(--bc-accent);
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.bc-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bc-product-no-image {
	min-height: 320px;
	display: grid;
	place-items: center;
	border: 1px dashed var(--bc-border);
	border-radius: var(--bc-radius-md);
	background: var(--bc-soft);
	color: var(--bc-muted);
}

.bc-product-summary {
	padding: clamp(20px, 3vw, 34px);
}

.bc-product-title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3vw, 2.55rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.bc-product-code {
	margin: 0 0 18px;
	font-size: 0.96rem;
	color: var(--bc-muted);
}

.bc-product-code span {
	font-weight: 600;
}

.bc-product-code strong {
	color: var(--bc-text);
}

.bc-short-description {
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: var(--bc-radius-md);
	background: var(--bc-soft);
	font-size: 0.98rem;
	line-height: 1.55;
}

.bc-short-description p,
.bc-short-description ul,
.bc-short-description ol {
	margin-top: 0;
	margin-bottom: 0.75em;
}

.bc-short-description > :last-child {
	margin-bottom: 0;
}

.bc-price-card {
	margin: 20px 0;
	padding: 18px;
	border-radius: var(--bc-radius-md);
	background: linear-gradient(135deg, var(--bc-soft-green), #ffffff);
	border: 1px solid color-mix(in srgb, var(--bc-accent) 30%, var(--bc-border));
}

.bc-old-price {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin-bottom: 6px;
	font-size: 0.95rem;
	color: var(--bc-muted);
}

.bc-sale-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.bc-sale-price {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bc-accent-dark);
	letter-spacing: -0.04em;
}

.bc-discount-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bc-warning);
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
}

.bc-price-note {
	margin-top: 10px;
	font-size: 0.9rem;
	color: var(--bc-muted);
}

.bc-availability {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 18px 0 20px;
	padding: 14px 16px;
	border-radius: var(--bc-radius-md);
	background: #fff;
	border: 1px solid var(--bc-border);
	font-weight: 600;
}

.bc-availability-dot {
	width: 10px;
	height: 10px;
	margin-top: 0.45em;
	border-radius: 999px;
	background: var(--bc-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--bc-accent) 20%, transparent);
	flex: 0 0 auto;
}

.bc-primary-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--bc-accent);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 12px 30px color-mix(in srgb, var(--bc-accent) 30%, transparent);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.bc-primary-cta:hover {
	background: var(--bc-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--bc-accent) 36%, transparent);
}

.bc-product-meta-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.bc-meta-label {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--bc-muted);
}

.bc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--bc-soft);
	border: 1px solid var(--bc-border);
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--bc-text);
	text-decoration: none;
}

.bc-chip:hover,
.bc-chip:focus-visible {
	border-color: var(--bc-accent);
	color: var(--bc-accent-dark);
}

.bc-service-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: clamp(24px, 4vw, 40px);
}

.bc-service-card {
	padding: 0;
	overflow: hidden;
}

.bc-service-card summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 74px;
	padding: 16px 18px;
	font-weight: 800;
	cursor: pointer;
}

.bc-service-card summary::-webkit-details-marker {
	display: none;
}

.bc-service-card summary::after {
	content: '+';
	margin-left: auto;
	font-size: 1.35rem;
	line-height: 1;
	color: var(--bc-accent-dark);
}

.bc-service-card[open] summary::after {
	content: '–';
}

.bc-service-icon {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280;
	filter: grayscale(1);
	font-size: 1.1rem;
	flex: 0 0 auto;
}

.bc-service-card-body {
	padding: 0 18px 18px;
	font-size: 0.94rem;
	line-height: 1.55;
	color: var(--bc-muted);
}

.bc-service-card-body p {
	margin: 0 0 0.75em;
}

.bc-service-card-body p:last-child {
	margin-bottom: 0;
}

.bc-service-card-body a,
.bc-product-section a {
	color: var(--bc-accent-dark);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bc-product-section {
	padding: clamp(22px, 3.2vw, 36px);
	margin-bottom: 22px;
}

.bc-product-section h2 {
	margin: 0 0 16px;
	font-size: clamp(1.35rem, 2.1vw, 1.9rem);
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.bc-section-content {
	max-width: 880px;
	line-height: 1.68;
}

.bc-section-content > :first-child {
	margin-top: 0;
}

.bc-section-content > :last-child {
	margin-bottom: 0;
}

.bc-section-content ul,
.bc-section-content ol {
	padding-left: 1.35em;
}

.bc-product-specs .bc-section-content {
	max-width: 100%;
}

.bc-product-specs .product-specs-wrap {
	display: block !important;
	width: fit-content !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.bc-product-specs table,
.bc-product-section table {
	width: auto !important;
	max-width: 100% !important;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.95rem;
}

.bc-product-specs th,
.bc-product-specs td,
.bc-product-section th,
.bc-product-section td {
	padding: 8px 12px;
	border: 1px solid var(--bc-border);
	vertical-align: top;
}

.bc-product-specs th,
.bc-product-specs td:first-child {
	width: 1%;
	white-space: nowrap;
	font-weight: 800;
	background: var(--bc-soft);
}

.bc-product-specs td:last-child {
	min-width: min(360px, 60vw);
}

.bc-brand-description {
	background: linear-gradient(135deg, #ffffff, var(--bc-soft));
}

.bc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgba(15, 23, 42, 0.82);
}

.bc-lightbox[hidden] {
	display: none;
}

.bc-lightbox-inner {
	position: relative;
	max-width: min(1100px, 94vw);
	max-height: 92vh;
	padding: 18px;
	border-radius: var(--bc-radius-lg);
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.bc-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
}

.bc-lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 900px) {
	.bc-product-hero {
		grid-template-columns: 1fr;
	}

	.bc-product-gallery {
		position: static;
	}

	.bc-service-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.bc-product-container {
		padding-inline: 14px;
	}

	.bc-product-summary,
	.bc-product-gallery,
	.bc-product-section {
		border-radius: 18px;
	}

	.bc-product-title {
		font-size: 1.65rem;
	}

	.bc-sale-price {
		font-size: 2rem;
	}

	.bc-gallery-thumbs {
		grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
	}

	.bc-product-specs table,
	.bc-product-section table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.bc-product-specs td:last-child {
		min-width: 220px;
	}
}
