/* ==========================================================================
   Shell: announcement bar, header, mega menu, drawer, search, footer.
   ========================================================================== */

/* Interim: the legacy homepage is one HTML widget that carries its own
   header, nav and footer. Hide those duplicates while the shell is active.
   This rule is removed when the homepage is rebuilt. */
.dps-home .dpc-custom-wrapper .dpc-top-bar,
.dps-home .dpc-custom-wrapper .dpc-nav-bar,
.dps-home .dpc-custom-wrapper .dpc-main-footer {
	display: none;
}

/* Legacy WPCode banner ("prices may fluctuate") is printed inside wp_head,
   which pushes a stray block above the header. Its message is re-rendered in
   context on the shop and product pages, so the stray copy is hidden. */
.price-alert-notice {
	display: none !important;
}

/* Announcement ----------------------------------------------------------- */

.dps-announce {
	display: none;
	background: #10151e;
	color: var(--dps-muted-invert);
	font-size: 12px;
	letter-spacing: 0.01em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 1024px) {
	.dps-announce {
		display: block;
	}
}

.dps-announce__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-4);
	min-height: 34px;
}

.dps-announce__claim {
	margin: 0;
}

.dps-announce__phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--dps-text-invert);
	font-weight: 500;
}

.dps-announce__phone:hover {
	color: var(--dps-lime);
	text-decoration: none;
}

/* Header ----------------------------------------------------------------- */

.dps-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: var(--dps-z-header);
	background: var(--dps-ink);
	color: var(--dps-text-invert);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dps-header__in {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	align-items: center;
	height: var(--dps-header);
	gap: var(--dps-2);
}

@media (min-width: 1024px) {
	.dps-header__in {
		grid-template-columns: auto 1fr auto;
		gap: var(--dps-8);
	}
}

.dps-burger {
	margin-left: -10px;
}

@media (min-width: 1024px) {
	.dps-burger {
		display: none;
	}
}

/* Logo */

.dps-logo {
	display: inline-flex;
	align-items: center;
	color: var(--dps-text-invert);
	text-decoration: none;
	justify-self: start;
}

.dps-logo:hover {
	text-decoration: none;
	opacity: 0.88;
}

.dps-logo__img {
	display: block;
	width: auto;
	height: 40px;
	max-width: 140px;
	max-height: 40px;
}

@media (min-width: 1024px) {
	.dps-logo__img {
		height: 48px;
		max-height: 48px;
		max-width: 160px;
	}
}

.dps-logo--drawer .dps-logo__img {
	height: 44px;
}

/* Nav */

.dps-nav {
	display: none;
}

@media (min-width: 1024px) {
	.dps-nav {
		display: flex;
		justify-content: center;
	}
}

.dps-nav__list {
	display: flex;
	align-items: center;
	gap: var(--dps-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-nav__item {
	position: relative;
}

.dps-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(244, 246, 248, 0.76);
	font-family: var(--dps-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--dps-t) var(--dps-ease);
}

.dps-nav__link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 8px;
	height: 2px;
	background: var(--dps-lime);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dps-t) var(--dps-ease);
}

.dps-nav__link:hover,
.dps-nav__link[aria-expanded="true"] {
	color: var(--dps-text-invert);
	text-decoration: none;
}

.dps-nav__link:hover::after,
.dps-nav__link[aria-expanded="true"]::after {
	transform: scaleX(1);
}

.dps-nav__link svg {
	width: 14px;
	height: 14px;
	opacity: 0.7;
	transition: transform var(--dps-t) var(--dps-ease);
}

.dps-nav__link[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Header actions */

.dps-header__actions {
	display: flex;
	align-items: center;
	gap: 2px;
	justify-self: end;
}

.dps-header__actions .dps-iconbtn {
	width: 42px;
	height: 42px;
	color: rgba(244, 246, 248, 0.82);
}

.dps-header__actions .dps-iconbtn:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--dps-text-invert);
}

.dps-header__cta {
	display: none;
}

@media (min-width: 1024px) {
	.dps-header__cta {
		display: inline-flex;
		min-height: 44px;
		margin-left: var(--dps-4);
		padding: 0 18px;
		border-radius: 8px;
		font-size: 0.875rem;
	}
}

.dps-cartbtn__count {
	position: absolute;
	top: 3px;
	right: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--dps-r-pill);
	background: var(--dps-lime);
	color: var(--dps-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.dps-cartbtn__count:empty,
.dps-cartbtn__count[data-empty="1"] {
	display: none;
}

/* Mega menu -------------------------------------------------------------- */

.dps-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--dps-ink-2);
	border-top: 1px solid var(--dps-border-dark);
	border-bottom: 1px solid var(--dps-border-dark);
	box-shadow: var(--dps-shadow-dark);
	animation: dps-fade var(--dps-t-slow) var(--dps-ease);
}

@keyframes dps-fade {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dps-mega {
		animation: none;
	}
}

.dps-mega__in {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dps-8);
	padding-block: var(--dps-8);
}

.dps-mega__col {
	flex: 1 1 160px;
	min-width: 0;
}

.dps-mega__heading {
	margin: 0 0 var(--dps-3);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--dps-ls-caps);
	text-transform: uppercase;
	color: var(--dps-muted-invert);
}

.dps-mega__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-mega__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-3);
	min-height: 44px;
	padding: 0 10px;
	margin-inline: -10px;
	border-radius: 8px;
	color: rgba(244, 246, 248, 0.86);
	font-size: 0.875rem;
	text-decoration: none;
}

.dps-mega__links a:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--dps-lime);
	text-decoration: none;
}

.dps-mega__links svg {
	width: 15px;
	height: 15px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--dps-t) var(--dps-ease),
		transform var(--dps-t) var(--dps-ease);
}

.dps-mega__links a:hover svg,
.dps-mega__links a:focus-visible svg {
	opacity: 1;
	transform: none;
}

.dps-mega__card {
	display: flex;
	flex-direction: column;
	flex: 0 1 272px;
	gap: var(--dps-2);
	padding: var(--dps-3);
	border: 1px solid var(--dps-border-dark);
	border-radius: var(--dps-r);
	background: var(--dps-ink-3);
	color: var(--dps-text-invert);
	text-decoration: none;
}

.dps-mega__card:hover {
	border-color: rgba(198, 241, 53, 0.4);
	text-decoration: none;
}

.dps-mega__media {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: var(--dps-white);
	overflow: hidden;
}

.dps-mega__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dps-mega__eyebrow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: var(--dps-ls-caps);
	text-transform: uppercase;
	color: var(--dps-lime);
}

.dps-mega__name {
	font-family: var(--dps-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.dps-mega__price .dps-price,
.dps-mega__price {
	font-size: 0.9375rem;
}

/* Drawer ----------------------------------------------------------------- */

.dps-scrim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--dps-z-drawer) - 1);
	background: rgba(10, 13, 18, 0.62);
	backdrop-filter: blur(2px);
}

.dps-drawer {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: var(--dps-z-drawer);
	display: flex;
	flex-direction: column;
	width: min(360px, 88vw);
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--dps-ink);
	color: var(--dps-text-invert);
	border-right: 1px solid var(--dps-border-dark);
	transform: translateX(-100%);
	transition: transform var(--dps-t-slow) var(--dps-ease);
}

.dps-drawer.is-open {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.dps-drawer {
		transition: none;
	}
}

.dps-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-4);
	min-height: var(--dps-header);
	padding: 0 var(--dps-4);
	border-bottom: 1px solid var(--dps-border-dark);
}

.dps-drawer__nav {
	margin: 0;
	padding: var(--dps-2) var(--dps-4) var(--dps-4);
	list-style: none;
}

.dps-drawer__nav > li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dps-drawer__nav > li > a,
.dps-drawer__group > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-3);
	min-height: 52px;
	color: var(--dps-text-invert);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}

.dps-drawer__group > summary::-webkit-details-marker {
	display: none;
}

.dps-drawer__group[open] > summary svg {
	transform: rotate(180deg);
}

.dps-drawer__group svg {
	transition: transform var(--dps-t) var(--dps-ease);
}

.dps-drawer__group ul {
	margin: 0;
	padding: 0 0 var(--dps-3);
	list-style: none;
}

.dps-drawer__group ul a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-left: var(--dps-3);
	color: var(--dps-muted-invert);
	font-size: 0.875rem;
	text-decoration: none;
}

.dps-drawer__group ul a:hover {
	color: var(--dps-lime);
}

.dps-drawer__foot {
	margin-top: auto;
	padding: var(--dps-4);
	border-top: 1px solid var(--dps-border-dark);
}

.dps-drawer__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--dps-2);
	margin-top: var(--dps-2);
}

.dps-drawer__meta {
	margin: var(--dps-3) 0 0;
	font-size: 12px;
	color: var(--dps-muted-invert);
}

/* Search overlay --------------------------------------------------------- */

.dps-search {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: var(--dps-z-overlay);
	background: var(--dps-ink-2);
	color: var(--dps-text-invert);
	border-bottom: 1px solid var(--dps-border-dark);
	box-shadow: var(--dps-shadow-dark);
	padding-block: var(--dps-6);
	transform: translateY(-100%);
	transition: transform var(--dps-t-slow) var(--dps-ease);
}

.dps-search.is-open {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.dps-search {
		transition: none;
	}
}

.dps-search__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-4);
	margin-bottom: var(--dps-4);
}

.dps-search__title {
	margin: 0;
	font-family: var(--dps-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
}

.dps-search__form {
	display: flex;
	gap: var(--dps-2);
}

.dps-search__form input[type="search"] {
	flex: 1;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--dps-border-dark);
	border-radius: 10px;
	background: var(--dps-ink);
	color: var(--dps-text-invert);
	font-family: var(--dps-font-body);
	font-size: 1rem;
}

.dps-search__form input[type="search"]::placeholder {
	color: var(--dps-muted-invert);
}

.dps-search__form .dps-btn {
	flex: none;
}

.dps-search__label {
	margin: var(--dps-5) 0 var(--dps-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--dps-ls-caps);
	text-transform: uppercase;
	color: var(--dps-muted-invert);
}

.dps-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dps-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-search__chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--dps-border-dark);
	border-radius: var(--dps-r-pill);
	color: var(--dps-text-invert);
	font-size: 0.8125rem;
	text-decoration: none;
}

.dps-search__chips a:hover {
	border-color: var(--dps-lime);
	color: var(--dps-lime);
	text-decoration: none;
}

/* Footer ----------------------------------------------------------------- */

.dps-footer {
	background: var(--dps-ink);
	color: var(--dps-text-invert);
	padding-block: var(--dps-16) var(--dps-6);
	font-size: 0.875rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dps-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--dps-10);
	padding-bottom: var(--dps-10);
	border-bottom: 1px solid var(--dps-border-dark);
}

@media (min-width: 640px) {
	.dps-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.dps-footer__grid {
		grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
		gap: var(--dps-10);
	}
}

.dps-logo--footer {
	display: inline-flex;
	margin-bottom: var(--dps-4);
}

.dps-logo--footer .dps-logo__img {
	height: 36px;
	max-height: 36px;
	max-width: 120px;
}

.dps-footer__tag {
	color: var(--dps-muted-invert);
	max-width: 34ch;
}

.dps-footer__address {
	margin: 0 0 var(--dps-3);
	color: var(--dps-text-invert);
	line-height: 1.7;
}

.dps-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 var(--dps-3);
	padding: 0;
	list-style: none;
}

.dps-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--dps-text-invert);
	text-decoration: none;
}

.dps-footer__contact a:hover {
	color: var(--dps-lime);
	text-decoration: none;
}

.dps-footer__hours {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--dps-muted-invert);
}

.dps-footer__h {
	margin: 0 0 var(--dps-3);
	font-family: var(--dps-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--dps-ls-caps);
	text-transform: uppercase;
	color: var(--dps-muted-invert);
}

.dps-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dps-footer__col a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: rgba(244, 246, 248, 0.86);
	text-decoration: none;
}

.dps-footer__col a:hover {
	color: var(--dps-lime);
	text-decoration: none;
}

.dps-footer__help p {
	color: var(--dps-muted-invert);
	margin-bottom: var(--dps-4);
}

.dps-footer__map {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: var(--dps-2);
	color: var(--dps-text-invert);
	text-decoration: none;
}

.dps-footer__map:hover {
	color: var(--dps-lime);
	text-decoration: none;
}

.dps-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--dps-3) var(--dps-6);
	padding-top: var(--dps-6);
	color: var(--dps-muted-invert);
	font-size: 12px;
}

.dps-footer__legal p {
	margin: 0;
}

/* Mobile action bar ------------------------------------------------------ */

.dps-mobilebar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: var(--dps-z-header);
	display: grid;
	grid-template-columns: 1fr 1fr 1.2fr;
	height: calc(56px + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--dps-ink-2);
	border-top: 1px solid var(--dps-border-dark);
}

@media (min-width: 1024px) {
	.dps-mobilebar {
		display: none;
	}
}

.dps-mobilebar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: var(--dps-text-invert);
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	border-right: 1px solid var(--dps-border-dark);
}

.dps-mobilebar__item:last-child {
	border-right: 0;
}

.dps-mobilebar__item:hover {
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
}

.dps-mobilebar__item--cta {
	background: var(--dps-lime);
	color: var(--dps-ink);
	font-size: 0.875rem;
}

.dps-mobilebar__item--cta:hover {
	background: #d3f75f;
}
