/* =========================================================================
   DragonFitt — design system
   Neo-Ancient: Obsidian base, Neon Crimson fire, Metallic Gold, Liquid Silver.
   ========================================================================= */

:root {
	/* Brand constants — identical in both themes */
	--obsidian: #0B0C10;
	--crimson: #FF003C;
	--crimson-deep: #d10031;
	--gold: #C5A059;
	--gold-light: #f2dfb3;
	--gold-deep: #8f6b2b;
	--silver: #C0C0C0;
	--white-soft: #f7f7f7;

	--light-bg: #f5f1e8;
	--light-bg-2: #efe8db;
	--light-text: #181818;
	--light-text-soft: #4b4b4b;

	--shadow-red: 0 0 12px rgba(255, 0, 60, .30), 0 0 28px rgba(255, 0, 60, .15);
	--shadow-gold: 0 0 14px rgba(197, 160, 89, .18);
	--crimson-glow: 0 0 10px rgba(255, 0, 60, .35), 0 0 30px rgba(255, 0, 60, .18);
	--gold-glow: 0 0 12px rgba(197, 160, 89, .18);

	/* Semantic tokens — these flip with the theme */
	--df-bg: #0B0C10;
	--df-bg-2: #101218;
	--df-bg-3: #15171e;
	--df-panel: linear-gradient(180deg, rgba(24, 27, 34, .94), rgba(11, 12, 16, .98));
	--df-panel-flat: #14161c;
	--df-border: rgba(197, 160, 89, .22);
	--df-border-soft: rgba(192, 192, 192, .12);
	--df-text: #C0C0C0;
	--df-text-strong: #f7f7f7;
	--df-heading: #f7f7f7;
	--df-muted: rgba(192, 192, 192, .68);
	--df-surface: rgba(255, 255, 255, .03);
	--df-surface-2: rgba(255, 255, 255, .05);
	--df-texture: .05;
	--df-shadow: 0 26px 60px rgba(0, 0, 0, .55);

	--df-max: 1240px;
	--df-gutter: 24px;
	--df-radius: 4px;

	--font-display: 'Cinzel', 'Times New Roman', serif;
	--font-tech: 'Orbitron', 'Segoe UI', sans-serif;
	--font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
}

.dragonfitt-light-theme {
	--df-bg: #f5f1e8;
	--df-bg-2: #efe8db;
	--df-bg-3: #e7dfd0;
	--df-panel: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 243, 234, .99));
	--df-panel-flat: #fffdf8;
	--df-border: rgba(0, 0, 0, .12);
	--df-border-soft: rgba(0, 0, 0, .09);
	--df-text: #3b3b3b;
	--df-text-strong: #121212;
	--df-heading: #121212;
	--df-muted: rgba(24, 24, 24, .62);
	--df-surface: rgba(0, 0, 0, .035);
	--df-surface-2: rgba(0, 0, 0, .06);
	--df-texture: .035;
	--df-shadow: 0 24px 50px rgba(60, 45, 20, .16);
	--gold: #8a6a2f;
	--gold-light: #b08c48;
}

/* -------------------------------------------------------------------------
   Reset-ish
   ---------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Neutralise Astra's default button skin (incl. its hover/focus background)
   so every bare <button> in this theme starts transparent/borderless and only
   takes on colour from its own df- class. Without this, Astra's own
   button:hover rule can out-specificity a component's base background and
   paint an unstyled blue box on hover. */
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

button:hover,
button:focus,
button:focus-visible,
button:active {
	background: none;
	box-shadow: none;
}

html,
body.df-body {
	background: var(--df-bg);
}

body.df-body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--df-text);
	line-height: 1.75;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color .35s ease, color .35s ease;
}

body.df-body.df-locked { overflow: hidden; }

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

a { color: inherit; }

.df-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------- */

.df-container {
	width: 100%;
	max-width: var(--df-max);
	margin-inline: auto;
	padding-inline: var(--df-gutter);
}

.df-section {
	position: relative;
	padding: clamp(64px, 8vw, 120px) 0;
	overflow: hidden;
}

.df-section-alt { background: var(--df-bg-2); }

/* Hammered-metal / parchment texture over dark sections. */
.df-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: var(--df-texture);
	background-image:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 4px),
		radial-gradient(circle at 20% 20%, rgba(197, 160, 89, .8), transparent 45%),
		radial-gradient(circle at 82% 70%, rgba(255, 0, 60, .55), transparent 42%);
	mix-blend-mode: overlay;
}

.df-grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.df-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.df-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.df-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991px) {
	.df-grid-3, .df-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.df-grid-2, .df-grid-3, .df-grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------------
   Typography
   ---------------------------------------------------------------------- */

.df-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-tech);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 18px;
}

.df-eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--crimson));
}

.df-title {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: .01em;
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--df-heading);
	font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.df-title-gold {
	background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.df-sub {
	font-size: clamp(.98rem, 1.2vw, 1.08rem);
	color: var(--df-text);
	max-width: 62ch;
	margin: 0 0 28px;
}

.df-section-head { max-width: 760px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.df-section-head .df-eyebrow { justify-content: center; }
.df-section-head .df-sub { margin-inline: auto; }

.df-num {
	font-family: var(--font-tech);
	font-weight: 800;
	color: var(--crimson);
}

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */

.df-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border: 1px solid transparent;
	border-radius: var(--df-radius);
	font-family: var(--font-tech);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease, color .28s ease;
	overflow: hidden;
}

.df-btn:disabled, .df-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.df-btn .df-icon { width: 17px; height: 17px; }

.df-btn-primary {
	background: var(--crimson);
	border-color: var(--crimson);
	color: #fff;
	box-shadow: var(--shadow-red);
}
.df-btn-primary:hover {
	background: var(--crimson-deep);
	border-color: var(--crimson-deep);
	transform: translateY(-2px);
	color: #fff;
}

.df-btn-gold {
	background: linear-gradient(180deg, var(--gold-light), var(--gold));
	border-color: var(--gold);
	color: #17130a;
	box-shadow: var(--shadow-gold);
}
.df-btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }

.df-btn-ghost {
	background: transparent;
	border-color: var(--df-border);
	color: var(--df-text-strong);
}
.df-btn-ghost:hover {
	border-color: var(--crimson);
	color: var(--df-text-strong);
	box-shadow: var(--crimson-glow);
	transform: translateY(-2px);
}

.df-btn-block { width: 100%; }

.df-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------------------
   Cards & panels
   ---------------------------------------------------------------------- */

.df-card {
	position: relative;
	background: var(--df-panel);
	border: 1px solid var(--df-border);
	border-radius: var(--df-radius);
	padding: clamp(22px, 2.6vw, 32px);
	transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.df-card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 0, 60, .45);
	box-shadow: var(--df-shadow);
}

.df-card h3 {
	font-family: var(--font-display);
	text-transform: uppercase;
	color: var(--df-heading);
	margin: 0 0 12px;
	font-size: 1.16rem;
	letter-spacing: .02em;
}

.df-card p { margin: 0; color: var(--df-text); font-size: .95rem; }

.df-divider {
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--gold), var(--crimson), transparent);
	margin: clamp(40px, 5vw, 70px) 0;
	opacity: .5;
}

/* -------------------------------------------------------------------------
   Forms
   ---------------------------------------------------------------------- */

.df-field { display: flex; flex-direction: column; gap: 8px; }

.df-label {
	font-family: var(--font-tech);
	font-size: .68rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold);
}

.df-input,
.df-select,
.df-textarea {
	width: 100%;
	background: var(--df-surface);
	border: 1px solid var(--df-border-soft);
	border-radius: var(--df-radius);
	color: var(--df-text-strong);
	font-family: var(--font-body);
	font-size: .95rem;
	padding: 14px 16px;
	outline: none;
	transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.df-textarea { min-height: 140px; resize: vertical; }

.df-input::placeholder, .df-textarea::placeholder { color: var(--df-muted); }

.df-input:focus, .df-select:focus, .df-textarea:focus {
	border-color: var(--crimson);
	box-shadow: 0 0 0 1px rgba(255, 0, 60, .16), 0 0 14px rgba(255, 0, 60, .14);
}

.df-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
	background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 42px;
}

.df-form-msg {
	min-height: 22px;
	font-family: var(--font-tech);
	font-size: .76rem;
	letter-spacing: .08em;
	color: var(--gold);
}
.df-form-msg.is-error { color: var(--crimson); }

/* -------------------------------------------------------------------------
   Reveal-on-scroll
   ---------------------------------------------------------------------- */

.df-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .8s cubic-bezier(.2, .7, .3, 1), transform .8s cubic-bezier(.2, .7, .3, 1);
	transition-delay: var(--df-delay, 0ms);
	will-change: opacity, transform;
}
.df-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.df-reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* -------------------------------------------------------------------------
   Toast / drawer / back-to-top
   ---------------------------------------------------------------------- */

.df-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	transform: translate(-50%, 24px);
	z-index: 9500;
	background: var(--df-panel-flat);
	border: 1px solid var(--crimson);
	box-shadow: var(--shadow-red);
	color: var(--df-text-strong);
	font-family: var(--font-tech);
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 14px 22px;
	border-radius: var(--df-radius);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease;
	max-width: calc(100vw - 40px);
	text-align: center;
}
.df-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* overflow:hidden keeps the off-canvas panel from widening the document. */
.df-drawer {
	position: fixed;
	inset: 0;
	z-index: 9400;
	overflow: hidden;
	pointer-events: none;
	visibility: hidden;
}
.df-drawer.is-open { pointer-events: auto; visibility: visible; }

.df-drawer-backdrop {
	position: absolute; inset: 0;
	background: rgba(3, 4, 6, .72);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .35s ease;
}
.df-drawer.is-open .df-drawer-backdrop { opacity: 1; }

.df-drawer-panel {
	position: absolute;
	top: 0; right: 0;
	width: min(420px, 100%);
	height: 100%;
	background: var(--df-panel-flat);
	border-left: 1px solid var(--df-border);
	display: flex;
	flex-direction: column;
	transform: translateX(102%);
	transition: transform .42s cubic-bezier(.4, 0, .2, 1);
}
.df-drawer.is-open .df-drawer-panel { transform: none; }

.df-drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid var(--df-border);
}
.df-drawer-head h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.02rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--df-heading);
}
.df-drawer-close {
	background: none; border: 0; cursor: pointer;
	color: var(--gold); font-size: 1.05rem; line-height: 1;
	padding: 6px;
}

.df-drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }

.df-drawer-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--df-border-soft); }
.df-drawer-line img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--df-border); border-radius: 3px; background: var(--df-surface); }
.df-drawer-line-info { flex: 1; min-width: 0; }
.df-drawer-line-info strong { display: block; font-size: .86rem; color: var(--df-text-strong); font-weight: 600; }
.df-drawer-line-info span { display: block; font-size: .76rem; color: var(--df-muted); }
.df-drawer-line-price { font-family: var(--font-tech); font-size: .82rem; color: var(--gold); white-space: nowrap; }
.df-drawer-empty { text-align: center; color: var(--df-muted); padding: 40px 0; font-size: .9rem; }

.df-drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--df-border); display: grid; gap: 10px; }
.df-drawer-total {
	display: flex; justify-content: space-between; align-items: baseline;
	font-family: var(--font-tech); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem;
	margin-bottom: 6px;
}
.df-drawer-total strong { font-size: 1.15rem; color: var(--gold); }

.df-to-top {
	position: fixed;
	right: 22px; bottom: 22px;
	z-index: 9300;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid var(--df-border);
	background: var(--df-panel-flat);
	color: var(--gold);
	cursor: pointer;
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.df-to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.df-to-top:hover { box-shadow: var(--crimson-glow); border-color: var(--crimson); }

/* Astra bits that must never show through. */
.ast-scroll-top, .site-header, .site-footer, #masthead, #colophon { display: none !important; }
.site-content, .ast-container, #content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
#primary, .content-area, .site-main, .entry-content { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
.entry-content > :where(.df-section, .df-hero) { margin: 0; }

/* -------------------------------------------------------------------------
   Prose (default pages: Privacy, Terms, Shipping) & archive
   ---------------------------------------------------------------------- */

.df-prose {
	max-width: 78ch;
	margin-inline: auto;
	color: var(--df-text);
	font-size: 1rem;
}

.df-prose > * + * { margin-top: 1.15em; }

.df-prose h1, .df-prose h2, .df-prose h3, .df-prose h4 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--df-heading);
	margin-top: 1.8em;
	line-height: 1.2;
}

.df-prose h2 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); }
.df-prose h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.df-prose a { color: var(--crimson); text-underline-offset: 3px; }
.df-prose ul, .df-prose ol { padding-left: 1.4em; }
.df-prose li + li { margin-top: .5em; }
.df-prose blockquote {
	border-left: 2px solid var(--crimson);
	padding-left: 20px;
	margin-left: 0;
	color: var(--df-text-strong);
	font-style: italic;
}
.df-prose img { border-radius: var(--df-radius); border: 1px solid var(--df-border); }
.df-prose code {
	background: var(--df-surface-2);
	border: 1px solid var(--df-border-soft);
	border-radius: 3px;
	padding: 2px 6px;
	font-size: .88em;
}

.df-post-thumb { display: block; margin: -8px -8px 16px; border-radius: var(--df-radius); overflow: hidden; }
.df-post-thumb img { width: 100%; height: 190px; object-fit: cover; }
.df-card h3 a { text-decoration: none; }
.df-card h3 a:hover { color: var(--crimson); }
.df-post { max-width: 860px; margin-inline: auto; }
.df-post-content { color: var(--df-text); }

.df-archive .navigation.pagination { margin-top: 40px; }
.df-archive .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	margin: 0 4px;
	border: 1px solid var(--df-border);
	border-radius: var(--df-radius);
	color: var(--df-text);
	text-decoration: none;
	font-family: var(--font-tech);
	font-size: .8rem;
}
.df-archive .page-numbers.current,
.df-archive .page-numbers:hover {
	background: var(--crimson);
	border-color: var(--crimson);
	color: #fff;
}

.df-basic-hero { padding-bottom: clamp(40px, 6vw, 70px); }
