/*
Theme Name: Spicy Jawn
Description: A standalone WooCommerce storefront theme matching the Spicy Jawn shop and Home page.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: spicy-jawn
*/

:root {
	--sj-brick: url("assets/black-brick.jpg");
	--sj-orange: #e8612a;
	--sj-border: #414141;
	--sj-header-height: 184px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; }
body {
	margin: 0;
	color: #fff;
	background: #141414 var(--sj-brick) center center / cover fixed no-repeat;
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sj-orange); }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #ff9a67; outline-offset: 4px; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.screen-reader-text:focus {
	z-index: 1000;
	inset: 10px auto auto 10px;
	width: auto;
	height: auto;
	padding: 10px;
	color: #fff;
	background: #111;
	clip-path: none;
}
.sj-wrap { width: min(1110px, calc(100% - 48px)); margin-inline: auto; }
.sj-main { background: #000; }
.sj-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #111 var(--sj-brick) center center / cover no-repeat;
}
.admin-bar .sj-header { top: 32px; }
.sj-header-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--sj-header-height);
	padding: 0 36px 0 20px;
}
.sj-brand a, .sj-brand img { display: block; width: 140px; }
.sj-navigation { display: flex; align-items: center; gap: 36px; padding-left: 62px; }
.sj-navigation > a { text-transform: uppercase; font-weight: 700; }
.sj-header-actions { justify-self: end; display: flex; align-items: center; gap: 21px; }
.sj-header-actions a { display: grid; place-items: center; position: relative; width: 23px; height: 31px; }
.sj-header-actions svg, .sj-close svg, .sj-quick-trigger svg { width: 21px; height: 21px; }
.sj-cart-count {
	position: absolute;
	right: -5px;
	bottom: 2px;
	display: grid;
	place-items: center;
	min-width: 16px;
	min-height: 16px;
	padding: 0 3px;
	border-radius: 50%;
	background: var(--sj-orange);
	color: #fff;
	font-size: 10px;
	line-height: 1;
}
.sj-menu-toggle, .sj-navigation .sj-mobile-account { display: none; }
.sj-footer { background: #242424; border-top: 1px solid #3b3b3b; padding: 29px 0 30px; }

.sj-shop {
	display: grid;
	grid-template-columns: minmax(0, 825px) minmax(0, 255px);
	gap: 30px;
	min-height: 502px;
	padding: 13px 0 100px;
}
.sj-shop .woocommerce-products-header:empty { display: none; }
.sj-shop .woocommerce-products-header__title { margin: 0 15px 24px; font-size: 25px; }
.sj-shop .term-description { margin-inline: 15px; }
.sj-main ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 30px;
	margin: 0;
	padding: 0 15px;
	list-style: none;
}
.sj-main ul.products::before, .sj-main ul.products::after { content: none; }
/* Override WooCommerce's float-based column widths inside the CSS grid. */
.sj-main .sj-wrap ul.products > li.sj-product.product {
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	text-align: center;
}
.sj-main .sj-product-media { position: relative; overflow: hidden; border-radius: 3px; background: #f9f9f9; }
.sj-main .sj-product-media > a { display: block; }
.sj-main ul.products li.sj-product .sj-product-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.sj-product-info { margin-top: 23px; }
.sj-category { font-size: 14px; margin-bottom: 4px; }
.sj-main ul.products li.sj-product .woocommerce-loop-product__title { margin: 0 0 3px; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.sj-main ul.products li.sj-product .price { margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }
.sj-badge, .sj-main ul.products li.sj-product .onsale {
	position: absolute;
	z-index: 2;
	inset: 15px auto auto 15px;
	min-width: 70px;
	min-height: 0;
	margin: 0;
	padding: 3px 8px;
	border-radius: 3px;
	background: #c94f57;
	color: #fff;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
}
.sj-card-actions { position: absolute; right: 11px; top: 11px; display: grid; gap: 7px; opacity: 0; transition: opacity .15s ease; }
.sj-product-media:hover .sj-card-actions, .sj-product-media:focus-within .sj-card-actions { opacity: 1; }
.sj-card-actions .sj-quick-trigger, .sj-card-actions .sj-wishlist a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 2px 9px #0002;
}
.sj-card-actions .sj-wishlist :is(.yith-wcwl-add-to-wishlist, .yith-wcwl-add-button) { margin: 0; }
.sj-card-actions .sj-wishlist :is(.yith-wcwl-add-to-wishlist-button__label, .feedback) { display: none; }
.sj-main ul.products li.sj-product .sj-card-actions img { width: 18px; margin: 0; }
.sj-widget + .sj-widget { margin-top: 49px; }
.sj-widget-title { margin: 0 0 15px; font-size: 24px; font-weight: 600; }
.sj-sidebar ul { padding: 0; margin: 0; list-style: none; }
.sj-sidebar ul li { padding: 0; margin: 0 0 14px; min-height: 49px; }
.sj-sidebar ul li a { display: block; font-weight: 400; }
.sj-sidebar ul li img { float: right; width: 45px; height: 45px; object-fit: cover; border-radius: 50%; margin: 0 0 0 7px; }
.sj-social { display: flex; gap: 10px; }
.sj-social a { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #404a67; border-radius: 50%; }
.sj-social a + a { border-color: #6a594f; }
.sj-social svg { width: 16px; height: 16px; }
.sj-sort { margin: 28px 15px 0; color: #bbb; font-size: 13px; }
.sj-sort summary { width: fit-content; cursor: pointer; }
.sj-sort .woocommerce-ordering { float: none; margin: 8px 0 0; }
.sj-sort select { padding: 7px; }

.sj-home-page .sj-header { background: transparent; }
.sj-home-page .sj-header[data-scrolled] { background: #111 var(--sj-brick) center / cover no-repeat; }
.sj-hero {
	position: relative;
	height: calc(100svh + 140px);
	min-height: 650px;
	margin-top: calc(-1 * var(--sj-header-height));
	background: #111 var(--sj-brick) center center / cover no-repeat;
}
.sj-hero-brand {
	position: absolute;
	top: calc(38% - 20px);
	left: 50%;
	width: min(550px, 77vw);
	transform: translateX(-50%);
	text-align: center;
}
.sj-hero-brand img { display: block; width: 100%; }
.sj-hero-brand h1 {
	margin: -3px 0 0;
	font-family: "Russo One", "Arial Black", Arial, sans-serif;
	font-size: clamp(21px, 4vw, 40px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: .125em;
	text-transform: uppercase;
}
.sj-home-store { padding: 100px 0; text-align: center; }
.sj-home-store > p { margin: 0; color: #f37d46; }
.sj-home-store h2 { margin: 0 0 46px; font-size: 30px; font-weight: 600; }
.sj-home-store ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sj-home-store .sj-button { margin-top: 50px; }

.sj-standard { min-height: 420px; padding: 56px 0 96px; }
.woocommerce-cart .sj-standard { padding-top: 36px; padding-bottom: 140px; }
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block p a { color: var(--sj-orange); }
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product .wp-block-button__link {
	background: #32373b;
	color: #fff;
	border-radius: 30px;
}
.sj-standard h1 { margin: 0 0 25px; font-size: 32px; }
.sj-single { padding: 56px 0 125px; }
.sj-single div.product { position: relative; display: flow-root; }
.sj-single div.product .product_title { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.woocommerce .sj-single div.product div.images { width: 62.5%; }
.woocommerce .sj-single div.product div.summary { width: 31.5%; }
.sj-single div.product .summary .price { color: var(--sj-orange); font-size: 20px; margin: 0 0 30px; }
.sj-single .woocommerce-product-details__short-description p { margin: 0 0 26px; }
.sj-single div.product .stock { font-size: 14px; color: #a9bd6b; }
.sj-single div.product .out-of-stock { color: #f28b8b; }
.sj-single div.product .product_meta { padding-top: 14px; margin-top: 22px; border-top: 1px solid #888; font-size: 14px; }
.sj-single div.product .product_meta a { color: var(--sj-orange); margin-left: 5px; }
.sj-single div.product .woocommerce-tabs { clear: both; }
.woocommerce .sj-single div.product div.images:has(.flex-control-thumbs) { position: relative; padding-left: min(9.1vw, 130px); }
.woocommerce .sj-single div.product div.images .flex-control-thumbs { position: absolute; top: 0; bottom: 0; left: 0; width: min(7vw, 100px); overflow: auto; }
.woocommerce .sj-single div.product div.images .flex-control-thumbs li { width: 100%; margin-bottom: 25px; }
.sj-single-badge { left: min(10.4vw, 150px); top: 10px; }
.sj-single .quantity { display: inline-flex; align-items: stretch; border: 1px solid #292929; border-radius: 3px; }
.woocommerce .sj-single div.product form.cart div.quantity { margin-right: 18px; }
.sj-single .quantity .qty { width: 44px; min-height: 44px; border: 0; padding: 0; background: transparent; appearance: textfield; }
.sj-single .quantity .qty::-webkit-inner-spin-button { appearance: none; }
.sj-qty { width: 38px; border: 0; background: transparent; color: #fff; }
.sj-qty:hover { color: var(--sj-orange); }

.sj-button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .sj-main a.button.alt, .woocommerce .sj-main button.button.alt, .woocommerce .sj-main input.button.alt,
.sj-main .wc-block-components-button:not(.is-link) {
	display: inline-block;
	min-height: 46px;
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--sj-orange);
	color: #fff;
	font-weight: 500;
	line-height: 22px;
	text-align: center;
}
.sj-button, .woocommerce .sj-single .single_add_to_cart_button { min-width: 160px; }
.sj-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce .sj-main a.button.alt:hover, .woocommerce .sj-main button.button.alt:hover, .woocommerce .sj-main input.button.alt:hover,
.sj-main .wc-block-components-button:not(.is-link):hover { color: #fff; background: #bc4219; }
.sj-main :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]), textarea, select) {
	color: #fff;
	background: #151515;
	border: 1px solid #585858;
	border-radius: 3px;
}
.sj-main :is(input.input-text, textarea) { padding: .6em; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { line-height: 1.5; }
.woocommerce table.shop_table { border-color: var(--sj-border); }
.woocommerce table.shop_table :is(td, th) { border-color: var(--sj-border); }
.woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { color: #fff; background: #252525; }
.woocommerce-checkout #payment, .woocommerce-checkout #payment div.payment_box { color: #fff; background: #202020; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #202020; }
.sj-main .woocommerce-order-overview { padding: 0; }
.sj-main .wc-block-components-express-payment, .sj-main .wc-block-components-order-summary { color: inherit; }
.sj-main .wc-block-components-radio-control-accordion-content { color: inherit; background: #202020; }
.sj-main .wc-block-components-text-input label,
.sj-main .wc-block-components-combobox label,
.sj-main .wc-block-components-textarea label { color: #ddd; }
.select2-container--default :is(.select2-selection--single, .select2-dropdown) { background: #161616; color: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #fff; }
.select2-container--default .select2-results__option[aria-selected=true] { background: #333; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #252525; border-color: var(--sj-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #000; border-bottom-color: #000; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #fff; }

dialog { color: #fff; background: #121212; border: 1px solid #444; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: #0009; }
.sj-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: transparent;
	color: #fff;
	border: 0;
}
.sj-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(370px, 100%);
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 55px 25px 25px;
}
.sj-login input.input-text { width: 100%; padding: .6em; background: #151515; color: #fff; border: 1px solid #585858; border-radius: 3px; }
.sj-drawer h2 { margin: 0 0 20px; font-size: 22px; }
.sj-drawer ul { margin: 0; padding: 0; list-style: none; }
.sj-drawer .woocommerce-mini-cart-item { min-height: 62px; padding: 0 0 12px; }
.sj-drawer .woocommerce-mini-cart-item img { float: right; width: 50px; }
.sj-drawer .woocommerce-mini-cart__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sj-quick-view[open] {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 26px;
	width: min(760px, calc(100% - 32px));
	padding: 42px 28px 28px;
	text-align: left;
}
.sj-quick-view h2 { margin-top: 0; font-size: 24px; }
.sj-main ul.products li.sj-product .sj-quick-image img { width: 100%; margin: 0; }
.sj-main ul.products li.sj-product .sj-quick-content .price { color: var(--sj-orange); font-size: 18px; }
.sj-view-details { display: block; width: fit-content; margin-top: 12px; text-decoration: underline; }

@media (max-width: 1199px) {
	.sj-wrap { width: min(930px, calc(100% - 48px)); }
	.sj-shop { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}
@media (max-width: 991px) {
	.sj-header-inner { grid-template-columns: 1fr auto 1fr; padding-right: 14px; }
	.sj-footer { text-align: center; }
	.sj-header-actions { grid-column: 2; grid-row: 1; transform: translateX(12px); }
	.sj-header-actions .sj-account-trigger { display: none; }
	.sj-header-actions .sj-cart-trigger svg { width: 32px; height: 32px; }
	.sj-cart-count { right: -12px; bottom: 6px; min-width: 19px; min-height: 19px; }
	.sj-menu-toggle {
		display: grid;
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		width: 40px;
		height: 40px;
		padding: 4px;
		background: transparent;
		color: #fff;
		border: 0;
	}
	.sj-navigation {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 14px 24px;
		background: #181818;
	}
	.sj-navigation[data-open] { display: grid; gap: 0; }
	.sj-navigation > a { padding: 12px 0; }
	.sj-navigation .sj-mobile-account { display: block; }
	.sj-shop { display: block; padding-top: 12px; }
	.sj-sidebar { display: none; }
	.sj-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sj-wrap { width: min(690px, calc(100% - 48px)); }
	.sj-shop { width: min(690px, calc(100% - 92px)); }
	.sj-single { padding-top: 36px; }
	.woocommerce .sj-single div.product div.images, .woocommerce .sj-single div.product div.summary { float: none; width: 100%; }
	.sj-single-badge { left: calc(min(9.1vw, 130px) + 12px); }
}
@media (max-width: 782px) {
	.admin-bar .sj-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .sj-header { position: relative; top: auto; }
}
@media (max-width: 480px) {
	.sj-shop { width: calc(100% - 24px); }
	.sj-main ul.products { gap: 36px 18px; padding-inline: 5px; }
	.sj-main ul.products li.sj-product .woocommerce-loop-product__title { font-size: 15px; }
	.sj-product-info { margin-top: 15px; }
	.sj-hero { height: max(650px, 100svh); }
	.sj-hero-brand { top: 42%; }
	.sj-quick-view[open] { grid-template-columns: 1fr; gap: 13px; }
	.sj-quick-image { max-width: 170px; }
	.sj-drawer .woocommerce-mini-cart__buttons { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@font-face {
	font-family: "Russo One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("https://fonts.gstatic.com/s/russoone/v18/Z9XUDmZRWg6M1LvRYsHOz8mJvLuL9A.woff2") format("woff2");
}
