/* Global reset + layout that used to live in every snippet's body:has() hack.
   This theme owns the whole page, so it's set once, here, instead. */

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

/* Smooth page-to-page navigation instead of a hard white flash. Every nav
   on this site is a real browser navigation (no SPA router), so the two
   things that actually help are:
   1. Native cross-document View Transitions (Chromium today, other engines
      shipping it too) — the browser snapshots the outgoing page and
      crossfades to the incoming one instead of showing a blank frame in
      between. Pure CSS opt-in, silently ignored where unsupported.
   2. A quick fade-in on the incoming page itself, for every browser
      (including ones without view-transition support) so content settles
      in instead of popping in the instant it's parsed. */
@view-transition {
	navigation: auto;
}

/* html's own background paints immediately once this stylesheet loads —
   deliberately NOT touching html's opacity, so that always shows straight
   away instead of a blank/white frame. Only body (the content on top of
   that already-correct background) fades in, so the very brief transition
   is "our own background color" → "content", never "white" → "content". */
html, body {
	margin: 0;
	padding: 0;
	background: var(--dma-bg);
	color: var(--dma-text);
	font-family: var(--dma-font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body {
	animation: dmaPageFadeIn 0.22s ease both;
}
@keyframes dmaPageFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	body { animation: none; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.dma-container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---- Site header (new — see docs/STYLEGUIDE.md) ---- */
.dma-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--dma-header-height);
	display: flex;
	align-items: center;
	background: var(--dma-header-bg);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--dma-border);
}
.dma-site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.dma-logo {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--dma-heading);
	text-decoration: none;
	white-space: nowrap;
}
.dma-logo img { height: 28px; width: auto; display: block; }
/* Inline SVG logo (inc/site-logo.php): black lettering is drawn in
   currentColor, so it is white on the dark theme and dark on the light one. */
.dma-logo a { color: inherit; display: block; }
.dma-logo-svg { height: 28px; width: auto; display: block; overflow: visible; }
@media (max-width: 480px) { .dma-logo-svg { height: 24px; } }

.dma-nav-primary { display: flex; align-items: center; gap: 4px; }
.dma-nav-primary ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.dma-nav-primary a {
	display: inline-block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: var(--dma-text-muted);
	transition: color 0.2s ease;
	position: relative;
}
.dma-nav-primary a:hover { color: var(--dma-heading); }
/* Minimal red "drip" underline on hover — kept subtle, no motion elsewhere in the header */
.dma-nav-primary a::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--dma-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.dma-nav-primary a:hover::after { transform: scaleX(1); }

/* Grouped "More" dropdown — nests the secondary nav items (see
   cyberammo_bootstrap_menu_reorganize()) under one top-level trigger
   instead of a wall of 10 links. .menu-item-has-children / .sub-menu
   are WordPress's own wp_nav_menu() output classes, not custom ones. */
.dma-nav-primary li.menu-item-has-children { position: relative; }
.dma-nav-primary li.menu-item-has-children > a { display: inline-flex; align-items: center; gap: 5px; }
/* Arrow goes on ::after (renders after the "More" text, i.e. on the right).
   Every property the generic drip-underline rule above sets on a::after
   (position/inset/background/transform) is re-declared here too — same
   pseudo-element, so anything left unset would otherwise leak in from
   that rule rather than being "off" by default.

   Drawn as a small background-image chevron (same data-URI-SVG technique
   used for the select-dropdown arrows elsewhere in this theme) instead of
   the old two-sided-border trick: a border-drawn corner isn't visually
   centered in its own box (the ink sits toward the bordered corner), which
   is what made the previous arrow look off-center next to "More" and
   visibly drift when it rotated on hover. An SVG chevron is symmetric and
   centered in a fixed-size box via background-position, so rotating it in
   place (default transform-origin: center, box size unchanged) only
   changes its angle — nothing shifts. */
.dma-nav-primary li.menu-item-has-children > a::after {
	content: '';
	position: static;
	inset: auto;
	display: inline-block;
	width: 8px; height: 8px;
	background-color: transparent;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%238a8a94'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px 5px;
	border: none;
	margin: 0;
	transform: rotate(0deg);
	transform-origin: center;
	transition: transform 0.2s ease;
}
.dma-nav-primary li.menu-item-has-children.is-open > a::after,
.dma-nav-primary li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }
.dma-nav-primary .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	/* Flush against the trigger (no gap): a floating panel with a visual
	   gap looked nicer but broke hover — moving the mouse from the link
	   down into the panel crossed a strip that belonged to neither
	   element, so :hover dropped and the panel closed before the cursor
	   arrived. Touching the trigger removes that dead zone entirely. */
	position: absolute; top: 100%; left: 50%;
	transform: translateX(-50%) translateY(-6px);
	background: var(--dma-surface); border: 1px solid var(--dma-border-hover); border-radius: 10px;
	min-width: 190px; display: flex; flex-direction: column; gap: 2px;
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	box-shadow: 0 16px 32px rgba(0,0,0,.4);
	z-index: 60;
}
.dma-nav-primary li.menu-item-has-children:hover > .sub-menu,
.dma-nav-primary li.menu-item-has-children.is-open > .sub-menu {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dma-nav-primary .sub-menu a { display: block; padding: 9px 12px; font-size: 13px; border-radius: 6px; }
.dma-nav-primary .sub-menu a::after { display: none; }
.dma-nav-primary .sub-menu a:hover { background: var(--dma-hover-tint); color: var(--dma-heading); }

/* Cart icon bump — plays once when an item is added via AJAX */
@keyframes dmaCartBump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 60% { transform: scale(0.94); } 100% { transform: scale(1); } }
.dma-cart-link.dma-cart-bump { animation: dmaCartBump 0.4s ease; }
.dma-cart-link.dma-cart-bump .dma-cart-count { animation: dmaCartBump 0.4s ease; }

.dma-header-actions { display: flex; align-items: center; gap: 16px; }

/* Dark/light theme toggle */
.dma-theme-toggle {
	background: none; border: 1px solid var(--dma-border); border-radius: 999px;
	width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
	color: var(--dma-text-muted); cursor: pointer; padding: 0; transition: color 0.2s ease, border-color 0.2s ease;
}
.dma-theme-toggle:hover { color: var(--dma-accent); border-color: var(--dma-border-hover); }
.dma-theme-toggle svg { width: 16px; height: 16px; }
.dma-theme-icon-sun { display: none; }
[data-theme="light"] .dma-theme-icon-moon { display: none; }
[data-theme="light"] .dma-theme-icon-sun { display: block; }
.dma-cart-link { position: relative; color: var(--dma-text); text-decoration: none; display: flex; align-items: center; }
.dma-cart-link svg { width: 20px; height: 20px; }

/* Account / login link — icon always shown, label alongside it on wider
   screens (collapses to icon-only at the same breakpoint the primary nav
   collapses at, to keep the header compact on mobile). */
.dma-account-link { display: flex; align-items: center; gap: 6px; color: var(--dma-text); text-decoration: none; transition: color 0.2s ease; }
.dma-account-link:hover { color: var(--dma-accent); }
.dma-account-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.dma-account-link-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 820px) { .dma-account-link-label { display: none; } }

/* Login dropdown (logged-out visitors, Discord login on): same popover
   style as the header search. */
.dma-account-wrap { position: relative; display: flex; align-items: center; }
.dma-account-toggle { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.dma-account-wrap.is-open .dma-account-toggle { color: var(--dma-accent); }
.dma-account-menu {
	position: absolute; top: calc(100% + 14px); right: -8px; z-index: 50;
	width: 260px; max-width: calc(100vw - 32px); padding: 16px;
	background: var(--dma-surface); border: 1px solid var(--dma-border-hover); border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0,0,0,.4);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dma-account-wrap.is-open .dma-account-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.dma-account-menu-title { margin: 0 0 4px; color: var(--dma-heading); font-size: 14px; font-weight: 700; }
.dma-account-menu-text { margin: 0 0 14px; color: var(--dma-text-muted); font-size: 12px; line-height: 1.5; }
.dma-account-discord-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	background: #5865F2; color: #ffffff !important; font-size: 13px; font-weight: 700;
	padding: 11px 14px; border-radius: 8px; text-decoration: none !important; transition: background .15s ease;
}
.dma-account-discord-btn:hover, .dma-account-discord-btn:focus-visible { background: #4752c4; }
.dma-account-discord-btn svg { flex-shrink: 0; }
@media (max-width: 700px) { .dma-account-menu { position: fixed; top: calc(var(--dma-header-height) + 6px); left: 16px; right: 16px; width: auto; max-width: none; } }

/* Cart preview dropdown (header basket). Contents = WooCommerce's mini
   cart, loaded when it opens. */
.dma-cart-wrap { position: relative; display: flex; align-items: center; }
/* Phones: the header row was ~20px wider than a 390px screen, so the cart badge poked out and the page scrolled sideways */
@media (max-width: 480px) {
	.dma-site-header-inner { padding: 0 16px; gap: 12px; }
	.dma-header-actions { gap: 12px; }
}
.dma-cart-wrap.is-open .dma-cart-link { color: var(--dma-accent); }
.dma-mini-cart {
	position: absolute; top: calc(100% + 14px); right: -8px; z-index: 50;
	width: 330px; max-width: calc(100vw - 32px); padding: 14px 16px 16px;
	background: var(--dma-surface); border: 1px solid var(--dma-border-hover); border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0,0,0,.4);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* Invisible bridge over the gap, so moving the mouse from the basket to the dropdown keeps it open */
.dma-mini-cart::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dma-cart-wrap.is-open .dma-mini-cart { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.dma-mini-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--dma-heading); font-size: 14px; font-weight: 700; }
.dma-mini-cart-close { display: none; background: none; border: none; color: var(--dma-text-muted); font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
.dma-mini-cart-close:hover { color: var(--dma-accent); }
.dma-cart-wrap.is-pinned .dma-mini-cart-close { display: block; }
.dma-mini-cart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.dma-mini-cart .woocommerce-mini-cart-item { position: relative; list-style: none; margin: 0; padding: 12px 28px 12px 60px; min-height: 74px; box-sizing: border-box; border-bottom: 1px solid var(--dma-border); }
.dma-mini-cart .woocommerce-mini-cart-item:last-child { border-bottom: none; }
.dma-mini-cart .woocommerce-mini-cart-item.is-removing { opacity: .4; pointer-events: none; }
.dma-mini-cart .woocommerce-mini-cart-item > a:not(.remove) { display: block; padding-top: 3px; color: var(--dma-heading); font-size: 13px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.dma-mini-cart .woocommerce-mini-cart-item > a:not(.remove):hover { color: var(--dma-accent); }
.dma-mini-cart .woocommerce-mini-cart-item img {
	position: absolute; left: 0; top: 12px; width: 48px !important; height: 48px !important; float: none !important; margin: 0 !important;
	object-fit: contain; background: var(--dma-image-bg); border: 1px solid var(--dma-border); border-radius: 6px;
}
.dma-mini-cart .woocommerce-mini-cart-item .quantity { display: block; margin: 4px 0 0; color: var(--dma-text-muted); font-size: 12px; }
.dma-mini-cart .woocommerce-mini-cart-item .variation { margin: 4px 0 0; color: var(--dma-text-muted); font-size: 11px; }
.dma-mini-cart .woocommerce-mini-cart-item .variation dt,
.dma-mini-cart .woocommerce-mini-cart-item .variation dd,
.dma-mini-cart .woocommerce-mini-cart-item .variation p { display: inline; margin: 0; }
.dma-mini-cart a.remove {
	position: absolute; top: 10px; right: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; color: var(--dma-text-muted) !important; background: transparent; font-size: 17px; line-height: 1; text-decoration: none;
}
.dma-mini-cart a.remove:hover { color: var(--dma-accent) !important; background: var(--dma-accent-dim); }
.dma-mini-cart .woocommerce-mini-cart__total { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 12px; padding-top: 10px; border-top: 1px solid var(--dma-border); color: var(--dma-text); font-size: 13px; }
.dma-mini-cart .woocommerce-mini-cart__total strong { font-weight: 600; }
.dma-mini-cart .woocommerce-mini-cart__total .amount { color: var(--dma-heading); font-size: 15px; font-weight: 700; }
.dma-mini-cart .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.dma-mini-cart .woocommerce-mini-cart__buttons a {
	display: flex; align-items: center; justify-content: center; margin: 0 !important; padding: 10px 12px; border-radius: 8px;
	border: 1px solid var(--dma-border-hover); background: transparent; color: var(--dma-heading) !important;
	font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dma-mini-cart .woocommerce-mini-cart__buttons a:not(.checkout):hover { border-color: var(--dma-accent); color: var(--dma-accent) !important; }
.dma-mini-cart .woocommerce-mini-cart__buttons a.checkout { background: var(--dma-accent); border-color: var(--dma-accent); color: #ffffff !important; }
.dma-mini-cart .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--dma-accent-hover); border-color: var(--dma-accent-hover); }
.dma-mini-cart .woocommerce-mini-cart__empty-message,
.dma-mini-cart .dma-mini-cart-status { margin: 0; padding: 14px 0 6px; color: var(--dma-text-muted); font-size: 13px; text-align: center; }
.dma-mini-cart .dma-mini-cart-status a { color: var(--dma-accent); }
/* Themed empty state (inc/woo-helpers.php) replaces WooCommerce's bare "No products in the basket." line */
.dma-mini-cart .widget_shopping_cart_content:has(.dma-mini-cart-empty) .woocommerce-mini-cart__empty-message { display: none; }
.dma-mini-cart-empty { padding: 14px 4px 2px; text-align: center; }
.dma-mini-cart-empty-icon { width: 44px; height: 44px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--dma-accent); background: var(--dma-accent-dim); }
.dma-mini-cart-empty-icon svg { width: 20px; height: 20px; }
.dma-mini-cart .dma-mini-cart-empty-title { margin: 0 0 4px; color: var(--dma-heading); font-size: 15px; font-weight: 700; }
.dma-mini-cart .dma-mini-cart-empty-text { margin: 0 0 16px; color: var(--dma-text-muted); font-size: 13px; line-height: 1.5; }
.dma-mini-cart .dma-mini-cart-empty-btn { display: flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--dma-accent); background: var(--dma-accent); color: #ffffff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background .15s ease, border-color .15s ease; }
.dma-mini-cart .dma-mini-cart-empty-btn:hover { background: var(--dma-accent-hover); border-color: var(--dma-accent-hover); }
@media (max-width: 700px) {
	.dma-mini-cart { position: fixed; top: calc(var(--dma-header-height) + 6px); left: 16px; right: 16px; width: auto; max-width: none; }
	.dma-mini-cart::before { display: none; }
}

/* "Empty basket" in the cart preview */
.dma-mini-cart .dma-mini-cart-clear { margin-top: 10px; text-align: center; }
.dma-mini-cart .dma-mini-cart-clear-btn { background: none; border: none; padding: 6px 8px; color: var(--dma-text-muted); font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dma-mini-cart .dma-mini-cart-clear-btn:hover { color: var(--dma-accent); }
.dma-mini-cart .dma-mini-cart-clear-btn.is-confirming { color: var(--dma-accent); text-decoration: none; }
.dma-mini-cart .dma-mini-cart-clear-btn:disabled { opacity: .6; cursor: wait; }

/* Header search: sits in the middle, right after the menu ("More"). On
   phones the menu folds into the Menu button and the search moves next to
   the icons on the right. */
.dma-nav-center { display: flex; align-items: center; gap: 6px; }
.dma-nav-center .dma-search-form { right: auto; left: -8px; }
@media (max-width: 820px) {
	.dma-nav-center { display: contents; }
	.dma-nav-center .dma-search-wrap { margin-left: auto; margin-right: 4px; }
	.dma-nav-center .dma-search-form { left: auto; right: -60px; }
}
.dma-search-wrap { position: relative; display: flex; align-items: center; }
.dma-search-toggle { background: none; border: none; color: var(--dma-text); cursor: pointer; display: flex; align-items: center; padding: 4px; }
.dma-search-toggle svg { width: 20px; height: 20px; }
.dma-search-toggle:hover { color: var(--dma-accent); }
.dma-search-form {
	position: absolute; top: calc(100% + 14px); right: -8px; display: flex; align-items: center;
	background: var(--dma-surface); border: 1px solid var(--dma-border-hover); border-radius: 8px;
	padding: 4px; width: 280px; max-width: calc(100vw - 32px);
	opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease;
	box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.dma-search-wrap.is-open .dma-search-form { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dma-search-form input[type="search"] {
	flex: 1; background: transparent; border: none; outline: none; color: var(--dma-heading); font-size: 13px; padding: 8px 10px; font-family: var(--dma-font);
}
.dma-search-form input[type="search"]::placeholder { color: var(--dma-text-muted); }
.dma-search-form button[type="submit"] { background: none; border: none; color: var(--dma-text-muted); cursor: pointer; display: flex; align-items: center; padding: 6px; }
.dma-search-form button[type="submit"]:hover { color: var(--dma-accent); }
.dma-search-form button[type="submit"] svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .dma-search-form { right: -60px; } }
.dma-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--dma-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	padding: 2px 5px;
	border-radius: 999px;
	min-width: 14px;
	text-align: center;
}

.dma-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--dma-border);
	color: var(--dma-heading);
	padding: 6px 10px;
	cursor: pointer;
}

@media (max-width: 820px) {
	.dma-nav-primary { display: none; }
	.dma-nav-toggle { display: inline-flex; }
	.dma-nav-primary.is-open {
		display: flex;
		position: absolute;
		top: var(--dma-header-height);
		left: 0;
		right: 0;
		background: var(--dma-bg);
		border-bottom: 1px solid var(--dma-border);
		flex-direction: column;
		padding: 12px;
	}
	.dma-nav-primary.is-open ul { flex-direction: column; width: 100%; }

	/* On the slide-down mobile menu there's no hover, so the dropdown
	   becomes a plain click-to-expand accordion nested in the flow
	   instead of a floating panel. */
	.dma-nav-primary .sub-menu {
		position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
		box-shadow: none; border: none; border-left: 2px solid var(--dma-border); background: transparent;
		border-radius: 0; padding: 4px 0 4px 16px; margin-top: 2px;
		display: none;
	}
	.dma-nav-primary li.menu-item-has-children.is-open > .sub-menu { display: flex; }
	/* The desktop "open" rule (more specific) also slides the panel left by
	   half its width; on the accordion that pushed the items off-screen. */
	.dma-nav-primary li.menu-item-has-children:hover > .sub-menu,
	.dma-nav-primary li.menu-item-has-children.is-open > .sub-menu { transform: none; }
}

/* ---- Site footer (new) ---- */
.dma-site-footer {
	border-top: 1px solid var(--dma-border);
	padding: 48px 24px 32px;
	margin-top: 64px;
}
.dma-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	align-items: center;
}
.dma-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.dma-footer-nav a { color: var(--dma-text-muted); text-decoration: none; font-size: 13px; }
.dma-footer-nav a:hover { color: var(--dma-heading); }
.dma-footer-copy { color: var(--dma-text-muted); font-size: 12px; }
.dma-footer-discord {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 10px 18px;
	background: var(--dma-accent);
	color: #fff;
	text-decoration: none;
}
.dma-footer-discord:hover { background: var(--dma-accent-hover); }
.dma-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; padding-top: 16px; border-top: 1px solid var(--dma-border); margin-top: 4px; }
.dma-footer-legal a { color: var(--dma-text-muted); text-decoration: none; font-size: 12px; }
.dma-footer-legal a:hover { color: var(--dma-heading); }
.dma-footer-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dma-footer-bottom .dma-footer-copy { margin: 0; }
.dma-footer-epvp { display: inline-flex; flex-shrink: 0; opacity: 0.85; transition: opacity 0.2s ease, transform 0.2s ease; }
.dma-footer-epvp:hover { opacity: 1; transform: translateY(-1px); }
.dma-footer-epvp img { display: block; width: 44px; height: auto; }

/* ---- Promotions / giveaway popup (inc/promo-popup.php) ---- */
.dma-promo-overlay-9f21c {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(6, 6, 8, 0.72);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	animation: dmaPromoFadeIn-9f21c 0.25s ease;
}
@keyframes dmaPromoFadeIn-9f21c { from { opacity: 0; } to { opacity: 1; } }
.dma-promo-modal-9f21c {
	position: relative;
	max-width: 420px; width: 100%;
	background: var(--dma-surface);
	border: 1px solid var(--dma-border);
	border-top: 3px solid var(--dma-accent);
	padding: 36px 32px 32px;
	text-align: center;
}
.dma-promo-close-9f21c {
	position: absolute; top: 10px; right: 12px;
	background: none; border: none; color: var(--dma-text-muted);
	font-size: 22px; line-height: 1; cursor: pointer; padding: 6px;
}
.dma-promo-close-9f21c:hover { color: var(--dma-heading); }
.dma-promo-eyebrow-9f21c { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dma-accent); margin-bottom: 10px; }
.dma-promo-title-9f21c { font-size: 22px; font-weight: 800; color: var(--dma-heading); margin-bottom: 12px; }
.dma-promo-body-9f21c { font-size: 14px; color: var(--dma-text-muted); line-height: 1.6; margin-bottom: 24px; }
.dma-promo-cta-9f21c {
	display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
	padding: 12px 28px; background: var(--dma-accent); color: #fff; text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.dma-promo-cta-9f21c:hover { background: var(--dma-accent-hover); box-shadow: 0 0 20px var(--dma-accent-glow); }

/* ---- Page loading overlay ----
   Elementor Pro's page transitions still run on this site and paint a plain
   white (#fff) screen with a Font Awesome spinner while the next page loads.
   Match it to the chosen theme instead: theme background, accent ring. */
e-page-transition { background: var(--dma-bg, #0a0a0c) !important; }
e-page-transition .e-page-transition--preloader {
	width: 34px; height: 34px; border-radius: 50%;
	border: 3px solid var(--dma-border-hover, #333339); border-top-color: var(--dma-accent, #EF524E);
	font-size: 0; color: transparent;
}
e-page-transition i.e-page-transition--preloader::before { content: none !important; }
e-page-transition:not(.e-page-transition--entered) .e-page-transition--preloader { animation: dmaPreloaderSpin 0.8s linear infinite; }
@keyframes dmaPreloaderSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	e-page-transition:not(.e-page-transition--entered) .e-page-transition--preloader { animation-duration: 2.4s; }
}


/* Visually hidden, still read by screen readers and search engines (0.30.0) */
.dma-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* WooCommerce's own ".woocommerce ul.product_list_widget li { padding: 4px 0 }"
   is more specific than the rule above and pushed the name and "1 × price"
   under the photo. Same values, stronger selector. */
.dma-mini-cart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item { padding: 12px 28px 12px 60px !important; margin: 0 !important; min-height: 74px; }
.dma-mini-cart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item > a:not(.remove) { padding-top: 3px; }

/* Language switcher (inc/i18n.php). Desktop: globe button + dropdown in the
   header. Phones: a row of languages at the bottom of the menu dropdown. */
.dma-lang-wrap { position: relative; display: flex; align-items: center; }
.dma-lang-toggle {
	height: 32px; padding: 0 9px 0 8px; display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 1px solid var(--dma-border); border-radius: 999px;
	color: var(--dma-text-muted); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.dma-lang-toggle:hover, .dma-lang-wrap.is-open .dma-lang-toggle { color: var(--dma-heading); border-color: var(--dma-border-hover); }
.dma-lang-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.dma-lang-toggle .dma-lang-caret { width: 12px; height: 12px; opacity: .7; transition: transform .2s ease; }
.dma-lang-wrap.is-open .dma-lang-caret { transform: rotate(180deg); }
.dma-lang-menu {
	position: absolute; top: calc(100% + 14px); right: -8px; z-index: 50;
	list-style: none; margin: 0; padding: 5px; width: max-content; min-width: 150px;
	background: var(--dma-surface); border: 1px solid var(--dma-border-hover); border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0,0,0,.4);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dma-lang-wrap.is-open .dma-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.dma-lang-menu li { margin: 0; }
.dma-lang-option {
	display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 7px;
	color: var(--dma-text); text-decoration: none; font-size: 13px; font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.dma-lang-option:hover, .dma-lang-option:focus-visible { background: var(--dma-surface-hover, rgba(255,255,255,.05)); color: var(--dma-heading); }
.dma-lang-option-code {
	min-width: 30px; padding: 2px 0; text-align: center; border-radius: 5px;
	background: var(--dma-bg); border: 1px solid var(--dma-border);
	font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--dma-text-muted);
}
.dma-lang-option-name { flex: 1; }
.dma-lang-option.is-current { color: var(--dma-accent); }
.dma-lang-option.is-current .dma-lang-option-code { color: var(--dma-accent); border-color: var(--dma-accent); background: var(--dma-accent-dim); }

.dma-lang-mobile { display: none; }
@media (max-width: 820px) {
	.dma-lang-wrap { display: none; }
	.dma-nav-primary.is-open .dma-lang-mobile {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
		width: 100%; margin-top: 10px; padding: 12px 4px 4px; border-top: 1px solid var(--dma-border);
	}
	.dma-lang-mobile-label { display: inline-flex; align-items: center; gap: 8px; color: var(--dma-text-muted); font-size: 13px; font-weight: 600; }
	.dma-lang-mobile-label svg { width: 16px; height: 16px; }
	.dma-lang-mobile-list { display: flex; gap: 6px; flex-wrap: wrap; }
	.dma-lang-pill {
		min-width: 42px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
		border: 1px solid var(--dma-border); border-radius: 8px; background: var(--dma-surface);
		color: var(--dma-text); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .04em;
	}
	.dma-lang-pill.is-current { color: var(--dma-accent); border-color: var(--dma-accent); background: var(--dma-accent-dim); }
}

/* Chinese pages: a font stack with CJK glyphs */
html[lang^="zh"] body { font-family: var(--dma-font), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
