/* Baltic Bait – base: tokens, fonts, reset, layout primitives, buttons. */

@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Roboto Condensed";
	src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bb-orange: #f33a0a;
	--bb-orange-dark: #d32f06;
	--bb-dark: #1b1b1d;
	--bb-grey: #4a4a4a;
	--bb-light: #f4f4f4;
	--bb-white: #fff;
	--bb-text: #1b1b1d;
	--bb-muted: #8a8a8a;
	--bb-sale: #cc1111;

	--bb-font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--bb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--bb-gutter: clamp(16px, 2.5vw, 32px);
	--bb-max: 1760px;
	--bb-header-h: 64px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--bb-light);
	color: var(--bb-text);
	font-family: var(--bb-font-body);
	font-size: 16px;
	line-height: 1.5;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
p {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--bb-font-head);
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--bb-orange);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.bb-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--bb-orange);
	color: #fff;
	transform: translateY(-200%);
}

.bb-skip:focus {
	transform: none;
}

.bb-container {
	width: 100%;
	max-width: var(--bb-max);
	margin-inline: auto;
	padding-inline: var(--bb-gutter);
}

.bb-prose {
	padding-block: 48px;
}

.bb-icon {
	width: 24px;
	height: 24px;
}

.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--bb-orange);
	background: transparent;
	color: var(--bb-orange);
	font-family: var(--bb-font-head);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.bb-btn:hover {
	background: var(--bb-orange);
	color: #fff;
}

/* ---------- WooCommerce notices (added to cart, errors, info) ---------- */
.woocommerce-notices-wrapper {
	margin-bottom: 16px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 12px;
	padding: 14px 20px;
	background: #fff;
	border-left: 5px solid var(--bb-orange);
	list-style: none;
	font-size: 16px;
}

.woocommerce-message {
	border-left-color: #1a9c2f; /* success: green, like the in-stock tick */
}

.woocommerce-error {
	border-left-color: #d62020;
}

.woocommerce-error li {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

/* "View cart" / action button: sits on the right, same height as other buttons */
.woocommerce-message .button,
.woocommerce-message .restore-item,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	margin: 0;
	background: var(--bb-orange);
	color: #fff;
	font-family: var(--bb-font-head);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.15s;
}

.woocommerce-message .button:hover,
.woocommerce-message .restore-item:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
	background: var(--bb-orange-dark);
}

/* ---------- Quantity stepper (product + cart; buttons added by quantity.js) ---------- */
.bb-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #cfcfcf;
	background: #fff;
}

.bb-qty__btn {
	width: 40px;
	border: 0;
	background: #f3f3f3;
	color: #333;
	font-family: var(--bb-font-head);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.bb-qty__btn:hover:not(:disabled) {
	background: var(--bb-orange);
	color: #fff;
}

.bb-qty__btn:disabled {
	color: #b5b5b5;
	cursor: not-allowed;
}

.bb-qty__note {
	display: block;
	margin-top: 6px;
	color: #d62020;
	font-family: var(--bb-font-body);
	font-size: 13px;
	line-height: 1.3;
}

.bb-qty__note:empty {
	display: none;
}

.quantity .qty {
	width: 56px;
	height: 46px;
	padding: 0;
	border: 0;
	background: #fff;
	font-family: var(--bb-font-head);
	font-size: 19px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- WooCommerce loading overlay (jQuery BlockUI) ----------
   WooCommerce covers an area with a translucent sheet while it refreshes totals. Its default
   z-index (1000) would paint over the sticky header (100), so it is kept below it. */
.blockUI.blockOverlay {
	z-index: 5 !important;
	cursor: progress;
}

.blockUI.blockOverlay::before {
	content: "";
	position: absolute;
	top: 140px;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border: 4px solid rgba(243, 58, 10, 0.2);
	border-top-color: var(--bb-orange);
	border-radius: 50%;
	animation: bb-spin 0.7s linear infinite;
}

@keyframes bb-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.blockUI.blockOverlay::before {
		animation: none;
	}
}

/* ---------- Sticky footer: short pages keep the footer at the bottom of the window ---------- */
.bb-main {
	flex: 1 0 auto;
}

/* The WordPress admin bar adds a margin to the page; subtract it so there is no extra scroll. */
.admin-bar {
	min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	.admin-bar {
		min-height: calc(100vh - 46px);
	}
}

/* Solid (filled) button variant */
.bb-btn--solid {
	background: var(--bb-orange);
	color: #fff;
}

.bb-btn--solid:hover {
	background: var(--bb-orange-dark);
	border-color: var(--bb-orange-dark);
}
