/* =========================================================================
   DrPeps Wales — clinical / lab storefront
   Palette + type tokens are injected via wp_head (see class-drpeps-core).
   Signature: the monospace spec sheet. Everything else stays quiet.
   ========================================================================= */

.drpeps-store {
	--dp-radius: 10px;
	--dp-radius-sm: 6px;
	font-feature-settings: "tnum" 1, "cv05" 1;
}

/* Typography roles ------------------------------------------------------- */
.drpeps-store .dp-hero__title,
.drpeps-store .dp-gate__title,
.drpeps-store .dp-specsheet__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	letter-spacing: -0.01em;
}

.dp-eyebrow,
.dp-card-specs,
.dp-specsheet__grid,
.dp-chip,
.dp-trustbar,
.dp-specsheet__tag {
	font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* =========================================================================
   HERO
   ========================================================================= */
.dp-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 2.5rem;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
	background:
		linear-gradient(180deg, var(--dp-navy) 0%, var(--dp-navy-soft) 100%);
	color: #EAF2FB;
	border-radius: var(--dp-radius);
	isolation: isolate;
}

.dp-hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(circle at 22% 12%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(circle at 22% 12%, #000 0%, transparent 72%);
}

.dp-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(124, 77, 224, 0.4) 0%, transparent 68%);
	z-index: -1;
	pointer-events: none;
}

.dp-hero__inner {
	max-width: 640px;
}

.dp-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #B69CF0;
	margin-bottom: 1rem;
}

.dp-hero__title {
	font-size: clamp(2.1rem, 6vw, 3.6rem);
	line-height: 1.02;
	font-weight: 700;
	margin: 0 0 0.6rem;
	color: #FFFFFF;
}

.dp-hero__tagline {
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	line-height: 1.5;
	color: #C4D6E8;
	margin: 0 0 1.6rem;
	max-width: 46ch;
}

.dp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
}

.dp-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	padding: 0.4rem 0.7rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--dp-radius-sm);
	font-size: 0.72rem;
}

.dp-chip__k {
	color: #7FA6C8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.dp-chip__v {
	color: #FFFFFF;
	font-weight: 600;
}

.dp-hero__note {
	margin: 1.4rem 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #90A8C0;
	max-width: 52ch;
}

/* Button ----------------------------------------------------------------- */
.drpeps-store .dp-btn {
	display: inline-block;
	padding: 0.85rem 1.6rem;
	background: var(--dp-grad);
	color: #FFFFFF !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: none;
	border-radius: var(--dp-radius-sm);
	cursor: pointer;
	box-shadow: var(--dp-glow);
	transition: filter 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.drpeps-store .dp-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 0 30px rgba(124, 77, 224, 0.6);
}

.drpeps-store .dp-btn:disabled {
	background: var(--dp-slate-soft);
	cursor: not-allowed;
	transform: none;
}

/* =========================================================================
   SHOP CARD SPEC STRIP
   ========================================================================= */
.dp-card-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.35rem 0 0.5rem;
}

.dp-card-specs__item {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	padding: 0.22rem 0.5rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-line-soft);
	border-radius: 4px;
	font-size: 0.68rem;
}

.dp-card-specs .dp-k {
	color: var(--dp-slate-soft);
	letter-spacing: 0.06em;
}

.dp-card-specs .dp-v {
	color: var(--dp-navy);
	font-weight: 600;
}

/* =========================================================================
   SINGLE PRODUCT — research flag + spec sheet (the signature)
   ========================================================================= */
.dp-research-flag {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.4rem 0.7rem;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	color: var(--dp-warn);
	background: var(--dp-warn-bg);
	border: 1px solid #F0D2C0;
	border-radius: var(--dp-radius-sm);
}

.dp-specsheet {
	margin: 1.5rem 0;
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-paper);
}

.dp-specsheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 1rem;
	background: var(--dp-navy);
	color: #FFFFFF;
}

.dp-specsheet__title {
	font-size: 0.95rem;
	font-weight: 600;
}

.dp-specsheet__tag {
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	color: #B69CF0;
}

.dp-specsheet__grid {
	margin: 0;
	padding: 0;
}

.dp-specrow {
	display: grid;
	grid-template-columns: 40% 60%;
	gap: 0;
	border-top: 1px solid var(--dp-line-soft);
}

.dp-specrow:first-child {
	border-top: none;
}

.dp-specrow dt,
.dp-specrow dd {
	margin: 0;
	padding: 0.65rem 1rem;
	font-size: 0.82rem;
}

.dp-specrow dt {
	color: var(--dp-slate);
	background: var(--dp-surface);
	border-right: 1px solid var(--dp-line-soft);
	font-weight: 500;
}

.dp-specrow dd {
	color: var(--dp-ink);
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	word-break: break-word;
}

.dp-specrow dd a {
	color: var(--dp-blue);
	text-decoration: none;
	font-weight: 600;
}

.dp-specrow dd a:hover {
	text-decoration: underline;
}

/* Product disclaimer ----------------------------------------------------- */
.dp-disclaimer {
	margin: 1rem 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--dp-slate);
	padding: 0.75rem 0.9rem;
	background: var(--dp-surface);
	border-left: 3px solid var(--dp-blue);
	border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
}

/* =========================================================================
   TRUST BAR
   ========================================================================= */
.dp-trustbar {
	margin-top: 2rem;
	background: var(--dp-navy);
	color: #C4D6E8;
}

.dp-gate-open .dp-trustbar {
	display: none;
}

.dp-trustbar__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	justify-content: center;
	font-size: 0.74rem;
	letter-spacing: 0.02em;
}

.dp-trustbar__item {
	white-space: nowrap;
}

/* =========================================================================
   HOMEPAGE POLISH — make the shortcode page read as a designed page rather
   than a hero pasted into the default theme.
   Scoped to .home so it only affects the front page.
   ========================================================================= */

/* 1. Hide the theme's duplicate page title on the front page (the hero
      already carries the brand name). Covers common block + classic themes. */
.drpeps-store.home .wp-block-post-title,
.drpeps-store.home .entry-title,
.drpeps-store.home header.entry-header,
.drpeps-store.home .page-title,
.drpeps-store.home h1.wp-block-post-title {
	display: none !important;
}

/* 2. Remove the large empty gap the theme leaves above the content. */
.drpeps-store.home .entry-content,
.drpeps-store.home .wp-block-post-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* 3. Full-bleed every hero band so it spans the window consistently on every
      page (home, shop, about) rather than floating in the theme's column. */
.drpeps-store .dp-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	margin-top: 0;
}

/* Centre the hero's content within the full-bleed band, same width everywhere. */
.drpeps-store .dp-hero__inner {
	max-width: 1120px;
	margin-inline: auto;
}

/* Keep the featured grid + band aligned to a comfortable reading width. */
.drpeps-store .dp-section,
.drpeps-store .dp-band {
	max-width: 1120px;
	margin-inline: auto;
}

/* =========================================================================
   HOMEPAGE SECTIONS ([drpeps_wales_home])
   ========================================================================= */
.dp-home {
	display: block;
}

.dp-section {
	margin: 0 0 3rem;
}

.dp-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--dp-line);
}

.dp-section__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: clamp(1.4rem, 3.5vw, 1.9rem);
	font-weight: 600;
	color: var(--dp-navy);
	margin: 0;
}

.dp-section__link {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.8rem;
	color: var(--dp-blue);
	text-decoration: none;
	white-space: nowrap;
}

.dp-section__link:hover {
	text-decoration: underline;
}

.dp-empty {
	padding: 2rem;
	text-align: center;
	color: var(--dp-slate);
	background: var(--dp-surface);
	border: 1px dashed var(--dp-line);
	border-radius: var(--dp-radius);
}

.dp-band {
	margin: 0 0 3rem;
	padding: clamp(1.75rem, 5vw, 2.75rem);
	background: var(--dp-surface);
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
	text-align: center;
}

.dp-band__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.75rem;
	text-align: left;
}

.dp-band__k {
	display: block;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dp-blue);
	margin-bottom: 0.4rem;
}

.dp-band__col p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--dp-slate);
}

@media (max-width: 720px) {
	.dp-band__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

/* =========================================================================
   AGE / RESEARCH GATE
   ========================================================================= */
.dp-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	/* Hidden until JS confirms it should show. If JS never runs, the gate
	   simply doesn't appear (fail-open) rather than locking the visitor out —
	   the checkout consent step is the enforced legal checkpoint. */
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(6, 18, 32, 0.86);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.dp-gate.is-visible {
	display: flex;
}

.dp-gate__panel {
	width: 100%;
	max-width: 480px;
	background: var(--dp-paper);
	border-radius: 14px;
	padding: clamp(1.75rem, 5vw, 2.5rem);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	text-align: left;
}

.dp-gate__mark {
	display: inline-block;
	font-size: 1.4rem;
	color: var(--dp-cyan);
	margin-bottom: 0.5rem;
}

.dp-gate__title {
	font-size: 1.6rem;
	margin: 0 0 0.75rem;
	color: var(--dp-navy);
}

.dp-gate__lead {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--dp-slate);
	margin: 0 0 1rem;
}

.dp-gate__ask {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--dp-ink);
	margin: 0 0 0.75rem;
}

.dp-gate__check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--dp-ink);
	margin-bottom: 0.75rem;
	cursor: pointer;
}

.dp-gate__check input {
	margin-top: 0.2rem;
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--dp-blue);
	flex-shrink: 0;
}

.dp-gate__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.dp-gate__leave {
	color: var(--dp-slate);
	font-size: 0.85rem;
	text-decoration: none;
}

.dp-gate__leave:hover {
	color: var(--dp-warn);
	text-decoration: underline;
}

/* =========================================================================
   CHECKOUT CONSENT
   ========================================================================= */
.drpeps-store .dp-consent {
	margin: 1rem 0 1.25rem;
	padding: 0.9rem 1rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius-sm);
	font-size: 0.85rem;
}

.drpeps-store .dp-consent label {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	line-height: 1.45;
}

/* =========================================================================
   LIGHT WOOCOMMERCE POLISH (scoped, kept minimal)
   ========================================================================= */
.drpeps-store.woocommerce ul.products li.product .price,
.drpeps-store.woocommerce-page ul.products li.product .price {
	color: var(--dp-navy);
	font-weight: 700;
}

.drpeps-store.woocommerce .price ins,
.drpeps-store.woocommerce div.product p.price {
	color: var(--dp-navy);
}

/* =========================================================================
   SPLIT HERO + QUICK-LINKS
   ========================================================================= */
.dp-hero--split .dp-hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	max-width: 1180px;
}

.dp-hero__links {
	display: grid;
	gap: 0.6rem;
}

.dp-quick {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--dp-radius-sm);
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dp-quick:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(143, 214, 224, 0.5);
	transform: translateX(2px);
}

.dp-quick__ico {
	flex-shrink: 0;
	width: 2.2rem;
	height: 2.2rem;
	display: grid;
	place-items: center;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 1.1rem;
	color: #C4B5FD;
	background: rgba(139, 92, 246, 0.18);
	border-radius: 6px;
}

.dp-quick__body {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.dp-quick__t {
	color: #FFFFFF;
	font-weight: 600;
	font-size: 0.95rem;
}

.dp-quick__d {
	color: #9FBAD4;
	font-size: 0.76rem;
}

.dp-quick__go {
	margin-left: auto;
	color: #7FA6C8;
	font-size: 1.1rem;
}

@media (max-width: 860px) {
	.dp-hero--split .dp-hero__inner {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   COLLECTIONS — tabs + carousel
   ========================================================================= */
.dp-tabs {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	margin-bottom: 1.25rem;
	scrollbar-width: thin;
}

.dp-tab {
	flex-shrink: 0;
	padding: 0.5rem 1rem;
	background: var(--dp-surface);
	border: 1px solid var(--dp-line);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--dp-slate);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dp-tab:hover {
	color: var(--dp-navy);
	border-color: var(--dp-blue);
}

.dp-tab.is-active {
	background: var(--dp-navy);
	color: #FFFFFF;
	border-color: var(--dp-navy);
}

.dp-carousel {
	position: relative;
}

.dp-carousel__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0.25rem 0.25rem 1rem;
	scrollbar-width: thin;
}

.dp-carousel__track > * {
	scroll-snap-align: start;
}

.dp-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.6rem;
	height: 2.6rem;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	flex: 0 0 auto;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 1px solid var(--dp-line);
	background: var(--dp-paper);
	color: var(--dp-navy);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(10, 37, 64, 0.16);
	display: grid;
	place-items: center;
	appearance: none;
	-webkit-appearance: none;
}

.dp-carousel__nav--prev { left: -0.5rem; }
.dp-carousel__nav--next { right: -0.5rem; }
.dp-carousel__nav:hover { border-color: var(--dp-accent); color: var(--dp-violet-deep); }

@media (max-width: 600px) {
	.dp-carousel__nav { display: none; }
}

/* Product card ----------------------------------------------------------- */
.dp-pcard {
	flex: 0 0 240px;
	max-width: 240px;
	background: var(--dp-paper);
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dp-pcard:hover {
	border-color: var(--dp-blue);
	box-shadow: 0 8px 24px rgba(10, 37, 64, 0.1);
	transform: translateY(-2px);
}

.dp-pcard__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--dp-surface);
	overflow: hidden;
}

.dp-pcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dp-pcard__body {
	padding: 0.85rem 0.9rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.dp-pcard__name {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.3;
	font-weight: 600;
}

.dp-pcard__name a {
	color: var(--dp-navy);
	text-decoration: none;
}

.dp-pcard__spec {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	color: var(--dp-slate);
	background: var(--dp-surface);
	border: 1px solid var(--dp-line-soft);
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	align-self: flex-start;
}

.dp-pcard__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.dp-pcard__price {
	font-weight: 700;
	color: var(--dp-navy);
	font-size: 0.92rem;
}

.dp-pcard__btn {
	padding: 0.4rem 0.8rem;
	background: var(--dp-blue);
	color: #FFFFFF !important;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--dp-radius-sm);
}

.dp-pcard__btn:hover { background: var(--dp-blue-deep); }

/* =========================================================================
   BLOG / RESEARCH TEASERS
   ========================================================================= */
.dp-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.dp-bcard {
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
	overflow: hidden;
	background: var(--dp-paper);
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-bcard:hover {
	border-color: var(--dp-blue);
	box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

.dp-bcard__media img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.dp-bcard__body {
	padding: 1rem 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.dp-bcard__date {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.7rem;
	color: var(--dp-slate-soft);
}

.dp-bcard__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.3;
}

.dp-bcard__title a {
	color: var(--dp-navy);
	text-decoration: none;
}

.dp-bcard__ex {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--dp-slate);
}

.dp-bcard__more {
	margin-top: auto;
	color: var(--dp-blue);
	font-weight: 600;
	font-size: 0.82rem;
	text-decoration: none;
}

@media (max-width: 780px) {
	.dp-blog__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   REMOVE THEME'S TOP WHITESPACE ON HOME (header meets the hero)
   Desktop only — on mobile the header needs its normal spacing, otherwise the
   eyebrow gets clipped underneath it.
   ========================================================================= */
@media (min-width: 861px) {
	body.dp-dark .site-content,
	body.dp-dark .content-area,
	body.dp-dark .entry-content,
	body.dp-dark .wp-block-post-content,
	body.dp-dark main,
	body.dp-dark .site-main,
	body.dp-dark #primary,
	body.dp-dark .content-wrap,
	body.dp-dark #inner-wrap {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}

	/* All hero bands sit flush under the header, same on every page. */
	.drpeps-store .dp-hero {
		margin-top: 0;
		margin-bottom: 0;
	}
	/* Pages without a hero band (tools, blog) get matching top breathing room. */
	body.dp-dark .dp-tools { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
	.dp-bloghero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
}

/* On mobile, guarantee the eyebrow/pill clears the header on every page. */
@media (max-width: 860px) {
	.drpeps-store .dp-hero { padding-top: 2.75rem; }
	body.dp-dark .dp-tools { padding-top: 2.75rem; }
}

/* Consistent pill → title gap on every page (rely on the eyebrow's own margin). */
.drpeps-store .dp-tools__title,
.drpeps-store .dp-bloghero__title { margin-top: 0; }

/* Remove any line/border under the header (some pages showed a divider). */
body.dp-dark #masthead,
body.dp-dark .site-header,
body.dp-dark .site-main-header-wrap,
body.dp-dark .site-header-row {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* =========================================================================
   HERO ACCENTS — pulsing radar eyebrow, two-tone title, note spacing
   ========================================================================= */
.dp-eyebrow--pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.35rem 0.85rem 0.35rem 0.7rem;
	background: rgba(139, 92, 246, 0.1);
	border: 1px solid rgba(139, 92, 246, 0.4);
	border-radius: 999px;
}

.dp-radar {
	position: relative;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--dp-cyan);
	flex-shrink: 0;
}

.dp-radar::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--dp-cyan);
	animation: dp-radar-pulse 2s ease-out infinite;
}

@keyframes dp-radar-pulse {
	0%   { transform: scale(1);   opacity: 0.7; }
	100% { transform: scale(3.2); opacity: 0; }
}

.dp-hero__accent {
	background: var(--dp-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Even breathing room for the research-use note. */
.dp-hero__note {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   SCROLLING PERKS MARQUEE
   ========================================================================= */
.dp-marquee {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	margin-bottom: 2.5rem;
	background: var(--dp-grad);
	overflow: hidden;
	white-space: nowrap;
}

.drpeps-store.home .dp-home .dp-marquee {
	margin-top: 0;
}

.dp-marquee__track {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.7rem 0;
	animation: dp-marquee-scroll 32s linear infinite;
}

.dp-marquee__item {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.dp-marquee__sep {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.7rem;
}

@keyframes dp-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.dp-marquee__track { animation: none; }
	.dp-radar::before { animation: none; }
}

/* =========================================================================
   TOOLS PAGE — storage guide + CTA
   ========================================================================= */
.dp-guide {
	margin: 1.75rem 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--dp-paper);
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
}

.dp-guide__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.dp-guide__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--dp-navy);
	margin: 0;
}

.dp-guide__tag {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--dp-blue);
}

.dp-guide__grid {
	display: grid;
	gap: 0;
	border: 1px solid var(--dp-line-soft);
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
}

.dp-guide__row {
	display: grid;
	grid-template-columns: 34% 66%;
	border-top: 1px solid var(--dp-line-soft);
}

.dp-guide__row:first-child { border-top: none; }

.dp-guide__k,
.dp-guide__v {
	padding: 0.7rem 0.9rem;
	font-size: 0.85rem;
	line-height: 1.5;
}

.dp-guide__k {
	font-weight: 600;
	color: var(--dp-navy);
	background: var(--dp-surface);
	border-right: 1px solid var(--dp-line-soft);
}

.dp-guide__v { color: var(--dp-slate); }

.dp-guide__note {
	margin: 0.9rem 0 0;
	font-size: 0.74rem;
	color: var(--dp-slate-soft);
	line-height: 1.5;
}

.dp-cta {
	margin: 1.75rem 0 0;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: linear-gradient(180deg, var(--dp-navy) 0%, var(--dp-navy-soft) 100%);
	border-radius: var(--dp-radius);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.dp-cta__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.4rem;
	color: #FFFFFF;
	margin: 0 0 0.35rem;
}

.dp-cta__text {
	margin: 0;
	color: #C4D6E8;
	font-size: 0.9rem;
	max-width: 46ch;
}

.drpeps-store .dp-btn--lg {
	padding: 1rem 1.75rem;
	font-size: 1rem;
}

@media (max-width: 560px) {
	.dp-guide__row { grid-template-columns: 1fr; }
	.dp-guide__k { border-right: none; border-bottom: 1px solid var(--dp-line-soft); }
	.dp-cta { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   ABOUT PAGE — feature cards, narrative, reveal animation
   ========================================================================= */
.dp-hero--about .dp-hero__inner { max-width: 1120px; }

.dp-about__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.dp-about__card {
	padding: 1.4rem 1.25rem;
	background: var(--dp-surface-d);
	border: 1px solid var(--dp-line-d);
	border-radius: var(--dp-radius);
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dp-about__card:hover {
	border-color: var(--dp-accent);
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.dp-about__ico {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.9rem;
	border-radius: 12px;
	color: #C4B5FD;
	background: rgba(139, 92, 246, 0.16);
	animation: dp-float 4s ease-in-out infinite;
}

.dp-about__card:nth-child(2) .dp-about__ico { animation-delay: 0.6s; }
.dp-about__card:nth-child(3) .dp-about__ico { animation-delay: 1.2s; }
.dp-about__card:nth-child(4) .dp-about__ico { animation-delay: 1.8s; }

.dp-about__t {
	margin: 0 0 0.4rem;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--dp-text);
}

.dp-about__d {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--dp-text-soft);
}

.dp-about__story {
	max-width: 760px;
}

.dp-about__story p {
	color: var(--dp-text-soft);
	line-height: 1.7;
	font-size: 0.98rem;
}

@keyframes dp-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-6px); }
}

/* Reveal-on-load animation (staggered via inline animation-delay) */
.dp-reveal {
	opacity: 0;
	transform: translateY(16px);
	animation: dp-reveal-up 0.6s ease forwards;
}

@keyframes dp-reveal-up {
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
	.dp-about__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.dp-about__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.dp-about__ico { animation: none; }
	.dp-reveal { opacity: 1; transform: none; animation: none; }
}

/* About page hero spans full width like the homepage (no rounded cushion). */
.drpeps-store .dp-about .dp-hero--about {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
	margin-top: 0;
}

/* Remove Kadence's boxed page-content cushion (lighter rounded panel) under the
   dark theme so content sits flush like the other pages. */
body.dp-dark .entry-content-wrap {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

/* =========================================================================
   BLOG / RESEARCH LISTING — header, intro, bordered post cards
   ========================================================================= */
.dp-bloghero {
	grid-column: 1 / -1;
	max-width: 820px;
	margin: 0 0 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--dp-line-d);
}

.dp-bloghero__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	font-weight: 700;
	color: var(--dp-text);
	margin: 0.5rem 0 0.75rem;
	letter-spacing: -0.01em;
}

.dp-bloghero__lead {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.65;
	color: var(--dp-text-soft);
	max-width: 68ch;
}

/* Bordered post cards on the blog/archive listing — contrasting navy card. */
body.dp-dark .loop-entry,
body.dp-dark article.entry.loop-entry,
body.dp-dark .loop-entry.content-bg,
body.dp-dark.blog article.entry,
body.dp-dark.archive article.entry,
body.dp-dark.blog .content-bg.loop-entry,
body.dp-dark.archive .content-bg.loop-entry {
	background: var(--dp-surface-d) !important;
	border: 1px solid var(--dp-line-d) !important;
	border-radius: 14px !important;
	padding: 1.6rem !important;
	overflow: hidden;
}
body.dp-dark .loop-entry .entry-title a,
body.dp-dark .loop-entry h2 a,
body.dp-dark article.entry .entry-title a { color: var(--dp-text) !important; }
body.dp-dark .loop-entry .entry-content,
body.dp-dark .loop-entry .entry-summary,
body.dp-dark .loop-entry p,
body.dp-dark article.entry p { color: var(--dp-text-soft); }
body.dp-dark .loop-entry .more-link,
body.dp-dark .loop-entry .read-more,
body.dp-dark article.entry .more-link { color: #C77DFF !important; font-weight: 600; }

/* =========================================================================
   RESEARCH TOOLS — calculators
   ========================================================================= */
.dp-tools {
	max-width: 1120px;
	margin-inline: auto;
}

.dp-tools__head {
	margin-bottom: 2rem;
	max-width: 62ch;
}

/* Two-column layout on desktop: storage guide left, calculators right.
   DOM order is calculators-then-guide so mobile stacks calculators first. */
.dp-tools__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.dp-tools__calcs {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 901px) {
	.dp-tools__cols {
		grid-template-columns: 0.92fr 1.08fr;
		align-items: start;
	}
	.dp-tools__guide { grid-column: 1; grid-row: 1; position: sticky; top: 1.5rem; }
	.dp-tools__calcs { grid-column: 2; grid-row: 1; }
	.dp-tools__calcs .dp-calc { margin: 0; }
	.dp-tools__guide .dp-guide { margin: 0; }
}

.dp-tools__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	font-weight: 700;
	color: var(--dp-navy);
	margin: 0.4rem 0 0.75rem;
	letter-spacing: -0.01em;
}

.dp-tools__head .dp-eyebrow {
	color: var(--dp-blue);
}

.dp-tools__lead {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--dp-slate);
	margin: 0;
	max-width: 62ch;
}

.dp-calc {
	margin: 1.75rem 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--dp-paper);
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius);
}

.dp-calc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.dp-calc__title {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--dp-navy);
	margin: 0;
}

.dp-calc__tag {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--dp-blue);
	white-space: nowrap;
}

.dp-calc__hint {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--dp-slate);
	margin: 0 0 1.25rem;
}

.dp-calc__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.9rem;
}

.dp-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.dp-field__label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--dp-ink);
}

.dp-field__wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
	background: var(--dp-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-field__wrap:focus-within {
	border-color: var(--dp-blue);
	box-shadow: 0 0 0 3px rgba(14, 118, 214, 0.12);
	background: var(--dp-paper);
}

.drpeps-store .dp-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 0.6rem 0.75rem;
	font-size: 0.95rem;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	color: var(--dp-ink);
	outline: none;
	box-shadow: none;
}

.dp-field__unit {
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.78rem;
	color: var(--dp-slate);
	background: var(--dp-surface-2);
	border-left: 1px solid var(--dp-line);
	white-space: nowrap;
}

.dp-calc__out {
	margin-top: 1.25rem;
	border: 1px solid var(--dp-line);
	border-radius: var(--dp-radius-sm);
	overflow: hidden;
}

.dp-out__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1rem;
	border-top: 1px solid var(--dp-line-soft);
}

.dp-out__row:first-child {
	border-top: none;
}

.dp-out__k {
	font-size: 0.82rem;
	color: var(--dp-slate);
}

.dp-out__v {
	font-family: "IBM Plex Mono", ui-monospace, monospace;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--dp-ink);
	text-align: right;
}

.dp-out__row--hero {
	background: var(--dp-navy);
}

.dp-out__row--hero .dp-out__k {
	color: #9CC4E8;
}

.dp-out__row--hero .dp-out__v {
	color: #FFFFFF;
	font-size: 1.05rem;
}

.dp-calc__note {
	margin: 0.9rem 0 0;
	font-size: 0.74rem;
	line-height: 1.5;
	color: var(--dp-slate-soft);
}

@media (max-width: 560px) {
	.dp-calc__grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile: put the calculator title on its own line, tag centered beneath —
   stops "Dosing & cycle planner" wrapping into a squashed 3-line block. */
@media (max-width: 640px) {
	.dp-calc__head {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.4rem;
	}
	.dp-calc__title {
		font-size: 1.15rem;
	}
	.dp-calc__tag {
		white-space: normal;
	}
	.dp-calc__hint {
		text-align: center;
	}
}

/* =========================================================================
   DARK THEME — applied on the homepage and the tools page (body.dp-dark).
   Inverts the light surfaces to dark navy with light text.
   ========================================================================= */
body.dp-dark {
	background: var(--dp-bg) !important;
	color: var(--dp-text);
}

body.dp-dark .wp-site-blocks,
body.dp-dark .site,
body.dp-dark .site-content,
body.dp-dark .content-area,
body.dp-dark .site-main,
body.dp-dark main,
body.dp-dark article,
body.dp-dark .hentry,
body.dp-dark .entry,
body.dp-dark .entry-content,
body.dp-dark .page-content,
body.dp-dark .wp-block-post-content,
body.dp-dark .content-wrap,
body.dp-dark #inner-wrap,
body.dp-dark #primary {
	background: transparent !important;
	background-color: transparent !important;
}

/* Consistent dark header across every page — overrides Kadence's transparent
   header (which is why shop/product looked different to the blog). */
body.dp-dark #masthead,
body.dp-dark #masthead.item-is-fixed,
body.dp-dark .site-header,
body.dp-dark .site-header-wrap,
body.dp-dark .site-main-header-wrap,
body.dp-dark .site-header-row,
body.dp-dark .site-top-header-wrap,
body.dp-dark .site-middle-header-wrap,
body.dp-dark.transparent-header #masthead,
body.dp-dark .transparent-header #masthead,
body.dp-dark.kadence-transparent-header #masthead,
body.dp-dark #masthead .site-header-inner-wrap,
body.dp-dark #main-header {
	background-color: var(--dp-bg-deep) !important;
	background-image: none !important;
}

/* Hide the redundant site-title text next to the logo, everywhere. */
body.dp-dark .site-title,
body.dp-dark .site-header .site-title,
body.dp-dark .site-branding .site-title,
body.dp-dark .header-branding .site-title,
body.dp-dark .site-branding-wrap .site-title {
	display: none !important;
}

/* Header menu — light links on every page (incl. transparent-header shop/blog),
   pink-purple for current page + hover. The #masthead ID beats Kadence's
   transparent-header link colour. */
body.dp-dark #masthead .header-navigation .menu li > a,
body.dp-dark #masthead .primary-menu-container li > a,
body.dp-dark #masthead .main-navigation li > a,
body.dp-dark #masthead.transparent-header .header-navigation .menu li > a,
body.dp-dark .transparent-header #masthead .header-navigation .menu li > a,
body.dp-dark .header-navigation .menu li > a,
body.dp-dark .main-navigation li > a {
	color: #EAF2FB !important;
}
body.dp-dark #masthead .header-navigation .menu li.current-menu-item > a,
body.dp-dark #masthead .header-navigation .menu li.current_page_item > a,
body.dp-dark #masthead .header-navigation .menu li.current-menu-ancestor > a,
body.dp-dark #masthead .header-navigation .menu li > a:hover,
body.dp-dark #masthead .main-navigation li.current-menu-item > a,
body.dp-dark #masthead .main-navigation li > a:hover,
body.dp-dark li.current-menu-item > a,
body.dp-dark li.current_page_item > a,
body.dp-dark .header-navigation .menu li > a:hover {
	color: #C77DFF !important;
}

/* Hide the theme's own page title / header band on the dark pages — the
   hero and the tools header already carry the heading. */
body.dp-dark .wp-block-post-title,
body.dp-dark .entry-title,
body.dp-dark .page-title,
body.dp-dark header.entry-header,
body.dp-dark .wp-block-post-title.has-text-align-center {
	display: none !important;
}

/* Guaranteed dark canvas behind the storefront content, full-bleed, even if a
   theme wrapper still paints a light background. */
body.dp-dark .dp-home,
body.dp-dark .dp-tools {
	position: relative;
	background: var(--dp-bg);
	box-shadow: 0 0 0 100vmax var(--dp-bg);
	clip-path: inset(0 -100vmax);
}

/* Headings + intro text */
body.dp-dark .dp-section__title,
body.dp-dark .dp-tools__title,
body.dp-dark .dp-calc__title,
body.dp-dark .dp-guide__title {
	color: var(--dp-text);
}
body.dp-dark .dp-tools__lead { color: var(--dp-text-soft); }
body.dp-dark .dp-section__head { border-bottom-color: var(--dp-line-d); }
body.dp-dark .dp-section__link { color: #A9B8FF; }
body.dp-dark .dp-eyebrow { color: #C4B5FD; }

/* Product cards */
body.dp-dark .dp-pcard { background: var(--dp-surface-d); border-color: var(--dp-line-d); }
body.dp-dark .dp-pcard:hover { border-color: var(--dp-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
body.dp-dark .dp-pcard__media { background: var(--dp-surface-d2); }
body.dp-dark .dp-pcard__name a { color: var(--dp-text); }
body.dp-dark .dp-pcard__price { color: #FFFFFF; }
body.dp-dark .dp-pcard__spec { background: var(--dp-surface-d2); border-color: var(--dp-line-d); color: var(--dp-text-soft); }

/* Blog cards */
body.dp-dark .dp-bcard { background: var(--dp-surface-d); border-color: var(--dp-line-d); }
body.dp-dark .dp-bcard:hover { border-color: var(--dp-accent); }
body.dp-dark .dp-bcard__title a { color: var(--dp-text); }
body.dp-dark .dp-bcard__ex { color: var(--dp-text-soft); }
body.dp-dark .dp-bcard__date { color: var(--dp-slate-soft); }

/* Category tabs */
body.dp-dark .dp-tab { background: var(--dp-surface-d); border-color: var(--dp-line-d); color: var(--dp-text-soft); }
body.dp-dark .dp-tab:hover { color: #FFFFFF; border-color: var(--dp-accent); }
body.dp-dark .dp-tab.is-active { background: var(--dp-grad); border-color: transparent; color: #FFFFFF; }

/* Carousel arrows */
body.dp-dark .dp-carousel__nav { background: var(--dp-surface-d); border-color: var(--dp-line-d); color: var(--dp-text); }
body.dp-dark .dp-carousel__nav:hover { border-color: var(--dp-accent); color: #FFFFFF; }

/* Calculators */
body.dp-dark .dp-calc,
body.dp-dark .dp-guide { background: var(--dp-surface-d); border-color: var(--dp-line-d); }
body.dp-dark .dp-calc__hint { color: var(--dp-text-soft); }
body.dp-dark .dp-field__label { color: var(--dp-text); }
body.dp-dark .dp-field__wrap { background: var(--dp-surface-d2); border-color: var(--dp-line-d); }
body.dp-dark .dp-field__wrap:focus-within { border-color: var(--dp-accent); box-shadow: 0 0 0 3px rgba(139,92,246,0.25); background: var(--dp-surface-d2); }
body.dp-dark .dp-input { color: var(--dp-text); }
body.dp-dark .dp-input::placeholder { color: var(--dp-slate-soft); }
body.dp-dark .dp-field__unit { background: rgba(255,255,255,0.05); color: var(--dp-text-soft); border-left-color: var(--dp-line-d); }
body.dp-dark .dp-calc__out { border-color: var(--dp-line-d); }
body.dp-dark .dp-out__row { border-top-color: var(--dp-line-d2); }
body.dp-dark .dp-out__k { color: var(--dp-text-soft); }
body.dp-dark .dp-out__v { color: var(--dp-text); }
body.dp-dark .dp-out__row--hero { background: rgba(124,77,224,0.22); }
body.dp-dark .dp-out__row--hero .dp-out__v { color: #FFFFFF; }
body.dp-dark .dp-calc__note,
body.dp-dark .dp-guide__note { color: var(--dp-slate-soft); }

/* Storage guide table */
body.dp-dark .dp-guide__grid { border-color: var(--dp-line-d); }
body.dp-dark .dp-guide__row { border-top-color: var(--dp-line-d2); }
body.dp-dark .dp-guide__k { background: var(--dp-surface-d2); color: var(--dp-text); border-right-color: var(--dp-line-d); }
body.dp-dark .dp-guide__v { color: var(--dp-text-soft); }

/* Compliance band + empty states */
body.dp-dark .dp-band { background: var(--dp-surface-d); border-color: var(--dp-line-d); }
body.dp-dark .dp-band__col p { color: var(--dp-text-soft); }
body.dp-dark .dp-empty { background: var(--dp-surface-d); border-color: var(--dp-line-d); color: var(--dp-text-soft); }

/* =========================================================================
   WOOCOMMERCE — dark theming for shop, product, cart, checkout, account
   ========================================================================= */
body.dp-dark.woocommerce,
body.dp-dark.woocommerce-page,
body.dp-dark .woocommerce { color: var(--dp-text); }

body.dp-dark h1, body.dp-dark h2, body.dp-dark h3, body.dp-dark h4,
body.dp-dark .woocommerce-products-header__title,
body.dp-dark .woocommerce-loop-product__title,
body.dp-dark .product_title { color: var(--dp-text); }

body.dp-dark p, body.dp-dark li, body.dp-dark td,
body.dp-dark .woocommerce-result-count,
body.dp-dark .posted_in { color: var(--dp-text-soft); }
body.dp-dark a { color: #C4B5FD; }

/* Shop archive product cards — full dark card: image flush at top, padded
   content below, centred. Targets standard WooCommerce classes Kadence uses. */
body.dp-dark .woocommerce ul.products li.product,
body.dp-dark.woocommerce ul.products li.product {
	background: var(--dp-surface-d) !important;
	border: 1px solid var(--dp-line-d) !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	padding: 0 0 1.1rem !important;
	text-align: center;
	box-sizing: border-box;
}
body.dp-dark .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
body.dp-dark .woocommerce ul.products li.product > a:first-of-type { display: block; }
body.dp-dark .woocommerce ul.products li.product img {
	width: 100% !important;
	margin: 0 0 0.9rem !important;
	display: block;
	background: #FFFFFF;
	border-radius: 0;
}
body.dp-dark .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.dp-dark .woocommerce ul.products li.product h2,
body.dp-dark .woocommerce ul.products li.product .price,
body.dp-dark .woocommerce ul.products li.product > p,
body.dp-dark .woocommerce ul.products li.product .dp-card-specs {
	padding-left: 1rem;
	padding-right: 1rem;
	margin-left: 0;
	margin-right: 0;
}
body.dp-dark .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.dp-dark .woocommerce ul.products li.product h2 { color: var(--dp-text); font-size: 1rem; }
body.dp-dark .woocommerce ul.products li.product .price,
body.dp-dark .price, body.dp-dark .amount { color: #FFFFFF !important; }
body.dp-dark .price del { color: var(--dp-slate-soft) !important; opacity: 0.7; }
body.dp-dark .woocommerce ul.products li.product .dp-card-specs { justify-content: center; }
body.dp-dark .woocommerce ul.products li.product .button,
body.dp-dark .woocommerce ul.products li.product a.add_to_cart_button {
	display: inline-block;
	margin: 0.85rem 1rem 0;
}

/* Kadence "boxed" product cards default the content area to white — force the
   card AND its inner content wrappers to the dark surface. */
body.dp-dark .woocommerce ul.products li.product,
body.dp-dark ul.products li.product,
body.dp-dark li.product .product-details,
body.dp-dark li.product .content-bg,
body.dp-dark li.product .entry-content-wrap,
body.dp-dark li.product .kadence-woo-product-details,
body.dp-dark li.product .woocommerce-loop-product__link,
body.dp-dark li.product .product-details-inner {
	background-color: #102A45 !important;
	background-image: none !important;
}
/* Keep the product photo's own white area intact (it's the image itself). */
body.dp-dark li.product .product-image,
body.dp-dark li.product .product-image-wrap {
	background-color: transparent !important;
}

/* Buttons → brand gradient */
body.dp-dark .woocommerce a.button,
body.dp-dark .woocommerce button.button,
body.dp-dark .woocommerce input.button,
body.dp-dark .woocommerce #respond input#submit,
body.dp-dark .woocommerce a.button.alt,
body.dp-dark .woocommerce button.button.alt,
body.dp-dark .wc-block-components-button,
body.dp-dark .wp-block-button__link {
	background: var(--dp-grad) !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: var(--dp-radius-sm) !important;
	box-shadow: var(--dp-glow);
}
body.dp-dark .woocommerce a.button:hover,
body.dp-dark .woocommerce button.button:hover { filter: brightness(1.08); }

/* Sale flash */
body.dp-dark .woocommerce span.onsale,
body.dp-dark .wc-block-components-product-sale-badge {
	background: var(--dp-violet-deep); color: #FFFFFF;
}

/* Single product */
body.dp-dark .woocommerce div.product .product_title,
body.dp-dark .woocommerce div.product p.price,
body.dp-dark .woocommerce div.product span.price { color: #FFFFFF; }
body.dp-dark .woocommerce-tabs .panel { color: var(--dp-text-soft); }
body.dp-dark .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--dp-surface-d); }
body.dp-dark .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--dp-text); }

/* Form inputs (cart, checkout, account, reviews) */
body.dp-dark .woocommerce form .form-row input.input-text,
body.dp-dark .woocommerce form .form-row textarea,
body.dp-dark .woocommerce .quantity input,
body.dp-dark .woocommerce table.cart input,
body.dp-dark .woocommerce-checkout input[type="text"],
body.dp-dark .woocommerce-checkout input[type="email"],
body.dp-dark .woocommerce-checkout input[type="tel"],
body.dp-dark .woocommerce-checkout input[type="password"],
body.dp-dark .woocommerce-checkout textarea,
body.dp-dark .select2-container--default .select2-selection--single,
body.dp-dark .woocommerce select {
	background: var(--dp-surface-d2) !important;
	border: 1px solid var(--dp-line-d) !important;
	color: var(--dp-text) !important;
}
body.dp-dark input::placeholder, body.dp-dark textarea::placeholder { color: var(--dp-slate-soft); }

/* Tables + notices */
body.dp-dark .woocommerce table.shop_table,
body.dp-dark .woocommerce table.shop_table th,
body.dp-dark .woocommerce table.shop_table td {
	background: var(--dp-surface-d);
	border-color: var(--dp-line-d) !important;
	color: var(--dp-text);
}
body.dp-dark .cart_totals,
body.dp-dark .woocommerce-checkout #order_review,
body.dp-dark .woocommerce-info,
body.dp-dark .woocommerce-message,
body.dp-dark .wc-block-components-notice-banner {
	background: var(--dp-surface-d) !important;
	border-color: var(--dp-line-d) !important;
	color: var(--dp-text) !important;
}

/* Account nav + breadcrumb */
body.dp-dark .woocommerce-MyAccount-navigation ul li {
	background: var(--dp-surface-d); border: 1px solid var(--dp-line-d);
}
body.dp-dark .woocommerce-MyAccount-navigation ul li a { color: var(--dp-text); }
body.dp-dark .woocommerce-breadcrumb { color: var(--dp-text-soft); }
body.dp-dark .woocommerce-breadcrumb a { color: #C4B5FD; }

/* Keep the age gate readable on its white panel under the dark theme
   (the site-wide dark text rules must not bleed into the modal). */
body.dp-dark .dp-gate__panel { color: var(--dp-ink); }
body.dp-dark .dp-gate__title { color: var(--dp-navy); }
body.dp-dark .dp-gate__lead { color: var(--dp-slate); }
body.dp-dark .dp-gate__ask,
body.dp-dark .dp-gate__check { color: var(--dp-ink); }
body.dp-dark .dp-gate__panel a,
body.dp-dark .dp-gate__leave { color: var(--dp-slate); }

/* =========================================================================
   HIDE DEFAULT THEME FOOTER CREDIT
   (The tidiest way is to edit it in the theme's footer settings so you can
   keep your own copyright line — this CSS is a fallback that removes it.)
   ========================================================================= */
.site-footer .footer-html,
.site-bottom-footer-inner-wrap .footer-html,
.site-info .footer-html,
.site-footer .site-info,
.site-footer a[href*="kadencewp.com"] {
	display: none !important;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 600px) {
	.dp-specrow {
		grid-template-columns: 1fr;
	}
	.dp-specrow dt {
		border-right: none;
		border-bottom: 1px solid var(--dp-line-soft);
	}
	.dp-hero__meta {
		gap: 0.4rem;
	}
}

/* =========================================================================
   MOTION / ACCESSIBILITY
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.drpeps-store .dp-btn {
		transition: none;
	}
	.drpeps-store .dp-btn:hover {
		transform: none;
	}
}

.drpeps-store a:focus-visible,
.drpeps-store button:focus-visible,
.drpeps-store input:focus-visible {
	outline: 2px solid var(--dp-blue);
	outline-offset: 2px;
}
