/* Override the legacy hover and off-screen pause rules. */
body.home .dth-brands[data-dt-marquee] .dth-brands__track {
	animation-play-state: running;
}

@keyframes dth-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

/* Tighten the homepage transition from the brand logos to the next section. */
html.dt-motion body.home .dth-brands {
 opacity: 1 !important;
 transform: none !important;
 transition: none !important;
}
body.home .e-con:has(> .elementor-widget .dth-brands),
body.home .elementor-widget:has(.dth-brands) {
 margin-block-end: 0 !important;
 padding-block-end: 0 !important;
}
body.home .e-con:has(> .elementor-widget .dth-brands) + .e-con:has(.dtcml) {
 margin-block-start: 0 !important;
 padding-block-start: 0 !important;
}
body.home .elementor-element-99108a1 > .elementor-widget-html:has(> style):not(:has(> :not(style))),
body.home .elementor-element-99108a1 > .elementor-widget-shortcode:has(> .elementor-shortcode:empty) {
 display: none !important;
}
body.home .dtcml { margin-block-start: 0 !important; padding-block-start: 0 !important; }

/* Retain a compact, deliberate space between homepage sections. */
body.home .elementor-element-dbfd826:has(.dth-rail--cats) {
	--min-height: 0px !important;
	min-height: 0 !important;
	margin-block-start: 0 !important;
	padding-block-start: 16px !important;
}
body.home .elementor-element-7d833cb:has(> .elementor-shortcode:empty) { display: none !important; }
body.home .elementor-element-12292d9 .dth-head:first-child { margin-block-start: 0 !important; }
body.home .dtcml { padding-block-start: 16px !important; }

body .dtpc-site .dtpc-quantity > [aria-label="Current quantity"] {
	display: grid !important;
	place-items: center;
	min-inline-size: 30px;
	color: #17191f !important;
	opacity: 1 !important;
	font-variant-numeric: tabular-nums;
}
body.home .dth-cat[href*="/connectors/"] .dth-cat__img:empty::after {
	content: "";
	width: 44%;
	height: 44%;
	background-color: #c43f13;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v5m6-5v5M7 8h10v3a5 5 0 0 1-5 5v0a5 5 0 0 1-5-5V8zm5 8v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dtdfp-mobile-store nav a,
.dtmp-category-tools a { position: relative; }
.deetoo-mobile-cart-count {
	position: absolute;
	inset: -2px -2px auto auto;
	min-width: 17px;
	padding: 1px 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #ba3710;
	color: #fff;
	font: 700 10px/13px system-ui, sans-serif;
	text-align: center;
	pointer-events: none;
}
.deetoo-mobile-cart-count[hidden] { display: none; }

@media (max-width: 767px) {
	body.home .elementor-element-dbfd826:has(.dth-rail--cats) { padding-block-start: 12px !important; }
	body.home .dtcml { padding-block-start: 12px !important; }
	body.home .dtdfp-mobile-store__row > nav {
		flex: 0 0 auto;
		justify-content: flex-end;
		gap: clamp(4px, 1.5vw, 8px);
	}
	body.home .dtdfp-mobile-store nav a {
		inline-size: 40px;
		block-size: 44px;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: #a93817;
		box-shadow: none;
	}
	body.home .dtdfp-mobile-store nav a:active { background: #fff0e7; }
	body.home .dtdfp-mobile-store nav a:focus-visible { outline: 2px solid #a93817; outline-offset: 1px; }
	body.home .dtdfp-mobile-store nav a svg { inline-size: 23px; block-size: 23px; }
	body.home .dtdfp-mobile-store nav a svg,
	body.home .dtmp-bottom-nav .deetoo-utility-icon { flex-shrink: 0; }
	body.home .dtmp-bottom-nav .deetoo-utility-icon { color: #713525; }
	body.home .dtmp-bottom-nav :is([aria-current="page"],[aria-expanded="true"]) .deetoo-utility-icon {
		color: #66240d;
	}
}

/* Collapse the retired Elementor hero without removing its menu from the DOM. */
@media (min-width: 768px) {
	body.home .elementor-8001 > .elementor-element-a10df7a.e-con:not(:has(.dtdfp-desktop-navigation)) {
		display: none !important;
		block-size: 0 !important;
		min-block-size: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.home > header.dtdfp-desktop-navigation {
		margin-block-start: 0 !important;
		inset-block-start: auto !important;
	}
	body.home:has(> header.dtdfp-desktop-navigation) > .template-container,
	body.home:has(> header.dtdfp-desktop-navigation) > .template-container > .template-content,
	body.home:has(> header.dtdfp-desktop-navigation) > .template-container > .template-content > .page-wrapper,
	body.home:has(> header.dtdfp-desktop-navigation) .page-wrapper > .elementor-8001 {
		margin-block-start: 0 !important;
		padding-block-start: 0 !important;
	}
}

/* Categories are useful immediately; keep the entry motion brief. */
html.dt-motion body.home .dth-head:has(+ .dth-rail--cats),
html.dt-motion body.home .dth-head:has(+ .dth-rail--cats) :is(.dt-w__i, .dth-head__s, .dt-w),
html.dt-motion body.home .dth-rail--cats .dth-rail__track > .dth-cat {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	animation: none !important;
}
@media (max-width: 767px) {
	body #dtmp-category[open] { animation: none !important; transition: none !important; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	body:is(.home, .dtdfp-purchase-header-page) .dtdfp-desktop-navigation > nav > details.dt-hero-categories[open] > .dt-category-list {
		animation: deetoo-category-entry .1s ease-out;
	}
	@keyframes deetoo-category-entry {
		from { opacity: .85; transform: translateY(-3px); }
		to { opacity: 1; transform: translateY(0); }
	}
}
