/**
 * Ottawa Appliance Specialists — WooCommerce skin.
 *
 * Loaded only on WooCommerce screens (shop, category, product, cart, checkout,
 * account). Reads the same brand tokens as main.css, so a colour change under
 * Site Settings → Branding restyles the shop too.
 *
 * @package OAS
 * @author  Selman Selman @ Engineered Leads
 */

/* ---------------------------------------------------------------- Store tokens */

/* Same brand colours as main.css; these add the store's own shape and status
   colours. Scoped to shop screens and the home page shop section. */
.oas-shop-page,
.oas-just-in {
	--oas-st-sep: rgba(0, 0, 0, 0.08);
	--oas-st-r: 12px;
	--oas-st-pill: 980px;
	--oas-st-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
	--oas-st-save-bg: color-mix(in srgb, var(--oas-primary) 10%, var(--oas-white));
	--oas-st-urgent: #b45309;
	--oas-st-ok: #15803d;
}

/* ---------------------------------------------------------------- Layout */

.oas-shop {
	padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--oas-section-y);
	background: var(--oas-white);
}

.oas-shop-page .oas-page {
	padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--oas-section-y);
}

.oas-shop-page .oas-page__title {
	font-size: var(--oas-step-4);
	font-weight: 800;
	margin-bottom: 1.5rem;
}

.oas-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	font-size: var(--oas-step--1);
	color: var(--oas-grey);
}

.oas-crumbs a {
	color: var(--oas-grey);
	text-decoration: none;
}

.oas-crumbs a:hover {
	color: var(--oas-primary);
	text-decoration: underline;
}

.oas-crumbs__sep {
	color: var(--oas-border);
}

.oas-shop__head {
	max-width: 70ch;
	margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.oas-shop__head .woocommerce-products-header__title,
.oas-shop__head h1 {
	margin: 0 0 8px;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.oas-shop__head .term-description,
.oas-shop__head .page-description {
	color: var(--oas-grey);
	font-size: var(--oas-step-0);
	line-height: 1.6;
}

.oas-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.oas-shop__toolbar .woocommerce-notices-wrapper {
	flex-basis: 100%;
}

.woocommerce .oas-shop__toolbar .woocommerce-result-count,
.woocommerce .oas-shop__toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
	color: var(--oas-grey);
	font-size: var(--oas-step--1);
}

.oas-shop-page select,
.oas-shop-page .select2-container .select2-selection--single {
	min-height: 44px;
	padding: 8px 36px 8px 12px;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius);
	background-color: var(--oas-white);
	color: var(--oas-dark);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
}

/* Sidebar beside the results on wide screens; the filters become a drawer above
   the results on phones and tablets. */
.oas-shop__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 1024px) {
	.oas-shop__layout {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 32px;
		align-items: start;
	}
}

/* ---------------------------------------------------------------- Home page product row */

.oas-just-in {
	padding-block: var(--oas-section-y);
	background: var(--oas-white);
}

.oas-just-in .woocommerce ul.products {
	margin-bottom: var(--oas-gap);
}

.oas-just-in__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: none;
	margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.oas-just-in__all {
	color: var(--oas-primary);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.oas-just-in__all:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.oas-just-in__label {
	margin: 0 0 16px;
	font-size: var(--oas-step-1);
	font-weight: 800;
}

/* Shop by category tiles */
.oas-cat-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.oas-cat-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.oas-cat-tiles {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.oas-cat-tiles__link {
	display: grid;
	gap: 2px;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-st-r);
	background: var(--oas-white);
	color: var(--oas-dark);
	text-decoration: none;
	transition: border-color 160ms var(--oas-st-ease), box-shadow 160ms var(--oas-st-ease);
}

.oas-cat-tiles__link:hover {
	border-color: var(--oas-dark);
	box-shadow: var(--oas-shadow-sm);
}

.oas-cat-tiles__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--oas-primary) 55%, transparent);
	outline-offset: 2px;
}

.oas-cat-tiles__media {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--oas-light);
}

.oas-cat-tiles__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oas-cat-tiles__name {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.oas-cat-tiles__count {
	color: var(--oas-grey);
	font-size: 13px;
	font-weight: 600;
}

/* Four across on wide screens, two on phones: a store grid, not a single column. */
@media (min-width: 1100px) {
	.oas-just-in .woocommerce ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.oas-just-in__more {
	margin: 0;
	text-align: center;
}

/* ---------------------------------------------------------------- Product grid */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin: 0 0 32px;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

/* A retail card: photo, name, the deal, then Add to cart and View. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-st-r);
	background: var(--oas-white);
	box-shadow: none;
	transition: border-color 160ms var(--oas-st-ease), box-shadow 160ms var(--oas-st-ease);
}

.woocommerce ul.products li.product:hover {
	border-color: color-mix(in srgb, var(--oas-dark) 35%, var(--oas-border));
	box-shadow: var(--oas-shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.oas-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--oas-light);
}

.woocommerce ul.products li.product .oas-card__media img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 480ms var(--oas-st-ease);
}

.woocommerce ul.products li.product:hover .oas-card__media img {
	transform: scale(1.04);
}

.oas-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: var(--oas-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--oas-dark);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--oas-primary);
}

/* Price row: the price you pay in red, the old price struck through beside it. */
.woocommerce ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin: auto 0 0;
	padding-top: 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--oas-dark);
}

.woocommerce ul.products li.product .price del {
	order: 2;
	font-size: 14px;
	font-weight: 500;
	color: var(--oas-grey);
	opacity: 1;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--oas-primary);
}

.oas-save {
	align-self: flex-start;
	width: fit-content;
	margin: 0;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--oas-st-save-bg);
	color: var(--oas-primary);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
}

.oas-only-one,
.woocommerce div.product .stock.in-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--oas-st-urgent);
	font-size: 13px;
	font-weight: 700;
}

.oas-only-one::before,
.woocommerce div.product .stock.in-stock::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.oas-card__actions {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 8px;
	padding: 14px 16px 16px;
}

.woocommerce ul.products li.product .oas-card__actions .button {
	display: inline-flex;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 10px;
	font-size: 14px;
}

.oas-card__actions > :only-child {
	grid-column: 1 / -1;
}

.oas-card__sold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: var(--oas-radius);
	background: var(--oas-light);
	color: var(--oas-grey);
	font-size: 14px;
	font-weight: 700;
}

/* Phones: two cards across with the buttons stacked. */
@media (max-width: 599px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.oas-card__body {
		padding: 10px 10px 0;
	}

	.oas-card__actions {
		grid-template-columns: minmax(0, 1fr);
		padding: 10px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 14px;
	}

	.woocommerce ul.products li.product .price {
		font-size: 18px;
	}
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	top: 10px;
	right: auto;
	left: 10px;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--oas-primary);
	color: var(--oas-white);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- Buttons */

.oas-shop-page .button,
.oas-shop-page button.button,
.oas-shop-page a.button,
.oas-shop-page input.button,
.oas-just-in .button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--oas-dark);
	border-radius: var(--oas-radius);
	background: var(--oas-white);
	color: var(--oas-dark);
	font-family: var(--oas-font-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
	transition: background-color 160ms var(--oas-st-ease), color 160ms var(--oas-st-ease), border-color 160ms var(--oas-st-ease);
}

.oas-shop-page .button:hover,
.oas-shop-page a.button:hover,
.oas-shop-page button.button:hover,
.oas-just-in .button:hover {
	background: var(--oas-dark);
	color: var(--oas-white);
}

.oas-shop-page .button.alt,
.oas-shop-page button.button.alt,
.oas-shop-page a.button.alt,
.oas-shop-page .single_add_to_cart_button,
.oas-shop-page .checkout-button,
.oas-shop-page #place_order,
.woocommerce ul.products li.product .add_to_cart_button {
	border-color: var(--oas-primary);
	background: var(--oas-primary);
	color: var(--oas-white);
}

.oas-shop-page .button.alt:hover,
.oas-shop-page button.button.alt:hover,
.oas-shop-page a.button.alt:hover,
.oas-shop-page .single_add_to_cart_button:hover,
.oas-shop-page .checkout-button:hover,
.oas-shop-page #place_order:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
	border-color: var(--oas-primary-dark);
	background: var(--oas-primary-dark);
	color: var(--oas-white);
}

.oas-shop-page .button:disabled,
.oas-shop-page .button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.oas-shop-page .button:focus-visible,
.oas-just-in .button:focus-visible,
.oas-shop-page a:focus-visible,
.oas-shop-page input:focus-visible,
.oas-shop-page select:focus-visible,
.oas-shop-page textarea:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--oas-primary) 55%, transparent);
	outline-offset: 2px;
}

/* The cart panel opens on add; WooCommerce's extra "View cart" link would push the
   card's buttons out of line. */
.woocommerce ul.products li.product a.added_to_cart {
	display: none;
}

.woocommerce a.added_to_cart {
	display: block;
	margin: 8px 0 0;
	color: var(--oas-primary);
	font-weight: 700;
	font-size: 15px;
}

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

.oas-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	margin-bottom: clamp(40px, 5vw, 64px);
}

@media (min-width: 900px) {
	.oas-product__top {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: start;
	}

	/* The photos stay in view while the details scroll past. */
	.woocommerce div.product .oas-product__top div.images {
		position: sticky;
		top: calc(var(--oas-header-h) + 24px);
	}
}

.woocommerce div.product .oas-product__top div.images,
.woocommerce div.product .oas-product__top div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-st-r);
	background: var(--oas-light);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	background: var(--oas-white);
	box-shadow: var(--oas-shadow-sm);
}

/* The arrows share the main photo's grid cell, so they sit centred on the photo
   whatever its height, with the thumbnails in the row below. */
.woocommerce div.product div.images.woocommerce-product-gallery {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.woocommerce div.product div.images .flex-viewport {
	border-radius: var(--oas-st-r);
}

.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .flex-direction-nav {
	grid-area: 1 / 1;
}

.woocommerce div.product div.images .flex-direction-nav {
	z-index: 2;
	display: flex;
	align-self: center;
	justify-content: space-between;
	margin: 0;
	padding: 0 14px;
	list-style: none;
	pointer-events: none;
}

.woocommerce div.product div.images .flex-direction-nav a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--oas-white);
	box-shadow: var(--oas-shadow);
	color: transparent;
	font-size: 0;
	text-decoration: none;
	pointer-events: auto;
	transition: transform 160ms var(--oas-st-ease);
}

.woocommerce div.product div.images .flex-direction-nav a::before {
	color: var(--oas-dark);
	font-size: 28px;
	line-height: 1;
}

.woocommerce div.product div.images .flex-direction-nav .flex-prev::before {
	content: "\2039";
}

.woocommerce div.product div.images .flex-direction-nav .flex-next::before {
	content: "\203A";
}

.woocommerce div.product div.images .flex-direction-nav a:hover {
	transform: scale(1.06);
}

.woocommerce div.product div.images .flex-direction-nav a:focus-visible {
	outline: 3px solid var(--oas-primary);
	outline-offset: 2px;
}

.woocommerce div.product div.images .flex-direction-nav .flex-disabled {
	visibility: hidden;
}

/* Thumbnails: one scrolling row of small squares. */
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 72px;
	float: none;
	width: 72px;
}

.woocommerce div.product div.images .flex-control-thumbs img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid var(--oas-border);
	border-radius: 8px;
	opacity: 0.65;
	transition: opacity 160ms var(--oas-st-ease);
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
	opacity: 1;
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active {
	border-color: var(--oas-primary);
	box-shadow: 0 0 0 1px var(--oas-primary);
}

.woocommerce div.product .product_title {
	margin: 0 0 12px;
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* The deal: red price, struck regular price, savings chip, then stock. */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 12px;
	margin: 0 0 8px;
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--oas-dark);
}

.woocommerce div.product p.price del {
	order: 2;
	font-size: 18px;
	font-weight: 500;
	color: var(--oas-grey);
	opacity: 1;
}

.woocommerce div.product p.price del::before {
	content: "Was ";
	text-decoration: none;
	display: inline-block;
	margin-right: 4px;
}

.woocommerce div.product p.price ins {
	text-decoration: none;
	color: var(--oas-primary);
}

.woocommerce div.product .summary .oas-save {
	margin: 0 0 14px;
	padding: 5px 10px;
	font-size: 15px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--oas-grey);
	line-height: 1.6;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce div.product form.cart .button {
	float: none;
	flex: 1 1 220px;
	min-height: 56px;
	font-size: 18px;
	font-weight: 800;
}

.woocommerce div.product .stock {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
}

.woocommerce div.product .stock.in-stock {
	font-size: 15px;
}

.woocommerce div.product .stock.out-of-stock {
	color: var(--oas-primary);
}

.woocommerce div.product .product_meta {
	margin-top: 24px;
	padding-top: 14px;
	border-top: 1px solid var(--oas-border);
	color: var(--oas-grey);
	font-size: 13px;
}

.woocommerce div.product .product_meta > span {
	display: inline;
	margin-right: 16px;
}

.woocommerce div.product .product_meta a {
	color: var(--oas-dark);
}

/* Tabs */

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 4px;
	margin: 0 0 24px;
	padding: 0;
	overflow-x: auto;
	border-bottom: 2px solid var(--oas-border);
	scrollbar-width: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	flex: none;
	margin: 0 0 -2px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 16px;
	border-bottom: 3px solid transparent;
	color: var(--oas-grey);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--oas-dark);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	border-bottom-color: var(--oas-primary);
	color: var(--oas-dark);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 78ch;
	line-height: 1.65;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	margin: 0 0 14px;
	font-size: var(--oas-step-2);
	font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs .panel h3 {
	margin: 24px 0 8px;
	font-size: var(--oas-step-1);
	font-weight: 800;
}

/* The tab already names the panel; its repeated heading stays for screen readers. */
.woocommerce div.product .woocommerce-Tabs-panel--oas_specs > h2:first-child,
.woocommerce div.product .woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce div.product .woocommerce-Tabs-panel--oas_delivery > h2:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.woocommerce table.shop_attributes {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--oas-border);
	border-collapse: separate;
	border-radius: var(--oas-st-r);
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: 12px 16px;
	border: 0;
	border-top: 1px solid var(--oas-border);
	background: var(--oas-white);
	font-size: 15px;
	font-style: normal;
}

.woocommerce table.shop_attributes tr:first-child th,
.woocommerce table.shop_attributes tr:first-child td {
	border-top: 0;
}

.woocommerce table.shop_attributes tr:nth-child(even) th,
.woocommerce table.shop_attributes tr:nth-child(even) td {
	background: var(--oas-light);
}

.woocommerce table.shop_attributes th {
	width: 40%;
	text-align: left;
	color: var(--oas-grey);
	font-weight: 600;
}

.woocommerce table.shop_attributes td {
	color: var(--oas-dark);
	font-weight: 700;
}

.woocommerce table.shop_attributes td p {
	padding: 0;
}

.woocommerce .related.products,
.woocommerce .upsells.products {
	margin-top: clamp(40px, 5vw, 64px);
}

.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 {
	margin-bottom: 20px;
	font-size: var(--oas-step-2);
	font-weight: 800;
}

/* Phone buy bar: name, price and the same Add to cart, pinned above the call bar. */
.oas-buy-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-top: 1px solid var(--oas-border);
	background: var(--oas-white);
	box-shadow: 0 -6px 20px rgba(16, 18, 22, 0.12);
}

.oas-buy-bar[hidden] {
	display: none;
}

.oas-buy-bar__info {
	display: grid;
	flex: 1;
	min-width: 0;
}

.oas-buy-bar__name {
	overflow: hidden;
	color: var(--oas-grey);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.oas-buy-bar__price {
	font-size: 18px;
	font-weight: 800;
}

.oas-buy-bar__price del {
	margin-left: 6px;
	color: var(--oas-grey);
	font-size: 13px;
	font-weight: 500;
}

.oas-buy-bar__price ins {
	color: var(--oas-primary);
	text-decoration: none;
}

.oas-shop-page .oas-buy-bar__add {
	flex: none;
	min-height: 46px;
}

/* The call bar already reserves its own space; this adds room for the buy bar. */
body.oas-has-buy-bar .oas-shop {
	padding-bottom: calc(var(--oas-section-y) + 72px);
}

@media (min-width: 900px) {
	.oas-buy-bar {
		display: none !important;
	}

	body.oas-has-buy-bar .oas-shop {
		padding-bottom: var(--oas-section-y);
	}
}

/* ---------------------------------------------------------------- Notices */

.oas-shop-page .woocommerce-message,
.oas-shop-page .woocommerce-info,
.oas-shop-page .woocommerce-error,
.oas-shop-page .woocommerce-noreviews,
.oas-shop-page p.no-comments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--oas-border);
	border-left: 4px solid var(--oas-dark);
	border-radius: var(--oas-radius);
	background: var(--oas-light);
	color: var(--oas-dark);
	list-style: none;
}

.oas-shop-page .woocommerce-message::before,
.oas-shop-page .woocommerce-info::before,
.oas-shop-page .woocommerce-error::before {
	position: static;
	color: inherit;
}

.oas-shop-page .woocommerce-message {
	border-left-color: #15803d;
}

.oas-shop-page .woocommerce-error {
	border-left-color: var(--oas-primary);
}

.oas-shop-page .woocommerce-message .button,
.oas-shop-page .woocommerce-info .button {
	order: 2;
	margin-left: auto;
	float: none;
}

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

.oas-shop-page .form-row label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: var(--oas-step--1);
	color: var(--oas-dark);
}

.oas-shop-page .form-row .required {
	color: var(--oas-primary);
	text-decoration: none;
}

.oas-shop-page input.input-text,
.oas-shop-page textarea,
.oas-shop-page .woocommerce-input-wrapper input,
.oas-shop-page .quantity .qty {
	width: 100%;
	min-height: 46px;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius);
	background: var(--oas-white);
	color: var(--oas-dark);
	font: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oas-shop-page input.input-text:focus,
.oas-shop-page textarea:focus {
	border-color: var(--oas-dark);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--oas-primary) 18%, transparent);
}

.oas-shop-page .quantity .qty {
	width: 4.5rem;
	text-align: center;
}

.oas-shop-page .form-row.woocommerce-invalid input.input-text,
.oas-shop-page .form-row.woocommerce-invalid select {
	border-color: var(--oas-primary);
}

.oas-shop-page .form-row.woocommerce-invalid label {
	color: var(--oas-primary);
}

/* ---------------------------------------------------------------- Cart */

.oas-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}

@media (min-width: 960px) {
	.oas-cart {
		grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
	}
}

.woocommerce .oas-cart .cart-collaterals {
	width: auto;
}

.woocommerce .oas-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
	padding: 1.5rem;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius-lg);
	background: var(--oas-light);
}

.woocommerce .cart_totals h2 {
	margin-top: 0;
	font-size: var(--oas-step-1);
	font-weight: 800;
}

.woocommerce .oas-cart .cart-collaterals .cross-sells {
	float: none;
	width: auto;
}

.oas-shop-page table.shop_table {
	border: 1px solid var(--oas-border);
	border-collapse: separate;
	border-radius: var(--oas-radius-lg);
	overflow: hidden;
	background: var(--oas-white);
}

.oas-shop-page table.shop_table th {
	padding: 0.9rem 1rem;
	background: var(--oas-light);
	color: var(--oas-dark);
	font-weight: 700;
	font-size: var(--oas-step--1);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.oas-shop-page table.shop_table td {
	padding: 1rem;
	border-top: 1px solid var(--oas-border);
	vertical-align: middle;
}

.oas-shop-page table.shop_table td.product-name a {
	color: var(--oas-dark);
	font-weight: 700;
	text-decoration: none;
}

.oas-shop-page table.shop_table td.product-name a:hover {
	color: var(--oas-primary);
}

.woocommerce table.cart img {
	width: 72px;
	border-radius: var(--oas-radius);
	background: var(--oas-light);
}

.woocommerce a.remove {
	color: var(--oas-grey) !important;
	font-weight: 400;
}

.woocommerce a.remove:hover {
	background: var(--oas-primary);
	color: var(--oas-white) !important;
}

.woocommerce table.cart td.actions .coupon .input-text {
	width: 160px;
	margin-right: 0.5rem;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 54px;
	font-size: var(--oas-step-0);
}

/* ---------------------------------------------------------------- Checkout */

.oas-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}

@media (min-width: 960px) {
	.oas-checkout {
		grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
	}

	.oas-checkout__review {
		position: sticky;
		top: calc(var(--oas-header-h) + 1rem);
	}
}

.woocommerce .oas-checkout .col2-set .col-1,
.woocommerce .oas-checkout .col2-set .col-2 {
	float: none;
	width: auto;
}

.woocommerce .oas-checkout h3 {
	margin: 0 0 1rem;
	font-size: var(--oas-step-1);
	font-weight: 800;
}

.oas-checkout__details > * + * {
	margin-top: 1.5rem;
}

.oas-checkout__review {
	padding: 1.5rem;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius-lg);
	background: var(--oas-light);
}

.woocommerce-checkout #payment {
	border-radius: var(--oas-radius-lg);
	background: var(--oas-white);
	border: 1px solid var(--oas-border);
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom-color: var(--oas-border);
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--oas-light);
	color: var(--oas-dark);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--oas-light);
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	min-height: 56px;
	font-size: var(--oas-step-0);
}

/* ---------------------------------------------------------------- Order received / account */

.woocommerce-order .woocommerce-thankyou-order-received {
	padding: 1rem 1.25rem;
	border-left: 4px solid #15803d;
	border-radius: var(--oas-radius);
	background: var(--oas-light);
	font-weight: 700;
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
	padding: 0;
}

.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after {
	display: none;
}

.woocommerce ul.order_details li {
	float: none;
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.65rem 0.9rem;
	border-radius: var(--oas-radius);
	color: var(--oas-dark);
	text-decoration: none;
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--oas-light);
	color: var(--oas-primary);
}

/* ---------------------------------------------------------------- Pagination */

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
	gap: 0.35rem;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px;
	padding: 0.7rem;
	border: 1px solid var(--oas-border);
	border-radius: var(--oas-radius);
	color: var(--oas-dark);
	font-weight: 700;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	border-color: var(--oas-dark);
	background: var(--oas-dark);
	color: var(--oas-white);
}

/* ---------------------------------------------------------------- Small screens */

@media (max-width: 767px) {
	.woocommerce table.shop_table_responsive tr td::before,
	.woocommerce-page table.shop_table_responsive tr td::before {
		color: var(--oas-grey);
		font-weight: 600;
	}

	.woocommerce table.cart td.actions .coupon {
		display: flex;
		gap: 0.5rem;
	}

	.woocommerce table.cart td.actions .coupon .input-text {
		flex: 1;
		width: auto;
		margin: 0;
	}

	.woocommerce table.cart td.actions > .button {
		width: 100%;
		margin-top: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oas-shop-page *,
	.oas-just-in * {
		transition-duration: 0.01ms !important;
	}

	.woocommerce ul.products li.product:hover .oas-card__media img,
	.oas-cat-tiles__link:hover .oas-cat-tiles__media img {
		transform: none;
	}

}
