/* Lab Site Kit: homepage sections, off-canvas menu, and cart drawer. */

.lab-band {
	--lab-vw: 100vw;
	--lab-ink: #0f1115;
	--lab-paper: #f6f3ee;
	--lab-muted: #b9bcc4;
	box-sizing: border-box;
	width: var(--lab-vw);
	margin-left: calc(50% - var(--lab-vw) / 2);
	margin-right: calc(50% - var(--lab-vw) / 2);
	padding: 64px 0;
	font-family: inherit;
}

.lab-band *,
.lab-band *::before,
.lab-band *::after {
	box-sizing: border-box;
}

.lab-featured {
	background: var(--lab-ink);
	color: #f7f5f0;
	margin-top: 64px;
}

.lab-gallery {
	background: var(--lab-paper);
	color: #15171b;
}

.lab-shell {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.lab-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.lab-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lab-accent, #b45309);
}

.lab-head h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit;
}

.lab-intro {
	margin: 10px 0 0;
	max-width: 620px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--lab-muted);
}

.lab-gallery .lab-intro {
	color: #5d6168;
}

.lab-arrows {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.lab-arrow {
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: #f7f5f0;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lab-arrow svg {
	width: 20px;
	height: 20px;
}

.lab-arrow:hover {
	background: var(--lab-accent, #b45309);
	border-color: var(--lab-accent, #b45309);
}

.lab-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.lab-arrow:disabled:hover {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.25);
}

.lab-slider {
	position: relative;
}

.lab-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.lab-track::-webkit-scrollbar {
	display: none;
}

.lab-slide {
	flex: 0 0 calc((100% - 40px) / 3);
	min-width: 0;
	scroll-snap-align: start;
}

.lab-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #181b22;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.lab-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.18);
}

.lab-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.lab-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.lab-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lab-accent, #b45309);
}

.lab-card-title {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: #f7f5f0;
}

.lab-card-text {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--lab-muted);
}

.lab-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
}

.lab-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.lab-dot[aria-current="true"] {
	width: 24px;
	border-radius: 4px;
	background: var(--lab-accent, #b45309);
}

.lab-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.lab-shot {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #ddd8d0;
	cursor: zoom-in;
}

.lab-shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.lab-shot:hover img {
	transform: scale(1.05);
}

.lab-lightbox {
	width: min(1080px, 94vw);
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #0b0c0f;
	color: #fff;
}

.lab-lightbox::backdrop {
	background: rgba(6, 7, 9, 0.82);
}

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

.lab-lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.lab-drawer,
.lab-cart {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.lab-drawer.is-open,
.lab-cart.is-open {
	visibility: visible;
	pointer-events: auto;
}

.lab-drawer-backdrop,
.lab-cart-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 9, 11, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.lab-drawer.is-open .lab-drawer-backdrop,
.lab-cart.is-open .lab-cart-backdrop {
	opacity: 1;
}

.lab-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: min(440px, 92vw);
	height: 100%;
	padding: 28px;
	background: #101216;
	color: #f5f2ec;
	transform: translateX(102%);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow-y: auto;
}

.lab-drawer.is-open .lab-drawer-panel {
	transform: none;
}

.lab-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lab-drawer-brand {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8f939c;
}

.lab-drawer-close,
.lab-cart-close {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lab-drawer-nav .lab-drawer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lab-drawer-menu li {
	margin: 0;
}

.lab-drawer-menu > li > a,
.lab-drawer-menu > li > .lab-drawer-row {
	display: block;
	padding: 13px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	color: #f5f2ec;
	text-decoration: none;
}

.lab-drawer-menu a:hover,
.lab-drawer-menu a:focus-visible {
	color: var(--lab-accent, #f59e0b);
}

.lab-drawer-menu ul {
	margin: 0 0 8px;
	padding: 0 0 0 16px;
	list-style: none;
}

.lab-drawer-menu ul a {
	display: block;
	padding: 7px 0;
	color: #b9bcc4;
	text-decoration: none;
	font-size: 15px;
}

.lab-drawer-search {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.lab-drawer-search input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	font: inherit;
}

.lab-drawer-search input::placeholder {
	color: #8f939c;
}

.lab-drawer-search button {
	width: 48px;
	border: 0;
	border-radius: 8px;
	background: var(--lab-accent, #b45309);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.lab-drawer-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--lab-accent, #b45309);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.lab-drawer-foot {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
}

.lab-drawer-foot a {
	color: #b9bcc4;
	text-decoration: none;
}

.lab-drawer-li {
	display: flex;
	align-items: center;
	margin-left: 10px;
	list-style: none;
}

.lab-drawer-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.lab-drawer-trigger:hover,
.lab-drawer-trigger:focus-visible {
	opacity: 1;
	background: rgba(127, 127, 127, 0.12);
}

.lab-burger,
.lab-burger::before {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	content: "";
}

.lab-burger {
	position: relative;
}

.lab-burger::before {
	position: absolute;
	top: -5px;
	left: 0;
}

.lab-drawer-trigger--floating {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10;
}

.lab-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(400px, 92vw);
	height: 100%;
	padding: 24px;
	background: #fff;
	color: #1a1a1a;
	transform: translateX(102%);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	overflow-y: auto;
}

.lab-cart.is-open .lab-cart-panel {
	transform: none;
}

.lab-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.lab-cart-head h2 {
	margin: 0;
	font-size: 22px;
}

.lab-cart-close {
	border-color: rgba(0, 0, 0, 0.15);
	color: #1a1a1a;
}

.lab-cart .widget_shopping_cart_content {
	font-size: 15px;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart-item img {
	width: 64px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart-item a {
	color: #1a1a1a;
	text-decoration: none;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
	font-size: 16px;
}

.lab-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 16px 0 0;
}

.lab-cart .widget_shopping_cart_content .button {
	display: block;
	padding: 12px 16px;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	text-align: center;
	text-decoration: none;
}

.lab-cart .widget_shopping_cart_content .button.checkout {
	background: var(--lab-accent, #b45309);
}

.lab-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html.lab-lock {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.lab-slide {
		flex-basis: calc((100% - 20px) / 2);
	}

	.lab-drawer-li {
		display: none;
	}
}

@media (max-width: 700px) {
	.lab-band {
		padding: 44px 0;
	}

	.lab-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.lab-arrows {
		display: none;
	}

	.lab-slide {
		flex-basis: 86%;
	}

	.lab-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lab-card,
	.lab-shot img,
	.lab-drawer-panel,
	.lab-cart-panel,
	.lab-drawer-backdrop,
	.lab-cart-backdrop {
		transition: none;
	}

	.lab-track {
		scroll-behavior: auto;
	}
}
