/* Lumen Shop: global overrides. Keep this file small; prefer theme.json for design tokens. */

/* ---------- design layer ---------- */

/* Headings and prices use the display face; tabular figures keep prices aligned. */
.woocommerce .price,
.wc-block-components-product-price,
.lumen-sticky-atc__price {
	font-family: var(--wp--preset--font-family--display);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* Header: wordmark left, one hairline below. Keeps nav and cart in one row on desktop. */
header.wp-block-group {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

header.wp-block-group {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

main.wp-block-group {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

/* Product page: large photo, big title, clear price. */
.wp-block-woocommerce-product-image-gallery,
.wp-block-woocommerce-product-image-gallery img {
	width: 100%;
}

.wp-block-woocommerce-product-image-gallery img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

h1.wp-block-post-title {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	margin-top: 0;
}

.wp-block-woocommerce-product-price .wc-block-components-product-price {
	font-size: 1.5rem;
}

header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: -0.01em;
	font-size: 1.125rem;
	margin: 0;
}

/* Product grid: image first, quiet text, even rhythm. Starts at the left edge with the text. */
.woocommerce ul.products {
	margin-left: 0;
	margin-right: 0;
	justify-items: stretch;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
	list-style: none;
	padding: 0;
}

@media (min-width: 782px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.woocommerce ul.products li.product {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0 0 0.75rem;
	background: var(--wp--preset--color--surface);
	border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 0.25rem;
	padding: 0;
}

.woocommerce ul.products li.product .price {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--contrast);
}

/* Buttons: one radius, solid ink, verdigris on hover. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button,
.wp-block-button__link,
.lumen-sticky-atc__btn,
.lumen-age-gate__yes,
.lumen-qv-btn {
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.lumen-sticky-atc__btn:hover,
.lumen-age-gate__yes:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* Form fields: hairline frame, no heavy chrome. */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: 0.625rem 0.75rem;
	font: inherit;
}

/* Keyboard focus: always visible, verdigris. */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ---------- home pattern layouts (editorial, marketplace, service, listings) ---------- */
.lumen-section {
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.lumen-section > h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 1.5rem;
}

.lumen-hero {
	padding-top: clamp(3rem, 8vw, 7rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
	padding-left: clamp(1.25rem, 5vw, 3rem);
	padding-right: clamp(1.25rem, 5vw, 3rem);
}

/* Editorial hero: the photo pair sits to the right of the headline, as in the WoodMart fashion demo. */
.lumen-hero .wp-block-columns {
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.lumen-hero .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lumen-hero .lumen-photo--tall,
.lumen-hero .lumen-photo--tall img {
	aspect-ratio: 3 / 4;
}

.lumen-hero .lumen-photo--short,
.lumen-hero .lumen-photo--short img {
	aspect-ratio: 4 / 5;
}

.lumen-hero .wp-block-image {
	margin: 0;
}

/* Hero text aligns left with the rest of the page, like the WoodMart demos. */
.lumen-hero > *:not(.alignfull) {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.lumen-hero__title {
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1.02;
	max-width: 14ch;
	margin-bottom: 1.25rem;
}

.lumen-hero__text {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: var(--wp--preset--color--muted);
	max-width: 36ch;
	margin-bottom: 2rem;
}

/* Placeholder photo frames: replace the block background with a real image. */
.lumen-photo {
	background: var(--wp--preset--color--surface);
	aspect-ratio: 3 / 4;
}

.lumen-photo--short {
	aspect-ratio: 4 / 5;
}

/* Product photo: a gentle zoom on hover (mouse only). */
.woocommerce ul.products li.product a img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
	.woocommerce ul.products li.product:hover a img {
		transform: scale(1.03);
	}
}

/* Marketplace: search field and header row. */
.lumen-header-row {
	align-items: center;
	gap: 1rem;
	padding-bottom: 0.75rem;
}

.wp-block-search__input {
	min-width: 220px;
}

/* One orchestrated entrance for the hero, then sections reveal as they scroll into view. */
@keyframes lumen-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.lumen-hero > * {
	animation: lumen-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lumen-hero > *:nth-child(2) {
	animation-delay: 0.12s;
}

.lumen-hero > *:nth-child(3) {
	animation-delay: 0.24s;
}

.lumen-hero > *:nth-child(4) {
	animation-delay: 0.36s;
}

html.lumen-js .lumen-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(16px);
}

html.lumen-js .lumen-reveal {
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Motion: respect the system setting. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

.wc-block-components-product-price .wc-block-components-sale-badge,
.onsale {
	background: var(--wp--preset--color--sale);
	color: var(--wp--preset--color--base);
}

/* Mobile: keep the page inside the viewport, no horizontal scroll. */
img,
video {
	max-width: 100%;
	height: auto;
}

@media (max-width: 781px) {
	.wp-block-columns {
		flex-direction: column;
	}
}

/* ---------- cookie notice ---------- */
.lumen-cookie {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1000;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: 8px;
	font-size: 0.875rem;
}

.lumen-cookie[hidden] {
	display: none;
}

.lumen-cookie button {
	flex-shrink: 0;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

/* ---------- age gate ---------- */
.lumen-age-gate {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.85);
}

.lumen-age-gate[hidden] {
	display: none;
}

.lumen-age-gate__box {
	max-width: 420px;
	padding: 2rem;
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.lumen-age-gate__yes {
	display: block;
	width: 100%;
	margin: 1rem 0 0.75rem;
	padding: 0.75rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	cursor: pointer;
}

.lumen-age-gate__no {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- product cards: quick view and add-to-cart appear on hover (mouse devices) ---------- */
.lumen-qv-btn {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 4px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

@media (hover: hover) and (min-width: 782px) {
	.woocommerce ul.products li.product .lumen-qv-btn,
	.woocommerce ul.products li.product .button {
		opacity: 0;
		transition: opacity 0.2s ease;
	}

	.woocommerce ul.products li.product:hover .lumen-qv-btn,
	.woocommerce ul.products li.product:hover .button,
	.woocommerce ul.products li.product:focus-within .lumen-qv-btn {
		opacity: 1;
	}
}

/* ---------- quick view modal ---------- */
.lumen-qv {
	position: fixed;
	inset: 0;
	z-index: 1500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.5);
}

.lumen-qv[hidden] {
	display: none;
}

.lumen-qv__box {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow: auto;
	padding: 2rem;
	border-radius: 8px;
	background: var(--wp--preset--color--base);
}

.lumen-qv__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: 0;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.lumen-qv__title {
	margin-top: 0;
}

@media (max-width: 781px) {
	.lumen-qv__box {
		grid-template-columns: 1fr;
	}
}

/* ---------- promo popup ---------- */
.lumen-promo {
	position: fixed;
	inset: 0;
	z-index: 1400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.5);
}

.lumen-promo[hidden] {
	display: none;
}

.lumen-promo__box {
	position: relative;
	max-width: 480px;
	padding: 2rem;
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.lumen-promo__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: 0;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

/* ---------- left sidebar menu (desktop). Phones keep the top bar. ---------- */
@media (min-width: 960px) {
	body.lumen-nav-left > .wp-site-blocks > header {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		width: 260px;
		z-index: 800;
		overflow-y: auto;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 2rem 1.5rem;
		border-bottom: 0;
		border-right: 1px solid var(--wp--preset--color--border);
		background: var(--wp--preset--color--base);
	}

	body.lumen-nav-left .wp-block-navigation,
	body.lumen-nav-left .wp-block-navigation__container {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: 100%;
		text-align: left;
	}

	body.lumen-nav-left .wp-block-navigation__container {
		gap: 0.75rem;
	}

	/* The header part sets right or centre justification on the menu. Force left in side mode. */
	body.lumen-nav-left .wp-block-navigation .wp-block-navigation__container.is-content-justification-right,
	body.lumen-nav-left .wp-block-navigation .wp-block-navigation__container.is-content-justification-center,
	body.lumen-nav-left .wp-block-navigation .wp-block-navigation__container.is-content-justification-space-between {
		justify-content: flex-start !important;
		align-items: flex-start !important;
	}

	body.lumen-nav-left .wp-block-navigation-item {
		width: 100%;
	}

	body.lumen-nav-left > .wp-site-blocks > :not(header) {
		margin-left: 260px;
	}

	body.lumen-nav-left .lumen-header-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- menus: desktop menu on wide screens, mobile menu on phones ---------- */
.lumen-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lumen-menu__list a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lumen-menu__list a:hover {
	text-decoration: underline;
}

.lumen-menu--mobile summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.5rem 0;
	list-style: none;
}

.lumen-menu--mobile .lumen-menu__list {
	flex-direction: column;
	gap: 0;
	padding: 0.5rem 0 0.75rem;
}

.lumen-menu--mobile .lumen-menu__list a {
	display: block;
	padding: 0.625rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

@media (min-width: 960px) {
	.lumen-menu--mobile {
		display: none;
	}
}

@media (max-width: 959px) {
	.lumen-menu--desktop {
		display: none;
	}
}

/* Top bar with the category row under the menu. */
body.lumen-cat-top .lumen-catmenu {
	display: block;
	width: 100%;
	order: 10;
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 0.5rem;
}

body.lumen-cat-top .lumen-catmenu__title {
	display: none;
}

@media (min-width: 960px) {
	body.lumen-cat-top .lumen-catmenu__list {
		display: flex;
		flex-wrap: wrap;
		gap: 1.25rem;
	}

	body.lumen-cat-top .lumen-catmenu__link {
		border-bottom: 0;
		padding: 0.375rem 0;
	}

	body.lumen-cat-top .lumen-catmenu__mega {
		top: 100%;
		left: 0;
		width: min(760px, 90vw);
	}

	body.lumen-cat-top .lumen-catmenu .has-mega:hover > .lumen-catmenu__mega,
	body.lumen-cat-top .lumen-catmenu .has-mega:focus-within > .lumen-catmenu__mega {
		display: grid;
	}
}

@media (max-width: 959px) {
	body.lumen-cat-top .lumen-catmenu {
		display: none;
	}
}

/* ---------- category menu with mega panels (layout "Left sidebar with categories") ---------- */
.lumen-catmenu {
	display: none;
	width: 100%;
}

.lumen-catmenu__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.9375rem;
	margin: 0 0 0.75rem;
}

.lumen-catmenu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lumen-catmenu__item {
	position: relative;
}

.lumen-catmenu__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.lumen-catmenu__link:hover,
.lumen-catmenu__item.is-open > .lumen-catmenu__link {
	color: var(--wp--preset--color--accent);
}

.lumen-catmenu__count {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.lumen-catmenu__mega {
	display: none;
	position: absolute;
	top: 0;
	left: calc(100% + 0.5rem);
	z-index: 950;
	width: min(640px, 70vw);
	padding: 1.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	display: none;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 0.5rem 1.5rem;
}

.lumen-catmenu__mega-title {
	grid-column: 1 / -1;
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

.lumen-catmenu__col {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lumen-catmenu__col li {
	margin: 0.25rem 0;
	font-size: 0.9375rem;
}

.lumen-catmenu__col a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.lumen-catmenu__col a:hover {
	text-decoration: underline;
}

@media (min-width: 960px) {
	/* Let the mega panels stick out of the side column instead of being clipped by it. */
	body.lumen-nav-categories > .wp-site-blocks > header {
		overflow: visible;
	}

	body.lumen-nav-categories .lumen-catmenu {
		display: block;
		margin-top: 0.5rem;
	}

	body.lumen-nav-categories .lumen-catmenu .has-mega:hover > .lumen-catmenu__mega,
	body.lumen-nav-categories .lumen-catmenu .has-mega:focus-within > .lumen-catmenu__mega,
	body.lumen-nav-categories .lumen-catmenu .has-mega.is-open > .lumen-catmenu__mega {
		display: grid;
	}
}

/* ---------- slider arrows ---------- */
.lumen-slider-wrap {
	position: relative;
}

.lumen-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-size: 1.125rem;
}

.lumen-slider__arrow--prev {
	left: 0.75rem;
}

.lumen-slider__arrow--next {
	right: 0.75rem;
}

/* Slider at the top of the home page: full width, large. Slides per row come from the widget settings. */
.lumen-hero-slider .lumen-slider {
	border-radius: 0;
}

.lumen-hero-slider .lumen-slide__img {
	aspect-ratio: 21 / 9;
	width: 100%;
	object-fit: cover;
}

@media (max-width: 781px) {
	.lumen-hero-slider .lumen-slide__img {
		aspect-ratio: 4 / 5;
	}
}

/* ---------- swatches ---------- */
.lumen-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0.375rem 0 0;
	align-items: center;
}

.lumen-swatch--color {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border);
}

.lumen-swatch--text {
	font-size: 0.75rem;
	padding: 0.125rem 0.375rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	color: var(--wp--preset--color--muted);
}

.lumen-swatch-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.5rem 0 1rem;
}

.lumen-swatch-picker__btn {
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 2px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	font: inherit;
}

.lumen-swatch-picker__btn--color {
	width: 40px;
	padding: 0;
	border-radius: 50%;
}

.lumen-swatch-picker__btn.is-active {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.lumen-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- shop layout: filters beside the product list ---------- */
.lumen-shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 782px) {
	.lumen-shop-layout {
		grid-template-columns: 240px minmax(0, 1fr);
	}
}

.lumen-filters .widget {
	margin: 0 0 2rem;
	font-size: 0.9375rem;
}

.lumen-filters .widget-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.lumen-filters ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lumen-filters li {
	margin: 0.25rem 0;
}

/* ---------- popup manager (same look as the promo popup) ---------- */
.lumen-popup {
	position: fixed;
	inset: 0;
	z-index: 1400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.5);
}

.lumen-popup[hidden] {
	display: none;
}

.lumen-popup__box {
	position: relative;
	max-width: 480px;
	max-height: 90vh;
	overflow: auto;
	padding: 2rem;
	border-radius: 8px;
	background: var(--wp--preset--color--base);
}

.lumen-popup__close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: 0;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

/* ---------- home slider: scroll-snap, works without JavaScript ---------- */
.lumen-slider {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}

.lumen-slider::-webkit-scrollbar {
	display: none;
}

/* ---------- device settings: how many items show on each screen size (set by the widget) ---------- */
.lumen-slider-wrap {
	--lumen-slides: var(--lumen-slides-mobile, 1);
}

@media (min-width: 782px) {
	.lumen-slider-wrap {
		--lumen-slides: var(--lumen-slides-tablet, 1);
	}
}

@media (min-width: 960px) {
	.lumen-slider-wrap {
		--lumen-slides: var(--lumen-slides-desktop, 1);
	}
}

.lumen-slider > .lumen-slide {
	flex: 0 0 calc((100% - (var(--lumen-slides) - 1) * 1rem) / var(--lumen-slides));
	scroll-snap-align: start;
	margin: 0;
	min-width: 0;
}

/* Product and category grids: columns from the widget settings.
   WooCommerce adds clearfix pseudo-elements to ul.products; in a grid they take up the first cell, so they are removed. */
.woocommerce .lumen-items ul.products {
	grid-template-columns: repeat(var(--lumen-items-mobile, 2), minmax(0, 1fr));
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
	display: none;
}

.lumen-items.lumen-listings {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: repeat(var(--lumen-items-mobile, 1), minmax(0, 1fr));
}

@media (min-width: 782px) {
	.woocommerce .lumen-items ul.products {
		grid-template-columns: repeat(var(--lumen-items-tablet, 3), minmax(0, 1fr));
	}

	.lumen-items.lumen-listings {
		grid-template-columns: repeat(var(--lumen-items-tablet, 2), minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.woocommerce .lumen-items ul.products {
		grid-template-columns: repeat(var(--lumen-items-desktop, 4), minmax(0, 1fr));
	}

	.lumen-items.lumen-listings {
		grid-template-columns: repeat(var(--lumen-items-desktop, 3), minmax(0, 1fr));
	}
}

/* Home page: the title of the front page is not shown above the design. */
body.home .wp-block-post-title {
	display: none;
}

.lumen-slider img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* ---------- floating contact button ---------- */
.lumen-float {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 800;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	text-decoration: none;
}

/* ---------- free-shipping progress bar ---------- */
.lumen-shipping-bar p {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.lumen-shipping-bar__track {
	height: 6px;
	border-radius: 3px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}

.lumen-shipping-bar__track span {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--accent);
	transition: width 0.3s ease;
}

/* ---------- sticky add-to-cart (mobile first, also desktop) ---------- */
.lumen-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--base);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.lumen-sticky-atc[hidden] {
	display: none;
}

.lumen-sticky-atc__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 0.875rem;
}

.lumen-sticky-atc__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lumen-sticky-atc__btn {
	flex-shrink: 0;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	cursor: pointer;
}
