/* ==========================================================================
   Odisal Shop — single product page

   Loaded only on product pages when "Style product pages" is on (WooCommerce →
   Settings → Advanced → Basket & checkout style). Everything is scoped to
   body.oshop-product so it cannot leak into the rest of the site. Colours come
   from the same --tc-* settings as the basket and checkout.
   ========================================================================== */

body.oshop-product {
	--tc-accent: #c8ccd2;
	--tc-accent-bright: #dfe2e6;
	--tc-text: #f5f6f7;
	--tc-muted: #9aa0a6;
	--tc-ink: #17191c;
	--tc-panel: transparent;
	--tc-line: rgba(200, 204, 210, 0.28);
	--tc-radius: 8px;
}

body.oshop-product {
	background-color: var(--tc-ink);
}

body.oshop-product .product {
	color: var(--tc-text);
}

/* WooCommerce sizes these two columns itself (48% and floats); the layout below
   does it instead. */
body.oshop-product div.product div.images,
body.oshop-product div.product div.summary,
body.oshop-product div.product .woocommerce-product-gallery {
	float: none;
	width: auto;
	margin: 0;
}

body.oshop-product div.product {
	max-width: 1240px;
	margin-inline: auto;
}

body.oshop-product div.product::before,
body.oshop-product div.product::after {
	content: none;
}

/* Phones and tablets: the theme gives the page no side margin, so the text
   ran into the edge of the screen. */
@media (max-width: 899px) {

	body.oshop-product div.product,
	body.oshop-product .woocommerce-breadcrumb,
	body.oshop-product .woocommerce-notices-wrapper {
		padding-inline: 16px;
	}
}

/* The Sale badge, matching the one on the shop page. WooCommerce's own sat
   half off the picture in olive green. */
body.oshop-product div.product > span.onsale {
	position: absolute;
	top: 12px;
	inset-inline-end: auto;
	inset-inline-start: 12px;
	z-index: 5;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tc-accent);
	color: var(--tc-ink);
	font-size: calc(11px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.1em);
	line-height: 1.4;
	text-transform: var(--oshop-case, uppercase);
}

@media (max-width: 899px) {

	body.oshop-product div.product > span.onsale {
		inset-inline-start: 28px;
	}
}

/* ---------- two columns: pictures left, everything else right ---------- */

@media (min-width: 900px) {

	body.oshop-product .woocommerce div.product,
	body.oshop-product div.product.type-product {
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: start;
		column-gap: 56px;
	}

	body.oshop-product div.product > .woocommerce-product-gallery {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
	}

	/* Not sticky: browsers let a sticky grid item travel past its row, which
	   slid the details over the tabs and related products below. */
	body.oshop-product div.product > .summary {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}

	body.oshop-product div.product > .woocommerce-tabs,
	body.oshop-product div.product > .related,
	body.oshop-product div.product > .up-sells,
	body.oshop-product div.product > .woocommerce-product-gallery + .clear,
	body.oshop-product div.product > .product_meta {
		grid-column: 1 / -1;
	}
}

/* ---------- pictures ---------- */

/* The photo on its own: no frame around it, just its corners. */
body.oshop-product .woocommerce-product-gallery {
	position: relative;
}

body.oshop-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--tc-radius) - 2px);
}

body.oshop-product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

body.oshop-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 76px;
	margin: 0;
	list-style: none;
}

body.oshop-product .woocommerce-product-gallery .flex-control-thumbs img {
	border: 1px solid var(--tc-line);
	border-radius: 6px;
	opacity: 0.75;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}

body.oshop-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.oshop-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--tc-accent);
	opacity: 1;
}

body.oshop-product .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 26px;
	inset-inline-end: 26px;
	z-index: 2;
}

/* ---------- breadcrumb ---------- */

body.oshop-product .woocommerce-breadcrumb {
	margin: 0 auto 22px;
	max-width: 1240px;
	color: var(--tc-muted);
	font-size: calc(12px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.08em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-product .woocommerce-breadcrumb a {
	color: var(--tc-muted);
	text-decoration: none;
}

body.oshop-product .woocommerce-breadcrumb a:hover {
	color: var(--tc-accent-bright);
}

/* ---------- name, tagline, price ---------- */

body.oshop-product .product_title {
	margin: 0 0 6px;
	color: var(--tc-text);
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	letter-spacing: 0.01em;
}

body.oshop-product .oshop-product__meta {
	margin: 0 0 18px;
}

body.oshop-product .oshop-product__tagline {
	margin: 0;
	color: var(--tc-accent-bright);
	font-size: calc(13px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.16em);
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-product .oshop-product__size {
	margin: 4px 0 0;
	color: var(--tc-muted);
	font-size: 14px;
}

body.oshop-product div.product p.price,
body.oshop-product div.product span.price {
	display: block;
	margin: 0 0 18px;
	color: var(--tc-text);
	font-size: 26px;
	font-weight: 600;
}

body.oshop-product div.product p.price del,
body.oshop-product div.product span.price del {
	margin-inline-end: 8px;
	color: var(--tc-muted);
	font-size: 0.7em;
	font-weight: 400;
}

body.oshop-product div.product p.price ins {
	color: var(--tc-accent-bright);
	text-decoration: none;
}

body.oshop-product .woocommerce-product-details__short-description {
	margin: 0 0 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tc-line);
	color: var(--tc-text);
	font-size: 16px;
	line-height: 1.65;
}

body.oshop-product .stock.in-stock {
	color: var(--tc-muted);
	font-size: 14px;
}

body.oshop-product .stock.out-of-stock {
	color: #e0756f;
}

/* ---------- quantity and add to basket ---------- */

body.oshop-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0 0 20px;
}

/* Products with options: the option table and the buy box each take the full width. */
body.oshop-product form.variations_form > table.variations,
body.oshop-product form.variations_form > .single_variation_wrap {
	flex: 1 1 100%;
	width: 100%;
}

/* Products with options wrap the two in a box of their own. */
body.oshop-product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	width: 100%;
}

body.oshop-product form.cart .quantity {
	display: flex;
	flex: none;
}

body.oshop-product form.cart .quantity .qty {
	width: 84px;
	height: 100%;
	min-height: 52px;
	padding: 0 6px 0 14px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field, rgba(0, 0, 0, 0.28)); /* the shop's field colour, else a dark tint */
	color: var(--tc-text);
	font-size: 16px;
	text-align: center;
}

body.oshop-product form.cart button.single_add_to_cart_button {
	flex: 1 1 160px;
	min-height: 52px;
	padding: 0 32px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-radius);
	background: var(--tc-accent);
	color: var(--tc-ink);
	font-size: calc(14px + var(--oshop-bump, 0px));
	font-weight: 600;
	letter-spacing: var(--oshop-track, 0.14em);
	text-transform: var(--oshop-case, uppercase);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.oshop-product form.cart button.single_add_to_cart_button:hover,
body.oshop-product form.cart button.single_add_to_cart_button:focus {
	background: var(--tc-accent-bright);
	color: var(--tc-ink);
}

body.oshop-product form.cart button.single_add_to_cart_button.disabled,
body.oshop-product form.cart button.single_add_to_cart_button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------- delivery, collection, returns ---------- */

body.oshop-product .oshop-product__trust {
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--tc-line);
}

body.oshop-product .oshop-product__trust li {
	position: relative;
	margin: 0;
	padding-block: 11px;
	padding-inline: 26px 0;
	border-bottom: 1px solid var(--tc-line);
	color: var(--tc-muted);
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}

body.oshop-product .oshop-product__trust li::before {
	content: "";
	position: absolute;
	top: 17px;
	inset-inline-start: 2px;
	width: 11px;
	height: 6px;
	border-left: 1.5px solid var(--tc-accent); /* A tick reads the same in every language: not mirrored. */
	border-bottom: 1.5px solid var(--tc-accent);
	transform: rotate(-45deg);
}

/* ---------- tabs: shown as sections, not tabs ---------- */

body.oshop-product div.product .woocommerce-tabs {
	margin-top: 56px;
	padding-top: 8px;
}

body.oshop-product .woocommerce-tabs ul.tabs,
body.oshop-product div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0 0 24px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--tc-line);
	list-style: none;
}

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

body.oshop-product .woocommerce-tabs ul.tabs li,
body.oshop-product div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	list-style: none;
}

/* WooCommerce paints the selected tab white with its own background. */
body.oshop-product div.product .woocommerce-tabs ul.tabs li.active,
body.oshop-product div.product .woocommerce-tabs ul.tabs li:hover {
	border: 0;
	background: none;
	box-shadow: none;
}

body.oshop-product .woocommerce-tabs ul.tabs li a,
body.oshop-product div.product .woocommerce-tabs ul.tabs li a,
body.oshop-product .woocommerce-tabs ul.tabs li a:hover,
body.oshop-product div.product .woocommerce-tabs ul.tabs li a:hover,
body.oshop-product .woocommerce-tabs ul.tabs li a:focus,
body.oshop-product div.product .woocommerce-tabs ul.tabs li a:focus {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--tc-muted);
	font-size: calc(13px + var(--oshop-bump, 0px));
	font-weight: 500;
	letter-spacing: var(--oshop-track, 0.14em);
	text-transform: var(--oshop-case, uppercase);
	text-decoration: none;
}

body.oshop-product .woocommerce-tabs ul.tabs li.active a,
body.oshop-product div.product .woocommerce-tabs ul.tabs li.active a,
body.oshop-product .woocommerce-tabs ul.tabs li a:hover,
body.oshop-product div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--tc-accent-bright);
}

body.oshop-product .woocommerce-tabs .panel,
body.oshop-product div.product .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
	color: var(--tc-text);
	font-size: 16px;
	line-height: 1.7;
}

body.oshop-product .woocommerce-tabs .panel > h2:first-child,
body.oshop-product div.product .woocommerce-tabs .panel > h2:first-child {
	display: none; /* the tab above already says it */
}

body.oshop-product .woocommerce-tabs .panel p,
body.oshop-product div.product .woocommerce-tabs .panel p {
	max-width: 68ch;
}

body.oshop-product table.woocommerce-product-attributes {
	width: 100%;
	max-width: 520px;
	border: 0;
	border-collapse: collapse;
}

body.oshop-product table.woocommerce-product-attributes th,
body.oshop-product table.woocommerce-product-attributes td {
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--tc-line);
	background: none;
	color: var(--tc-text);
	font-size: 14px;
	text-align: start;
}

body.oshop-product table.woocommerce-product-attributes th {
	width: 40%;
	color: var(--tc-muted);
	font-weight: 500;
}

body.oshop-product table.woocommerce-product-attributes td p {
	margin: 0;
}

/* ---------- stars ---------- */

/* WooCommerce colours stars purple by default, and themes often recolour them
   again, so both the empty and filled stars are set here. */
body.oshop-product .star-rating,
body.oshop-product .star-rating::before,
body.oshop-product div.product .woocommerce-product-rating .star-rating,
body.oshop-product ul.products li.product .star-rating {
	color: var(--tc-line);
}

body.oshop-product .star-rating span,
body.oshop-product .star-rating span::before,
body.oshop-product div.product .woocommerce-product-rating .star-rating span::before,
body.oshop-product ul.products li.product .star-rating span::before {
	color: var(--tc-accent-bright);
}

body.oshop-product .woocommerce-product-rating {
	margin-bottom: 14px;
}

body.oshop-product .woocommerce-review-link,
body.oshop-product .woocommerce-product-rating .woocommerce-review-link {
	color: var(--tc-muted);
	font-size: 14px;
}

/* "Your rating" in the review form */
body.oshop-product #reviews p.stars a,
body.oshop-product #reviews p.stars a::before {
	color: var(--tc-accent-bright);
}

body.oshop-product #reviews .comment_container .star-rating {
	color: var(--tc-line);
}

/* ---------- reviews ---------- */

body.oshop-product #reviews .woocommerce-Reviews-title,
body.oshop-product #reviews #reply-title {
	color: var(--tc-text);
	font-size: 20px;
}

body.oshop-product #reviews .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--tc-muted);
	font-size: 14px;
}

body.oshop-product #reviews .comment-form input[type="text"],
body.oshop-product #reviews .comment-form input[type="email"],
body.oshop-product #reviews .comment-form textarea {
	width: 100%;
	max-width: 520px;
	padding: 12px 14px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field, rgba(0, 0, 0, 0.28)); /* the shop's field colour, else a dark tint */
	color: var(--tc-text);
}

body.oshop-product #reviews .comment-form .submit {
	padding: 14px 30px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-accent-bright);
	font-size: calc(13px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.14em);
	text-transform: var(--oshop-case, uppercase);
	cursor: pointer;
}

body.oshop-product #reviews .comment-form .submit:hover {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* ---------- related products ---------- */

body.oshop-product .related > h2,
body.oshop-product .up-sells > h2 {
	margin: 0 0 24px;
	color: var(--tc-text);
	font-size: 22px;
	letter-spacing: 0.01em;
}

body.oshop-product .related,
body.oshop-product .up-sells {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--tc-line);
}

body.oshop-product .related ul.products,
body.oshop-product .up-sells ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.oshop-product ul.products li.product,
body.oshop-shop ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 20px 18px 22px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background:
		radial-gradient(120% 95% at 50% 0%, rgba(200, 204, 210, 0.14) 0%, rgba(200, 204, 210, 0.04) 55%, transparent 100%),
		rgba(0, 0, 0, 0.18);
	text-align: center;
	float: none !important;
}

body.oshop-product ul.products li.product a img,
body.oshop-shop ul.products li.product a img {
	margin: 0 auto 14px;
	border-radius: 6px;
}

body.oshop-product ul.products li.product .woocommerce-loop-product__title,
body.oshop-shop ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 6px;
	color: var(--tc-text);
	font-size: 16px;
}

body.oshop-product ul.products li.product .price,
body.oshop-shop ul.products li.product .price {
	display: block;
	margin-bottom: 14px;
	color: var(--tc-accent-bright);
	font-size: 16px;
}

body.oshop-product ul.products li.product .button,
body.oshop-shop ul.products li.product .button {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid var(--tc-accent);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-accent-bright);
	font-size: calc(12px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.12em);
	text-transform: var(--oshop-case, uppercase);
	text-decoration: none;
}

body.oshop-product ul.products li.product .button:hover,
body.oshop-shop ul.products li.product .button:hover {
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* ---------- wishlist, quick view and compare, if another plugin adds them ---------- */

body.oshop-product .shopengine-wishlist,
body.oshop-product .shopengine-quickview-trigger,
body.oshop-product .shopengine-comparison,
body.oshop-product .shopengine-wishlist i,
body.oshop-product .shopengine-quickview-trigger i,
body.oshop-product .shopengine-comparison i {
	color: var(--tc-muted);
	transition: color 0.2s ease;
}

body.oshop-product .shopengine-wishlist:hover,
body.oshop-product .shopengine-quickview-trigger:hover,
body.oshop-product .shopengine-comparison:hover,
body.oshop-product .shopengine-wishlist:hover i,
body.oshop-product .shopengine-quickview-trigger:hover i,
body.oshop-product .shopengine-comparison:hover i,
body.oshop-product .shopengine-wishlist.active,
body.oshop-product .shopengine-wishlist.active i {
	color: var(--tc-accent-bright);
}

body.oshop-product .summary .shopengine-wishlist,
body.oshop-product .summary .shopengine-comparison {
	border-color: var(--tc-line);
}

/* ---------- notices ---------- */

body.oshop-product .woocommerce-message,
body.oshop-product .woocommerce-info {
	border-top-color: var(--tc-accent);
	background: rgba(0, 0, 0, 0.22);
	color: var(--tc-text);
}

body.oshop-product .woocommerce-message a,
body.oshop-product .woocommerce-info a {
	color: var(--tc-accent-bright);
}

/* ---------- sticky bar on phones ---------- */

.oshop-product-bar {
	position: fixed;
	inset-inline-end: 0;
	bottom: 0;
	inset-inline-start: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--tc-line, rgba(200, 204, 210, 0.28));
	background: var(--tc-ink, #17191c);
	color: var(--tc-text, #f5f6f7);
	transform: translateY(110%);
	transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.oshop-product-bar.is-visible {
	transform: none;
}

.oshop-product-bar__name {
	flex: 1 1 auto;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.oshop-product-bar__price {
	flex: none;
	color: var(--tc-accent-bright, #dfe2e6);
	font-size: 15px;
	font-weight: 600;
}

.oshop-product-bar__price del {
	display: none;
}

.oshop-product-bar__btn {
	flex: none;
	padding: 13px 20px;
	border: 1px solid var(--tc-accent, #c8ccd2);
	border-radius: var(--tc-radius, 8px);
	background: var(--tc-accent, #c8ccd2);
	color: var(--tc-ink, #17191c);
	font-size: calc(12px + var(--oshop-bump, 0px));
	font-weight: 600;
	letter-spacing: var(--oshop-track, 0.12em);
	text-transform: var(--oshop-case, uppercase);
	cursor: pointer;
}

@media (min-width: 900px) {

	.oshop-product-bar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.oshop-product-bar {
		transition-duration: 1ms;
	}
}

/* ==========================================================================
   Shop page, product categories and tags
   ========================================================================== */

body.oshop-shop {
	--tc-accent: #c8ccd2;
	--tc-accent-bright: #dfe2e6;
	--tc-text: #f5f6f7;
	--tc-muted: #9aa0a6;
	--tc-ink: #17191c;
	--tc-line: rgba(200, 204, 210, 0.28);
	--tc-radius: 8px;
	background-color: var(--tc-ink);
	color: var(--tc-text);
}

body.oshop-shop .woocommerce-products-header,
body.oshop-shop .site-main > .woocommerce-breadcrumb,
body.oshop-shop ul.products,
body.oshop-shop .woocommerce-result-count,
body.oshop-shop .woocommerce-ordering,
body.oshop-shop nav.woocommerce-pagination {
	max-width: 1240px;
	margin-inline: auto;
}

body.oshop-shop .woocommerce-products-header__title,
body.oshop-shop .page-title {
	margin: 0 0 8px;
	color: var(--tc-text);
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: 0.01em;
}

body.oshop-shop .term-description,
body.oshop-shop .woocommerce-products-header .term-description p {
	max-width: 68ch;
	color: var(--tc-muted);
	font-size: 16px;
	line-height: 1.65;
}

/* The "showing 1 to 4" line and the sort box, side by side above the products. */
body.oshop-shop .woocommerce-result-count {
	float: none;
	margin: 26px 0 0;
	color: var(--tc-muted);
	font-size: 14px;
}

body.oshop-shop .woocommerce-ordering {
	float: none;
	margin: 0 0 26px;
	text-align: end;
}

@media (min-width: 700px) {

	body.oshop-shop .woocommerce-result-count {
		display: inline-block;
		width: 49%;
	}

	body.oshop-shop .woocommerce-ordering {
		display: inline-block;
		width: 50%;
		margin-top: 26px;
		vertical-align: middle;
	}
}

/* Block themes put these two in their own row already: keep them natural there. */
body.oshop-shop .wp-block-woocommerce-product-results-count .woocommerce-result-count,
body.oshop-shop .wp-block-woocommerce-catalog-sorting .woocommerce-ordering {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
}

body.oshop-shop .woocommerce-ordering select {
	padding: 10px 14px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: var(--tc-field, rgba(0, 0, 0, 0.28)); /* the shop's field colour, else a dark tint */
	color: var(--tc-text);
	font-size: 14px;
}

body.oshop-shop ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.oshop-shop ul.products::before,
body.oshop-shop ul.products::after,
body.oshop-product ul.products::before,
body.oshop-product ul.products::after,
body.oshop-shop ul.products li.product::before,
body.oshop-shop ul.products li.product::after {
	content: none;
}

body.oshop-shop ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tc-accent);
	color: var(--tc-ink);
	font-size: calc(11px + var(--oshop-bump, 0px));
	letter-spacing: var(--oshop-track, 0.1em);
	line-height: 1.4;
	text-transform: var(--oshop-case, uppercase);
}

body.oshop-shop ul.products li.product {
	position: relative;
}

body.oshop-shop .woocommerce-info,
body.oshop-shop .woocommerce-message {
	border-top-color: var(--tc-accent);
	background: rgba(0, 0, 0, 0.22);
	color: var(--tc-text);
}

body.oshop-shop nav.woocommerce-pagination {
	margin-top: 40px;
	text-align: center;
}

body.oshop-shop nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	border: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.oshop-shop nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	overflow: visible;
}

body.oshop-shop nav.woocommerce-pagination ul li a,
body.oshop-shop nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-muted);
	font-size: 14px;
	text-decoration: none;
}

body.oshop-shop nav.woocommerce-pagination ul li a:hover,
body.oshop-shop nav.woocommerce-pagination ul li span.current {
	border-color: var(--tc-accent);
	background: var(--tc-accent);
	color: var(--tc-ink);
}

/* Stars and the extra icons other plugins add, in the shop grid too. */
body.oshop-shop .star-rating,
body.oshop-shop .star-rating::before {
	color: var(--tc-line);
}

body.oshop-shop .star-rating span,
body.oshop-shop .star-rating span::before {
	color: var(--tc-accent-bright);
}

body.oshop-shop .shopengine-wishlist,
body.oshop-shop .shopengine-quickview-trigger,
body.oshop-shop .shopengine-comparison,
body.oshop-shop .shopengine-wishlist i,
body.oshop-shop .shopengine-quickview-trigger i,
body.oshop-shop .shopengine-comparison i {
	color: var(--tc-muted);
}

body.oshop-shop .shopengine-wishlist:hover,
body.oshop-shop .shopengine-quickview-trigger:hover,
body.oshop-shop .shopengine-comparison:hover,
body.oshop-shop .shopengine-wishlist:hover i,
body.oshop-shop .shopengine-quickview-trigger:hover i,
body.oshop-shop .shopengine-comparison:hover i {
	color: var(--tc-accent-bright);
}

/* The shop's Google rating next to the price (Odisal Google Reviews). */
.oshop-rating {
	margin: -4px 0 14px;
}

.oshop-rating .vr--badge {
	min-height: 36px;
	padding: 4px 12px;
	font-size: 14px;
}

/* Small phones: the quantity and the button stay on one line. */
@media (max-width: 480px) {

	body.oshop-product form.cart button.single_add_to_cart_button {
		padding-inline: 14px;
		letter-spacing: 0.06em;
	}

	body.oshop-product form.cart .quantity .qty {
		width: 64px;
	}
}

/* ---------- Compact product page (Compact shop setting) ----------
   The buy box first: name, price and rating, options, button. Delivery and
   returns follow it, as on most large shops. */

body.oshop-compact.oshop-product .oshop-rating {
	margin: 6px 0 14px;
}

/* Option names above their choices: "Colour", then the swatches. */
body.oshop-compact form.variations_form table.variations,
body.oshop-compact form.variations_form table.variations tbody {
	display: block;
}

body.oshop-compact form.variations_form table.variations tr {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

body.oshop-compact form.variations_form table.variations th.label,
body.oshop-compact form.variations_form table.variations td.label,
body.oshop-compact .woocommerce div.product form.cart table.variations th.label {
	display: block;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	text-align: start;
}

body.oshop-compact form.variations_form table.variations td.value {
	display: block;
	padding: 0;
}

/* The heart sits beside "Add to basket". */
body.oshop-product form.cart .oshop-save--buy {
	flex: none;
	width: 52px;
	height: auto;
	min-height: 52px;
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	background: transparent;
	color: var(--tc-text);
	backdrop-filter: none;
}

body.oshop-product form.cart .oshop-save--buy[aria-pressed="true"] {
	color: #c62828;
}

/* Delivery and returns: a short list under the button, no lines between. */
body.oshop-compact .oshop-eta {
	margin: 18px 0 8px;
	font-size: 14px;
}

body.oshop-compact.oshop-product .oshop-product__trust {
	margin: 0 0 8px;
	border-top: 0;
}

body.oshop-compact.oshop-product .oshop-product__trust li {
	padding-block: 4px;
	padding-inline: 26px 0;
	border-bottom: 0;
	font-size: 13.5px;
}

body.oshop-compact.oshop-product .oshop-product__trust li::before {
	top: 10px;
}

body.oshop-compact.oshop-product div.product .woocommerce-tabs,
body.oshop-compact.oshop-product .woocommerce-tabs {
	margin-top: 36px;
}

/* Wide screens: the photo stays in view while the details scroll. */
@media (min-width: 900px) {

	body.oshop-compact.oshop-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery),
	body.oshop-compact.oshop-product div.product > .woocommerce-product-gallery {
		position: sticky;
		top: 24px;
		align-self: flex-start;
	}
}

/* Tighter option rows: label, then choices, then the next option. */
body.oshop-compact.oshop-product form.variations_form table.variations th.label,
body.oshop-compact.oshop-product .woocommerce div.product form.cart table.variations th.label {
	padding: 0;
}

body.oshop-compact.oshop-product form.variations_form table.variations tr {
	gap: 6px;
	margin-bottom: 12px;
}

body.oshop-compact.oshop-product .oshop-swatches__chosen {
	margin-top: 4px;
}

/* The rating as a plain line under the price, not a pill. */
body.oshop-compact.oshop-product .oshop-rating .vr--badge {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

/* Block themes already give the page its side margins: don't add ours too. */
@media (max-width: 899px) {

	body.oshop-compact.oshop-product:has(.wp-site-blocks) div.product,
	body.oshop-compact.oshop-product:has(.wp-site-blocks) .woocommerce-breadcrumb {
		padding-inline: 0;
	}
}

/* Phones: quantity, button and heart on one line. */
@media (max-width: 480px) {

	body.oshop-compact.oshop-product form.cart,
	body.oshop-compact.oshop-product form.cart .woocommerce-variation-add-to-cart {
		gap: 8px;
	}

	body.oshop-compact.oshop-product form.cart .quantity .qty {
		width: 56px;
	}

	body.oshop-compact.oshop-product form.cart button.single_add_to_cart_button {
		flex-basis: 120px;
	}

	body.oshop-product form.cart .oshop-save--buy {
		width: 48px;
	}
}

/* ---------- Compact product page: less dead space ---------- */

/* Use the theme's wide width, and give the photo the larger share. */
body.oshop-compact.oshop-product div.product {
	max-width: 1400px;
}

@media (min-width: 900px) {

	body.oshop-compact.oshop-product .wp-block-columns:has(> .wp-block-column > .wp-block-woocommerce-product-image-gallery) {
		gap: 56px;
	}

	/* The theme sets this column's width inline, hence !important. */
	body.oshop-compact.oshop-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery) {
		flex: 0 0 56% !important;
		max-width: 56%;
	}

	body.oshop-compact.oshop-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery) + .wp-block-column {
		flex: 1 1 0;
	}

	/* Classic themes: the same split. */
	body.oshop-compact.oshop-product div.product:not(:has(.wp-block-columns)) {
		grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
		column-gap: 56px;
	}
}

/* Tighter spacing down the details column. */
body.oshop-compact.oshop-product .wp-block-woocommerce-product-price {
	margin-top: 10px;
}

body.oshop-compact.oshop-product .oshop-product__meta {
	margin-bottom: 4px;
}

body.oshop-compact.oshop-product .oshop-rating {
	margin: 4px 0 6px;
}

body.oshop-compact.oshop-product .wp-block-post-excerpt,
body.oshop-compact.oshop-product .woocommerce-product-details__short-description {
	margin-top: 10px;
}

body.oshop-compact.oshop-product .wp-block-add-to-cart-form {
	margin-top: 22px;
}

body.oshop-compact.oshop-product form.cart {
	margin-bottom: 0;
}

body.oshop-compact .oshop-eta {
	margin-top: 16px;
}

/* "Size guide" sits on the Size label's line (moved there by the script). */
body.oshop-compact table.variations th.label.has-guide,
body.oshop-compact.oshop-product form.variations_form table.variations th.label.has-guide {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

body.oshop-compact table.variations th.label .oshop-sizeguide-link {
	margin: 0;
	font-weight: 400;
}

body.oshop-compact table.variations th.label .oshop-sizeguide-link button {
	min-height: 0;
	font-size: 13px;
}

/* Reviews: the form folds away behind "Write a review" (the script adds the button). */
body.oshop-compact.oshop-product .woocommerce-Reviews-title {
	display: none;
}

body.oshop-compact.oshop-product #review_form_wrapper.is-folded {
	display: none;
}

.oshop-write-review {
	min-height: 40px;
	margin: 4px 0 8px;
	padding: 0 18px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

/* WooCommerce's gallery block stops at 512px; let the photo fill its column. */
body.oshop-compact.oshop-product .wp-block-woocommerce-product-image-gallery {
	max-width: none;
}

body.oshop-compact.oshop-product .woocommerce-product-gallery__image img {
	width: 100%;
}

body.oshop-compact.oshop-product form.variations_form table.variations th.label.has-guide {
	width: 100%;
}

/* ---------- Compact: things that can share a line, do ---------- */

/* The rating beside the name (wide screens; phones keep it under the name). */
@media (min-width: 700px) {

	body.oshop-compact.oshop-product :is(.wp-block-column, div.summary):has(> .oshop-rating):has(> :is(.wp-block-post-title, .product_title)) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 20px;
		align-content: start;
	}

	body.oshop-compact.oshop-product :is(.wp-block-column, div.summary):has(> .oshop-rating) > * {
		grid-column: 1 / -1;
	}

	body.oshop-compact.oshop-product :is(.wp-block-column, div.summary):has(> .oshop-rating) > :is(.wp-block-post-title, .product_title) {
		grid-column: 1;
		grid-row: 1;
	}

	body.oshop-compact.oshop-product :is(.wp-block-column, div.summary) > .oshop-rating {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		margin: 0;
	}
}

/* Delivery, collection and returns flow side by side, wrapping as needed. */
body.oshop-compact.oshop-product .oshop-product__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
}

/* Categories are in the breadcrumb already. */
body.oshop-compact.oshop-no-meta .wp-block-woocommerce-product-meta {
	display: none;
}

/* One tab only (Reviews): no tab bar, just a heading line. */
body.oshop-compact.oshop-product .woocommerce-tabs ul.tabs:has(> li:only-child) {
	display: none;
}

body.oshop-compact.oshop-product .woocommerce-tabs:has(ul.tabs > li:only-child) .woocommerce-Reviews-title {
	display: block;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

/* "Reviews · There are no reviews yet. · Write a review" on one line. */
body.oshop-compact.oshop-product #reviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding-top: 18px;
	border-top: 1px solid var(--tc-line);
}

body.oshop-compact.oshop-product #reviews #comments {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
}

body.oshop-compact.oshop-product #reviews .woocommerce-noreviews {
	margin: 0;
	opacity: 0.7;
}

body.oshop-compact.oshop-product #reviews .commentlist {
	flex-basis: 100%;
}

body.oshop-compact.oshop-product #reviews #review_form_wrapper,
body.oshop-compact.oshop-product #reviews #comments:has(.commentlist) {
	flex-basis: 100%;
}

body.oshop-compact.oshop-product .oshop-write-review {
	margin: 0;
}

/* Each option on one line: its name, then the choices (and "Size guide" at the end). */
body.oshop-compact.oshop-product form.variations_form table.variations tr {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

body.oshop-compact.oshop-product form.variations_form table.variations th.label,
body.oshop-compact.oshop-product .woocommerce div.product form.cart table.variations th.label {
	flex: 0 0 64px;
	width: 64px;
}

body.oshop-compact.oshop-product form.variations_form table.variations td.value {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	min-width: 0;
}

body.oshop-compact.oshop-product form.variations_form .oshop-swatch-field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

body.oshop-compact.oshop-product .oshop-swatches__chosen {
	margin: 0;
	font-size: 14px;
	opacity: 0.7;
}

body.oshop-compact.oshop-product table.variations tr.has-guide .oshop-sizeguide-link {
	margin: 0 0 0 auto;
}

body.oshop-compact.oshop-product table.variations .oshop-sizeguide-link button {
	min-height: 0;
	font-size: 13px;
}

body.oshop-compact.oshop-product form.variations_form td.value > .oshop-swatch-field {
	flex: 0 1 auto;
	width: auto;
}

body.oshop-compact.oshop-product table.variations tr.has-guide .oshop-sizeguide-link {
	flex: 0 0 auto;
	width: auto;
}

/* After choosing: the price and "8 in stock" share a line; "Clear" stays small. */
body.oshop-compact.oshop-product .woocommerce-variation.single_variation:not(:empty) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin-bottom: 12px;
}

body.oshop-compact.oshop-product .woocommerce-variation-price .price {
	margin: 0;
	font-size: 20px;
}

body.oshop-compact.oshop-product .woocommerce-variation-availability p {
	margin: 0;
	font-size: 14px;
	opacity: 0.7;
}

body.oshop-compact.oshop-product .woocommerce-variation-description {
	flex-basis: 100%;
}

body.oshop-compact.oshop-product .reset_variations {
	font-size: 13px;
	opacity: 0.7;
}

/* Phones: when choices wrap, the option name stays by the first row. */
@media (max-width: 600px) {

	body.oshop-compact.oshop-product form.variations_form table.variations tr {
		align-items: flex-start;
	}

	body.oshop-compact.oshop-product form.variations_form table.variations th.label {
		padding-top: 12px;
	}
}

body.oshop-compact.oshop-product .woocommerce div.product form.cart .reset_variations,
body.oshop-compact.oshop-product form.variations_form .reset_variations {
	font-size: 13px;
}

/* ---------- Compact shop in classic themes: the same cards as block themes ---------- */
body.oshop-compact.oshop-shop ul.products,
body.oshop-compact.oshop-product .related ul.products,
body.oshop-compact.oshop-product .up-sells ul.products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 12px;
	row-gap: 28px;
}

@media (min-width: 700px) {

	body.oshop-compact.oshop-shop ul.products,
	body.oshop-compact.oshop-product .related ul.products,
	body.oshop-compact.oshop-product .up-sells ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 40px;
	}
}

@media (min-width: 1100px) {

	body.oshop-compact.oshop-shop ul.products,
	body.oshop-compact.oshop-product .related ul.products,
	body.oshop-compact.oshop-product .up-sells ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.oshop-compact.oshop-product ul.products li.product,
body.oshop-compact.oshop-shop ul.products li.product {
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
}

body.oshop-compact.oshop-product ul.products li.product a img,
body.oshop-compact.oshop-shop ul.products li.product a img {
	margin: 0 0 12px;
	border-radius: var(--tc-radius);
}

body.oshop-compact.oshop-product ul.products li.product .woocommerce-loop-product__title,
body.oshop-compact.oshop-shop ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 2px;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
}

body.oshop-compact.oshop-product ul.products li.product .price,
body.oshop-compact.oshop-shop ul.products li.product .price {
	margin-bottom: 4px;
	color: var(--tc-text);
	font-size: 14px;
	opacity: 0.75;
}

body.oshop-compact.oshop-product ul.products li.product .price ins,
body.oshop-compact.oshop-shop ul.products li.product .price ins {
	text-decoration: none;
}

body.oshop-compact ul.products li.product .oshop-card-colours {
	text-align: start;
}

body.oshop-compact.oshop-product ul.products li.product .button,
body.oshop-compact.oshop-shop ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin-top: 8px;
	line-height: 1.2;
	padding: 0 16px;
	border-color: var(--tc-line);
	border-radius: 999px;
	color: var(--tc-text);
}
