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

html {
	font-size: var(--dm-base-size);
}

body {
	margin: 0;
	color: var(--dm-text);
	background: var(--dm-bg);
	font-family: var(--dm-body-font);
	line-height: 1.65;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: var(--dm-primary);
	text-decoration: none;
}

a:hover {
	color: var(--dm-accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--dm-secondary);
	font-family: var(--dm-heading-font);
	line-height: 1.2;
	margin: 0 0 0.7em;
}

p {
	margin: 0 0 1.2em;
}

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link,
.read-more,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	border: 0;
	border-radius: var(--dm-button-radius);
	background: var(--dm-primary);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	line-height: 1;
	min-height: 44px;
	padding: 0.8rem 1.1rem;
	transition: background 160ms ease, transform 160ms ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover,
.read-more:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--dm-accent);
	color: #fff;
	transform: translateY(-1px);
}

input,
textarea,
select {
	border: 1px solid var(--dm-border);
	border-radius: 6px;
	color: var(--dm-text);
	font: inherit;
	max-width: 100%;
	padding: 0.75rem 0.85rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	background: var(--dm-secondary);
	color: #fff;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.dm-container {
	width: min(calc(100% - 32px), var(--dm-container));
	margin-inline: auto;
}

.site-header {
	background: var(--dm-header-bg);
	border-bottom: 1px solid var(--dm-border);
	z-index: 50;
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.site-branding {
	flex: 0 0 auto;
}

.custom-logo-link img {
	width: var(--dm-logo-width);
	max-height: 72px;
	object-fit: contain;
}

.site-title {
	color: var(--dm-secondary);
	font-size: 1.35rem;
	font-weight: 800;
}

.primary-menu,
.footer-menu {
	width: 100%;
}

.primary-menu ul,
.footer-menu ul,
.primary-menu__list,
.footer-menu__list {
	align-items: center;
	display: flex;
	gap: 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a,
.footer-menu a {
	color: var(--dm-menu-color);
	font-family: var(--dm-menu-font);
	display: block;
	font-weight: 700;
	padding: 0.4rem 0;
}

.primary-menu a:hover,
.footer-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--dm-primary);
}

.builder-row {
	background: var(--dm-bg);
	border-bottom: 1px solid var(--dm-border);
}

/* Header rows should be transparent so the header background shows through */
.site-header .builder-row {
	background: transparent;
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

.builder-row__inner {
	align-items: center;
	display: grid;
	gap: 1.2rem;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	min-height: 74px;
}

.builder-row--top .builder-row__inner,
.builder-row--bottom .builder-row__inner {
	min-height: 42px;
}

.builder-row--top {
	font-size: 0.9rem;
}

.builder-slot {
	align-items: center;
	display: flex;
	gap: 0.8rem;
	min-width: 0;
}

.builder-slot--center {
	justify-content: center;
	text-align: center;
}

.builder-slot--right {
	justify-content: flex-end;
	text-align: right;
}

.builder-text span,
.site-title span {
	color: var(--dm-primary);
}

.builder-icon {
	align-items: center;
	background: transparent;
	border-radius: 999px;
	color: var(--dm-secondary);
	display: inline-flex;
	font-size: 1.25rem;
	font-weight: 800;
	height: 40px;
	justify-content: center;
	position: relative;
	width: 40px;
}

.builder-icon:hover {
	background: var(--dm-surface);
	color: var(--dm-primary);
}

.builder-actions {
	align-items: center;
	display: flex;
	gap: 0.25rem;
}

.builder-cart span {
	align-items: center;
	background: var(--dm-primary);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.68rem;
	height: 18px;
	justify-content: center;
	min-width: 18px;
	position: absolute;
	right: 1px;
	top: 1px;
}

.builder-button {
	min-height: 40px;
	padding: 0.65rem 0.95rem;
}

.header-mobile-bar,
.mobile-navigation {
	display: none;
}

.header-mobile-bar {
	background: var(--dm-header-bg);
}

.menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	padding: 0;
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
}

.menu-toggle span {
	background: var(--dm-secondary);
	display: block;
	height: 2px;
	margin: 4px 0;
	width: 18px;
}

.site-main {
	min-height: 58vh;
}

.content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	padding-block: 2.5rem;
}

.layout-left-sidebar .content-area {
	grid-template-columns: 300px minmax(0, 1fr);
}

.layout-left-sidebar .content-loop {
	grid-column: 2;
}

.layout-left-sidebar .site-sidebar {
	grid-column: 1;
	grid-row: 1;
}

.layout-full-width .content-area {
	display: block;
}

.content-loop {
	min-width: 0;
}

.entry-card,
.entry-page,
.no-results,
.not-found-page,
.comments-area {
	background: var(--dm-bg);
	border-bottom: 1px solid var(--dm-border);
	margin-bottom: 2rem;
	padding-bottom: 2rem;
}

.entry-thumbnail {
	display: block;
	margin-bottom: 1.1rem;
	overflow: hidden;
}

.entry-thumbnail img,
.single-featured-image img,
.dm-featured-image img {
	border-radius: 8px;
	width: 100%;
}

.dm-featured-image {
	margin: 0 0 1.5rem;
	max-width: 920px;
}

.dm-featured-image--above {
	margin-bottom: 1.25rem;
}

.dm-featured-image--below {
	margin-top: 1rem;
}

.dm-featured-image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
}

.entry-title {
	font-size: clamp(1.75rem, 2vw, 2.6rem);
}

.entry-card .entry-title {
	font-size: 1.65rem;
}

.entry-title a {
	color: var(--dm-secondary);
}

.entry-meta {
	color: var(--dm-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	font-size: 0.92rem;
	margin-bottom: 1rem;
}

.entry-content > * {
	max-width: 820px;
}

.entry-content > .alignwide {
	max-width: min(100%, 1100px);
}

.entry-content > .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.archive-header {
	border-bottom: 1px solid var(--dm-border);
	margin-bottom: 2rem;
	padding-bottom: 1rem;
}

.site-sidebar {
	background: var(--dm-surface);
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	height: fit-content;
	padding: 1.2rem;
}

.widget {
	margin-bottom: 1.5rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 1rem;
	margin-bottom: 0.8rem;
}

.site-footer {
	background: var(--dm-secondary);
	color: rgba(255, 255, 255, 0.78);
	margin-top: 2rem;
}

.site-footer a {
	color: #fff;
}

.site-footer .builder-row {
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.site-footer .builder-row__inner {
	min-height: 86px;
	padding-block: 1.2rem;
}

.site-footer .builder-row--main .builder-row__inner {
	align-items: start;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-block: 1.8rem;
}

.site-footer .builder-row--bottom {
	border-bottom: 0;
	font-size: 0.9rem;
}

.site-footer .site-title,
.site-footer .builder-text strong,
.site-footer .widget-title {
	color: #fff;
}

.site-footer .builder-text {
	color: rgba(255, 255, 255, 0.76);
	text-align: left;
}

.site-footer .builder-text span {
	color: #60a5fa;
}

.site-footer .footer-menu a {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
}

.site-footer .footer-menu a:hover {
	color: #fff;
}

.builder-newsletter {
	display: flex;
	justify-content: flex-end;
	max-width: 390px;
	width: 100%;
}

.builder-newsletter input {
	border-radius: 6px 0 0 6px;
	border-right: 0;
	min-width: 0;
	width: 100%;
}

.builder-newsletter button {
	border-radius: 0 6px 6px 0;
	min-height: 45px;
}

.builder-social {
	display: flex;
	gap: 0.7rem;
}

.builder-social a {
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	display: inline-flex;
	font-weight: 800;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.builder-social a:hover {
	background: var(--dm-primary);
}

.footer-demo-widget ul,
.builder-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-demo-widget li {
	margin-bottom: 0.5rem;
}

.footer-demo-widget a {
	color: rgba(255, 255, 255, 0.74);
}

/* ============================================
   WOOCOMMERCE SHOP / ARCHIVE PRODUCT GRID
   Uniform card heights — image + name + price + button
   ============================================ */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
	grid-auto-rows: 1fr !important; /* every row = same height */
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Kill WooCommerce's old float grid so our CSS grid takes over */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff !important;
	border: 1px solid var(--dm-border) !important;
	border-radius: 10px !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	overflow: hidden !important;
	/* Flex column so title/price/button stack and stay aligned */
	display: flex !important;
	flex-direction: column !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

/* ── Product image link: square aspect ratio, fills width ── */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex !important;
	flex-direction: column !important;
	flex: 1;
	text-decoration: none;
}

/* The actual <img> inside the link — square, cover, uniform */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 0 !important; /* card already has border-radius */
	flex-shrink: 0;
}

/* ── Product title ── */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: var(--dm-secondary) !important;
	margin: 0.65rem 0.75rem 0.3rem !important;
	padding: 0 !important;
	background: transparent !important;
	/* Clamp to 2 lines so all cards have the same title block height */
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	min-height: calc(0.95rem * 1.35 * 2); /* reserve 2-line space */
}

/* ── Price ── */
.woocommerce ul.products li.product .price {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: var(--dm-secondary) !important;
	margin: 0 0.75rem 0.6rem !important;
	padding: 0 !important;
}

.woocommerce ul.products li.product .price del {
	color: #9ca3af !important;
	font-weight: 400 !important;
	font-size: 0.85rem !important;
	margin-left: 0.3rem;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none !important;
	color: var(--dm-accent) !important;
}

/* ── Add to cart button — pinned to card bottom ── */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
	display: block !important;
	width: calc(100% - 1.5rem) !important;
	margin: auto 0.75rem 0.75rem !important;
	padding: 0.6rem 1rem !important;
	min-height: 40px !important;
	text-align: center !important;
	font-size: 0.88rem !important;
	border-radius: var(--dm-button-radius) !important;
}

/* ── Sale badge ── */
.woocommerce ul.products li.product .onsale {
	background: var(--dm-accent) !important;
	border-radius: 6px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0.3rem 0.6rem !important;
	font-size: 0.78rem !important;
	top: 0.6rem !important;
	left: 0.6rem !important;
}

/* ── Responsive: 3 cols on tablet, 2 on mobile ── */
@media (max-width: 1100px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 768px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.85rem !important;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.6rem !important;
	}
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.82rem !important;
		margin: 0.5rem 0.6rem 0.25rem !important;
	}
	.woocommerce ul.products li.product .price {
		font-size: 0.88rem !important;
		margin: 0 0.6rem 0.5rem !important;
	}
	.woocommerce ul.products li.product .button {
		width: calc(100% - 1.2rem) !important;
		margin: auto 0.6rem 0.6rem !important;
		font-size: 0.8rem !important;
		min-height: 36px !important;
	}
}

/* Color only for non-single-product contexts (single product title is hidden) */
.woocommerce div.product .product_title {
	color: var(--dm-secondary);
}

.woocommerce span.onsale {
	background: var(--dm-accent) !important;
	border-radius: 6px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0.3rem 0.55rem !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #fff !important;
}

/* Single product page sale badge — keep it small and nicely placed over the gallery */
.single-product span.onsale,
.single-product .woocommerce span.onsale {
	position: absolute !important;
	font-size: 0.72rem !important;
	padding: 0.28rem 0.5rem !important;
	top: 0.7rem !important;
	left: 0.7rem !important;
	border-radius: 6px !important;
	z-index: 10 !important;
}

.home .site-main {
	background: linear-gradient(180deg, #f6f9ff 0, #fff 34rem);
}

.dm-home-hero {
	background: linear-gradient(90deg, #f7fbff 0%, #edf5ff 100%);
	border-bottom: 1px solid var(--dm-border);
	min-height: 420px;
	position: relative;
}

.dm-home-hero__inner {
	align-items: center;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
	min-height: 420px;
	padding-block: 2.2rem 3rem;
}

.dm-home-hero__copy {
	max-width: 580px;
}

.dm-eyebrow {
	color: var(--dm-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
}

.dm-home-hero h1 {
	color: #0f172a;
	font-size: clamp(2.6rem, 5vw, 4.4rem);
	font-weight: 800;
	letter-spacing: 0;
	margin-bottom: 0.7rem;
}

.dm-home-hero p:not(.dm-eyebrow),
.dm-home-hero__subtitle {
	color: #526071;
	font-size: 1.08rem;
	max-width: 420px;
}

.dm-home-hero__subtitle {
	margin-bottom: 1.2rem;
}

.dm-home-hero__button {
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
	margin-top: 0.4rem;
}

.dm-home-hero__visual {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	min-height: 300px;
}

.dm-home-hero__visual img {
	width: min(100%, 620px);
}

.dm-hero-arrow {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	color: #0f172a;
	font-size: 2rem;
	height: 46px;
	min-height: 46px;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	z-index: 2;
}

.dm-hero-arrow:hover {
	transform: translateY(-50%);
}

.dm-hero-arrow--left {
	left: max(1rem, calc((100vw - var(--dm-container)) / 2 - 4rem));
}

.dm-hero-arrow--right {
	right: max(1rem, calc((100vw - var(--dm-container)) / 2 - 4rem));
}

.dm-hero-dots {
	bottom: 1.7rem;
	display: flex;
	gap: 0.45rem;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.dm-hero-dots span {
	background: #cbd5e1;
	border-radius: 999px;
	height: 8px;
	width: 12px;
}

.dm-hero-dots span:first-child {
	background: var(--dm-primary);
	width: 24px;
}

.dm-home-shop {
	display: grid;
	gap: 2rem;
	grid-template-columns: 250px minmax(0, 1fr);
	padding-block: 2.2rem;
}

.dm-shop-filter {
	background: #fff;
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	height: fit-content;
	padding: 1.15rem;
}

.dm-shop-filter h2 {
	border-bottom: 1px solid var(--dm-border);
	font-size: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.8rem;
}

.dm-filter-group {
	border-bottom: 1px solid var(--dm-border);
	margin-bottom: 1rem;
	padding-bottom: 1rem;
}

.dm-filter-group:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.dm-filter-title {
	align-items: center;
	color: var(--dm-secondary);
	display: flex;
	font-size: 0.92rem;
	font-weight: 800;
	justify-content: space-between;
	margin-bottom: 0.65rem;
}

.dm-filter-group a {
	color: #475569;
	display: block;
	font-size: 0.92rem;
	padding-block: 0.17rem;
}

.dm-filter-group small {
	color: #64748b;
}

.dm-price-line {
	background: #bfdbfe;
	border-radius: 999px;
	height: 4px;
	margin: 1.3rem 0 0.65rem;
	position: relative;
}

.dm-price-line::before,
.dm-price-line::after {
	background: #fff;
	border: 2px solid var(--dm-primary);
	border-radius: 999px;
	content: "";
	height: 12px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 12px;
}

.dm-price-line::before {
	left: 0;
}

.dm-price-line::after {
	right: 0;
}

.dm-price-line span {
	background: var(--dm-primary);
	border-radius: inherit;
	display: block;
	height: 100%;
}

.dm-price-labels {
	color: #64748b;
	display: flex;
	font-size: 0.84rem;
	justify-content: space-between;
}

.dm-color-dots {
	display: flex;
	gap: 0.55rem;
}

.dm-color-dots span {
	border-radius: 999px;
	display: block;
	height: 22px;
	width: 22px;
}

.dm-color-dots span:nth-child(1) {
	background: var(--dm-primary);
}

.dm-color-dots span:nth-child(2) {
	background: #111827;
}

.dm-color-dots span:nth-child(3) {
	background: #b8b8b8;
}

.dm-color-dots span:nth-child(4) {
	background: #7c8766;
}

.dm-color-dots span:nth-child(5) {
	background: #e7caa5;
}

.dm-products-toolbar {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.dm-products-toolbar p {
	color: #475569;
	font-size: 0.92rem;
	margin: 0;
}

.dm-products-toolbar select,
.dm-products-toolbar .dm-category-select {
	background: #fff;
	min-width: 160px;
	font-size: 0.9rem;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--dm-border);
	border-radius: 4px;
}

.dm-demo-products {
	display: grid;
	gap: 1.35rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dm-demo-product,
.home .woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	padding: 0;
}

.dm-demo-product__image {
	aspect-ratio: 1.16;
	background: #f1f5f9;
	overflow: hidden;
	position: relative;
}

.dm-demo-product__image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.dm-sale-badge,
.home .woocommerce span.onsale {
	background: #fb5b18;
	border-radius: 6px;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	left: 0.8rem;
	line-height: 1;
	padding: 0.45rem 0.58rem;
	position: absolute;
	top: 0.8rem;
	z-index: 1;
}

.dm-demo-product__body {
	padding: 0.9rem 0.95rem 1rem;
}

.dm-demo-product h3 {
	font-size: 1rem;
	margin-bottom: 0.35rem;
}

.dm-rating {
	color: #facc15;
	font-size: 0.88rem;
	line-height: 1;
	margin-bottom: 0.6rem;
}

.dm-rating small {
	color: #64748b;
}

.dm-price {
	align-items: center;
	display: flex;
	gap: 0.55rem;
	margin-bottom: 0.7rem;
}

.dm-price strong {
	color: #fb5b18;
	font-size: 1.02rem;
}

.dm-price del {
	color: #94a3b8;
	font-size: 0.9rem;
}

.dm-cart-button {
	font-size: 0.88rem;
	min-height: 38px;
	padding: 0.65rem 0.9rem;
}

.home .woocommerce ul.products {
	display: grid;
	gap: 1.35rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
}

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

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

.home .woocommerce ul.products li.product img {
	aspect-ratio: 1.16;
	margin: 0 0 0.9rem;
	object-fit: cover;
	width: 100%;
}

.home .woocommerce ul.products li.product .woocommerce-loop-product__title,
.home .woocommerce ul.products li.product .price,
.home .woocommerce ul.products li.product .star-rating,
.home .woocommerce ul.products li.product .button {
	margin-left: 0.95rem;
	margin-right: 0.95rem;
}

.home .woocommerce ul.products li.product .button {
	margin-bottom: 1rem;
	margin-top: 0.4rem;
}

.dm-service-strip {
	background: var(--dm-service-bg, #ffffff);
	border-block: 1px solid var(--dm-border);
}

.dm-service-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dm-service-strip__inner > div {
	align-items: center;
	border-right: 1px solid var(--dm-border);
	display: grid;
	gap: 0 0.8rem;
	grid-template-columns: 38px minmax(0, 1fr);
	padding: 1.15rem 1.4rem;
}

.dm-service-strip__inner > div:last-child {
	border-right: 0;
}

.dm-service-strip span {
	color: var(--dm-service-icon-color, var(--dm-primary));
	font-size: 1.8rem;
	grid-row: span 2;
	line-height: 1;
}

.dm-service-strip strong {
	color: var(--dm-service-title-color, var(--dm-secondary));
	font-size: 0.95rem;
}

.dm-service-strip small {
	color: var(--dm-service-desc-color, #64748b);
	font-size: 0.88rem;
}

@media (max-width: 900px) {
	:root {
		--dm-mobile-header-height: 68px;
	}

	.header-builder {
		display: none;
	}

	.header-mobile-bar {
		align-items: center;
		display: flex;
		gap: 1rem;
		min-height: var(--dm-mobile-header-height);
	}

	.header-mobile-actions {
		align-items: center;
		display: flex;
		margin-left: auto;
	}

	.menu-toggle {
		display: inline-flex;
		flex-direction: column;
	}

	.mobile-navigation {
		background: var(--dm-header-bg);
		border-top: 1px solid var(--dm-border);
		box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
		display: none;
		left: 0;
		position: absolute;
		right: 0;
		top: var(--dm-mobile-header-height);
	}

	.has-sticky-header:not(.has-mobile-sticky-header) .site-header {
		position: relative;
		top: auto;
		box-shadow: none;
	}

	/* Better support for sticky header on tablet/mobile */
	.has-mobile-sticky-header .site-header {
		left: 0;
		position: fixed;
		right: 0;
		top: 0;
		width: 100%;
		z-index: 200;
	}

	.has-mobile-sticky-header {
		padding-top: var(--dm-mobile-header-height);
	}

	.mobile-navigation.is-open {
		display: block;
	}

	/* When mobile header is sticky, keep the open menu attached below the sticky bar */
	.has-mobile-sticky-header .mobile-navigation.is-open {
		position: fixed;
		top: var(--dm-mobile-header-height);
		bottom: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 199;
	}

	.mobile-navigation ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		list-style: none;
		margin: 0;
		padding: 0.8rem 1rem;
	}

	.mobile-navigation a {
		border-bottom: 1px solid var(--dm-border);
		color: var(--dm-menu-color);
		font-family: var(--dm-menu-font);
		display: block;
		font-weight: 700;
		padding: 0.9rem 0;
	}

	.content-area,
	.layout-left-sidebar .content-area {
		display: block;
	}

	.site-sidebar {
		margin-top: 1.5rem;
	}

	.dm-home-hero__inner,
	.dm-home-shop {
		grid-template-columns: 1fr;
	}

	.dm-home-hero__inner {
		padding-block: 2rem 3.5rem;
	}

	.dm-home-hero__visual {
		justify-content: center;
		min-height: 0;
	}

	.dm-hero-arrow {
		display: none;
	}

	.dm-demo-products,
	.home .woocommerce ul.products,
	.dm-service-strip__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dm-service-strip__inner > div:nth-child(2) {
		border-right: 0;
	}

	.dm-service-strip span {
		font-size: 1.55rem;
	}

	.dm-service-strip strong {
		font-size: 0.88rem;
	}

	.dm-service-strip small {
		font-size: 0.8rem;
	}

	.site-footer .builder-row__inner,
	.site-footer .builder-row--main .builder-row__inner {
		grid-template-columns: 1fr;
	}

	.site-footer .builder-slot,
	.site-footer .builder-slot--center,
	.site-footer .builder-slot--right {
		justify-content: flex-start;
		text-align: left;
	}

	.builder-newsletter {
		justify-content: flex-start;
	}
}

@media (max-width: 560px) {
	.dm-container {
		width: min(calc(100% - 24px), var(--dm-container));
	}

	.mobile-navigation {
		top: 68px;
	}

	.dm-home-hero {
		min-height: auto;
	}

	.dm-home-hero__inner {
		min-height: auto;
	}

	.dm-products-toolbar {
		align-items: stretch;
		flex-direction: column;
		gap: 0.8rem;
	}

	.dm-demo-products,
	.home .woocommerce ul.products,
	.dm-service-strip__inner {
		grid-template-columns: 1fr;
	}

	.dm-service-strip__inner > div {
		border-right: 0;
		padding: 0.9rem 0.8rem;
	}

	.dm-service-strip span {
		font-size: 1.4rem;
	}

	.dm-service-strip strong {
		font-size: 0.85rem;
	}

	.dm-service-strip small {
		font-size: 0.78rem;
	}

	/* Extra tightening when grids go to 1 column */
	.dm-product-card__body {
		padding: 0.5rem 0.6rem 0.65rem;
	}

	.dm-product-card__title {
		font-size: 0.9rem;
	}

	.dm-product-card__price {
		font-size: 0.95rem;
		margin-bottom: 0.4rem;
	}
}

/* ============================================
   DEFAULT HOME PAGE - NEW SLIDER + FILTERED GRID
   ============================================ */

/* ============================================
   HOME SLIDER - Creative Split Layout
   Left: Solid colored panel (customizable)
   Right: Angled product image with rounded corners
   ============================================ */

.dm-home-slider {
	position: relative;
	min-height: 460px;
	margin-bottom: 0; /* Reduced so marquee sits tight underneath */
	overflow: hidden;
}

.dm-slider-wrapper {
	position: relative;
	min-height: 460px;
}

.dm-slider-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, transform 0.6s ease;
	transform: translateX(20px);
	background-size: 52% auto;            /* image only takes the right portion */
	background-position: right 3% center; /* strongly right-aligned, away from text */
	background-repeat: no-repeat;
}

.dm-slider-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Fading color from left (solid) to right (0 opacity) 
   Left side: text over color
   Right side: image fully visible under transparent part
   No hard border */
.dm-slider-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		var(--dm-slider-panel, #f0f4f0) 0%,
		var(--dm-slider-panel, #f0f4f0) 55%,
		transparent 80%
	);
}

/* Text area on the left over the gradient */
.dm-slider-content {
	position: relative;
	max-width: 520px;
	padding: 2.75rem 1.75rem 2.75rem 3.5rem;
	color: var(--dm-slider-text, #1f2937);
}

/* Fading color overlay: solid on left, fades to 0 opacity on right */
.dm-slider-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		var(--dm-slider-panel, #f0f4f0) 0%,
		var(--dm-slider-panel, #f0f4f0) 48%,
		transparent 72%
	);
}

/* Text content positioned on the left over the colored gradient */
.dm-slider-content {
	position: relative;
	max-width: 540px;
	padding: 2.75rem 2rem 2.75rem 3.25rem;
	color: var(--dm-slider-text, #1f2937);
}

.dm-slider-content {
	max-width: 520px;
}

/* Badge style like the reference image */
/* Badge like the reference */
.dm-slider-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	background: #d1e7d1;
	color: #166534;
	padding: 5px 13px;
	border-radius: 999px;
	margin-bottom: 0.85rem;
}

.dm-slider-title {
	font-size: clamp(1.95rem, 4vw, 2.85rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.35rem;
	color: inherit;
}

.dm-slider-desc {
	font-size: 1rem;
	line-height: 1.5;
	opacity: 0.9;
	max-width: 420px;
	margin-bottom: 1.35rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dm-slider-meta {
	margin-bottom: 1.4rem;
}

.dm-slider-price {
	font-size: 1.55rem;
	font-weight: 700;
	color: inherit;
}

.dm-slider-price del {
	opacity: 0.55;
	margin-left: 0.5rem;
	font-size: 1rem;
}

.dm-slider-actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}

/* Green button matching the reference image */
.dm-slider-btn {
	background: #166534;
	color: #fff;
	font-weight: 600;
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	font-size: 0.92rem;
	box-shadow: none;
}

.dm-slider-btn:hover {
	background: #14532d;
}

.dm-slider-link {
	color: #374151;
	font-weight: 500;
	text-decoration: none;
	font-size: 0.93rem;
}

.dm-slider-link:hover {
	color: #166534;
}

/* Right image area - 30% with 60° angled division, image fills the space */
.dm-slider-image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.25rem;
	overflow: hidden;
	/* 60 degree angle division line */
	clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Image presentation - filled and clean to match the reference */
.dm-slider-product-image {
	width: 100%;
	height: 100%;
	max-height: 400px;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.2);
	transform: rotate(-4deg);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dm-slider-slide.is-active .dm-slider-product-image {
	transform: rotate(-4deg);
}

.dm-slider-slide:hover .dm-slider-product-image {
	transform: rotate(-1deg) scale(1.015);
}

/* Slider Controls */
.dm-slider-controls {
	position: absolute;
	bottom: 1.75rem;
	right: 2.25rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	z-index: 20;
}

.dm-slider-prev,
.dm-slider-next {
	background: rgba(255,255,255,0.18);
	border: none;
	color: var(--dm-slider-text, #fff);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
}

.dm-slider-prev:hover,
.dm-slider-next:hover {
	background: rgba(255,255,255,0.32);
}

.dm-slider-dots {
	display: flex;
	gap: 0.35rem;
}

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

.dm-slider-dot.is-active {
	background: var(--dm-slider-text, #fff);
	width: 22px;
	border-radius: 999px;
}

/* Slider responsive */
@media (max-width: 900px) {
	.dm-slider-slide {
		grid-template-columns: 1fr;
		min-height: 460px;
	}

	.dm-slider-panel {
		padding: 2rem 1.75rem 2rem 2.25rem;
		order: 1;
	}

	.dm-slider-image-wrap {
		order: 2;
		padding: 0.75rem 1rem 1.25rem;
		clip-path: none; /* remove angle on mobile for simplicity */
	}

	.dm-slider-product-image {
		max-height: 260px;
		transform: rotate(-3deg);
		border-radius: 14px 32px 14px 32px;
	}

	.dm-slider-slide:hover .dm-slider-product-image {
		transform: rotate(-1deg) scale(1.01);
	}
}

@media (max-width: 600px) {
	.dm-home-slider {
		min-height: 400px;
	}

	.dm-slider-panel {
		padding: 1.75rem 1.25rem;
	}

	.dm-slider-title {
		font-size: 1.6rem;
		line-height: 1.2;
	}

	.dm-slider-desc {
		font-size: 0.92rem;
		margin-bottom: 1rem;
	}
}

/* ============================================
   BLOG / NEWS SECTION STYLES
   ============================================ */

.blog-loop .archive-header {
	margin-bottom: 2rem;
	text-align: center;
}

.blog-loop .archive-header h1 {
	font-size: clamp(2rem, 4vw, 2.8rem);
	margin-bottom: 0.5rem;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
}

.blog-card {
	background: #fff;
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.blog-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 1.1rem 1.2rem 1.3rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.blog-card__header {
	margin-bottom: 0.75rem;
}

.blog-card__title {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0.35rem 0 0;
}

.blog-card__title a {
	color: var(--dm-secondary);
	text-decoration: none;
}

.blog-card__title a:hover {
	color: var(--dm-primary);
}

.blog-card .entry-meta {
	font-size: 0.8rem;
	color: var(--dm-muted);
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.blog-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #4b5563;
	margin-bottom: 1rem;
	flex: 1;
}

.blog-card .read-more {
	margin-top: auto;
	font-weight: 600;
	font-size: 0.9rem;
}

@media (max-width: 900px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
}

/* Latest News teaser on product home */
.dm-news-section {
	margin-top: 3rem;
	margin-bottom: 2rem;
}

.dm-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.dm-news-header h2 {
	font-size: 1.65rem;
	margin: 0;
}

.dm-news-more {
	font-weight: 600;
	font-size: 0.95rem;
}

.dm-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.dm-news-card {
	background: #fff;
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.dm-news-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f8fafc;
}

.dm-news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dm-news-card__body {
	padding: 1rem 1.1rem 1.2rem;
}

.dm-news-meta {
	font-size: 0.8rem;
	color: var(--dm-muted);
	margin-bottom: 0.35rem;
}

.dm-news-card__title {
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.dm-news-card__title a {
	color: var(--dm-secondary);
	text-decoration: none;
}

.dm-news-card__title a:hover {
	color: var(--dm-primary);
}

.dm-news-excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #4b5563;
}

@media (max-width: 900px) {
	.dm-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dm-news-grid {
		grid-template-columns: 1fr;
	}
}

/* (Old full-bleed slider styles removed - new split angled layout is active) */

/* (Duplicate old full-bleed slider styles fully removed) */

/* Product Grid - Square Images */
.dm-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	grid-auto-rows: 1fr; /* All cards in a row are the exact same height */
}

.dm-product-card {
	background: #fff;
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dm-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.dm-product-card__image {
	position: relative;
	aspect-ratio: 1 / 1;          /* Square shape as requested */
	background: #f8fafc;
	overflow: hidden;
}

.dm-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.dm-product-card:hover .dm-product-card__image img {
	transform: scale(1.04);
}

.dm-product-card__body {
	padding: 1rem 1.05rem 1.1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dm-product-card__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.45rem;
	/* Auto-fit: cap title/description height so all cards stay same size */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dm-product-card__title a {
	color: var(--dm-secondary);
	text-decoration: none;
}

.dm-product-card__title a:hover {
	color: var(--dm-primary);
}

.dm-product-card__price {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.85rem;
	color: var(--dm-secondary);
}

.dm-product-card__price del {
	color: #9ca3af;
	font-weight: 400;
	margin-left: 0.35rem;
}

.dm-add-to-cart {
	margin-top: auto;
	width: 100%;
	text-align: center;
	font-size: 0.9rem;
	padding: 0.55rem 1rem;
}

/* Filters */
.dm-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 4px 0;
	cursor: pointer;
	font-size: 0.95rem;
}

.dm-filter-checkbox input {
	margin: 0;
}

.dm-filter-checkbox span {
	flex: 1;
}

.dm-filter-options {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 0.4rem;
}

.dm-filter-empty {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0.3rem 0;
}

/* Results + more */
.dm-results-count {
	margin: 0;
	font-size: 0.95rem;
	color: #4b5563;
}

.dm-shop-more {
	margin-top: 1.75rem;
	text-align: center;
}

/* Outline button used on home */
.button--outline {
	background: transparent;
	border: 2px solid var(--dm-primary);
	color: var(--dm-primary);
	font-weight: 600;
}

.button--outline:hover {
	background: var(--dm-primary);
	color: #fff;
}

/* Price Range Slider */
.dm-price-range {
	padding: 0.5rem 0 0.75rem;
}

.dm-price-range__values {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: var(--dm-text);
}

.dm-price-range__sliders {
	position: relative;
	height: 24px;
}

.dm-range {
	position: absolute;
	width: 100%;
	pointer-events: none;
	-webkit-appearance: none;
	background: transparent;
}

.dm-range::-webkit-slider-thumb {
	pointer-events: all;
	-webkit-appearance: none;
	height: 16px;
	width: 16px;
	border-radius: 50%;
	background: var(--dm-primary);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	cursor: pointer;
}

.dm-range::-moz-range-thumb {
	pointer-events: all;
	height: 16px;
	width: 16px;
	border-radius: 50%;
	background: var(--dm-primary);
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	cursor: pointer;
}

.dm-range::-webkit-slider-runnable-track {
	height: 4px;
	background: var(--dm-border);
	border-radius: 2px;
}

.dm-range::-moz-range-track {
	height: 4px;
	background: var(--dm-border);
	border-radius: 2px;
}

/* Color swatches in filters */
.dm-color-filters {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
}

.dm-color-swatch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border: 1px solid var(--dm-border);
	border-radius: 4px;
	font-size: 0.85rem;
}

.dm-swatch {
	width: 16px;
	height: 16px;
	border-radius: 3px;
	border: 1px solid #e5e7eb;
	display: inline-block;
	flex-shrink: 0;
}

/* Responsive adjustments for new home */
@media (max-width: 900px) {
	.dm-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

@media (max-width: 640px) {
	.dm-home-slider {
		min-height: 380px;
	}
	.dm-slider-wrapper {
		height: 380px;
	}
	.dm-slider-info {
		padding-right: 1rem;
	}
	.dm-slider-title {
		font-size: 1.75rem;
	}

	/* Make product grid cards more compact and nicely proportioned on mobile */
	.dm-product-grid {
		gap: 0.6rem;
	}

	.dm-product-card__body {
		padding: 0.55rem 0.65rem 0.7rem;
	}

	.dm-product-card__title {
		font-size: 0.86rem;
		line-height: 1.25;
		margin-bottom: 0.25rem;
	}

	.dm-product-card__price {
		font-size: 0.92rem;
		margin-bottom: 0.5rem;
	}

	.dm-add-to-cart {
		font-size: 0.8rem;
		padding: 0.42rem 0.75rem;
		min-height: 36px;
	}

	/* Compact standard WooCommerce product cards on mobile (shop, archives, etc.) */
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		padding: 0.65rem;
	}

	.home .woocommerce ul.products li.product {
		padding: 0;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product .price {
		font-size: 0.85rem !important;
		margin-bottom: 0.35rem !important;
	}

	.woocommerce ul.products li.product .button {
		font-size: 0.82rem;
		padding: 0.5rem 0.8rem;
		min-height: 36px;
	}
}

/* ============================================
   HOME PAGE MARQUEE / SCROLLING ANNOUNCEMENT BAR
   ============================================ */

.dm-marquee {
	background: var(--dm-marquee-bg, #111827);
	color: var(--dm-marquee-text, #ffffff);
	overflow: hidden;
	width: 100%;
	padding-block: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	position: relative; /* helps contain the animated track */
}

/* Nice separation when multiple lines are added (via Enter in the Announcement Text) */
.dm-marquee + .dm-marquee {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation-name: dm-marquee-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	/* animation-duration is controlled dynamically via inline style from the Customizer speed setting */
	will-change: transform;
}

.dm-marquee:hover .dm-marquee__track {
	animation-play-state: paused;
}

.dm-marquee__content {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	padding-right: 4.5rem; /* generous space so the repeating pattern is clearly visible while scrolling */
	white-space: nowrap;
}

.dm-marquee-sep {
	opacity: 0.55;
	margin: 0 0.6rem;
	font-weight: 400;
}

/* Smooth infinite scroll using two identical copies */
@keyframes dm-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
	.dm-marquee__track {
		animation: none;
	}
}

/* Mobile adjustments */
@media (max-width: 640px) {
	.dm-marquee {
		padding-block: 0.5rem;
	}
	.dm-marquee__content {
		font-size: 0.86rem;
		padding-right: 3rem;
	}
}

/* ============================================
   SINGLE PRODUCT PAGE - UNIFIED IMAGE GALLERY
   Makes the main product image view consistent across all products
   regardless of original photo dimensions. Auto-resizes nicely so
   the full product is always shown cleanly (no stretching, no wild
   height jumps).
   ============================================ */

/* Layout: put gallery + summary (name, price, etc.) side by side */
.single-product .product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
	gap: 2rem;
	align-items: start;
}

.single-product .woocommerce-product-gallery {
	position: relative;
	width: 100% !important;
	max-width: 520px;
	float: none !important;
	margin-right: auto;
	margin-left: 0;
}

.single-product div.product div.summary {
	width: auto !important;
	float: none !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--dm-surface, #f8fafc);
	border: 1px solid var(--dm-border);
	border-radius: 8px;
	width: 100%;
	min-height: 0;
	height: auto !important;
}

.single-product .woocommerce-product-gallery__wrapper {
	height: 100%;
}

.single-product .woocommerce-product-gallery__image {
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.single-product .woocommerce-product-gallery__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.single-product .woocommerce-product-gallery__image img:not(.zoomImg),
.single-product .woocommerce-product-gallery .flex-viewport img:not(.zoomImg) {
	width: 100% !important;
	height: 100% !important;
	margin-right: auto;
	margin-left: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
	object-position: center center;
	display: block;
}

.single-product .woocommerce-product-gallery .zoomImg {
	max-width: none;
}

/* Gallery thumbnails - also unified as squares for a clean consistent look */
.single-product .flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem !important;
	list-style: none;
	padding: 0 !important;
}

.single-product .flex-control-thumbs li {
	flex: 0 0 auto;
	width: 68px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--dm-border);
	border-radius: 6px;
	background: var(--dm-surface, #f8fafc);
}

.single-product .flex-control-thumbs li img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	opacity: 0.8;
	transition: opacity 160ms ease, transform 160ms ease;
}

.single-product .flex-control-thumbs li:hover img,
.single-product .flex-control-thumbs li.flex-active-slide img {
	opacity: 1;
	transform: scale(1.03);
}

/* Placeholder / no-image case */
.single-product .woocommerce-product-gallery__image--placeholder {
	background: var(--dm-surface, #f8fafc);
}

.single-product .woocommerce-product-gallery__image--placeholder img {
	object-fit: contain;
}

/* Summary area (name, price, description, cart etc.) */
.single-product .summary {
	padding-top: 0.25rem;
}

.single-product .product .price {
	font-size: 1rem; /* small */
	font-weight: 600;
	color: var(--dm-secondary);
	margin-bottom: 0.75rem;
}

/* Mobile: tighter but still unified + stack layout */
@media (max-width: 640px) {
	.single-product .product {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.single-product .woocommerce-product-gallery__image,
	.single-product .woocommerce-product-gallery .flex-viewport {
		min-height: 240px;
		aspect-ratio: 1 / 1;
	}

	.single-product .flex-control-thumbs li {
		width: 54px;
	}

	.single-product .product .price {
		font-size: 0.95rem;
	}
}
