/*!
Theme Name: Mighty1 Publishing
Theme URI: http://underscores.me/
Author: Flip Van de Voort
Author URI: https://fvoort.com
Description: Description
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mighty1-publishing
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Mighty1 Publishing is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Modern reset: https://piccalil.li/blog/a-more-modern-css-reset/ */

/* Box sizing rules */

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

/* Prevent font size inflation */

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin-block: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core body defaults */

body {
	min-height: 100vh;
	line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */

h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

/* Balance text wrapping on headings */

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

/* A elements that don't have a class get default styles */

a:not([class]) {
	text-decoration-skip-ink: auto;
	color: currentColor;
}

/* Make images easier to work with */

img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */

input,
button,
textarea,
select {
	font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */

textarea:not([rows]) {
	min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */

:target {
	scroll-margin-block: 5ex;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
	display: block;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
	border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
	/* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
	/* 1 */
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type='checkbox'],
[type='radio'] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type='search']::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
	display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
	display: none;
}

/* Flip's reset */

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

:root {
	--color-surface-page: #FFFFFF;
	--color-surface-button-primary-default: #FFD100;
	--color-surface-button-primary-hover: #000000;
	--color-surface-button-secondary-default: var(--color-surface-page);
	--color-surface-button-secondary-hover: #F1F1F1;
	--color-surface-filter-button-default: var(--color-surface-page);
	--color-surface-filter-button-hover: #000000;
	--color-surface-status-label-positive: #E7FBEE;
	--color-surface-status-label-neutral: #E7F4FB;
	--color-surface-status-label-negative: #FFEDED;
	--color-text-default: #000000;
	--color-text-subtle: #474747;
	--color-text-positive: #127C3A;
	--color-text-neutral: #00AAFF;
	--color-text-negative: #FF0400;
	--color-text-on-dark-default: #FFFFFF;
	--color-icon-default: var(--color-text-default);
	--color-icon-subtle: var(--color-text-subtle);
	--color-icon-disabled: #808080;
	--color-icon-on-dark-default: var(--color-text-on-dark-default);
	--color-border-primary: #FFD100;
	--color-border-default: #000000;
	--color-border-subtle: #F1F1F1;
	--color-border-button-primary-default: #FFDB39;
	--color-border-button-primary-hover: var(--color-border-default);
	--color-border-button-secondary-default: var(--color-border-subtle);
	--color-border-button-secondary-hover: #D4D4D4;
	--color-border-status-label-positive: #B5F4CD;
	--color-border-status-label-neutral: #B5DFF4;
	--color-border-status-label-negative: #FFC9C8;
	--space-4xs: clamp(0.125rem, -0.00rem + 0.26vw, 0.1875rem);
	--space-3xs: clamp(0.25rem, 0.12rem + 0.26vw, 0.3125rem);
	--space-2xs: clamp(0.5rem, 0.37rem + 0.26vw, 0.5625rem);
	--space-xs: clamp(0.75rem, 0.62rem + 0.26vw, 0.8125rem);
	--space-s: clamp(1rem, 0.87rem + 0.26vw, 1.0625rem);
	--space-m: clamp(1.25rem, 1.12rem + 0.26vw, 1.3125rem);
	--space-l: clamp(1.5rem, 1.37rem + 0.26vw, 1.5625rem);
	--space-xl: clamp(2rem, 1.87rem + 0.26vw, 2.0625rem);
	--space-2xl: clamp(3rem, 2.87rem + 0.26vw, 3.0625rem);
	--space-3xl: clamp(4rem, 3.87rem + 0.26vw, 4.0625rem);
	--space-zero: clamp(0rem, -0.13rem + 0.26vw, 0.0625rem);
	--space-xl-3xl: clamp(2rem, -2.28rem + 8.46vw, 4.0625rem);
	--space-zero-2xl: clamp(0rem, -6.36rem + 12.56vw, 3.0625rem);
	--space-logo-height: clamp(3.125rem, 1.83rem + 2.56vw, 3.75rem);
	--size-step-00: clamp(0.916875rem, 0.74rem + 0.34vw, 1rem);
	--size-step-0: clamp(1.1rem, 0.89rem + 0.41vw, 1.2rem);
	--size-step-1: clamp(1.35rem, 0.91rem + 0.87vw, 1.5625rem);
	--size-step-2: clamp(1.58375rem, 1.28rem + 0.59vw, 1.728125rem);
	--size-step-3: clamp(1.900625rem, 1.54rem + 0.71vw, 2.07375rem);
	--size-step-4: clamp(2.28125rem, 1.85rem + 0.85vw, 2.488125rem);
	--size-step-5: clamp(2.736875rem, 2.22rem + 1.02vw, 2.98625rem);
	--leading-flat: 1;
	--leading-fine: 1.2;
	--font-base: futura-pt,Inter,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;
	--font-regular: 400;
	--font-bold: 500;
	--gutter: var(--space-m);
	--transition-base: 250ms ease-in-out;
	--transition-bounce: 500ms cubic-bezier(0.5, 0.05, 0.2, 1.5);
	--leading-standard: 1.4;
	--corner-radius: 8px;
	--shadow-raised-surface: 0 0 15px 0 rgba(0, 0, 0, 0.05);
}

/*
  Global styles

  Low-specificity, global styles that apply to the whole
  project: https://cube.fyi/css.html
*/

body {
    background: var(--color-surface-page);
    color: var(--color-text-default);
    font-size: var(--size-step-0);
    font-family: var(--font-base);
    line-height: var(--leading-standard);
}

h1,
h2,
h3,
h4 {
    font-weight: var(--font-bold);
    line-height: var(--leading-fine);
}

strong {
    font-weight: var(--font-bold);
}

a {
    color: currentColor;

    &:hover {
        text-decoration: none;
    }
}

*:has(> label) {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-3xs);
}

label {
    font-weight: var(--font-bold);
    line-height: var(--leading-fine);
}

input:not(.qty),
select,
textarea {
    line-height: var(--leading-flat);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--corner-radius);
    padding: var(--space-2xs) var(--space-s);

    & ::placeholder {
        color: var(--color-text-subtle);
    }

    &:focus {
        border-color: var(--color-border-default);
        outline: 1px solid var(--color-border-primary);
        outline-offset: 1px;
    }
}

label:has(input[type="checkbox"]) {
    font-size: var(--size-step-0);
    font-weight: var(--font-regular);
    line-height: var(--leading-standard);

    display: inline-flex;
    gap: var(--space-2xs);
}

textarea {
    line-height: var(--leading-standard);
    width: 100%;
}

details::details-content {
    display: block;
    block-size: 0;
    overflow: hidden;
    transition:
        block-size var(--transition-base),
        content-visibility var(--transition-base);
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto; /* Fallback for browsers that don't support calc-size() */
    block-size: calc-size(auto, size);
}

summary {
    position: relative;
    anchor-name: --summary;
    cursor: pointer;

    padding-right: calc(1.125rem + var(--space-m));

    &::marker {
        content: "";
    }

    &::before,
    &::after {
        content: "";
        background: var(--color-icon-default);
        border-radius: 999px;
        height: 2.25px;
        width: 1.125rem;
        transition: transform var(--transition-bounce);

        inset-block-start: 50%;
        inset-inline-end: 0;

        position: absolute;
        position-anchor: --summary;
        position-area: top end;
    }

    &::after {
        transform: rotate(90deg);
        transform-origin: 50%;
    }
}

details[open] {
    & summary::before {
        transform: rotate(-180deg);
    }

    & summary::after {
        transform: rotate(-180deg);
    }
}

.alert {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	background: var(--color-surface-page);
	box-shadow: var(--shadow-raised-surface);
	border: 1px solid var(--color-border-subtle);
	border-radius: 15px;
	padding: var(--space-2xs);
	padding-left: var(--space-l);
	z-index: 999;

	& .button {
		border-radius: calc(15px - var(--space-2xs));
	}
}

.author-image-group {
    display: flex;
    justify-content: end;
    align-items: center;
    position: sticky;
    top: var(--space-3xl);
}

.author-image {
	--padding: var(--space-3xs);

	aspect-ratio: 1/1;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 200px;
	background: var(--color-surface-page);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--corner-radius);
	box-shadow: var(--shadow-raised-surface);
	padding: var(--padding);
	transform: rotate(4deg);
	transition: transform var(--transition-bounce);

	&:not(:first-of-type) {
		margin-left: -40px;
	}
}

.author-image:first-of-type:not(:hover),
.author-image:not(:first-of-type):hover {
	transform: rotate(-4deg);
}

.author-image > img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: calc(var(--corner-radius) - var(--padding));
}

.backorder {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: var(--space-2xs);
    row-gap: var(--space-3xs);
    font-size: var(--size-step-00);
    color: var(--color-text-negative);
    padding-block: var(--space-3xs);
}

.button {
    display: inline-flex;
    justify-content: center;
    gap: var(--space-2xs);
    width: fit-content;
    background: var(--color-surface-button-primary-default);
    color: inherit ! /* Override default link color */ important;
    border: 1px solid var(--color-border-button-primary-default);
    border-radius: 999px;
    text-decoration: none;
    font-weight: var(--font-bold);
    line-height: var(--leading-fine);
    padding: var(--space-2xs) var(--space-m);

    cursor: pointer;

    transition: var(--transition-base);

    &:hover {
        background: var(--color-surface-button-primary-hover);
        color: var(--color-text-on-dark-default) ! /* Override default link color */ important;
        border-color: var(--color-border-button-primary-hover);
    }

    &:has(.icon) {
        padding-left: var(--space-2xs);
    }
}

.cart-actions {
    background: var(--color-surface-page);
    box-shadow: var(--shadow-raised-surface);
    padding: var(--space-s) var(--space-l) var(--space-l);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--corner-radius);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    max-width: 100% !important;

    & h2 {
        font-size: var(--size-step-1);
        padding-bottom: var(--space-2xs);
        border-bottom: 1px solid var(--color-border-subtle);
    }

    & .button {
        width: 100%;
    }
}

.cart-actions h2 + .coupon {
    margin-top: calc(var(--space-s) * -0.5);
}

.cart-actions .coupon__input {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);

    & > * {
        flex: 1 1 fit-content;
    }

    & > :first-child {
        flex: 1 200px;
    }
}

.cart-actions .subtotal-cost {
    color: var(--color-text-subtle);
    font-size: var(--size-step-00);
    padding-block: var(--space-2xs);
    border-block: 1px solid var(--color-border-subtle);

    & > * {
        display: flex;
        gap: var(--space-2xs);
        justify-content: space-between;
    }

    & .value {
        color: var(--color-text-default);
    }
}

.cart-actions .total-cost {
    font-size: var(--size-step-00);
    color: var(--color-text-subtle);

    & > :first-child {
        display: flex;
        gap: var(--space-2xs);
        justify-content: space-between;
        font-size: var(--size-step-0);
        font-weight: var(--font-bold);
        line-height: var(--leading-fine);
        color: var(--color-text-default);
    }

    & .includes_tax {
        display: none;
    }
}

.cart-icon {
	display: flex;
	font-size: 1.15em;
	position: relative;
	color: var(--color-icon-default);

	& .cart-count {
		font-size: var(--size-step-00);
		font-weight: var(--font-bold);
		line-height: var(--leading-flat);
		text-decoration: none;
		transform: scale(0.75);
		display: flex;
		align-items: center;
		aspect-ratio: 1/1;
		padding-inline: 6px;
		border-radius: 999px;
		background: var(--color-surface-button-primary-default);
		position: absolute;
		right: -35%;
		top: -25%;

		& p {
			margin-top: 0.05em;
			margin-left: 0.04em;
		}
	}
}

.cart-item {
    display: inline-grid;
    grid-auto-flow: column;
    gap: var(--gutter);
    grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr);
    font-size: var(--size-step-00);
    padding-block: var(--space-xs);
}

.cart-item img {
    border-radius: var(--corner-radius);
}

.cart-item a:has(h3) {
    text-decoration: none;

    & h3 {
        font-size: var(--size-step-1);
    }
}

.cart-item *:has(> .product-quantity) {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);

    & a {
        color: currentColor;
    }

    & a:hover {
        text-decoration: none;
    }
}

.cart-item .product-subtotal {
    font-size: var(--size-step-0);
    font-weight: var(--font-bold);
    line-height: var(--leading-fine);
    text-align: right;
}

.faq {
    --flow-space: var(--space-xs);

    & summary {
        font-size: var(--size-step-1);
        font-weight: var(--font-bold);
        line-height: var(--leading-fine);
    }
}

.icon-button {
	background: var(--color-surface-button-secondary-default) !important;
	border: 1px solid var(--color-border-button-secondary-default) !important;
	opacity: 1 !important;
	padding: var(--space-2xs) !important;
	transition: var(--transition-base);
}

.icon-button.prev {
	left: var(--space-xs) !important;

	& svg {
		transform: scaleX(-1);
	}
}

.icon-button.next {
	right: var(--space-xs) !important;
}

.icon-button:hover {
	background: var(--color-surface-button-secondary-hover) !important;
	border-color: var(--color-border-button-secondary-hover) !important;
}

.product-price {
	border-top: 1px solid var(--color-border-subtle);
	padding-top: var(--space-m);
}

.product-price > span {
	display: flex;
	gap: var(--space-2xs);
	align-items: baseline;
	font-size: var(--size-step-3);
	font-weight: var(--font-bold);
	line-height: var(--leading-fine);

	& small {
		font-size: var(--size-step-1);
		font-weight: var(--font-regular);
		color: var(--color-text-subtle);
	}
}

.product-quantity {
    display: flex;
    align-items: center;
    width: fit-content;
    background: var(--color-surface-page);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--corner-radius);

    & * {
        background: transparent;
        border: none;
        outline: none;
    }
}

.product-quantity button {
    display: flex;
    align-items: center;
    padding: var(--space-3xs) var(--space-2xs);
    color: var(--color-icon-default);

    &:disabled {
        color: var(--color-icon-disabled);
    }
}

.product-quantity button:not(:disabled) {
    cursor: pointer;
}

.product-quantity .quantity {
    display: flex;
}

.product-quantity input {
    width: 2em;
    text-align: center;
    font-weight: var(--font-bold);
}

/* Hide the number input spin buttons */

.product-quantity input::-webkit-inner-spin-button,
.product-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-quantity input[type="number"] {
    -moz-appearance: textfield;
}

.product:not(:first-of-type) {
	padding-top: var(--space-3xl);
	border-top: 1px solid var(--color-border-subtle);
}

.product__content {
	padding-block: var(--space-2xl);
}

.prose {
  --flow-space: var(--space-m);
}

.site-footer {
	font-size: var(--size-step-00);
	color: var(--color-text-subtle);
	margin-top: var(--space-3xl);

	& .wrapper > * {
		padding-block: var(--space-l);
		border-top: 1px solid var(--color-border-subtle);
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-xs);
		justify-content: space-between;
		align-items: center;
	}

	& ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}
}

.site-header {
	margin-bottom: var(--space-xl);
}

.site-header__main {
	padding-block: var(--space-l);
	border-bottom: solid 1px var(--color-border-subtle);

	& > .wrapper {
		display: flex;
		gap: var(--space-xl);
		justify-content: space-between;
		align-items: center;
	}
}

.site-header .wrapper:has(> .site-header__breadcrumbs) {
	display: flex;
}

.site-header__breadcrumbs {
	background: var(--color-surface-button-primary-default);
	color: inherit ! /* Override default link color */ important;
	border: solid 1px var(--color-border-button-primary-default);
	border-top: none;
	font-weight: var(--font-bold);
	line-height: var(--leading-fine);
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: var(--space-2xs) var(--space-xs);
	border-bottom-left-radius: var(--corner-radius);
	border-bottom-right-radius: var(--corner-radius);

	transition:
		background var(--transition-base),
		color var(--transition-base),
		border var(--transition-base);

	&:hover {
		background: var(--color-surface-button-primary-hover);
		color: var(
			--color-text-on-dark-default
		) ! /* Override default link color */ important;
		border-color: var(--color-border-button-primary-hover);
	}
}

.site-header__breadcrumbs-label {
	padding-inline: var(--space-2xs);
}

@media (width < 1200px) {
	.site-header .wrapper:has(> .site-header__breadcrumbs) {
		padding-left: 0 !important;
	}

	.site-header__breadcrumbs {
		padding-left: var(--gutter);
		border-left: none;
		border-bottom-left-radius: 0;
	}
}

.postnl-co-tr > td,
.stock {
    font-size: var(--size-step-00);
    font-weight: var(--font-bold);
    line-height: var(--leading-fine);
    border-radius: var(--corner-radius);
    padding: var(--space-3xs) var(--space-xs) !important;
    width: fit-content;
    background: var(--color-surface-status-label-positive);
    color: var(--color-text-positive);
    border: 1px solid var(--color-border-status-label-positive);
    text-align: center;
}

.stock.preorder {
    background: var(--color-surface-status-label-neutral);
    color: var(--color-text-neutral);
    border-color: var(--color-border-status-label-neutral);
}

.stock.available-on-backorder {
    background: var(--color-surface-status-label-negative);
    color: var(--color-text-negative);
    border-color: var(--color-border-status-label-negative);
}

.table-head tr {
    display: inline-flex;
    gap: var(--gutter);
    justify-content: space-between;
    width: 100%;
    color: var(--color-text-subtle);
    padding-bottom: var(--space-3xs);
    border-bottom: 1px solid var(--color-border-subtle);

    & th {
        font-weight: var(--font-bold) !important;
    }
}

table {
    border-collapse: collapse;
    line-height: var(--leading-fine);
}

th,
caption {
    text-align: start;
    font-weight: var(--font-bold);
}

th,
td {
    padding-block: var(--space-3xs);
}

/*
CLUSTER
More info: https://every-layout.dev/layouts/cluster/
A layout that lets you distribute items with consitent
spacing, regardless of their size

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-s-m)): This defines the space
between each item.

--cluster-horizontal-alignment (flex-start) How items should align
horizontally. Can be any acceptable flexbox aligmnent value.

--cluster-vertical-alignment How items should align vertically.
Can be any acceptable flexbox alignment value.
*/

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-l);
	justify-content: var(--cluster-horizontal-alignment, flex-start);
	align-items: var(--cluster-vertical-alignment, center);
}

.cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-block-size: 60vh;
    padding: var(--gutter);
    text-align: center;
}

.cover > * {
    margin-inline: auto;
}

/* 
FLOW COMPOSITION 
Like the Every Layout stack: https://every-layout.dev/layouts/stack/
Info about this implementation: https://piccalil.li/quick-tip/flow-utility/ 
*/

.flow > * + * {
	margin-top: var(--flow-space, var(--space-xs));
}

/* AUTO GRID
Related Every Layout: https://every-layout.dev/layouts/grid/
More info on the flexible nature: https://piccalil.li/tutorial/create-a-responsive-grid-layout-with-no-media-queries-using-css-grid/
A flexible layout that will create an auto-fill grid with
configurable grid item sizes

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-s-m)): This defines the space
between each item.

--grid-min-item-size (14rem): How large each item should be
ideally, as a minimum.

--grid-placement (auto-fill): Set either auto-fit or auto-fill
to change how empty grid tracks are handled */

.grid {
  display: grid;
  grid-template-columns: repeat(
    var(--grid-placement, auto-fill),
    minmax(var(--grid-min-item-size, 16rem), 1fr)
  );
  gap: var(--gutter, var(--space-s-l));
}

/* A split 50/50 layout */

.grid[data-layout='halves'] {
  --grid-placement: auto-fit;
  --grid-min-item-size: clamp(16rem, 50vw, 33rem);
}

/* Three column grid layout */

.grid[data-layout='thirds'] {
  --grid-placement: auto-fit;
  --grid-min-item-size: clamp(16rem, 33%, 20rem);
}

/*
REPEL
A little layout that pushes items away from each other where
there is space in the viewport and stacks on small viewports

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-s-m)): This defines the space
between each item.

--repel-vertical-alignment How items should align vertically.
Can be any acceptable flexbox alignment value.
*/

.repel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: var(--repel-vertical-alignment, center);
  gap: var(--gutter, var(--space-s-m));
}

.repel[data-nowrap] {
  flex-wrap: nowrap;
}

/* 
SIDEBAR
More info: https://every-layout.dev/layouts/sidebar/
A layout that allows you to have a flexible main content area
and a "fixed" width sidebar that sits on the left or right.
If there is not enough viewport space to fit both the sidebar
width *and* the main content minimum width, they will stack
on top of each other

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-size-1)): This defines the space
between the sidebar and main content.

--sidebar-target-width (20rem): How large the sidebar should be

--sidebar-content-min-width(50%): The minimum size of the main content area

EXCEPTIONS
.sidebar[data-direction='rtl']: flips the sidebar to be on the right 
*/

.sidebar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xl);
}

.sidebar:not([data-direction='rtl']) {
	& > :first-child {
		flex-basis: var(--sidebar-target-width, 40%);
		flex-grow: 1;
	}

	& > :last-child {
		flex-basis: 0;
		flex-grow: 999;
		min-width: var(--sidebar-content-min-width, 55%);
	}
}

.sidebar[data-direction='rtl'] {
	& > :first-child {
		flex-basis: 0;
		flex-grow: 999;
		min-width: var(--sidebar-content-min-width, 55%);
	}

	& > :last-child {
		flex-basis: var(--sidebar-target-width, 40%);
		flex-grow: 1;
	}
}

/*
SWITCHER
More info: https://every-layout.dev/layouts/switcher/
A layout that allows you to lay **2** items next to each other
until there is not enough horizontal space to allow that.

CUSTOM PROPERTIES AND CONFIGURATION
--gutter (var(--space-size-1)): This defines the space
between each item

--switcher-target-container-width (40rem): How large the container
needs to be to allow items to sit inline with each other

--switcher-vertical-alignment How items should align vertically.
Can be any acceptable flexbox alignment value.
*/

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter, var(--space-s-l));
  align-items: var(--switcher-vertical-alignment, flex-start);
}

.switcher > * {
  flex-grow: 1;
  flex-basis: calc((var(--switcher-target-container-width, 40rem) - 100%) * 999);
}

/* Max 2 items,
so anything greater than 2 is full width */

.switcher > :nth-child(n + 3) {
  flex-basis: 100%;
}

/*
WRAPPER COMPOSITION 
A common wrapper/container
*/

.wrapper {
	margin-inline: auto;
	max-width: 1200px;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
	position: relative;
}

.corner-radius {
	border-radius: var(--corner-radius);
	overflow: hidden;
}

.custom-logo {
	max-height: var(--space-logo-height);
	width: auto;
}

.custom-logo-link {
	display: flex;
}

.entry-header {
	--flow-space: var(--space-2xs);
	color: var(--color-text-subtle);

	& h1,
	h2,
	h3,
	h4 {
		color: var(--color-text-default);
		font-size: var(--size-step-5);
	}
}

.icon {
	display: inline-flex;
}

.icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor !important;
}

@supports (height: 1lh) {
	.icon svg {
		width: auto;
		height: 1lh;
	}
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    & main {
        flex: 1;
    }
}

/* 
REGION UTILITY
Consistent block padding for page sections
*/

.region {
  padding-block: var(--region-space, var(--space-xl-2xl));
}

/* 
VISUALLY HIDDEN UTILITY
Info: https://piccalil.li/quick-tip/visually-hidden/ 
*/

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