/*
Theme Name: Frost
Theme URI: https://frostwp.com/
Author: WP Engine
Author URI: https://wpengine.com/
Description: Frost, rebuilt with the Frost + WooCommerce design system (see FROST-WOO-DESIGN-DEV-SHEET.md): tinted borders, pill controls, soft cards, sticky floating header, category mega menu, product cards, carousels.
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, one-column, template-editing, threaded-comments, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 1.2.0
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: frost
*/

/* Tokens
   Borders are always tints of the contrast color, never solid black. */
:root {
	--fw-line-soft: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	--fw-line: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	--fw-line-pill: color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	--fw-line-strong: color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
	--fw-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	--fw-radius: 8px;
	--fw-content-max: 1440px;
	/* WooCommerce prints --drawer-width:480px inline; too wide for phones. */
	--drawer-width: min(480px, 92vw) !important;
}

/* Defaults
---------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

/* `clip`, not `hidden`: hidden turns <body> into a scroll container and
   breaks the sticky header. `hidden` first as a fallback. */
html,
body {
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

body {
	-webkit-font-smoothing: antialiased;
}

::selection {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
	transition: all 0.2s ease-in-out;
}

a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

b,
strong,
th {
	font-weight: var(--wp--custom--font-weight--medium);
}

/* Forms
---------------------------------------- */

input,
select,
textarea {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--fw-line-pill);
	border-radius: var(--fw-radius);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: 1.4;
	padding: 10px 16px;
	width: 100%;
}

select {
	line-height: normal;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

/* Native controls, not text fields. */
input[type="checkbox"],
input[type="radio"] {
	background: none;
	border: 0;
	padding: 0;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
	-webkit-appearance: none;
}

::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 0.5;
}

/* Blocks
---------------------------------------- */

*:not(.wp-block-code) > code {
	background-color: var(--wp--preset--color--neutral);
	border-radius: 4px;
	font-size: var(--wp--preset--font-size--x-small);
	padding: 3px 6px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--custom--spacing--gap);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--custom--spacing--gap);
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--fw-line);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	padding: 10px;
}

.is-style-shadow-light {
	box-shadow: var(--wp--preset--shadow--light);
}

.is-style-shadow-solid {
	box-shadow: var(--wp--preset--shadow--solid);
}

@media only screen and (max-width: 600px) {
	.is-style-hidden-mobile {
		display: none !important;
	}
}

@media only screen and (max-width: 782px) {
	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}
}

/* Header: sticky, single line, floating on scroll
---------------------------------------- */

/* Sticky on the template-part <header> wrapper: the inner group's parent
   is exactly its own height, so sticky there has no room to move. */
header.wp-block-template-part:has(> .site-header-sticky) {
	position: -webkit-sticky;
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.site-header-sticky {
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 var(--fw-line-soft);
	isolation: isolate;
	position: relative;
	transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

/* Frosted blur on a ::before layer, never on the header itself:
   backdrop-filter on an ancestor traps position:fixed children (the Mini
   Cart drawer and the mobile nav overlay live inside this header). */
.site-header-sticky::before {
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	content: "";
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.25s ease;
	z-index: -1;
}

.site-header-sticky.is-scrolled {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	box-shadow: 0 6px 24px color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
	padding-bottom: 8px !important;
	padding-top: 8px !important;
}

.site-header-sticky.is-scrolled::before {
	opacity: 1;
}

.site-header-row {
	align-items: center;
	gap: 28px;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--fw-content-max) !important;
}

.site-header-sticky .wp-block-site-title {
	flex-shrink: 0;
	margin: 0;
	white-space: nowrap;
}

/* Search: a pill with a neutral fill, grows to fill the middle. */
.nav-search {
	flex: 1 1 auto;
	margin: 0 auto;
	max-width: 640px;
	position: relative;
}

.nav-search .wp-block-search__inside-wrapper {
	background-color: var(--wp--preset--color--neutral);
	border: none;
	border-radius: 999px;
	padding: 0 6px 0 18px;
}

.nav-search .wp-block-search__input {
	background-color: transparent;
	border: none;
	border-radius: 0;
	font-size: var(--wp--preset--font-size--small);
	padding: 9px 0;
}

.nav-search .wp-block-search__button {
	background-color: transparent;
	border: none;
	border-radius: 999px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent);
	padding: 6px 8px;
}

.nav-search .wp-block-search__button svg {
	fill: currentColor;
}

.nav-search .wp-block-search__button:hover {
	color: var(--wp--preset--color--primary);
}

.header-nav-cart {
	align-items: center;
	flex-shrink: 0;
	gap: 24px;
}

.header-nav-cart .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
	gap: 24px;
}

.header-nav-cart .wp-block-navigation-item__content {
	padding: 4px 0;
}

.header-nav-cart .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.site-header-sticky .wp-block-navigation__responsive-container-open,
.site-header-sticky .wp-block-navigation__responsive-container-close {
	border: none;
	padding: 10px;
}

@media only screen and (min-width: 901px) {
	.site-header-sticky {
		padding-left: var(--wp--preset--spacing--medium) !important;
		padding-right: var(--wp--preset--spacing--medium) !important;
	}
}

@media only screen and (min-width: 901px) and (max-width: 1200px) {
	.site-header-sticky {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	.site-header-row {
		gap: 18px;
	}

	.header-nav-cart,
	.header-nav-cart .wp-block-navigation {
		gap: 16px;
	}
}

/* Phones/tablets: title left, icons grouped right; search collapses to an
   icon that expands into a bar (assets/js/site.js). */
@media only screen and (max-width: 900px) {
	.site-header-row {
		column-gap: 8px;
	}

	.site-header-sticky .wp-block-site-title {
		margin-right: auto;
	}

	.nav-search {
		flex: 0 0 auto;
		max-width: none;
	}

	.nav-search:not(.is-expanded) .wp-block-search__inside-wrapper {
		background-color: transparent;
		padding: 0;
	}

	.nav-search .wp-block-search__input {
		display: none;
	}

	.nav-search .wp-block-search__button {
		padding: 8px;
	}

	.nav-search.is-expanded {
		background-color: var(--wp--preset--color--base);
		border: 1px solid var(--fw-line);
		border-radius: var(--fw-radius);
		box-shadow: var(--fw-shadow);
		left: -12px;
		margin-top: 8px;
		padding: 6px;
		position: absolute;
		right: -12px;
		top: 100%;
		z-index: 200;
	}

	.nav-search.is-expanded .wp-block-search__input {
		display: block;
		width: 100%;
	}

	.header-nav-cart {
		gap: 14px;
	}
}

@media only screen and (max-width: 600px) {
	.site-header-sticky {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}
}

@media only screen and (max-width: 480px) {
	.site-header-sticky {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.site-header-sticky .wp-block-site-title {
		font-size: 18px;
	}

	.header-nav-cart {
		gap: 10px;
	}
}

/* Live search suggestions (assets/js/site.js). */
.search-suggestions {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--fw-line);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	left: 0;
	margin-top: 0.5rem;
	max-height: 70vh;
	overflow: hidden auto;
	position: absolute;
	right: 0;
	top: 100%;
	width: max(320px, 100%);
	z-index: 101;
}

.search-suggestions__item {
	align-items: center;
	color: var(--wp--preset--color--contrast);
	display: flex;
	gap: 0.75rem;
	padding: 0.6rem 0.85rem;
	text-decoration: none;
}

.search-suggestions__item:hover,
.search-suggestions__item:focus {
	background-color: var(--wp--preset--color--neutral);
}

.search-suggestions__thumb {
	background-color: var(--wp--preset--color--neutral);
	border-radius: 4px;
	flex-shrink: 0;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.search-suggestions__text {
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.3;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-suggestions__price {
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.search-suggestions__price del {
	font-weight: 300;
	opacity: 0.6;
}

.search-suggestions__all {
	border-top: 1px solid var(--fw-line-soft);
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	padding: 0.6rem 0.85rem;
	text-align: center;
}

.search-suggestions__empty {
	font-size: var(--wp--preset--font-size--x-small);
	margin: 0;
	opacity: 0.6;
	padding: 0.85rem;
	text-align: center;
}

/* Categories mega menu (getwid-megamenu shell + frostwoo/category-panel)
---------------------------------------- */

.catmenu {
	flex: 0 0 auto;
	margin: 0;
}

/* Trigger: bordered pill. */
.catmenu-item > .gw-mm-item__link {
	align-items: center;
	background: none;
	border: 1px solid var(--fw-line-pill);
	border-radius: 999px;
	gap: 6px;
	padding: 8px 20px;
}

.catmenu-item > .gw-mm-item__link a {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	padding: 0;
	text-decoration: none;
}

.catmenu-item > .gw-mm-item__link:hover {
	border-color: var(--wp--preset--color--primary);
}

.catmenu-item > .gw-mm-item__link:hover a,
.catmenu-item > .gw-mm-item__link:hover .gw-mm-item__toggle {
	color: var(--wp--preset--color--primary);
}

.catmenu-item > .gw-mm-item__link .gw-mm-item__toggle {
	color: var(--wp--preset--color--contrast);
}

.catmenu-item > .gw-mm-item__link .gw-mm-item__toggle .dashicons {
	font-size: 16px;
	height: 16px;
	width: 16px;
}

/* The plugin's JS sets an inline width on the wrapper, so explicit widths
   need !important. Widths = panel width + 2 × 24px padding. */
.catmenu-item > .gw-mm-item__dropdown-wrapper {
	left: 0 !important;
	right: auto;
	width: 892px !important;
}

.catmenu-item > .gw-mm-item__dropdown-wrapper > .gw-mm-item__dropdown {
	border: 1px solid var(--fw-line);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	padding: 24px;
}

.cat-panel {
	column-count: 3;
	column-gap: 32px;
	max-width: calc(100vw - 72px);
	width: 844px;
}

@media only screen and (min-width: 1400px) {
	.cat-panel {
		column-count: 4;
		width: 1136px;
	}

	.catmenu-item > .gw-mm-item__dropdown-wrapper {
		width: 1184px !important;
	}
}

@media only screen and (max-width: 900px) {
	.cat-panel {
		column-count: 1;
		width: 280px;
	}

	.catmenu-item > .gw-mm-item__dropdown-wrapper {
		width: 328px !important;
	}
}

.cat-panel__category {
	break-inside: avoid;
	margin-bottom: 18px;
}

.cat-panel__category-title {
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 6px;
}

.cat-panel__category-title a {
	color: var(--wp--preset--color--contrast);
	font-weight: var(--wp--custom--font-weight--medium);
	text-decoration: none;
}

.cat-panel__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-panel__sublist a {
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.7;
	padding: 3px 0;
	text-decoration: none;
}

.cat-panel__category-title a:hover,
.cat-panel__sublist a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

/* Mobile: the toggle drops to its own row; one tap opens the whole list. */
.site-header-row:has(> .catmenu.is-mobile) {
	flex-wrap: wrap;
	row-gap: 10px;
}

.site-header-sticky .catmenu.is-mobile {
	flex-basis: 100%;
	order: 10;
}

.catmenu .gw-mm__toggle {
	align-items: center;
	background: none;
	border: 1px solid var(--fw-line-pill);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	gap: 6px;
	padding: 8px 20px;
}

.catmenu .gw-mm__toggle:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.catmenu .gw-mm__toggle .dashicons {
	font-size: 16px;
	height: 16px;
	transition: transform 0.2s ease;
	width: 16px;
}

.gw-mm.is-mobile.is-opened .gw-mm__toggle .dashicons {
	transform: rotate(180deg);
}

.gw-mm.is-mobile .catmenu-item > .gw-mm-item__link .gw-mm-item__toggle {
	display: none;
}

.gw-mm.is-mobile.is-opened .catmenu-item .gw-mm-item__dropdown-wrapper {
	height: auto !important;
	overflow: visible !important;
	position: static;
}

.gw-mm.is-mobile .catmenu-item > .gw-mm-item__dropdown-wrapper {
	width: auto !important;
}

.gw-mm.is-mobile .catmenu-item > .gw-mm-item__dropdown-wrapper > .gw-mm-item__dropdown {
	border: none;
	box-shadow: none;
	padding: 16px;
}

.gw-mm.is-mobile .cat-panel {
	max-width: none;
	width: auto;
}

/* WooCommerce
---------------------------------------- */

.wc-block-components-quantity-selector__input {
	padding: 0;
}

.wc-block-store-notices:not(:has(.woocommerce-notices-wrapper *)) {
	display: none;
}

.wc-block-breadcrumbs {
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 0.5rem;
}

.wp-block-woocommerce-product-meta .wp-block-post-terms {
	font-size: var(--wp--preset--font-size--x-small);
}

/* Infinite scroll takes over from numbered pagination (assets/js/site.js). */
.wp-block-query-pagination[hidden] {
	display: none;
}

.shop-infinite-scroll-sentinel {
	margin: var(--wp--preset--spacing--large) 0;
	opacity: 0.6;
	text-align: center;
}

/* Shop toolbar: category dropdown + sorting as pill selects. */
.shop-toolbar {
	align-items: center;
	gap: 16px;
	margin-bottom: 1rem;
}

.wc-block-product-categories__button {
	display: none;
}

.shop-category-dropdown .wc-block-product-categories__dropdown select,
.wc-block-catalog-sorting select.orderby {
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%230f172a'/%3E%3C/svg%3E");
	background-position: right 20px center;
	background-repeat: no-repeat;
	background-size: 8px 5px;
	border: 1px solid var(--fw-line-pill);
	border-radius: 999px;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--small);
	height: auto;
	line-height: normal;
	padding: 11px 44px 11px 20px;
	transition: border-color 0.15s ease;
}

.shop-category-dropdown .wc-block-product-categories__dropdown select:hover,
.shop-category-dropdown .wc-block-product-categories__dropdown select:focus-visible,
.wc-block-catalog-sorting select.orderby:hover,
.wc-block-catalog-sorting select.orderby:focus-visible {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

/* The opened option list: customizable <select> (Chromium 135+); other
   browsers keep the native list. */
@supports (appearance: base-select) {
	.shop-category-dropdown .wc-block-product-categories__dropdown select,
	.shop-category-dropdown .wc-block-product-categories__dropdown select::picker(select),
	.wc-block-catalog-sorting select.orderby,
	.wc-block-catalog-sorting select.orderby::picker(select) {
		appearance: base-select;
	}

	/* base-select sizes to the selected option; fix the widths. */
	.shop-category-dropdown .wc-block-product-categories__dropdown select {
		max-width: 100%;
		width: 360px;
	}

	.wc-block-catalog-sorting select.orderby {
		max-width: 100%;
		width: 300px;
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select::picker-icon,
	.wc-block-catalog-sorting select.orderby::picker-icon {
		display: none;
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select::picker(select),
	.wc-block-catalog-sorting select.orderby::picker(select) {
		background: var(--wp--preset--color--base);
		border: 1px solid var(--fw-line-pill);
		border-radius: var(--fw-radius);
		box-shadow: var(--fw-shadow);
		margin-top: 6px;
		max-height: 420px;
		padding: 6px 0;
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select option,
	.wc-block-catalog-sorting select.orderby option {
		font-size: var(--wp--preset--font-size--small);
		padding: 6px 20px;
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select option::checkmark,
	.wc-block-catalog-sorting select.orderby option::checkmark {
		display: none;
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select option:hover,
	.wc-block-catalog-sorting select.orderby option:hover {
		background: var(--wp--preset--color--neutral);
	}

	.shop-category-dropdown .wc-block-product-categories__dropdown select option:checked,
	.wc-block-catalog-sorting select.orderby option:checked {
		color: var(--wp--preset--color--primary);
	}
}

@media only screen and (max-width: 600px) {
	.shop-toolbar {
		flex-wrap: wrap;
	}

	.shop-toolbar > * {
		flex-basis: 100%;
	}
}

/* Product grid: column count follows the viewport. WooCommerce's
   .columns-N rule is two classes, hence !important. */
.wc-block-product-template__responsive {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}

/* Product cards (shop, search, front-page carousels): soft card, equal
   height, price + round add-to-cart row pinned to the bottom. */
.wc-block-product-template > li.wc-block-product {
	display: flex;
	flex-direction: column;
}

li.wc-block-product:has(> .shop-card-actions) {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--fw-line);
	border-radius: var(--fw-radius);
	overflow: hidden;
	padding: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

li.wc-block-product:has(> .shop-card-actions):hover {
	border-color: var(--fw-line-pill);
	box-shadow: var(--fw-shadow);
}

li.wc-block-product:has(> .shop-card-actions) .wc-block-components-product-image img {
	border-radius: 4px;
}

.shop-card-sku {
	margin-bottom: 0.35rem;
	opacity: 0.6;
}

.shop-card-title {
	min-height: 2.8em;
}

.shop-card-title a {
	text-decoration: none;
}

.shop-card-actions {
	margin-top: auto !important;
	padding-top: 0.75rem;
}

.shop-card-actions .wc-block-components-product-price .amount {
	font-weight: 700;
}

.shop-card-actions .wc-block-components-product-price del .amount {
	font-weight: normal;
}

.shop-card-add-to-cart.wp-block-button .wp-block-button__link,
.shop-card-add-to-cart.wp-block-button .wp-block-button__link * {
	font-size: 0;
}

.shop-card-add-to-cart.wp-block-button .wp-block-button__link {
	align-items: center;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1.5 10.5a2 2 0 0 1-2 1.5H9.5a2 2 0 0 1-2-1.5L6 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 20px 20px;
	border-radius: 50%;
	display: flex;
	flex-shrink: 0;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.wc-block-components-product-sale-badge {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--fw-line-pill);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	padding: 2px 10px;
}

/* Carousels (Product Collection, Carousel layout). */
.is-product-collection-layout-carousel {
	align-items: stretch !important;
}

@media (max-width: 600px) {
	.is-product-collection-layout-carousel {
		scroll-padding: 0;
	}

	.is-product-collection-layout-carousel .wc-block-product {
		max-width: 100%;
		min-width: 100%;
	}
}

/* At most 5 cards in view on wide screens; the rest scroll. */
@container carousel (min-width: 1280px) {
	ul.is-product-collection-layout-carousel > li.wc-block-product {
		max-width: none;
		min-width: calc((100% - 4 * 30px) / 5);
	}
}

.wc-block-next-previous-buttons__button {
	align-items: center;
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
	border: none;
	border-radius: 50%;
	color: var(--wp--preset--color--base);
	display: flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.wc-block-next-previous-buttons__button:hover:not([aria-disabled="true"]) {
	background-color: var(--wp--preset--color--primary);
}

.wc-block-next-previous-buttons__button[aria-disabled="true"] {
	cursor: not-allowed;
}

.wc-block-next-previous-buttons__button[aria-disabled="true"] .wc-block-next-previous-buttons__icon {
	opacity: 40%;
}

.wc-block-next-previous-buttons__icon {
	height: 14px;
	width: 14px;
}

.wc-product-collection-carousel-header {
	margin-bottom: 1rem;
}

.wc-product-collection-carousel-header .wp-block-heading {
	margin: 0;
}

.wc-product-collection-carousel-header .wp-block-heading a {
	text-decoration: none;
}

.wc-product-collection-carousel-header .wp-block-heading a:hover {
	color: var(--wp--preset--color--primary);
}

/* Page widths: content is capped at the same width as the header row. */
.fw-wide-main {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: calc(var(--fw-content-max) + 2 * var(--wp--preset--spacing--medium));
}

/* Front page
---------------------------------------- */

.front-hero {
	border-radius: var(--fw-radius);
	overflow: hidden;
}

.front-hero .wp-block-cover__inner-container {
	max-width: 560px;
	margin-left: 0 !important;
}

.front-usps {
	border-bottom: 1px solid var(--fw-line);
	border-top: 1px solid var(--fw-line);
	padding-bottom: 18px;
	padding-top: 18px;
}

.front-usps p {
	font-size: var(--wp--preset--font-size--x-small);
	margin: 0;
}

.front-usps strong {
	color: var(--wp--preset--color--primary);
	display: block;
	font-size: var(--wp--preset--font-size--small);
}

/* Single product
---------------------------------------- */

@media only screen and (max-width: 781px) {
	body.single-product main.wp-block-group {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* Footer
---------------------------------------- */

.site-footer {
	position: relative;
}

.site-footer::before {
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary), transparent);
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.site-footer .alignwide {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: var(--fw-content-max) !important;
}

.site-footer a {
	color: var(--wp--preset--color--contrast);
	opacity: 0.75;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.site-footer-columns {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--medium);
}

.site-footer-column {
	min-width: 160px;
}

.site-footer-heading.site-footer-heading {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.06em;
	margin-bottom: 0.75em;
	opacity: 0.6;
	text-transform: uppercase;
}

.site-footer-list {
	line-height: 1.9;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer-bottom {
	border-top: 1px solid var(--fw-line);
	margin-top: var(--wp--preset--spacing--medium);
	opacity: 0.7;
	padding-top: var(--wp--preset--spacing--x-small);
}

@media only screen and (max-width: 600px) {
	.site-footer-bottom {
		flex-wrap: wrap;
	}
}

/* Phones: tighter page edges, a hero that fits, and a toolbar that stacks
   cleanly (the fixed base-select widths above would overflow). */
@media only screen and (max-width: 600px) {
	.fw-wide-main {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.front-hero {
		min-height: 420px !important;
		padding: 32px 24px !important;
	}

	.front-hero .wp-block-heading {
		font-size: clamp(32px, 9vw, 42px) !important;
	}

	.front-hero p {
		font-size: var(--wp--preset--font-size--small) !important;
	}

	.shop-toolbar > .wp-block-group {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.shop-toolbar .wc-block-product-results-count {
		font-size: var(--wp--preset--font-size--x-small);
	}

	.shop-category-dropdown,
	.shop-category-dropdown .wc-block-product-categories__dropdown,
	.shop-category-dropdown .wc-block-product-categories__dropdown select,
	.wc-block-catalog-sorting,
	.wc-block-catalog-sorting select.orderby {
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
