/**
 * Jermjovit WooCommerce styles.
 *
 * Mobile-first, RTL-friendly styling for the full storefront flow.
 */

:root {
	--jj-products-desktop: 4;
	--jj-products-tablet: 3;
	--jj-products-mobile: 2;
	--jj-product-radius: 24px;
	--jj-product-image-ratio: 1/1;
}

.jj-has-woocommerce {
	--jj-wc-surface: var(--jj-light, #fffaf0);
	--jj-wc-surface-alt: #f5efe3;
	--jj-wc-ink: var(--jj-text, #261d15);
	--jj-wc-muted: var(--jj-muted, #786e64);
	--jj-wc-gold: var(--jj-gold, #b88a35);
	--jj-wc-gold-light: var(--jj-gold-light, #e4c77f);
	--jj-wc-dark: var(--jj-dark, #17120f);
	--jj-wc-border: var(--jj-border, rgba(109, 82, 36, 0.18));
	--jj-wc-shadow: var(--jj-shadow, 0 18px 50px rgba(40, 29, 18, 0.09));
}

.jj-woocommerce-main {
	background:
		radial-gradient(circle at 100% 0, rgba(184, 138, 53, 0.08), transparent 28rem),
		var(--jj-wc-surface, #fffaf0);
	color: var(--jj-wc-ink, #261d15);
	min-height: 60vh;
	padding-block: clamp(2rem, 6vw, 5rem);
}

.jj-woocommerce-container,
.jj-container {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--jj-container, 1280px);
	padding-inline: 1rem;
	width: 100%;
}

.woocommerce img,
.woocommerce-page img {
	height: auto;
	max-width: 100%;
}

.woocommerce a {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.woocommerce a:focus-visible,
.woocommerce button:focus-visible,
.woocommerce input:focus-visible,
.woocommerce select:focus-visible,
.woocommerce textarea:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--jj-wc-gold, #b88a35) 45%, transparent);
	outline-offset: 3px;
}

/* Breadcrumbs and archive headers. */
.woocommerce .woocommerce-breadcrumb,
.jj-breadcrumbs {
	align-items: center;
	color: var(--jj-wc-muted, #786e64);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.85rem;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--jj-wc-muted, #786e64);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--jj-wc-gold, #b88a35);
}

.jj-breadcrumb-separator {
	color: var(--jj-wc-gold-light, #e4c77f);
}

.woocommerce-products-header {
	margin-block-end: clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

.woocommerce-products-header__title,
.woocommerce .page-title {
	color: var(--jj-wc-dark, #17120f);
	font-size: 3.5rem;
	line-height: 1.35;
	margin: 0;
}

.woocommerce-products-header__description {
	color: var(--jj-wc-muted, #786e64);
	line-height: 2;
	margin: 1rem auto 0;
	max-width: 52rem;
}

/* Notices. */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	align-items: center;
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 18px;
	box-shadow: 0 10px 32px rgba(40, 29, 18, 0.06);
	color: var(--jj-wc-ink, #261d15);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	line-height: 1.8;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	position: relative;
}

.woocommerce-error {
	border-inline-start: 4px solid #a54848;
}

.woocommerce-info {
	border-inline-start: 4px solid #477894;
}

.woocommerce-message {
	border-inline-start: 4px solid var(--jj-wc-gold, #b88a35);
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
	background: var(--jj-wc-gold, #b88a35);
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	height: 0.55rem;
	width: 0.55rem;
}

.woocommerce-error::before {
	background: #a54848;
}

.woocommerce-info::before {
	background: #477894;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-inline-start: auto;
	order: 2;
}

/* Shared form controls and buttons. */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce input[type="url"],
.woocommerce select,
.woocommerce textarea {
	appearance: none;
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 14px;
	box-sizing: border-box;
	color: var(--jj-wc-ink, #261d15);
	font: inherit;
	line-height: 1.5;
	min-height: 3rem;
	padding: 0.72rem 0.9rem;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease;
	width: 100%;
}

.woocommerce textarea {
	min-height: 8rem;
	resize: vertical;
}

.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
	border-color: var(--jj-wc-gold, #b88a35);
	box-shadow: 0 0 0 4px rgba(184, 138, 53, 0.1);
	outline: 0;
}

.woocommerce form .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.woocommerce form .form-row label {
	color: var(--jj-wc-ink, #261d15);
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-block-end: 0.45rem;
}

.woocommerce form .form-row .required {
	color: #9f3e3e;
	text-decoration: none;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wc-block-components-button {
	align-items: center;
	background: linear-gradient(135deg, var(--jj-wc-gold, #b88a35), #8b6427);
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: 0 10px 22px rgba(130, 92, 31, 0.16);
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	gap: 0.45rem;
	justify-content: center;
	line-height: 1.3;
	min-height: 2.85rem;
	padding: 0.75rem 1.25rem;
	text-align: center;
	text-decoration: none;
	transition:
		background 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
	background: linear-gradient(135deg, #c39847, var(--jj-wc-gold, #b88a35));
	box-shadow: 0 14px 28px rgba(130, 92, 31, 0.23);
	color: #fff;
	transform: translateY(-2px);
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
	background: var(--jj-wc-dark, #17120f);
	color: #fff;
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--jj-wc-gold, #b88a35);
	color: #fff;
}

.woocommerce .button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

/* Shop toolbar. */
.jj-shop-toolbar {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 20px;
	margin-block-end: 1.5rem;
	padding: 0.85rem 1rem;
}

.jj-shop-toolbar::after {
	clear: both;
	content: "";
	display: table;
}

.woocommerce .woocommerce-result-count {
	color: var(--jj-wc-muted, #786e64);
	font-size: 0.88rem;
	line-height: 3rem;
	margin: 0;
}

.woocommerce .woocommerce-ordering {
	margin: 0;
}

.woocommerce .woocommerce-ordering select {
	background-color: #fff;
	cursor: pointer;
	min-width: min(100%, 14rem);
}

/* Product grid and cards. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	gap: clamp(0.8rem, 2.4vw, 1.6rem);
	grid-template-columns: repeat(var(--jj-products-mobile, 2), minmax(0, 1fr));
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
}

.jj-product-card {
	min-width: 0;
}

.jj-product-card__inner {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: var(--jj-product-radius, 24px);
	box-shadow: 0 12px 35px rgba(40, 29, 18, 0.06);
	height: 100%;
	overflow: hidden;
	position: relative;
	transition:
		border-color 240ms ease,
		box-shadow 240ms ease,
		transform 240ms ease;
}

.jj-product-card__inner:hover {
	border-color: rgba(184, 138, 53, 0.4);
	box-shadow: var(--jj-wc-shadow, 0 18px 50px rgba(40, 29, 18, 0.09));
	transform: translateY(-5px);
}

.jj-product-card a.woocommerce-LoopProduct-link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.jj-product-card__media {
	aspect-ratio: var(--jj-product-image-ratio, 1/1);
	background:
		linear-gradient(145deg, rgba(228, 199, 127, 0.12), rgba(245, 239, 227, 0.5)),
		#f7f2e9;
	overflow: hidden;
	position: relative;
}

.woocommerce ul.products li.product .jj-product-card__media img {
	aspect-ratio: var(--jj-product-image-ratio, 1/1);
	display: block;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
	width: 100%;
}

.jj-product-card__inner:hover .jj-product-card__media img {
	transform: scale(1.045);
}

.woocommerce span.onsale {
	align-items: center;
	background: var(--jj-wc-dark, #17120f);
	border: 1px solid rgba(228, 199, 127, 0.55);
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(23, 18, 15, 0.15);
	color: var(--jj-wc-gold-light, #e4c77f);
	display: flex;
	font-size: 0.7rem;
	font-weight: 700;
	inset: 0.75rem auto auto 0.75rem;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-height: 2.35rem;
	min-width: 2.35rem;
	padding: 0.5rem;
	z-index: 3;
}

.woocommerce span.onsale.jj-special-offer {
	min-width: 0;
	max-width: calc(100% - 1.5rem);
	padding-inline: 0.8rem;
	white-space: nowrap;
}

.jj-product-card__view {
	background: rgba(23, 18, 15, 0.82);
	border: 1px solid rgba(228, 199, 127, 0.45);
	border-radius: 999px;
	bottom: 0.75rem;
	color: #fff;
	font-size: 0.72rem;
	inset-inline-start: 50%;
	opacity: 0;
	padding: 0.55rem 0.85rem;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, 0.5rem);
	transition:
		opacity 220ms ease,
		transform 220ms ease;
	white-space: nowrap;
	z-index: 2;
}

[dir="rtl"] .jj-product-card__view {
	transform: translate(50%, 0.5rem);
}

.jj-product-card__inner:hover .jj-product-card__view {
	opacity: 1;
	transform: translate(-50%, 0);
}

[dir="rtl"] .jj-product-card__inner:hover .jj-product-card__view {
	transform: translate(50%, 0);
}

.jj-product-card__content {
	padding: 0.9rem;
}

.jj-product-card__category {
	color: var(--jj-wc-gold, #b88a35);
	display: block;
	font-size: 0.68rem;
	margin-block-end: 0.35rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--jj-wc-dark, #17120f);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.75;
	margin: 0;
	min-height: 3.5em;
	padding: 0;
}

.woocommerce ul.products li.product .star-rating {
	color: var(--jj-wc-gold, #b88a35);
	font-size: 0.72rem;
	margin: 0.45rem 0;
}

.woocommerce ul.products li.product .price {
	color: var(--jj-wc-dark, #17120f);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	font-weight: 700;
	gap: 0.3rem;
	margin: 0.4rem 0 0.75rem;
}

.woocommerce ul.products li.product .price del {
	color: var(--jj-wc-muted, #786e64);
	font-size: 0.82em;
	opacity: 0.65;
}

.woocommerce ul.products li.product .price ins {
	color: var(--jj-wc-gold, #b88a35);
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	border-radius: 13px;
	font-size: 0.75rem;
	margin: 0.25rem 0 0;
	min-height: 2.5rem;
	padding: 0.55rem 0.7rem;
	width: 100%;
}

.woocommerce ul.products li.product .added_to_cart {
	color: var(--jj-wc-gold, #b88a35);
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	padding-block: 0.65rem 0;
	text-align: center;
	text-decoration: none;
}

.woocommerce ul.products li.product .button.loading {
	opacity: 0.7;
	padding-inline-end: 2rem;
	position: relative;
}

.woocommerce ul.products li.product .button.loading::after {
	animation: jj-wc-spin 700ms linear infinite;
	border: 2px solid currentColor;
	border-block-start-color: transparent;
	border-radius: 50%;
	content: "";
	height: 0.8rem;
	inset-inline-end: 0.75rem;
	position: absolute;
	top: calc(50% - 0.4rem);
	width: 0.8rem;
}

.woocommerce ul.products li.product .button.added::after {
	content: "✓";
	margin-inline-start: 0.4rem;
}

.jj-product-card-minimal .jj-product-card__inner {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

.jj-product-card-minimal .jj-product-card__content {
	padding-inline: 0.35rem;
}

.jj-product-card-bordered .jj-product-card__inner {
	box-shadow: none;
}

/* Pagination. */
.woocommerce nav.woocommerce-pagination {
	margin-block: 2.5rem 0;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
	display: inline-flex;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	align-items: center;
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 50%;
	color: var(--jj-wc-ink, #261d15);
	display: flex;
	height: 2.7rem;
	justify-content: center;
	line-height: 1;
	min-width: 2.7rem;
	padding: 0.4rem;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--jj-wc-dark, #17120f);
	border-color: var(--jj-wc-dark, #17120f);
	color: var(--jj-wc-gold-light, #e4c77f);
}

/* Empty results and cart. */
.woocommerce .woocommerce-info,
.woocommerce .cart-empty {
	clear: both;
}

.woocommerce .cart-empty {
	justify-content: center;
	margin-block-end: 0;
	text-align: center;
}

.jj-empty-state__mark {
	color: var(--jj-wc-gold, #b88a35);
	font-size: 4rem;
	line-height: 1;
	text-align: center;
}

.jj-empty-state__text {
	color: var(--jj-wc-muted, #786e64);
	font-size: 1rem;
	margin: 1rem 0;
	text-align: center;
}

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

/* Single product. */
.jj-single-product__top {
	display: grid;
	gap: clamp(1.5rem, 5vw, 4rem);
}

.jj-single-product__gallery,
.jj-single-product__summary {
	min-width: 0;
	position: relative;
}

.jj-single-product__gallery .onsale {
	inset: 1rem 1rem auto auto;
}

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

.woocommerce div.product div.images {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: clamp(22px, 4vw, 36px);
	box-shadow: var(--jj-wc-shadow, 0 18px 50px rgba(40, 29, 18, 0.09));
	overflow: hidden;
	padding: 0.65rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	border-radius: clamp(17px, 3vw, 29px);
	overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	aspect-ratio: var(--jj-product-image-ratio, 1/1);
	object-fit: cover;
	width: 100%;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 0.7rem 0 0;
	padding: 0;
}

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

.woocommerce div.product div.images .flex-control-thumbs img {
	aspect-ratio: 1;
	border: 2px solid transparent;
	border-radius: 12px;
	object-fit: cover;
	opacity: 0.6;
	transition:
		border-color 180ms ease,
		opacity 180ms ease;
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
	border-color: var(--jj-wc-gold, #b88a35);
	opacity: 1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 50%;
	color: var(--jj-wc-dark, #17120f);
	display: flex;
	height: 2.8rem;
	inset: 1.4rem auto auto 1.4rem;
	justify-content: center;
	text-indent: -9999px;
	width: 2.8rem;
	z-index: 5;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
	border: 2px solid currentColor;
	border-radius: 50%;
	content: "";
	height: 0.75rem;
	inset: 0.72rem auto auto 0.72rem;
	position: absolute;
	width: 0.75rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
	background: currentColor;
	content: "";
	height: 2px;
	inset: 1.55rem auto auto 1.55rem;
	position: absolute;
	transform: rotate(45deg);
	width: 0.6rem;
}

.jj-single-product__summary {
	align-self: center;
}

.woocommerce div.product .product_title {
	color: var(--jj-wc-dark, #17120f);
	font-size: 3rem;
	line-height: 1.45;
	margin: 0 0 0.85rem;
}

.woocommerce div.product .woocommerce-product-rating {
	align-items: center;
	display: flex;
	gap: 0.7rem;
	margin: 0 0 1rem;
}

.woocommerce .star-rating {
	color: var(--jj-wc-gold, #b88a35);
	font-family: star;
}

.woocommerce .woocommerce-review-link {
	color: var(--jj-wc-muted, #786e64);
	font-size: 0.82rem;
	text-decoration: none;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--jj-wc-gold, #b88a35);
	font-size: 1.55rem;
	font-weight: 800;
	margin-block: 0 1.2rem;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--jj-wc-muted, #786e64);
	font-size: 0.78em;
	opacity: 0.65;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	text-decoration: none;
}

.woocommerce-product-details__short-description {
	color: var(--jj-wc-muted, #786e64);
	font-size: 0.95rem;
	line-height: 2;
	margin-block-end: 1.4rem;
}

.woocommerce-product-details__short-description > :first-child {
	margin-block-start: 0;
}

.woocommerce-product-details__short-description > :last-child {
	margin-block-end: 0;
}

.woocommerce div.product p.stock {
	align-items: center;
	color: #39704b;
	display: flex;
	font-size: 0.85rem;
	font-weight: 700;
	gap: 0.45rem;
	margin-block: 0.75rem;
}

.woocommerce div.product p.stock::before {
	background: currentColor;
	border-radius: 50%;
	content: "";
	height: 0.5rem;
	width: 0.5rem;
}

.woocommerce div.product p.stock.out-of-stock {
	color: #a54848;
}

.woocommerce div.product form.cart {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.3rem 0;
}

.woocommerce .quantity {
	flex: 0 0 5.2rem;
}

.woocommerce .quantity .qty {
	text-align: center;
}

.woocommerce div.product form.cart .button {
	flex: 1 1 12rem;
	min-height: 3.15rem;
}

.woocommerce div.product form.cart table.variations {
	border: 0;
	margin: 0 0 1rem;
	width: 100%;
}

.woocommerce div.product form.cart table.variations tr {
	display: grid;
	gap: 0.45rem;
	margin-block-end: 0.8rem;
}

.woocommerce div.product form.cart table.variations td,
.woocommerce div.product form.cart table.variations th {
	display: block;
	padding: 0;
	text-align: start;
}

.woocommerce div.product form.cart .variations label {
	font-size: 0.88rem;
}

.woocommerce div.product form.cart .reset_variations {
	color: var(--jj-wc-gold, #b88a35);
	display: inline-block;
	font-size: 0.78rem;
	margin-block-start: 0.45rem;
}

.woocommerce div.product .single_variation_wrap,
.woocommerce div.product .woocommerce-variation {
	width: 100%;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.jj-product-meta {
	border-block: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	display: grid;
	font-size: 0.82rem;
	gap: 0.65rem;
	margin-block: 1.4rem;
	padding-block: 1.1rem;
}

.jj-product-meta > span {
	color: var(--jj-wc-muted, #786e64);
}

.jj-product-meta a {
	color: var(--jj-wc-gold, #b88a35);
	text-decoration: none;
}

.jj-product-share {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8rem;
	gap: 0.55rem;
}

.jj-product-share__label {
	color: var(--jj-wc-muted, #786e64);
	font-weight: 600;
}

.jj-product-share a {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 999px;
	color: var(--jj-wc-ink, #261d15);
	padding: 0.45rem 0.75rem;
	text-decoration: none;
}

.jj-product-share a:hover {
	background: var(--jj-wc-dark, #17120f);
	border-color: var(--jj-wc-dark, #17120f);
	color: var(--jj-wc-gold-light, #e4c77f);
}

.jj-single-product__details {
	clear: both;
	margin-block-start: clamp(2.5rem, 7vw, 5rem);
}

.woocommerce div.product .woocommerce-tabs {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: clamp(20px, 4vw, 32px);
	box-shadow: 0 16px 44px rgba(40, 29, 18, 0.06);
	clear: both;
	overflow: hidden;
	padding: 1rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-block-end: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	display: flex;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	padding: 0 0 0.8rem;
}

.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 {
	background: transparent;
	border: 0;
	border-radius: 999px;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	border-radius: 999px;
	color: var(--jj-wc-muted, #786e64);
	display: block;
	font-size: 0.86rem;
	font-weight: 700;
	padding: 0.65rem 1rem;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--jj-wc-dark, #17120f);
	color: var(--jj-wc-gold-light, #e4c77f);
}

.woocommerce div.product .woocommerce-tabs .panel {
	color: var(--jj-wc-muted, #786e64);
	line-height: 2;
	margin: 0;
	padding: clamp(1rem, 3vw, 2rem) 0.35rem 0.35rem;
}

.woocommerce div.product .woocommerce-tabs .panel h2:first-child {
	color: var(--jj-wc-dark, #17120f);
	font-size: 1.7rem;
	margin-block-start: 0;
}

.woocommerce table.shop_attributes {
	border: 0;
	border-collapse: separate;
	border-spacing: 0 0.45rem;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	background: var(--jj-wc-surface-alt, #f5efe3);
	border: 0;
	font-style: normal;
	padding: 0.85rem;
	text-align: start;
}

.woocommerce table.shop_attributes th {
	border-radius: 0 12px 12px 0;
	color: var(--jj-wc-dark, #17120f);
	width: 32%;
}

.woocommerce table.shop_attributes td {
	border-radius: 12px 0 0 12px;
}

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

.woocommerce #reviews #comments ol.commentlist li {
	margin-block-end: 1rem;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	background: var(--jj-wc-surface-alt, #f5efe3);
	border: 0;
	border-radius: 18px;
	margin: 0 3.8rem 0 0;
	padding: 1rem;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 50%;
	padding: 0.2rem;
	width: 2.8rem;
}

.woocommerce #review_form #respond textarea {
	min-height: 9rem;
}

.woocommerce .comment-form-rating .stars a {
	color: var(--jj-wc-gold, #b88a35);
}

.related.products,
.upsells.products,
.jj-recently-viewed {
	margin-block-start: clamp(2.5rem, 6vw, 4rem);
}

.related.products > h2,
.upsells.products > h2,
.jj-recently-viewed > h2 {
	color: var(--jj-wc-dark, #17120f);
	font-size: 2rem;
	margin: 0 0 1.5rem;
	text-align: center;
}

/* Cart tables. */
.woocommerce-cart-form {
	margin-block-end: 1.5rem;
}

.woocommerce table.shop_table {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-collapse: separate;
	border-radius: 20px;
	border-spacing: 0;
	box-shadow: 0 12px 38px rgba(40, 29, 18, 0.05);
	margin: 0 0 1.5rem;
	overflow: hidden;
	text-align: start;
	width: 100%;
}

.woocommerce table.shop_table th {
	background: var(--jj-wc-dark, #17120f);
	border: 0;
	color: var(--jj-wc-gold-light, #e4c77f);
	font-size: 0.84rem;
	padding: 1rem;
	text-align: start;
}

.woocommerce table.shop_table td {
	border-block-start: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	padding: 1rem;
	vertical-align: middle;
}

.woocommerce table.shop_table .product-thumbnail img {
	border-radius: 12px;
	width: 4.5rem;
}

.woocommerce table.shop_table .product-name a {
	color: var(--jj-wc-dark, #17120f);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce table.shop_table .product-name a:hover {
	color: var(--jj-wc-gold, #b88a35);
}

.woocommerce table.shop_table .product-remove a.remove {
	align-items: center;
	background: rgba(165, 72, 72, 0.08);
	border-radius: 50%;
	color: #a54848 !important;
	display: flex;
	font-size: 1.25rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 2rem;
}

.woocommerce table.shop_table .product-remove a.remove:hover {
	background: #a54848;
	color: #fff !important;
}

.woocommerce table.shop_table td.actions {
	padding: 1rem;
}

.woocommerce table.shop_table td.actions .coupon {
	display: flex;
	gap: 0.55rem;
}

.woocommerce table.shop_table td.actions .coupon .input-text {
	margin: 0;
	min-width: 0;
	width: auto;
}

.woocommerce .cart-collaterals {
	display: grid;
	gap: 1.5rem;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 20px;
	box-shadow: 0 12px 38px rgba(40, 29, 18, 0.05);
	box-sizing: border-box;
	float: none;
	padding: 1.25rem;
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals h2 {
	color: var(--jj-wc-dark, #17120f);
	font-size: 1.25rem;
	margin-block-start: 0;
}

.woocommerce .cart-collaterals .cart_totals table {
	border-radius: 0;
	box-shadow: none;
}

.woocommerce .cart-collaterals .cart_totals table th {
	background: transparent;
	color: var(--jj-wc-dark, #17120f);
}

.woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	font-size: 1rem;
	margin: 1rem 0 0;
	width: 100%;
}

/* Checkout. */
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
	margin-block-end: 1rem;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 20px;
	box-shadow: 0 12px 38px rgba(40, 29, 18, 0.05);
	margin: 0 0 1.5rem;
	padding: 1.25rem;
}

.woocommerce-checkout form.checkout {
	display: grid;
	gap: 1.5rem;
}

.woocommerce .col2-set {
	display: grid;
	gap: 1.25rem;
}

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

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#order_review {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 20px;
	box-shadow: 0 12px 38px rgba(40, 29, 18, 0.05);
	padding: 1.25rem;
}

.woocommerce-checkout h3 {
	color: var(--jj-wc-dark, #17120f);
	font-size: 1.25rem;
	margin-block-start: 0;
}

.woocommerce-checkout-review-order-table {
	box-shadow: none !important;
}

.woocommerce-checkout #payment {
	background: var(--jj-wc-surface-alt, #f5efe3);
	border-radius: 16px;
}

.woocommerce-checkout #payment ul.payment_methods {
	border-block-end: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	list-style: none;
	margin: 0;
	padding: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin-block-end: 0.75rem;
}

.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border-radius: 12px;
	color: var(--jj-wc-muted, #786e64);
	line-height: 1.8;
	margin: 0.7rem 0;
	padding: 0.85rem;
}

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

.woocommerce-checkout #payment div.form-row {
	margin: 0;
	padding: 1rem;
}

.woocommerce-checkout #payment #place_order {
	float: none;
	width: 100%;
}

.select2-container--default .select2-selection--single {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 14px;
	height: 3rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 3rem;
	padding-inline: 0.9rem 2.2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 3rem;
	inset: 0 auto auto 0.65rem;
}

/* Account area. */
.woocommerce-account .woocommerce {
	display: grid;
	gap: 1.25rem;
}

.woocommerce-MyAccount-navigation {
	background: var(--jj-wc-dark, #17120f);
	border: 1px solid rgba(228, 199, 127, 0.25);
	border-radius: 20px;
	box-shadow: var(--jj-wc-shadow, 0 18px 50px rgba(40, 29, 18, 0.09));
	box-sizing: border-box;
	float: none;
	overflow: hidden;
	padding: 0.65rem;
	width: 100%;
}

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

.woocommerce-MyAccount-navigation li + li {
	margin-block-start: 0.2rem;
}

.woocommerce-MyAccount-navigation a {
	border-radius: 12px;
	color: rgba(255, 255, 255, 0.75);
	display: block;
	padding: 0.75rem 0.9rem;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
	background: rgba(228, 199, 127, 0.12);
	color: var(--jj-wc-gold-light, #e4c77f);
}

.woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 20px;
	box-shadow: 0 12px 38px rgba(40, 29, 18, 0.05);
	box-sizing: border-box;
	float: none;
	line-height: 1.9;
	min-width: 0;
	padding: 1.25rem;
	width: 100%;
}

.woocommerce-MyAccount-content a:not(.button) {
	color: var(--jj-wc-gold, #b88a35);
}

.woocommerce-account .addresses .title h3 {
	float: none;
}

.woocommerce-account .addresses .title .edit {
	color: var(--jj-wc-gold, #b88a35);
	float: none;
}

.woocommerce-account address {
	background: var(--jj-wc-surface-alt, #f5efe3);
	border: 0;
	border-radius: 14px;
	font-style: normal;
	line-height: 2;
	padding: 1rem;
}

/* Block cart and checkout compatibility. */
.wc-block-cart,
.wc-block-checkout {
	direction: rtl;
}

.wc-block-components-sidebar-layout {
	gap: 1.5rem;
}

.wc-block-components-sidebar,
.wc-block-components-main {
	box-sizing: border-box;
}

.wc-block-cart-items,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-checkout__form {
	border-color: var(--jj-wc-border, rgba(109, 82, 36, 0.18)) !important;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border-color: var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	border-radius: 14px;
}

.wc-block-components-product-name {
	color: var(--jj-wc-dark, #17120f);
	font-weight: 700;
	text-decoration: none;
}

.wc-block-components-button:not(.is-link) {
	background: var(--jj-wc-dark, #17120f);
	border-radius: 999px;
	color: #fff;
}

/* Order confirmation and generic WooCommerce tables. */
.woocommerce-order {
	line-height: 1.9;
}

.woocommerce-order-overview {
	background: var(--jj-wc-dark, #17120f);
	border-radius: 20px;
	color: #fff;
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 1.5rem 0;
	padding: 1.25rem;
}

.woocommerce-order-overview li {
	border: 0 !important;
	color: rgba(255, 255, 255, 0.7);
	float: none;
	font-size: 0.78rem;
	margin: 0;
	padding: 0;
}

.woocommerce-order-overview li strong {
	color: var(--jj-wc-gold-light, #e4c77f);
	display: block;
	font-size: 0.95rem;
	margin-block-start: 0.25rem;
}

@keyframes jj-wc-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.jj-shop-toolbar {
		display: grid;
		gap: 0.65rem;
	}

	.woocommerce .woocommerce-result-count {
		line-height: 1.8;
		text-align: center;
	}

	.woocommerce .woocommerce-ordering,
	.woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	.woocommerce table.shop_table_responsive thead,
	.woocommerce-page table.shop_table_responsive thead {
		display: none;
	}

	.woocommerce table.shop_table_responsive tr,
	.woocommerce-page table.shop_table_responsive tr {
		display: block;
		padding: 0.65rem;
	}

	.woocommerce table.shop_table_responsive tr + tr,
	.woocommerce-page table.shop_table_responsive tr + tr {
		border-block-start: 1px solid var(--jj-wc-border, rgba(109, 82, 36, 0.18));
	}

	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		align-items: center;
		border: 0;
		display: flex;
		gap: 1rem;
		justify-content: space-between;
		padding: 0.55rem;
		text-align: end !important;
	}

	.woocommerce table.shop_table_responsive tr td::before,
	.woocommerce-page table.shop_table_responsive tr td::before {
		content: attr(data-title);
		float: none;
		font-weight: 700;
	}

	.woocommerce table.shop_table_responsive tr td.product-remove::before,
	.woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
	.woocommerce table.shop_table_responsive tr td.actions::before {
		display: none;
	}

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

	.woocommerce table.shop_table_responsive tr td.product-thumbnail {
		display: none;
	}

	.woocommerce table.shop_table td.actions,
	.woocommerce table.shop_table td.actions .coupon {
		display: grid;
		gap: 0.55rem;
	}

	.woocommerce table.shop_table td.actions .coupon .input-text,
	.woocommerce table.shop_table td.actions .coupon .button,
	.woocommerce table.shop_table td.actions > .button {
		width: 100%;
	}

	.woocommerce .woocommerce-message .button,
	.woocommerce .woocommerce-info .button {
		margin-inline-start: 0;
		width: 100%;
	}
}

@media (min-width: 768px) {
	.jj-woocommerce-container,
	.jj-container {
		padding-inline: 1.5rem;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(var(--jj-products-tablet, 3), minmax(0, 1fr));
	}

	.jj-product-card__content {
		padding: 1.1rem;
	}

	.woocommerce div.product .woocommerce-tabs {
		padding: 1.35rem;
	}

	.woocommerce .cart-collaterals .cart_totals {
		margin-inline-start: auto;
		max-width: 31rem;
	}

	.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
	}

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

	.woocommerce-checkout form.checkout > #order_review_heading,
	.woocommerce-checkout form.checkout > #order_review {
		grid-column: 2;
	}

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

	.woocommerce-checkout #customer_details {
		grid-template-columns: 1fr;
	}

	.woocommerce-account .woocommerce {
		grid-template-columns: 15rem minmax(0, 1fr);
	}

	.woocommerce-MyAccount-navigation {
		align-self: start;
		position: sticky;
		top: 6rem;
	}

	.woocommerce-order-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.jj-woocommerce-container,
	.jj-container {
		padding-inline: 2rem;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(var(--jj-products-desktop, 4), minmax(0, 1fr));
	}

	.jj-single-product__top {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.jj-single-product__summary {
		padding-inline: clamp(0rem, 2vw, 1.5rem);
	}

	.woocommerce div.product .woocommerce-tabs {
		padding: 1.75rem;
	}

	.woocommerce-order-overview {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1440px) {
	.jj-woocommerce-main {
		padding-block: 5.5rem;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		gap: 1.8rem;
	}

	.jj-product-card__content {
		padding: 1.3rem;
	}
}

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

/* Version 1.5 light commerce surfaces. */
.jj-has-woocommerce { --jj-wc-surface: #fff; --jj-wc-surface-alt: #faf8f4; }
.jj-woocommerce-main { background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%); }
.jj-product-card__inner { background: #fff; border-color: color-mix(in srgb, var(--jj-wc-border) 72%, transparent); box-shadow: 0 14px 34px rgba(47, 36, 20, .06); }
.jj-product-card__inner:hover { box-shadow: 0 20px 44px rgba(47, 36, 20, .11); }
.jj-product-card__media { background: #fbfaf7; }
.woocommerce .price, .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

/* 1.5 product experience: light gallery, clear pricing, stable purchase area. */
.jj-has-woocommerce {
	--jj-wc-surface: #ffffff;
	--jj-wc-surface-alt: #f6f7f9;
	--jj-wc-ink: #20242b;
	--jj-wc-muted: #68717d;
	--jj-wc-gold: #8f6c32;
	--jj-wc-gold-light: #d8c28f;
	--jj-wc-dark: #20242b;
	--jj-wc-border: #e1e4e8;
	--jj-wc-shadow: 0 18px 48px rgba(32, 36, 43, .08);
}
.jj-woocommerce-main {
	background: #f8f9fa;
}
.woocommerce ul.products li.product .jj-product-card__media img,
.woocommerce-page ul.products li.product .jj-product-card__media img {
	object-fit: contain;
	background: #fbfbfc;
}
.jj-product-card__inner {
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(32, 36, 43, .055);
}
.jj-product-card__inner:hover {
	box-shadow: 0 18px 40px rgba(32, 36, 43, .1);
	transform: translateY(-3px);
}
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wc-block-components-button {
	background: var(--jj-wc-gold);
	box-shadow: 0 8px 18px rgba(143, 108, 50, .14);
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
	background: #705326;
}

.jj-single-product__top {
	align-items: start;
}
.woocommerce div.product div.images {
		background: #fff;
		border-color: #e1e4e8;
		border-radius: 24px;
		box-shadow: 0 18px 48px rgba(32, 36, 43, .08);
		padding: 12px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image {
		background: #fbfbfc;
		border-radius: 18px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
		aspect-ratio: 1 / 1;
		object-fit: contain;
		padding: 14px;
}
.woocommerce div.product div.images .flex-control-thumbs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 8px;
	}
.woocommerce div.product div.images .flex-control-thumbs img {
		background: #f6f7f9;
		border: 1px solid transparent;
		border-radius: 10px;
		opacity: .72;
		padding: 2px;
	}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
		border-color: var(--jj-wc-gold);
		opacity: 1;
}
.jj-single-product__summary {
		background: #fff;
		border: 1px solid #e1e4e8;
		border-radius: 24px;
		box-shadow: 0 18px 48px rgba(32, 36, 43, .06);
		padding: 30px;
}
.woocommerce div.product .product_title {
	color: var(--jj-wc-dark);
	font-size: 2.6rem;
	letter-spacing: 0;
	line-height: 1.35;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
		align-items: baseline;
		background: #f7f5ef;
		border: 1px solid #eadfc9;
		border-radius: 14px;
		color: var(--jj-wc-gold);
		display: flex;
		font-size: 1.6rem;
		gap: 8px;
		margin-block: 1rem 1.4rem;
		padding: 14px 16px;
}
.woocommerce div.product form.cart {
		border-top: 1px solid #e9ebee;
		padding-top: 18px;
}
.woocommerce div.product form.cart .button {
		min-height: 3.4rem;
}
.woocommerce .quantity .qty,
.woocommerce div.product form.cart table.variations select {
		background: #fff;
		border-color: #dfe3e8;
	}
.jj-gold-breakdown {
		background: #fbfbfc;
		border: 1px solid #e1e4e8;
		border-radius: 16px;
		line-height: 1.9;
		margin: 18px 0;
		padding: 16px 18px;
}
.jj-gold-breakdown strong {
		color: var(--jj-wc-gold);
}
.woocommerce div.product .woocommerce-tabs {
		border-color: #e1e4e8;
		box-shadow: 0 14px 38px rgba(32, 36, 43, .055);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
		background: #f1ede4;
		color: var(--jj-wc-gold);
}
.related.products,
.upsells.products {
		margin-top: 3.5rem;
}
.related.products > h2,
.upsells.products > h2 {
		color: var(--jj-wc-dark);
		font-size: 1.7rem;
}

@media (min-width: 1025px) {
	.jj-single-product__summary {
		position: sticky;
		top: 106px;
	}
}
@media (max-width: 1024px) {
	.jj-single-product__summary {
		padding: 24px;
	}
}
@media (max-width: 767px) {
	.jj-single-product__summary {
		border-radius: 18px;
		padding: 20px 16px;
	}
	.woocommerce div.product .product_title {
		font-size: 1.85rem;
	}
	.woocommerce div.product p.price,
	.woocommerce div.product span.price {
		font-size: 1.25rem;
	}
	.woocommerce div.product div.images .flex-control-thumbs {
		display: flex;
		overflow-x: auto;
		padding-bottom: 3px;
	}
	.woocommerce div.product div.images .flex-control-thumbs li {
		flex: 0 0 64px;
	}
}

/* Fixed type scale for commerce content. */
.woocommerce-products-header__title,
.woocommerce .page-title { font-size: 2.75rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; }
.related.products > h2,
.upsells.products > h2,
.jj-recently-viewed > h2 { font-size: 1.8rem; }
@media (max-width: 767px) {
	.woocommerce-products-header__title,
	.woocommerce .page-title { font-size: 2rem; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; }
	.related.products > h2,
	.upsells.products > h2,
	.jj-recently-viewed > h2 { font-size: 1.45rem; }
}

/* Light surfaces continue through cart, checkout, account and order states. */
.woocommerce table.shop_table th {
	background: #f4f5f7;
	color: var(--jj-wc-dark);
}
.woocommerce span.onsale {
	background: #f4f0e8;
	border-color: #d8c29a;
	color: var(--jj-wc-gold);
}
.jj-product-card__view {
	background: rgba(255, 255, 255, .95);
	border-color: #d8c29a;
	color: var(--jj-wc-dark);
}
.woocommerce-checkout #payment {
	background: #f6f7f9;
}
.wc-block-components-button:not(.is-link) {
	background: var(--jj-wc-gold);
}
.woocommerce-order-overview {
	background: #f4f5f7;
	border: 1px solid var(--jj-wc-border);
	color: var(--jj-wc-dark);
}
.woocommerce-order-overview li {
	color: var(--jj-wc-muted);
}
.jj-gold-summary {
	padding: clamp(18px, 3vw, 26px);
	margin-block: 20px;
	border: 1px solid var(--jj-border);
	border-radius: 16px;
	background: var(--jj-light);
	color: var(--jj-text);
}
.jj-gold-summary__rate {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.9;
}
.jj-gold-summary__formula {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	overflow-wrap: anywhere;
}
