/*
Theme Name: dethcap
Theme URI: https://dethcap.com
Author: EvolveSiteworks
Author URI: https://evolvesiteworks.com
Description: dethcap.com storefront theme for WooCommerce.
Version: 1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dethcap
*/

:root {
	--ink: #111111;
	--paper: #e8e2d4;
	--paper-2: #f2eee3;
	--hot: #ff4b1f;
	--mute: #57534a;
	--display: "Anton", "Arial Narrow", Impact, sans-serif;
	--body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Space Mono", ui-monospace, Consolas, monospace;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--gutter: clamp(16px, 4vw, 48px);
}

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

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

body {
	margin: 0;
	background-color: var(--paper);
	background-image: var(--grain);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--hot);
	color: var(--ink);
	padding: 8px 14px;
	z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: var(--paper);
}
.site-header .bar {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px var(--gutter);
}
.brand {
	font-family: var(--display);
	font-size: 30px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
}
.primary-nav { flex: 1; }
.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav a,
.cart-link {
	font-family: var(--mono);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-decoration: none;
}
.primary-nav a:hover,
.cart-link:hover { color: var(--hot); }
.cart-count {
	display: inline-block;
	min-width: 22px;
	padding: 1px 6px;
	background: var(--hot);
	color: var(--ink);
	text-align: center;
	font-weight: 700;
	transform: rotate(-4deg);
}

/* Home page */
.home .site-header,
body.home .site-header {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
}
body.home .site-header.is-solid { background: var(--ink); }
body.admin-bar.home .site-header { top: 32px; }

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(100vh, 880px);
	padding: 120px max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))) 64px;
	overflow: hidden;
	background: var(--ink);
	color: var(--paper);
}
.hero-inner {
	position: relative;
	z-index: 2;
	max-width: min(540px, 36vw);
}
.hero-title {
	margin: 0 0 20px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(56px, 7.2vw, 120px);
	line-height: .92;
	text-transform: uppercase;
}
.hero-sub {
	margin: 0 0 28px;
	max-width: 30ch;
	font-family: var(--mono);
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #c9c3b4;
}
.hero .button { border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.hero .button:hover { box-shadow: 2px 2px 0 var(--paper); }
.hero-art {
	position: absolute;
	right: 1%;
	top: 50%;
	z-index: 1;
	width: min(54vw, 900px);
	height: auto;
	transform: translateY(-46%);
}

.band { padding: 88px 0; }
.band-paper { background-color: var(--paper); background-image: var(--grain); }
.band-hot { background: var(--hot); color: var(--ink); }
.band-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.band-title {
	margin: 0 0 32px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(44px, 7vw, 88px);
	line-height: .95;
	text-transform: uppercase;
}
.band-more { margin: 40px 0 0; }
.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}
.fact h2 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1;
	text-transform: uppercase;
}
.fact p { margin: 0; max-width: 30ch; font-weight: 500; }

/* Layout */
.shop-wrap,
.page-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px var(--gutter) 80px;
}
.woocommerce-products-header__title,
.page-title,
.entry-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(48px, 9vw, 112px);
	line-height: .95;
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0 0 32px;
}

/* Shop grid */
.woocommerce-result-count,
.woocommerce-ordering { font-family: var(--mono); font-size: 13px; text-transform: uppercase; margin: 0 0 24px; }
.woocommerce-ordering select {
	font: inherit;
	background: var(--paper-2);
	color: var(--ink);
	border: 2px solid var(--ink);
	padding: 8px 10px;
}
ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	clear: both;
}
ul.products::before,
ul.products::after { display: none; }
ul.products li.product {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 0 0 20px;
	background: var(--paper-2);
	border: 2px solid var(--ink);
	transition: transform .15s ease;
}
ul.products li.product:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
ul.products li.product a { text-decoration: none; }
ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 0 16px;
	border-bottom: 2px solid var(--ink);
}
ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--display);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.05;
	text-transform: uppercase;
	padding: 0 18px;
	margin: 0 0 8px;
}
ul.products li.product .price {
	display: block;
	padding: 0 18px;
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}
ul.products li.product .button { margin: 14px 18px 0; }

/* Buttons */
.button,
button.button,
.single_add_to_cart_button,
.wp-element-button,
.wc-block-components-button:not(.is-link) {
	display: inline-block;
	background: var(--hot);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: 4px 4px 0 var(--ink);
	padding: 12px 22px;
	font-family: var(--display);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover,
button.button:hover,
.single_add_to_cart_button:hover,
.wp-element-button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--hot);
	color: var(--ink);
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--ink);
}

/* Sale sticker */
span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 6px 12px;
	border-radius: 0;
	background: var(--hot);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	transform: rotate(-5deg);
	border: 2px solid var(--ink);
}

/* Single product */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
	float: none;
	width: 100%;
	margin: 0;
}
.single-product div.product .woocommerce-product-gallery {
	background: var(--paper-2);
	border: 2px solid var(--ink);
}
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 9;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border: 2px solid var(--ink);
	background: var(--paper);
	font-size: 0;
	text-indent: -999px;
}
.woocommerce-product-gallery__trigger::before {
	content: "+";
	position: absolute;
	inset: 0;
	text-indent: 0;
	font-family: var(--mono);
	font-size: 22px;
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	color: var(--ink);
}
.flex-control-nav {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin: 0;
	padding: 12px;
	list-style: none;
	border-top: 2px solid var(--ink);
}
.flex-control-nav li { margin: 0; padding: 0; list-style: none; }
.flex-control-nav img {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	opacity: .55;
}
.flex-control-nav img.flex-active,
.flex-control-nav img:hover { opacity: 1; }
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells { grid-column: 1 / -1; }
.single-product .product_title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 72px);
	line-height: .98;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.single-product .summary .price {
	display: block;
	margin: 0 0 20px;
	font-family: var(--mono);
	font-size: 26px;
	font-weight: 700;
	color: var(--ink);
}
.single-product .summary .price ins { text-decoration: none; }
.single-product .summary .price del { color: var(--mute); font-weight: 400; }
.single-product form.cart { margin: 24px 0; }
.single-product form.cart:not(.variations_form),
.single-product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 14px;
}
.single-product .quantity .qty { margin-right: 0; height: 100%; }
.single-product form.cart .variations { margin-bottom: 18px; }
.single-product form.cart .variations th,
.single-product form.cart .variations td { display: block; padding: 0; text-align: left; }
.single-product form.cart .variations label {
	font-family: var(--mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.single-product form.cart select {
	width: 100%;
	max-width: 320px;
	margin: 6px 0 14px;
	padding: 10px;
	font: inherit;
	background: var(--paper-2);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 0;
}
.single-product .quantity .qty {
	width: 72px;
	padding: 12px 8px;
	margin-right: 10px;
	font-family: var(--mono);
	text-align: center;
	background: var(--paper-2);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 0;
}
.product-facts {
	margin: 0;
	padding: 18px 0 0;
	list-style: none;
	border-top: 2px solid var(--ink);
	font-family: var(--mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.product-facts li { padding: 2px 0; }
.product_meta { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 18px; }
.product_meta > span { display: block; }

/* Description tabs */
.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 8px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 2px solid var(--ink);
	border-radius: 0;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 18px;
	font-family: var(--mono);
	font-size: 13px;
	text-transform: uppercase;
	text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active { background: var(--ink); }
.woocommerce-tabs ul.tabs li.active a { color: var(--paper); }
.woocommerce-tabs .panel {
	margin: 0;
	padding: 28px 0;
	max-width: 70ch;
}
.woocommerce-tabs .panel > h2:first-child { display: none; }

/* Related products */
.related > h2,
.upsells > h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 56px);
	text-transform: uppercase;
	margin: 40px 0 24px;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 24px;
	padding: 14px 18px;
	list-style: none;
	background: var(--paper-2);
	color: var(--ink);
	border: 2px solid var(--ink);
	border-left: 10px solid var(--hot);
	font-family: var(--mono);
	font-size: 14px;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }

/* Cart, checkout and account blocks inherit the type */
.wc-block-components-text-input input,
.wc-block-components-select select,
.woocommerce form .input-text {
	border-radius: 0;
	border: 2px solid var(--ink);
	background: var(--paper-2);
	color: var(--ink);
}
.entry-content table { border-collapse: collapse; width: 100%; }

/* Footer */
.site-footer {
	background: var(--ink);
	color: var(--paper);
}
.foot-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px var(--gutter) 40px;
}
.foot-brand p { max-width: 32ch; margin: 12px 0 0; color: #c9c3b4; }
.foot-col h2 {
	margin: 0 0 12px;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--hot);
}
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { padding: 0; line-height: 1.35; margin: 0 0 4px; }
.foot-col a { text-decoration: none; color: #c9c3b4; }
.foot-col a:hover { color: var(--paper); }
.legal {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px var(--gutter) 28px;
	border-top: 1px solid #2a2a2a;
	font-size: 13px;
	color: #8d8878;
}
.legal .credit { font-size: 12px; color: #3d4f61; font-weight: 400; }
.legal .credit a { color: #475b6e; text-decoration: none; font-weight: 400; }

/* Narrow screens */
@media (max-width: 1100px) {
	.hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding-top: 110px; }
	.hero-art { position: relative; right: auto; top: auto; width: 100%; max-width: 760px; margin: 36px auto 0; transform: none; }
	.hero-inner { max-width: none; }
	.hero-title { font-size: clamp(56px, 13vw, 120px); }
}
@media (max-width: 900px) {
	.facts { grid-template-columns: 1fr; gap: 28px; }
	.band { padding: 64px 0; }
	ul.products { grid-template-columns: repeat(2, 1fr); }
	.single-product div.product { grid-template-columns: 1fr; gap: 28px; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	ul.products { grid-template-columns: 1fr; }
	.site-header .bar { flex-wrap: wrap; gap: 10px 18px; }
	.primary-nav { order: 3; flex-basis: 100%; }
	.cart-link { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
