/* ==========================================================================
   Kardano — WooCommerce pages (shop archives, product, cart, checkout, account)
   Loaded only on WooCommerce pages. Shared components live in woocommerce.css.
   ========================================================================== */

/* 3. Shop layout
   ========================================================================== */
.shop-layout {
	display: block;
}

.shop-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-8);
}

@media (min-width: 1024px) {
	.shop-layout--sidebar {
		grid-template-columns: 264px minmax(0, 1fr);
		align-items: start;
	}

	.shop-sidebar.drawer {
		position: sticky;
		top: calc(var(--r-sticky, 80px) + 16px);
		inset-inline: auto;
		z-index: 1;
		display: block;
		width: auto;
		max-height: calc(100vh - var(--r-sticky, 80px) - 32px);
		overflow-y: auto;
		background: transparent;
		box-shadow: none;
		transform: none;
		visibility: visible;
		scrollbar-width: thin;
	}

	.shop-sidebar .drawer__head {
		display: none;
	}

	.shop-sidebar .drawer__body {
		padding: 0;
		overflow: visible;
	}

	.shop-toolbar__filter {
		display: none !important;
	}
}

.shop-sidebar .widget {
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-6);
	border-bottom: 1px solid var(--r-border);
}

.shop-sidebar .widget:last-child {
	border-bottom: 0;
}

.shop-sidebar .widget-title,
.shop-sidebar .wp-block-heading {
	font-size: var(--r-fs-sm);
	margin-bottom: var(--r-space-3);
}

.woocommerce-products-header {
	margin-bottom: var(--r-space-6);
}

.woocommerce-products-header__title.page-title {
	margin: 0 0 var(--r-space-2);
	font-size: var(--r-fs-3xl);
}

.woocommerce-products-header .term-description,
.woocommerce-products-header .page-description {
	max-width: 72ch;
	color: var(--r-text-2);
}

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-4);
	padding-bottom: var(--r-space-3);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-toolbar .woocommerce-notices-wrapper {
	flex-basis: 100%;
}

.woocommerce .shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
	float: none;
}

.woocommerce .shop-toolbar .woocommerce-ordering {
	margin: 0;
	margin-inline-start: auto;
	float: none;
}

.woocommerce .woocommerce-ordering select {
	min-height: 34px;
	width: auto;
	padding-block: 4px;
	border-color: transparent;
	border-radius: var(--r-radius-pill);
	background-color: var(--r-surface);
	font-size: var(--r-fs-xs);
	font-weight: 600;
}

/* Layered nav / filter widgets */
.shop-sidebar .woocommerce-widget-layered-nav-list li,
.shop-sidebar .product-categories li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding-block: 6px;
}

.shop-sidebar .count {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.shop-sidebar .product-categories .children {
	flex-basis: 100%;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	background: var(--r-accent);
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: var(--r-surface-2);
}

.woocommerce .widget_price_filter .price_slider_amount .button {
	min-height: 34px;
	padding: 6px 16px;
	font-size: var(--r-fs-sm);
}

/* 5. Single product
   ========================================================================== */
.woocommerce div.product {
	position: relative;
	display: block;
	margin-bottom: var(--r-space-12);
}

.product-main {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-6);
	margin-bottom: var(--r-space-12);
}

@media (min-width: 900px) {
	.product-main {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		column-gap: var(--r-space-12);
		align-items: start;
	}

	/* Sticky gallery is bounded by .product-main, so it never covers the tabs. */
	.product-main div.images {
		position: sticky !important;
		top: calc(var(--r-sticky, 80px) + 16px);
	}
}

html .woocommerce div.product div.images,
html .woocommerce div.product div.summary,
html .woocommerce-page div.product div.images,
html .woocommerce-page div.product div.summary {
	width: 100%;
	margin: 0;
	float: none;
}

.woocommerce div.product div.images {
	position: relative;
}

.product-main > span.onsale,
.product-main > .onsale {
	position: absolute;
	inset-block-start: var(--r-space-4);
	inset-inline-start: var(--r-space-4);
	inset-inline-end: auto;
	z-index: 9;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.woocommerce div.product div.images .flex-viewport {
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.woocommerce div.product div.images img {
	mix-blend-mode: multiply;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a {
	display: block;
	padding: var(--r-space-6);
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: var(--r-space-2);
	margin: var(--r-space-3) 0 0;
	padding: 0;
	overflow-x: auto;
}

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

.woocommerce div.product div.images .flex-control-thumbs li img {
	padding: 6px;
	border: 2px solid transparent;
	border-radius: var(--r-radius);
	background: var(--r-surface);
	opacity: 1;
	transition: border-color var(--r-dur) var(--r-ease);
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--r-text);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	inset-block-start: var(--r-space-3);
	inset-inline-end: var(--r-space-3);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--r-bg);
	box-shadow: var(--r-shadow-sm);
}

.woocommerce div.product > span.onsale,
.woocommerce div.product .images ~ span.onsale,
.woocommerce div.product > .onsale {
	position: absolute;
	inset-block-start: var(--r-space-4);
	inset-inline-start: var(--r-space-4);
	inset-inline-end: auto;
	z-index: 9;
}

.product-eyebrow {
	margin-bottom: var(--r-space-1);
}

.woocommerce div.product .product_title {
	margin: 0 0 var(--r-space-3);
	font-size: var(--r-fs-2xl);
	line-height: 1.45;
}

.product-specline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-5);
}

.spec-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 4px 12px;
	border-radius: var(--r-radius-pill);
	background: var(--r-surface);
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
}

.spec-pill strong {
	color: var(--r-text);
	font-weight: 700;
}

.spec-pill--success {
	background: var(--r-success-soft);
	color: var(--r-success);
	font-weight: 600;
}

.woocommerce div.product .woocommerce-product-rating {
	margin-bottom: var(--r-space-4);
	font-size: var(--r-fs-sm);
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a {
	color: #f5a623;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--r-space-3);
	margin: 0 0 var(--r-space-5);
	color: var(--r-text);
	font-size: var(--r-fs-2xl);
	font-weight: 800;
}

.woocommerce div.product p.price del {
	font-size: var(--r-fs-base);
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin-bottom: var(--r-space-5);
	color: var(--r-text-2);
}

.woocommerce div.product .woocommerce-product-details__short-description ul {
	padding-inline-start: 1.2em;
}

.product-fitment {
	margin-bottom: var(--r-space-6);
	padding: var(--r-space-4);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius);
}

.product-fitment__title {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0 0 var(--r-space-3);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.product-fitment__title svg {
	color: var(--r-accent);
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-6);
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	display: none;
}

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

html .woocommerce div.product form.cart .button,
html .woocommerce div.product form.cart button.single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
	padding-inline: 28px;
	float: none;
	font-size: var(--r-fs-md);
}

.woocommerce div.product form.cart.variations_form {
	display: block;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: var(--r-space-4);
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	padding: 0;
	border: 0;
	line-height: 1.6;
}

.woocommerce div.product form.cart .variations tr {
	display: block;
	margin-bottom: var(--r-space-3);
}

.woocommerce div.product form.cart .variations label {
	margin-bottom: 6px;
}

.woocommerce div.product form.cart .variations select {
	min-width: 0;
	width: 100%;
	margin: 0;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: var(--r-fs-xs);
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-3);
}

.woocommerce div.product .woocommerce-variation-price {
	margin-bottom: var(--r-space-3);
}

.woocommerce div.product form.cart.grouped_form {
	display: block;
}

.woocommerce div.product form.cart .group_table td {
	padding: var(--r-space-2);
	vertical-align: middle;
}

.woocommerce div.product .stock {
	display: inline-flex;
	flex-basis: 100%;
	margin: 0;
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.woocommerce div.product .summary > .stock.in-stock,
.woocommerce div.product form.cart .stock.in-stock {
	display: none;
}

.woocommerce div.product .stock.in-stock {
	color: var(--r-success);
}

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

.trust-list {
	display: grid;
	gap: var(--r-space-2);
	margin: 0 0 var(--r-space-4);
	padding: var(--r-space-4);
	border-radius: var(--r-radius);
	background: var(--r-surface);
	list-style: none;
}

.trust-list li {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
}

.trust-list svg {
	color: var(--r-accent);
}

.trust-list span {
	display: flex;
	flex-direction: column;
	line-height: 1.5;
}

.trust-list strong {
	font-size: var(--r-fs-sm);
}

.trust-list small {
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
}

.woocommerce div.product .summary .help-line {
	margin: 0 0 var(--r-space-5);
	background: transparent;
	border: 1px solid var(--r-border);
}

.woocommerce div.product .product_meta {
	display: grid;
	gap: 4px;
	padding-top: var(--r-space-4);
	border-top: 1px solid var(--r-border);
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.woocommerce div.product .product_meta .sku_wrapper {
	display: none;
}

.woocommerce div.product .product_meta a {
	color: var(--r-text-2);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	margin-top: 0;
	padding-top: var(--r-space-2);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	position: sticky;
	top: var(--r-sticky, 0px);
	z-index: 5;
	display: flex;
	gap: var(--r-space-6);
	width: auto;
	max-width: none;
	margin: 0 0 var(--r-space-8);
	padding: 0;
	overflow-x: auto;
	border-bottom: 1px solid var(--r-border);
	border-radius: 0;
	background: var(--r-bg);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.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::after,
.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-shrink: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	position: relative;
	display: block;
	padding: 14px 2px;
	color: var(--r-text-2);
	font-size: var(--r-fs-base);
	font-weight: 600;
	white-space: nowrap;
	transition: color var(--r-dur) var(--r-ease);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: transparent;
	content: "";
	transition: background-color var(--r-dur) var(--r-ease);
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: transparent;
	box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--r-text);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
	background: var(--r-accent-vivid);
}

.woocommerce div.product .woocommerce-tabs .panel {
	max-width: none;
	margin: 0 0 var(--r-space-8);
	padding: 0;
	font-size: var(--r-fs-base);
	line-height: 2;
	overflow-wrap: anywhere;
}

.woocommerce div.product .woocommerce-tabs .panel > :first-child {
	margin-top: 0;
}

.woocommerce-Tabs-panel--description {
	max-width: 860px;
}

.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3 {
	margin-top: var(--r-space-8);
	font-size: var(--r-fs-lg);
}

.woocommerce-Tabs-panel--description img {
	height: auto;
	border-radius: var(--r-radius);
}

.woocommerce-Tabs-panel--description table {
	display: block;
	overflow-x: auto;
}

/* Specifications table */
.woocommerce table.shop_attributes {
	max-width: 760px;
	margin: 0;
	border: 1px solid var(--r-border);
	border-collapse: separate;
	border-radius: var(--r-radius-lg);
	overflow: hidden;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: 12px var(--r-space-4);
	border: 0;
	border-top: 1px solid var(--r-border);
	background: transparent;
	font-style: normal;
	line-height: 1.7;
	text-align: start;
	vertical-align: top;
}

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

.woocommerce table.shop_attributes th {
	width: 38%;
	background: var(--r-surface);
	color: var(--r-text-2);
	font-weight: 600;
}

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

.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th {
	background-color: inherit;
}

.woocommerce table.shop_attributes tr:nth-child(even) th {
	background: var(--r-surface);
}

/* Fitment */
.fitment-table {
	display: grid;
	gap: 0;
	max-width: 860px;
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	overflow: hidden;
}

.fitment-table__row {
	display: grid;
	gap: var(--r-space-2);
	padding: var(--r-space-4);
	border-top: 1px solid var(--r-border);
	border-radius: 0;
	background: transparent;
}

.fitment-table__row:first-child {
	border-top: 0;
}

@media (min-width: 640px) {
	.fitment-table__row {
		grid-template-columns: 160px 1fr;
		align-items: center;
	}
}

.fitment-table__brand {
	font-weight: 700;
}

.fitment-note {
	max-width: 860px;
	margin-top: var(--r-space-4);
	color: var(--r-text-3);
	font-size: var(--r-fs-sm);
}

/* Reviews */
.woocommerce-Tabs-panel--reviews {
	display: grid;
	gap: var(--r-space-6);
}

@media (min-width: 1024px) {
	.woocommerce-Tabs-panel--reviews {
		grid-template-columns: 300px minmax(0, 1fr);
		align-items: start;
		column-gap: var(--r-space-10);
	}
}

.review-summary {
	display: grid;
	gap: var(--r-space-4);
	padding: var(--r-space-5);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 1024px) {
	.review-summary {
		position: sticky;
		top: calc(var(--r-sticky, 80px) + 72px);
	}
}

.review-summary__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px var(--r-space-3);
	line-height: 1.4;
}

.review-summary__score strong {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
}

.review-summary__stars .star-rating {
	margin: 0;
	font-size: 1rem;
}

.review-summary__count {
	flex-basis: 100%;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.review-summary__bars {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.review-summary__bars li {
	display: grid;
	grid-template-columns: 36px 1fr 24px;
	align-items: center;
	gap: var(--r-space-2);
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
	line-height: 1.6;
}

.review-summary__track {
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--r-surface-2);
}

.review-summary__track span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: #f5a623;
}

.review-summary__n {
	text-align: end;
}

html .woocommerce a.button.review-summary__cta {
	width: 100%;
	background: var(--r-bg);
	border-color: var(--r-border-strong);
	color: var(--r-text);
}

html .woocommerce a.button.review-summary__cta:hover {
	background: var(--r-bg);
	border-color: #b8b8c0;
	color: var(--r-text);
}

.woocommerce #reviews {
	display: grid;
	gap: var(--r-space-8);
	min-width: 0;
}

.woocommerce #reviews #comments h2.woocommerce-Reviews-title {
	margin: 0 0 var(--r-space-4);
	font-size: var(--r-fs-lg);
}

.woocommerce #reviews #comments ol.commentlist {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce #reviews #comments ol.commentlist li {
	margin: 0;
	padding: var(--r-space-5) 0;
	border-top: 1px solid var(--r-border);
	background: none;
	list-style: none;
}

.woocommerce #reviews #comments ol.commentlist li:first-child {
	padding-top: 0;
	border-top: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment_container {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: var(--r-space-3);
	align-items: start;
}

.review-avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--r-surface-2);
	color: var(--r-text-2);
	font-size: var(--r-fs-base);
	font-weight: 800;
	line-height: 1;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
	position: static;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--r-surface-2);
	float: none;
	color: transparent;
	font-size: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px var(--r-space-3);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
	line-height: 1.8;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta strong {
	display: block;
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta .woocommerce-review__dash {
	display: none;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .meta em.woocommerce-review__verified {
	display: inline-block;
	margin-inline-end: 6px;
	padding: 0 8px;
	border-radius: var(--r-radius-sm);
	background: var(--r-success-soft);
	color: var(--r-success);
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
	grid-column: 2;
	grid-row: 1;
	float: none;
	margin: 4px 0 0;
	font-size: 0.8rem;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
	grid-column: 1 / -1;
	margin-top: var(--r-space-2);
	color: var(--r-text);
	font-size: var(--r-fs-base);
	line-height: 1.9;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .description p {
	margin: 0;
}

.woocommerce #reviews .woocommerce-noreviews {
	margin: 0;
	padding: var(--r-space-5);
	border: 1px dashed var(--r-border-strong);
	border-radius: var(--r-radius-lg);
	color: var(--r-text-2);
	text-align: center;
}

.woocommerce #review_form #respond {
	margin: 0;
	padding: var(--r-space-5);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-bg);
}

@media (min-width: 768px) {
	.woocommerce #review_form #respond {
		padding: var(--r-space-6);
	}
}

.woocommerce #review_form #respond .comment-reply-title {
	display: block;
	margin-bottom: var(--r-space-4);
	font-size: var(--r-fs-md);
	font-weight: 700;
}

.woocommerce #review_form #respond .comment-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-4);
}

@media (min-width: 640px) {
	.woocommerce #review_form #respond .comment-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce #review_form #respond .comment-form > * {
		grid-column: 1 / -1;
	}

	.woocommerce #review_form #respond .comment-form > .comment-form-author {
		grid-column: auto;
	}

	.woocommerce #review_form #respond .comment-form > .comment-form-email {
		grid-column: auto;
	}
}

.woocommerce #review_form #respond p {
	margin: 0;
}

.woocommerce #review_form #respond .comment-notes {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.woocommerce #review_form #respond label {
	display: block;
	margin-bottom: 6px;
}

.woocommerce #review_form #respond textarea {
	min-height: 130px;
}

.woocommerce #review_form #respond p.stars {
	margin: 0;
}

.woocommerce #review_form #respond p.stars a {
	width: 1.6em;
	height: 1.6em;
	font-size: 1.1em;
}

.woocommerce #review_form #respond .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--r-space-2);
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
}

.woocommerce #review_form #respond .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.woocommerce #review_form #respond .form-submit {
	margin: 0;
}

html .woocommerce #review_form #respond .form-submit input#submit {
	min-height: 48px;
	padding-inline: 28px;
	border-radius: var(--r-radius);
}

.woocommerce #reviews .woocommerce-pagination {
	margin-top: var(--r-space-4);
}

.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2 {
	margin: var(--r-space-6) 0 var(--r-space-6);
	font-size: var(--r-fs-2xl);
}

/* 6. Quantity
   ========================================================================== */
.woocommerce .quantity {
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 4px;
	border: 1px solid var(--r-border-strong);
	border-radius: var(--r-radius-pill);
	background: var(--r-bg);
}

.woocommerce .quantity .qty {
	width: 44px;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.woocommerce .quantity .qty:focus {
	box-shadow: none;
}

.woocommerce .quantity:focus-within {
	border-color: var(--r-accent);
	box-shadow: var(--r-focus);
}

.qty-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--r-text);
	cursor: pointer;
	transition: background-color var(--r-dur) var(--r-ease);
}

.qty-btn:hover {
	background: var(--r-surface);
}

.woocommerce .quantity:has(input[type="hidden"]),
.woocommerce .quantity.hidden {
	display: none;
}

.woocommerce .quantity input[type="hidden"] ~ .qty-btn,
.woocommerce .quantity.is-static .qty-btn {
	display: none;
}

.woocommerce-cart-form .quantity,
.woocommerce table.cart .quantity {
	height: 44px;
}

.woocommerce-cart-form .quantity .qty-btn {
	width: 34px;
}

.woocommerce-cart-form .quantity .qty {
	width: 36px;
}

/* 7. Cart
   ========================================================================== */
.woocommerce-cart .site-main--wide,
.woocommerce-checkout .site-main--wide,
.woocommerce-account .site-main--wide {
	max-width: none;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce:not(.widget_shopping_cart_content) {
	display: block;
}

@media (min-width: 1024px) {
	.woocommerce-cart .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: var(--r-space-8);
		align-items: start;
	}

	.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
	.woocommerce-cart .woocommerce > .cart-empty,
	.woocommerce-cart .woocommerce > .return-to-shop,
	.woocommerce-cart .woocommerce > .empty-state__icon,
	.woocommerce-cart .woocommerce > .wc-empty-cart-message {
		grid-column: 1 / -1;
	}
}

.woocommerce table.shop_table {
	margin: 0 0 var(--r-space-6);
	border: 1px solid var(--r-border);
	border-collapse: separate;
	border-radius: var(--r-radius-lg);
	overflow: hidden;
}

.woocommerce table.shop_table th {
	padding: var(--r-space-3) var(--r-space-4);
	background: var(--r-surface);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	font-weight: 600;
	line-height: 1.6;
}

.woocommerce table.shop_table td {
	padding: var(--r-space-4);
	border-top: 1px solid var(--r-border);
	line-height: 1.7;
	vertical-align: middle;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	border-top: 1px solid var(--r-border);
	font-weight: 600;
}

.woocommerce table.cart img,
.woocommerce-cart table.cart img {
	width: 72px;
	padding: 4px;
	border-radius: var(--r-radius);
	background: var(--r-surface);
	mix-blend-mode: multiply;
}

.woocommerce table.cart .product-name a {
	color: var(--r-text);
	font-weight: 700;
}

.woocommerce a.remove {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--r-text-3) !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
}

.woocommerce a.remove:hover {
	background: var(--r-danger-soft);
	color: var(--r-danger) !important;
}

.woocommerce table.cart td.actions {
	padding: var(--r-space-4);
	background: var(--r-bg);
}

.woocommerce table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
}

.woocommerce table.cart td.actions .coupon .input-text {
	width: 200px;
	min-height: var(--r-control-h);
	margin: 0;
	padding: 8px 14px;
	border-radius: var(--r-radius-pill);
}

.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	width: 100%;
	padding: var(--r-space-6);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
	float: none;
}

@media (min-width: 1024px) {
	.woocommerce .cart-collaterals .cart_totals {
		position: sticky;
		top: calc(var(--r-sticky, 80px) + 16px);
	}
}

.woocommerce .cart-collaterals .cart_totals h2 {
	font-size: var(--r-fs-lg);
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
	border: 0;
	border-radius: 0;
	background: transparent;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	padding: var(--r-space-3) 0;
	border-top: 1px solid var(--r-border-strong);
	background: transparent;
}

.woocommerce .cart-collaterals .cart_totals tr:first-child th,
.woocommerce .cart-collaterals .cart_totals tr:first-child td {
	border-top: 0;
}

.woocommerce .cart-collaterals .cart_totals .order-total .amount {
	font-size: var(--r-fs-lg);
	font-weight: 800;
}

html .woocommerce .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	min-height: 52px;
	margin-bottom: 0;
	font-size: var(--r-fs-md);
}

.woocommerce .cart-collaterals .cross-sells {
	width: 100%;
	float: none;
}

.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce .wc-empty-cart-message .cart-empty {
	justify-content: center;
	background: transparent;
	font-size: var(--r-fs-lg);
	font-weight: 700;
	text-align: center;
}

.woocommerce-cart .woocommerce > .empty-state__icon {
	justify-self: center;
	margin-inline: auto;
	display: grid;
}

.woocommerce-cart .return-to-shop {
	text-align: center;
}

.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.woocommerce ul#shipping_method li input {
	margin: 0;
}

/* Responsive cart table */
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr,
	.woocommerce-page table.shop_table_responsive tr {
		display: block;
	}

	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: var(--r-space-2) var(--r-space-4);
		border-top: 0;
		text-align: end !important;
	}

	.woocommerce table.shop_table_responsive tr td::before {
		float: none;
		color: var(--r-text-2);
		font-weight: 600;
	}

	.woocommerce table.shop_table_responsive tbody tr:not(:first-child) {
		border-top: 1px solid var(--r-border);
	}

	.woocommerce table.cart td.product-remove {
		justify-content: flex-end;
	}

	.woocommerce table.cart .product-thumbnail {
		display: flex !important;
		justify-content: center !important;
	}

	.woocommerce table.cart .product-thumbnail::before {
		display: none;
	}

	.woocommerce table.cart td.actions,
	.woocommerce table.cart td.actions .coupon {
		flex-direction: column;
		align-items: stretch;
	}

	.woocommerce table.cart td.actions .coupon .input-text {
		width: 100%;
	}

	body .woocommerce table.cart td.actions .button {
		width: 100%;
	}
}

/* 8. Checkout
   ========================================================================== */
@media (min-width: 1024px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		grid-template-rows: auto 1fr;
		column-gap: var(--r-space-10);
		align-items: start;
	}

	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
	}

	.woocommerce-checkout form.checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.woocommerce-checkout form.checkout #order_review_heading {
		grid-column: 2;
		margin-top: 0;
	}

	.woocommerce-checkout form.checkout #order_review {
		grid-column: 2;
		position: sticky;
		top: calc(var(--r-sticky, 80px) + 16px);
	}
}

.woocommerce .col2-set,
.woocommerce-page .col2-set {
	display: grid;
	gap: var(--r-space-6);
	width: 100%;
}

.woocommerce .col2-set::before,
.woocommerce .col2-set::after {
	display: none;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
	width: 100%;
	max-width: none;
	float: none;
}

.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: var(--r-fs-lg);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
	padding: var(--r-space-6);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--r-space-4);
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
	width: calc(50% - var(--r-space-2));
	float: none;
}

.woocommerce form .form-row-wide {
	width: 100%;
}

@media (max-width: 639px) {
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		width: 100%;
	}
}

.woocommerce-checkout .woocommerce-shipping-fields:not(:has(h3, .shipping_address)) {
	display: none;
}

.woocommerce-checkout #order_review {
	padding: var(--r-space-6);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.woocommerce-checkout-review-order-table.shop_table {
	border: 0;
	background: transparent;
}

.woocommerce-checkout-review-order-table.shop_table th,
.woocommerce-checkout-review-order-table.shop_table td {
	padding: var(--r-space-3) 0;
	background: transparent;
	border-top-color: var(--r-border-strong);
}

.woocommerce-checkout-review-order-table .order-total .amount {
	font-size: var(--r-fs-lg);
	font-weight: 800;
}

.woocommerce-checkout #payment,
.woocommerce #payment {
	border-radius: var(--r-radius);
	background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0 0 var(--r-space-4);
	border-bottom: 1px solid var(--r-border-strong);
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: var(--r-space-3);
	margin-bottom: var(--r-space-2);
	border-radius: var(--r-radius);
	background: var(--r-bg);
	line-height: 1.7;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li input {
	margin-inline-end: 8px;
}

.woocommerce-checkout #payment div.payment_box {
	margin: var(--r-space-2) 0 0;
	border-radius: var(--r-radius-sm);
	background: var(--r-surface);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment div.form-row {
	padding: var(--r-space-4) 0 0;
}

html .woocommerce-checkout #payment #place_order {
	width: 100%;
	min-height: 54px;
	font-size: var(--r-fs-md);
	float: none;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: var(--r-fs-sm);
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
	background: var(--r-surface);
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	margin: 0 0 var(--r-space-6);
	padding: var(--r-space-6);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
}

/* Thank you page */
.woocommerce-order .woocommerce-thankyou-order-received {
	padding: var(--r-space-6);
	border-radius: var(--r-radius-lg);
	background: var(--r-success-soft);
	color: var(--r-success);
	font-size: var(--r-fs-lg);
	font-weight: 700;
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--r-space-3);
	margin: 0 0 var(--r-space-8);
	padding: 0;
}

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

.woocommerce ul.order_details li {
	margin: 0;
	padding: var(--r-space-4);
	border: 0;
	border-radius: var(--r-radius);
	background: var(--r-surface);
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
	float: none;
	text-transform: none;
}

.woocommerce ul.order_details li strong {
	display: block;
	margin-top: 4px;
	color: var(--r-text);
	font-size: var(--r-fs-base);
}

/* 9. My account
   ========================================================================== */
@media (min-width: 900px) {
	.woocommerce-account .woocommerce {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: var(--r-space-8);
		align-items: start;
	}

	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}

	.woocommerce-account:not(.logged-in) .woocommerce {
		display: block;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	width: 100%;
	float: none;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: 4px;
	margin: 0 0 var(--r-space-6);
	padding: var(--r-space-2);
	overflow-x: auto;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
	list-style: none;
	scrollbar-width: none;
}

@media (min-width: 900px) {
	.woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		margin: 0;
	}
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--r-radius);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	font-weight: 600;
	white-space: nowrap;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: var(--r-surface-2);
	color: var(--r-text);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--r-bg);
	color: var(--r-text);
	box-shadow: var(--r-shadow-sm);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--r-danger) !important;
}

.woocommerce-MyAccount-content > p:first-child {
	padding: var(--r-space-5);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.woocommerce-Addresses .woocommerce-Address {
	padding: var(--r-space-5);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
}

.woocommerce-account .u-columns.col2-set {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
	.woocommerce-account .u-columns.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-account:not(.logged-in) .entry-header {
	text-align: center;
}

.woocommerce form.login,
.woocommerce form.register {
	margin: 0;
}

.woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: var(--r-space-3) !important;
	font-weight: 400 !important;
}

html .woocommerce form.login .button,
html .woocommerce form.register .button {
	width: 100%;
}

.woocommerce-LostPassword {
	margin-top: var(--r-space-3);
	font-size: var(--r-fs-sm);
	text-align: center;
}

/* 11. Blocks
   ========================================================================== */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border-radius: var(--r-radius-pill) !important;
	background: var(--r-accent) !important;
	color: #fff !important;
	font-family: var(--r-font) !important;
	font-weight: 600;
}

.wc-block-components-button:not(.is-link):hover {
	background: var(--r-accent-hover) !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-color: var(--r-border-strong) !important;
	border-radius: var(--r-radius) !important;
	font-family: var(--r-font) !important;
}

.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus {
	border-color: var(--r-accent) !important;
	box-shadow: var(--r-focus) !important;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-panel,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
	border-radius: var(--r-radius-lg);
}

.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	background: var(--r-surface);
}

.wc-block-components-notice-banner {
	border-radius: var(--r-radius) !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	border-radius: var(--r-radius) !important;
}

.wc-block-components-product-name {
	font-weight: 700;
	color: var(--r-text) !important;
}

.wc-block-grid__product,
.wc-block-product {
	border-radius: var(--r-radius-lg);
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img {
	border-radius: var(--r-radius);
	background: var(--r-surface);
}

/* Toolbar refinements */
.woocommerce .shop-toolbar .woocommerce-result-count {
	display: none;
}

html .woocommerce .archive-hero .button--secondary,
html .woocommerce-page .archive-hero .button--secondary {
	background: var(--r-bg);
	color: var(--r-text);
	box-shadow: var(--r-shadow-sm);
}

@media (max-width: 1023px) {
	.shop-toolbar {
		gap: var(--r-space-2);
	}

	.woocommerce .shop-toolbar .woocommerce-ordering {
		margin-inline-start: auto;
	}

	.woocommerce .woocommerce-ordering select {
		max-width: 160px;
	}
}

.empty-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--r-space-2);
	margin: calc(var(--r-space-4) * -1) 0 var(--r-space-8);
}

/* 13. Shop sidebar — filter cards
   ========================================================================== */
.shop-sidebar .drawer__body {
	display: grid;
	gap: var(--r-space-3);
	align-content: start;
}

html .shop-sidebar .widget.filter-card {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--r-radius-lg);
	background: var(--r-bg);
	font-size: var(--r-fs-sm);
}

.filter-card__body:empty {
	display: none;
}

.filter-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	min-height: 40px;
	padding: 0 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	cursor: pointer;
	user-select: none;
}

.filter-card__head:focus-visible {
	outline: 2px solid var(--r-accent);
	outline-offset: -2px;
}

html .shop-sidebar .filter-card__head .widget-title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.filter-card__chevron {
	display: grid;
	place-items: center;
	color: var(--r-text-3);
	transition: transform var(--r-dur) var(--r-ease);
}

.filter-card.is-collapsed .filter-card__chevron {
	transform: rotate(180deg);
}

.filter-card.is-collapsed .filter-card__head {
	border-bottom-color: transparent;
}

.filter-card.is-collapsed .filter-card__body {
	display: none;
}

.filter-card__body {
	padding: 10px 14px 12px;
}

.filter-card__body > :last-child {
	margin-bottom: 0;
}

/* Category tree */
html .shop-sidebar .product-categories,
html .shop-sidebar .product-categories ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

html .shop-sidebar .product-categories li {
	position: relative;
	display: block;
	padding: 0;
}

.cat-row {
	display: flex;
	align-items: center;
	gap: var(--r-space-1);
	min-height: 38px;
	border-radius: var(--r-radius-sm);
}

html .shop-sidebar .product-categories a {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	min-height: 38px;
	padding-inline: var(--r-space-2);
	border-radius: var(--r-radius-sm);
	color: var(--r-text);
	transition: background-color var(--r-dur) var(--r-ease);
}

html .shop-sidebar .product-categories a:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

html .shop-sidebar .product-categories .current-cat > .cat-row > a,
html .shop-sidebar .product-categories .current-cat > a {
	background: var(--r-surface);
	font-weight: 700;
}

html .shop-sidebar .product-categories .count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 22px;
	padding-inline: 6px;
	border-radius: var(--r-radius-sm);
	background: var(--r-surface);
	color: var(--r-text-3);
	font-size: 11px;
	font-weight: 600;
}

html .shop-sidebar .product-categories a:hover .count,
html .shop-sidebar .product-categories .current-cat > .cat-row > a .count {
	background: var(--r-bg);
}

.cat-toggle {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: var(--r-radius-sm);
	background: transparent;
	color: var(--r-text-3);
	cursor: pointer;
}

.cat-toggle:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.cat-toggle svg {
	transition: transform var(--r-dur) var(--r-ease);
}

li.is-open > .cat-row > .cat-toggle svg {
	transform: rotate(180deg);
}

html .shop-sidebar .product-categories ul.children {
	display: none;
	margin: 2px 0 4px;
	padding-inline-start: var(--r-space-3);
	border-inline-start: 1px solid var(--r-border);
	margin-inline-start: var(--r-space-3);
}

html .shop-sidebar .product-categories li.is-open > ul.children,
html .shop-sidebar .product-categories.no-js-tree ul.children {
	display: block;
}

html .shop-sidebar .product-categories ul.children a {
	color: var(--r-text-2);
}

/* Layered nav (attributes) as checkboxes */
html .shop-sidebar .woocommerce-widget-layered-nav-list {
	margin: 0;
	padding: 0;
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li a {
	display: flex;
	flex: 1;
	align-items: center;
	gap: var(--r-space-2);
	min-height: 36px;
	color: var(--r-text);
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li a::before {
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--r-border-strong);
	border-radius: 5px;
	background: var(--r-bg) center / 12px no-repeat;
	content: "";
	transition: border-color var(--r-dur) var(--r-ease), background-color var(--r-dur) var(--r-ease);
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li a:hover::before {
	border-color: var(--r-text-3);
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li.chosen a::before {
	border-color: var(--r-btn);
	background-color: var(--r-btn);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

html .shop-sidebar .woocommerce-widget-layered-nav-list li.chosen a::after {
	display: none;
}

html .shop-sidebar .woocommerce-widget-layered-nav-list .count {
	color: var(--r-text-3);
	font-size: 11px;
}

/* Active filters */
html .shop-sidebar .widget_layered_nav_filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

html .shop-sidebar .widget_layered_nav_filters ul li {
	padding: 0;
	float: none;
}

html .shop-sidebar .widget_layered_nav_filters ul li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 2px 10px;
	border-radius: var(--r-radius-sm);
	background: var(--r-btn);
	color: #fff;
	font-size: var(--r-fs-xs);
}

html .shop-sidebar .widget_layered_nav_filters ul li a::before {
	position: static;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	content: "✕";
}

/* Price filter */
html .shop-sidebar .widget_price_filter .price_slider_wrapper .ui-widget-content {
	height: 4px;
	margin: var(--r-space-3) 9px var(--r-space-5);
	border: 0;
	border-radius: 2px;
	background: var(--r-surface-2);
}

html .shop-sidebar .widget_price_filter .ui-slider .ui-slider-range {
	border-radius: 2px;
	background: var(--r-btn);
}

html .shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
	top: -7px;
	width: 18px;
	height: 18px;
	margin-inline-start: -9px;
	border: 2px solid var(--r-btn);
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--r-shadow-sm);
	cursor: grab;
}

html[dir="rtl"] .shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle {
	margin-left: 0;
	margin-right: -9px;
}

html .shop-sidebar .widget_price_filter .ui-slider .ui-slider-handle:focus-visible {
	outline: 0;
	box-shadow: var(--r-focus);
}

html .shop-sidebar .widget_price_filter .price_slider_amount {
	display: grid;
	gap: var(--r-space-3);
	line-height: 1.6;
	text-align: start;
}

html .shop-sidebar .widget_price_filter .price_slider_amount .price_label {
	order: -1;
	padding: 8px 10px;
	border-radius: var(--r-radius-sm);
	background: var(--r-surface);
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
	text-align: center;
}

html .shop-sidebar .widget_price_filter .price_slider_amount .price_label span {
	color: var(--r-text);
	font-weight: 700;
}

html .shop-sidebar .widget_price_filter .price_slider_amount .button {
	width: 100%;
	min-height: 40px;
	margin: 0;
	float: none;
	border-radius: var(--r-radius);
	font-size: var(--r-fs-sm);
}

html .shop-sidebar .widget_price_filter .price_slider_amount .clear {
	display: none;
}

/* Generic lists / block widgets inside cards */
html .shop-sidebar .filter-card ul:not(.product-categories):not(.children):not(.woocommerce-widget-layered-nav-list) li {
	padding-block: 6px;
}

html .shop-sidebar .wp-block-heading {
	margin: 0 0 var(--r-space-3);
	font-size: var(--r-fs-sm);
}

/* Drawer (mobile) */
@media (max-width: 1023px) {
	.shop-sidebar .drawer__body {
		padding: var(--r-space-4);
		background: var(--r-surface);
	}
}

/* Keep the specs table two-column on phones */
.woocommerce table.shop_attributes,
.woocommerce table.shop_attributes tbody {
	display: table;
	width: 100%;
}

.woocommerce table.shop_attributes tbody {
	display: table-row-group;
}

html .woocommerce table.shop_attributes tr {
	display: table-row;
}

html .woocommerce table.shop_attributes tr th,
html .woocommerce table.shop_attributes tr td {
	display: table-cell;
}

/* Related / upsells: same heading style as the home section heads. */
.woocommerce div.product > .related,
.woocommerce div.product > .upsells {
	margin-top: var(--r-section);
}

.woocommerce .related > h2,
.woocommerce .upsells > h2 {
	margin-top: 0;
}

/* Tab bar overflow hint on small screens */
@media (max-width: 767px) {
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		gap: var(--r-space-5);
		margin-inline: calc(var(--r-gutter) * -1);
		padding-inline: var(--r-gutter);
	}
}

/* Align counts whether or not a row has a sub-category toggle */
html .shop-sidebar .product-categories li:not(.cat-parent) > .cat-row {
	padding-inline-end: 34px;
}

/* Visually hidden panel headings (kept for a correct heading outline) */
.woocommerce-Tabs-panel--description > h2:first-child,
.woocommerce-Tabs-panel--additional_information > h2:first-child {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.woocommerce-Tabs-panel--description > h2:first-child + * {
	margin-top: 0;
}

/* Links inside meta text must be distinguishable without colour */
.woocommerce div.product .product_meta a {
	text-decoration: underline;
	text-decoration-color: var(--r-border-strong);
	text-underline-offset: 3px;
}

/* 14. Wireframe layout — archive (.ref/archive.html) and single (.ref/single.html)
   ========================================================================== */

/* Archive hero banner (wireframe 5): a framed panel, tall on wide screens. */
.archive-hero {
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 1200px) {
	.archive-hero {
		min-height: 280px;
		padding: var(--r-space-12);
	}
}

/* Sidebar (364px, start side) + product grid (wireframe 6). */
@media (min-width: 1024px) {
	.shop-layout--sidebar {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: var(--r-space-6);
	}
}

@media (min-width: 1440px) {
	.shop-layout--sidebar {
		grid-template-columns: var(--r-sidebar) minmax(0, 1fr);
		gap: var(--r-space-8);
	}
}

@media (min-width: 1024px) {
	.shop-sidebar.drawer {
		padding: var(--r-space-5);
		border: 1px solid var(--r-border);
		border-radius: var(--r-radius-lg);
		background: var(--r-surface);
	}
}

/* Archive grid: joined cells (shared 1px lines), like mature marketplaces. */
.shop-layout > .site-main > ul.products {
	gap: 0;
	border-block-start: 1px solid var(--r-border);
	border-inline-start: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	overflow: hidden;
}

.shop-layout > .site-main > ul.products > li.product.product-card {
	border: 0;
	border-block-end: 1px solid var(--r-border);
	border-inline-end: 1px solid var(--r-border);
	border-radius: 0;
}

.shop-layout > .site-main > ul.products > li.product.product-card:hover {
	box-shadow: inset 0 0 0 1px var(--r-border-strong);
}

@media (min-width: 1024px) and (max-width: 1439px) {
	.woocommerce .shop-layout > .site-main > ul.products.columns-5 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Single product
   -------------------------------------------------------------------------- */
.woocommerce div.product.product-page {
	margin-bottom: 0;
}

/* Title and meta (wireframe 4). */
.product-hero {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: var(--r-space-3);
	padding: var(--r-space-4);
	border: 0;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 1024px) {
	.product-hero {
		padding: var(--r-space-4) var(--r-space-6);
	}
}

.product-hero .product-eyebrow {
	margin: 0;
}

.woocommerce div.product .product-hero__title {
	margin: 0;
	font-size: var(--r-fs-lg);
	line-height: 1.45;
}

@media (min-width: 1024px) {
	.woocommerce div.product .product-hero__title {
		font-size: var(--r-fs-xl);
	}
}

.product-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2) var(--r-space-4);
}

.product-hero__meta .woocommerce-product-rating,
.product-hero__meta .product-specline {
	margin: 0;
}

/* Notice area (wireframe 5): fitment with the saved car. */
.product-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-4);
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.product-notice__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--r-radius);
	background: var(--r-bg);
	color: var(--r-text-2);
}

.product-notice__text {
	flex: 1 1 240px;
	margin: 0;
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.product-notice__link {
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.product-notice.is-yes {
	border-color: color-mix(in srgb, var(--r-success) 35%, transparent);
	background: var(--r-success-soft);
}

.product-notice.is-yes .product-notice__icon {
	color: var(--r-success);
}

.product-notice.is-no {
	border-color: color-mix(in srgb, var(--r-warning) 35%, transparent);
	background: var(--r-warning-soft);
}

.product-notice.is-no .product-notice__icon {
	color: var(--r-warning);
}

/* Three columns (wireframe 6): gallery | key info | buy box.
   Mobile order follows the DOM: gallery, info, buy. */
.product-main.product-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-6);
}

@media (min-width: 768px) {
	.product-main.product-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--r-space-4);
		align-items: start;
	}

	.product-col--buy {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.product-main.product-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--r-space-4);
		align-items: stretch;
	}

	.product-col--buy {
		grid-column: auto;
	}
}

.product-col {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--r-space-3);
	min-width: 0;
	padding: var(--r-space-3);
	border: 0;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 1200px) {
	.product-col {
		padding: var(--r-space-4);
	}
}

.product-main.product-cols div.images {
	position: relative !important;
	top: auto;
}

.woocommerce div.product .product-col--gallery div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product .product-col--gallery div.images .flex-viewport {
	background: var(--r-bg);
}

.woocommerce div.product .product-col--gallery div.images .flex-control-thumbs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	overflow: visible;
}

.woocommerce div.product .product-col--gallery div.images .flex-control-thumbs li {
	width: auto;
}

.woocommerce div.product .product-col--gallery div.images .flex-control-thumbs li:nth-child(n + 5) {
	display: none;
}

.woocommerce div.product .product-col--gallery div.images .flex-control-thumbs li img {
	background: var(--r-bg);
	border-color: var(--r-border);
}

.woocommerce .product-col--gallery > .onsale {
	position: absolute;
	inset-block-start: var(--r-space-6);
	inset-inline-start: var(--r-space-6);
	z-index: 9;
}

/* Boxes inside the columns. */
.info-box {
	padding: 14px;
	border: 0;
	border-radius: var(--r-radius);
	background: var(--r-elevated);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-box__title {
	margin: 0 0 var(--r-space-3);
	font-family: var(--r-font);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.info-box .product-fitment {
	margin: 0;
}

.info-box .product-fitment__title {
	display: none; /* The box title already says it. */
}

.info-box .trust-list,
.info-box .express-box {
	margin: 0;
}

.info-box .trust-list {
	padding: 0;
	background: none;
}

.info-box .help-line {
	margin-top: var(--r-space-3);
}

.info-box .stock {
	margin: 0 0 var(--r-space-3);
	font-weight: 700;
}

.info-box .stock:last-child {
	margin-bottom: 0;
}

.key-specs {
	display: grid;
	margin: 0 0 var(--r-space-3);
}

.key-specs__row {
	display: flex;
	justify-content: space-between;
	gap: var(--r-space-3);
	padding-block: var(--r-space-2);
	border-block-end: 1px dashed var(--r-border);
	font-size: var(--r-fs-sm);
}

.key-specs__row:last-child {
	border-block-end: 0;
}

.key-specs dt {
	color: var(--r-text-3);
}

.key-specs dd {
	margin: 0;
	font-weight: 600;
	text-align: end;
}

/* Price and add to cart, pinned to the bottom of the buy column. */
.buy-box {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-3);
	margin-top: auto;
	padding: 14px;
	border: 0;
	border-radius: var(--r-radius);
	background: var(--r-elevated);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.buy-box p.price,
.buy-box span.price {
	margin: 0;
}

.buy-box form.cart {
	margin: 0;
}

.buy-box .single_add_to_cart_button {
	flex: 1;
	min-height: 42px;
}

/* Tabs (wireframe 7): a framed panel with the tab row on top. */
.woocommerce div.product.product-page .woocommerce-tabs {
	padding: var(--r-space-4);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
}

@media (min-width: 1024px) {
	.woocommerce div.product.product-page .woocommerce-tabs {
		padding: var(--r-space-5) var(--r-space-6);
	}
}

/* Related products (wireframe 9). */
.single-product .related.products,
.single-product .upsells.products {
	margin-top: var(--r-section);
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
	margin-bottom: var(--r-space-4);
	font-size: var(--r-fs-lg);
}

@media (min-width: 1024px) {
	.single-product .related.products > h2,
	.single-product .upsells.products > h2 {
		font-size: var(--r-fs-xl);
	}
}

.info-box .product-fitment {
	padding: 0;
	border: 0;
	background: none;
}
