/* ==========================================================================
   Ninja theme — main stylesheet
   Brand colors live in :root below. Swap them once the final palette is set.
   ========================================================================== */

:root {
	/* Brand — taken from the NinjaKicks logo (navy #0C0950 + white) */
	--c-bg: #06052a;          /* deep navy, darker than the logo */
	--c-bg-rgb: 6, 5, 42;
	--c-surface: #0c0950;     /* logo navy */
	--c-surface-2: #15117a;
	--c-text: #ffffff;
	--c-muted: #a9a7d6;
	--c-line: #221e6b;
	--c-accent: #ffffff;      /* primary buttons: white on navy, like the logo */
	--c-accent-ink: #0c0950;
	--c-highlight: #8b85ff;   /* links, labels, sale prices */

	/* Type */
	--f-display: "Oswald", "Arial Narrow", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Layout */
	--container: 1280px;
	--gutter: 16px;
	--radius: 4px;
	--header-h: 64px;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --header-h: 76px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}


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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-highlight); }

:focus-visible { outline: 2px solid var(--c-highlight); outline-offset: 2px; }

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	margin: 0 0 .5em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 1000; top: 8px; left: 8px;
	padding: 8px 16px;
	background: var(--c-accent); color: var(--c-accent-ink);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container.narrow { max-width: 640px; }
.center { text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn,
.button,
button.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid var(--c-text);
	border-radius: var(--radius);
	background: transparent;
	color: var(--c-text);
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover,
.button:hover { background: var(--c-text); color: var(--c-bg); }

.btn-primary,
.button.alt,
.single_add_to_cart_button {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: var(--c-accent-ink);
}
.btn-primary:hover,
.button.alt:hover,
.single_add_to_cart_button:hover {
	background: transparent;
	border-color: var(--c-text);
	color: var(--c-text);
}

/* Announcement ----------------------------------------------------------- */
.announcement {
	padding: 8px var(--gutter);
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-line);
	color: var(--c-text);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .04em;
	text-align: center;
}

/* Header, capsule and panels live in header.css (loaded after this file). */

/* Sections --------------------------------------------------------------- */
.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.section-title { font-size: clamp(26px, 4vw, 40px); margin: 0; }
.section-link {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--c-highlight);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.page-header { margin-bottom: 32px; }
.page-title { font-size: clamp(32px, 5vw, 56px); }

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 760px);
	padding: 64px 0;
	overflow: hidden;
	background: var(--c-surface);
}
.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(var(--c-bg-rgb), .92), rgba(var(--c-bg-rgb), .1) 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
	max-width: 12ch;
	font-size: clamp(44px, 10vw, 120px);
	font-weight: 700;
	line-height: .95;
}
.hero-text {
	max-width: 46ch;
	margin: 0 0 28px;
	color: var(--c-muted);
	font-size: 18px;
}
.hero.has-image .hero-text { color: var(--c-text); }

/* Category cards --------------------------------------------------------- */
.category-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.category-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 3 / 4;
	padding: 16px;
	overflow: hidden;
	background: var(--c-surface);
}
.category-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}
.category-card:hover .category-img { transform: scale(1.04); }
.category-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 60%);
}
.category-name {
	position: relative;
	z-index: 1;
	font-family: var(--f-display);
	font-size: 22px;
	text-transform: uppercase;
	color: var(--c-text);
}

/* WooCommerce product grid (base) --------------------------------------- */
.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.woocommerce ul.products,
	ul.products { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
}
@media (min-width: 1100px) {
	.woocommerce ul.products.columns-4,
	ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
ul.products li.product {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}
ul.products li.product img {
	margin: 0 0 12px;
	background: var(--c-surface);
	aspect-ratio: 1;
	object-fit: cover;
}
ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}
ul.products li.product .price {
	display: block;
	color: var(--c-muted);
	font-size: 14px;
}
ul.products li.product .price ins { color: var(--c-highlight); text-decoration: none; }
ul.products li.product .button { display: none; }
ul.products li.product .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	margin: 0;
	padding: 4px 10px;
	min-height: 0;
	border-radius: var(--radius);
	background: var(--c-accent);
	color: var(--c-accent-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Posts ------------------------------------------------------------------ */
.post-grid {
	display: grid;
	gap: 32px;
}
@media (min-width: 768px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card-img img { aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 16px; }
.post-card-title { font-size: 22px; }
.post-card-excerpt { color: var(--c-muted); }

.entry-content > * + * { margin-top: 1.2em; }
.entry-content a { color: var(--c-highlight); text-decoration: underline; }

/* Forms ------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-surface);
	color: var(--c-text);
	font: inherit;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--c-highlight); outline: none; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
	margin-top: 48px;
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}
.footer-inner {
	display: grid;
	gap: 32px;
	padding-top: 48px;
	padding-bottom: 32px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr; } }
.footer-tagline { color: var(--c-muted); max-width: 40ch; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a { color: var(--c-muted); }
.footer-menu a:hover { color: var(--c-text); }
.footer-bottom {
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 13px;
}
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
