/*
 * BrikFront theme: the light store stylesheet. Together with woocommerce-forms.css it
 * replaces WooCommerce's general, layout and small-screen stylesheets (about 120 KB),
 * and it loads only on store pages. WooCommerce's blocks keep their own styles; this
 * file covers the classic markup every store page can show: prices and badges, the add
 * to cart form, the product tabs and reviews, and product lists such as cross-sells.
 * The cart, checkout and account forms are in woocommerce-forms.css.
 */

:root {
	--bf-icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.9 6.1 6.7.8-4.9 4.6 1.2 6.6L12 17.4l-5.9 3.3 1.2-6.6-4.9-4.6 6.7-.8z'/%3E%3C/svg%3E");
	--bf-star-empty: #c7c7cc;
}

/* Shared pieces. */
.woocommerce :where(*, *::before, *::after) {
	box-sizing: border-box;
}
/* Fields take the page's font; buttons that carry the button element class keep the
   theme's button type (weight 600) from theme.json. */
.woocommerce :where(input, select, textarea, button:not(.wp-element-button)) {
	font: inherit;
}
.woocommerce textarea {
	min-block-size: 112px;
	resize: vertical;
}
.woocommerce :where(.button, button.button):disabled,
.woocommerce .button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.woocommerce .button.loading {
	opacity: 0.6;
	pointer-events: none;
}
.woocommerce a.added_to_cart {
	display: inline-block;
	margin-block-start: 8px;
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce :where(.price, .amount) {
	font-variant-numeric: tabular-nums;
}
.woocommerce .price del,
.bf-product .wc-block-components-product-price del {
	color: var(--wp--preset--color--bf-muted);
	font-weight: 400;
	opacity: 1;
}
.woocommerce .price ins,
.bf-product .wc-block-components-product-price ins {
	color: var(--wp--preset--color--bf-sale);
	text-decoration: none;
}
.woocommerce span.onsale {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--bf-sale);
	color: var(--wp--preset--color--bf-on-accent);
	font-size: var(--wp--preset--font-size--bf-xs);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.wp-site-blocks .wc-block-components-product-sale-badge {
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background-color: var(--wp--preset--color--bf-sale);
	color: var(--wp--preset--color--bf-on-accent);
	font-size: var(--wp--preset--font-size--bf-xs);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.woocommerce .stock {
	margin: 0;
	font-size: var(--wp--preset--font-size--bf-s);
	font-weight: 600;
}
.woocommerce .stock.in-stock {
	color: var(--wp--preset--color--bf-success);
}
.woocommerce .stock.out-of-stock {
	color: var(--wp--preset--color--bf-muted);
}
.woocommerce abbr.required {
	color: var(--wp--preset--color--bf-sale);
	text-decoration: none;
}
.wc-block-components-notice-banner:focus {
	outline: none;
}

/* Quantity. */
.woocommerce .quantity .qty {
	inline-size: 4.6em;
	min-block-size: 46px;
	padding-inline: 8px;
	text-align: center;
}
.woocommerce form.cart .quantity .qty {
	block-size: 100%;
	min-block-size: 50px;
}

/* Breadcrumbs. */
.woocommerce-breadcrumb {
	color: var(--wp--preset--color--bf-muted);
}
.woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--bf-text);
	text-decoration: underline;
}

/* Product page: the add to cart form, its choices and the tabs. */
.woocommerce form.cart {
	margin: 0;
}
.woocommerce form.cart:not(.variations_form, .grouped_form),
.woocommerce .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
.woocommerce .single_add_to_cart_button {
	flex: 1 1 200px;
	min-block-size: 50px;
}
.woocommerce table.variations {
	inline-size: 100%;
	margin: 0 0 8px;
	border: 0;
	border-collapse: collapse;
}
.woocommerce table.variations,
.woocommerce table.variations :where(tbody, tr, th, td) {
	display: block;
}
.woocommerce table.variations tr {
	margin: 0 0 16px;
}
.woocommerce table.variations :where(th, td) {
	padding: 0;
	border: 0;
	text-align: start;
}
.woocommerce table.variations th label {
	display: block;
	margin-block-end: 6px;
	font-size: var(--wp--preset--font-size--bf-s);
	font-weight: 600;
}
.woocommerce table.variations select {
	inline-size: 100%;
	max-inline-size: 420px;
}
.woocommerce .reset_variations {
	display: inline-block;
	margin-block-start: 8px;
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce .single_variation_wrap .woocommerce-variation {
	margin-block-end: 12px;
}
.woocommerce .woocommerce-variation-price .price {
	font-size: var(--wp--preset--font-size--bf-l);
	font-weight: 600;
}
.woocommerce table.group_table {
	inline-size: 100%;
	margin-block-end: 16px;
	border-collapse: collapse;
}
.woocommerce table.group_table td {
	padding: 10px 8px;
	border-block-end: 1px solid var(--wp--preset--color--bf-line);
}
.bf-product .wp-block-woocommerce-product-meta {
	color: var(--wp--preset--color--bf-muted);
}
@media (min-width: 782px) {
	.bf-product__summary {
		position: sticky;
		inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 24px);
		align-self: flex-start;
	}
}
.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 0 0 28px;
	padding: 0;
	border-block-end: 1px solid var(--wp--preset--color--bf-line);
	list-style: none;
}
.woocommerce-tabs ul.tabs li {
	margin: 0;
}
.woocommerce-tabs ul.tabs li a {
	display: block;
	margin-block-end: -1px;
	padding-block: 14px;
	border-block-end: 2px solid transparent;
	color: var(--wp--preset--color--bf-muted);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	border-block-end-color: currentColor;
	color: var(--wp--preset--color--bf-text);
}
.woocommerce-tabs .woocommerce-Tabs-panel {
	max-inline-size: 760px;
	margin: 0 0 32px;
}
/* The panel repeats its tab's name as a heading: kept for screen readers only. */
.woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel > h2:first-child {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.woocommerce table.shop_attributes {
	inline-size: 100%;
	border-collapse: collapse;
	border-block-start: 1px solid var(--wp--preset--color--bf-line);
}
.woocommerce table.shop_attributes :where(th, td) {
	padding: 12px 0;
	border-block-end: 1px solid var(--wp--preset--color--bf-line);
	text-align: start;
	vertical-align: top;
}
.woocommerce table.shop_attributes th {
	inline-size: 35%;
	padding-inline-end: 16px;
	font-weight: 600;
}
.woocommerce table.shop_attributes td p {
	margin: 0;
}

/* Reviews and the star rating (drawn with a mask; WooCommerce used its icon font). */
.woocommerce .star-rating {
	position: relative;
	display: inline-block;
	inline-size: 5em;
	block-size: 1em;
	overflow: hidden;
	background-color: var(--bf-star-empty);
	font-size: 16px;
	line-height: 1;
	mask: var(--bf-icon-star) 0 0 / 1em 1em repeat-x;
}
.woocommerce .star-rating span {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	overflow: hidden;
	background-color: var(--wp--preset--color--bf-text);
	color: transparent;
	white-space: nowrap;
}
[dir="rtl"] .woocommerce .star-rating {
	mask-position: 100% 0;
}
/* Forced colours (Windows high contrast) would paint both parts as the page background. */
@media (forced-colors: active) {
	.woocommerce .star-rating {
		forced-color-adjust: none;
		background-color: GrayText;
	}
	.woocommerce .star-rating span {
		background-color: CanvasText;
	}
}
.woocommerce #reviews :where(h2, h3) {
	font-size: var(--wp--preset--font-size--bf-l);
}
.woocommerce #reviews .commentlist {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.woocommerce #reviews .comment_container {
	display: flex;
	gap: 16px;
	padding-block: 20px;
	border-block-start: 1px solid var(--wp--preset--color--bf-line);
}
.woocommerce #reviews img.avatar {
	inline-size: 40px;
	block-size: 40px;
	border-radius: 50%;
}
.woocommerce #reviews .comment-text {
	flex: 1;
}
.woocommerce #reviews .comment-text .meta {
	margin: 4px 0 8px;
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce #reviews .comment-text .meta strong {
	color: var(--wp--preset--color--bf-text);
}
.woocommerce #review_form .comment-reply-title {
	display: block;
	margin-block-end: 12px;
	font-size: var(--wp--preset--font-size--bf-l);
	font-weight: 600;
}
.woocommerce #review_form :where(.comment-form-rating, .comment-form-comment, .comment-form-author, .comment-form-email) label {
	display: block;
	margin-block-end: 6px;
	font-size: var(--wp--preset--font-size--bf-s);
	font-weight: 600;
}
.woocommerce #review_form :where(input[type="text"], input[type="email"], textarea) {
	inline-size: 100%;
}
.woocommerce p.stars {
	display: flex;
	margin: 0 0 16px;
}
.woocommerce p.stars a {
	display: inline-block;
	inline-size: 32px;
	block-size: 32px;
	overflow: hidden;
	background-color: var(--bf-star-empty);
	text-indent: 200%;
	white-space: nowrap;
	mask: var(--bf-icon-star) center / 24px 24px no-repeat;
}
.woocommerce p.stars.selected:not(:hover) a,
.woocommerce p.stars:hover a {
	background-color: var(--wp--preset--color--bf-text);
}
.woocommerce p.stars.selected:not(:hover) a.active ~ a,
.woocommerce p.stars:hover a:hover ~ a {
	background-color: var(--bf-star-empty);
}
.woocommerce p.stars a:focus-visible {
	outline: 2px solid var(--wp--preset--color--bf-focus);
	outline-offset: 0;
}

/* Related products under the product. */
.bf-related {
	margin-block-start: var(--wp--preset--spacing--bf-section-space);
}

/* The bar above the shop grid (the cards themselves: product-collection.css). */
.bf-shop__bar {
	padding-block-end: 4px;
	border-block-end: 1px solid var(--wp--preset--color--bf-line);
}
.bf-shop__bar .woocommerce-result-count {
	margin: 0;
	color: var(--wp--preset--color--bf-muted);
}
.bf-shop__bar select {
	padding-block: 8px;
}

/* Classic product lists (cross-sells, up-sells, shortcodes). */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
	gap: 32px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}
.woocommerce ul.products li.product {
	position: relative;
	inline-size: auto;
	margin: 0;
	float: none;
}
.woocommerce ul.products li.product a {
	text-decoration: none;
}
.woocommerce ul.products li.product a img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	margin: 0 0 12px;
	border-radius: var(--wp--preset--border-radius--bf-card);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 4px;
	color: var(--wp--preset--color--bf-text);
	font-size: var(--wp--preset--font-size--bf-m);
	font-weight: 500;
	letter-spacing: -0.005em;
}
.woocommerce ul.products li.product .price {
	display: block;
	margin: 0 0 12px;
	color: var(--wp--preset--color--bf-text);
}
.woocommerce ul.products li.product .button {
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce :where(.cross-sells, .up-sells, .related) > h2 {
	margin: 0 0 20px;
	font-size: var(--wp--preset--font-size--bf-xl);
}
