/*
 * Public WooCommerce presentation.
 * This layer intentionally follows the live Splesh reference anatomy while
 * retaining WooCommerce's native gallery, tabs, cart and pagination markup.
 */

:root {
	--splesh-ink: #003644;
	--splesh-teal-ref: #006a67;
	--splesh-mint-ref: #11c4a3;
	--splesh-muted: #5a7078;
}

.splesh-shop-shell {
	max-width: 1320px;
	padding: 48px 40px;
}

/* Product archive and taxonomy pages */
.post-type-archive-product .splesh-shop-shell,
.tax-product_cat .splesh-shop-shell {
	padding-top: 48px;
}

.post-type-archive-product .splesh-shop-shell .page-title,
.tax-product_cat .splesh-shop-shell .page-title,
.search-results .splesh-shop-shell .page-title {
	font-size: 72px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: normal;
}

.post-type-archive-product .splesh-shop-shell .woocommerce-breadcrumb,
.tax-product_cat .splesh-shop-shell .woocommerce-breadcrumb,
.search-results .splesh-shop-shell .woocommerce-breadcrumb {
	margin-bottom: 1em;
	font-size: .92em;
	line-height: 1.42857;
}

.splesh-shop-shell .woocommerce-breadcrumb {
	margin: 0 0 20px;
	color: #666;
	font-size: 14px;
	line-height: 1.45;
}

.splesh-shop-shell .woocommerce-breadcrumb a {
	color: var(--splesh-ink);
	text-decoration: none;
}

.splesh-shop-shell .woocommerce-products-header {
	margin: 0 0 26px;
}

.splesh-shop-shell .woocommerce-products-header__title.page-title,
.splesh-shop-shell .page-title {
	margin: 0;
	color: var(--splesh-ink);
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 700;
	line-height: 1.17;
	letter-spacing: -.025em;
}

.splesh-shop-shell .term-description {
	max-width: 720px;
	margin: 12px 0 0;
	color: var(--splesh-muted);
	font-size: 15px;
	line-height: 1.65;
}

.tax-product_cat .splesh-shop-shell .term-description {
	max-width: none;
	margin: 0;
	color: inherit;
	font-size: 1em;
	line-height: 1.6;
}

.splesh-shop-shell .woocommerce-result-count,
.splesh-shop-shell .woocommerce-ordering {
	margin: 0 0 1em;
	color: inherit;
	font-size: 1em;
}

.splesh-shop-shell .woocommerce-result-count { float: left; }
.splesh-shop-shell .woocommerce-ordering { float: right; }

.splesh-shop-shell .woocommerce-ordering select {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: inherit;
	font: inherit;
}

.splesh-shop-shell ul.products,
.single-product .related.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 22.05%);
	align-items: start;
	justify-content: start;
	gap: 0;
	column-gap: 3.799145%;
	clear: both;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.splesh-shop-shell ul.products li.product,
.single-product .related.products ul.products li.product {
	display: block;
	width: auto !important;
	min-width: 0;
	margin: 0 0 55.0528px !important;
	color: var(--splesh-ink);
}

.splesh-shop-shell ul.products li.product a.woocommerce-LoopProduct-link,
.single-product .related.products ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.splesh-shop-shell ul.products li.product img,
.single-product .related.products ul.products li.product img {
	display: block;
	width: 100% !important;
	aspect-ratio: 1;
	margin: 0 0 1em !important;
	border-radius: 0;
	object-fit: contain;
	background: #fff;
}

.splesh-shop-shell ul.products li.product .woocommerce-loop-product__title,
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
	min-height: 0;
	margin: 0 !important;
	padding: .5em 0 !important;
	color: var(--splesh-ink);
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
}

.splesh-shop-shell ul.products li.product .price,
.single-product .related.products ul.products li.product .price {
	display: block;
	margin: 0 0 .5em !important;
	color: #b3af54 !important;
	font-family: inherit;
	font-size: .857em;
	font-weight: 400;
	line-height: 1.6;
}

.splesh-shop-shell ul.products li.product .button,
.single-product .related.products ul.products li.product .button {
	display: inline-block;
	min-height: 0;
	margin-top: 1em !important;
	padding: .618em 1em !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #efedf1 !important;
	color: #59575b !important;
	font-family: inherit;
	font-size: 1em;
	font-weight: 700;
	line-height: 1;
	text-align: left;
	text-decoration: none;
}

.splesh-shop-shell .woocommerce-pagination {
	margin: 0;
	text-align: center;
}

.splesh-shop-shell .woocommerce-pagination ul.page-numbers {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 1px;
	padding: 0;
	border-width: 1px 0;
	border-style: solid;
	border-color: #d3ced2;
}

.splesh-shop-shell .woocommerce-pagination ul.page-numbers li {
	float: left;
	border: 0;
	border-right: 1px solid #d3ced2;
}

.splesh-shop-shell .woocommerce-pagination a.page-numbers,
.splesh-shop-shell .woocommerce-pagination span.page-numbers {
	display: block;
	width: auto;
	height: auto;
	padding: .5em;
	border-radius: 0;
	line-height: 1;
	color: var(--splesh-ink);
	text-decoration: none;
}

.splesh-shop-shell .woocommerce-pagination .page-numbers.current,
.splesh-shop-shell .woocommerce-pagination a.page-numbers:hover {
	background: #e9e6ed;
	color: #816f98;
}

/* Product detail */
.single-product .splesh-shop-shell {
	max-width: 1320px;
	padding-top: 48px;
}

.single-product .splesh-shop-shell div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.087fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: start;
	gap: clamp(36px, 5vw, 64px);
	margin: 0;
	padding: 0;
}

.single-product .splesh-shop-shell div.product div.images.woocommerce-product-gallery,
.single-product .splesh-shop-shell .woocommerce-product-gallery {
	position: relative;
	top: 96px;
	display: flex;
	grid-column: 1;
	grid-row: 1;
	flex-direction: column;
	gap: 14px;
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	width: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 54, 68, .1);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(0, 54, 68, .08);
}

/* FlexSlider writes a stale wrapper width after responsive CSS has loaded.
 * Keeping its slides on one row retains its native transforms/zoom while
 * preventing the gallery from clipping the first product image. */
@media (min-width: 768px) {
	.single-product .woocommerce-product-gallery {
		overflow: hidden;
	}

	.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
		display: flex !important;
		flex-wrap: nowrap !important;
		width: max-content !important;
		min-width: 100% !important;
		height: auto !important;
	}
}

.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a {
	display: block;
	background: #fff;
}

.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs,
.single-product .woocommerce-product-gallery ol.flex-control-nav {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	margin: 0 !important;
	padding: 2px 2px 8px !important;
	list-style: none !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 54, 68, .35) transparent;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li,
.single-product .woocommerce-product-gallery ol.flex-control-nav li {
	flex: 0 0 76px;
	width: 76px !important;
	height: 76px;
	margin: 0 !important;
	overflow: hidden;
	border: 2px solid rgba(0, 54, 68, .1);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover,
.single-product .woocommerce-product-gallery ol.flex-control-nav li:hover {
	border-color: rgba(0, 54, 68, .35);
	transform: translateY(-1px);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img,
.single-product .woocommerce-product-gallery ol.flex-control-nav img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	opacity: .68;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery ol.flex-control-nav img.flex-active {
	opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active),
.single-product .woocommerce-product-gallery ol.flex-control-nav li:has(img.flex-active) {
	border-color: var(--splesh-ink);
	box-shadow: 0 0 0 3px rgba(255, 194, 0, .35);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 8px 22px rgba(0, 54, 68, .14);
}

.single-product .splesh-shop-shell div.product div.summary {
	grid-column: 2;
	grid-row: 1;
	width: 48% !important;
	max-width: none;
	margin: 0 0 2em !important;
	float: none !important;
}

.single-product .summary .product_title,
.single-product .summary .product_title.entry-title {
	margin: 0 0 6px !important;
	color: var(--splesh-ink);
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 20.8px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	letter-spacing: normal;
}

.single-product .summary .price {
	display: block;
	margin: 8px 0 14px !important;
	color: var(--splesh-teal-ref) !important;
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 21.6px !important;
	font-weight: 700;
	line-height: 1.6 !important;
}

.single-product .summary .woocommerce-product-details__short-description {
	margin: 0 0 6px !important;
	color: var(--splesh-muted) !important;
	font-size: 14.4px !important;
	line-height: 1.5 !important;
}

.single-product .summary .woocommerce-product-details__short-description p {
	margin: 0;
}

.single-product .summary form.cart {
	display: flex !important;
	height: 104px;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px !important;
}

.single-product .summary .quantity {
	margin: 0 !important;
	padding-left: 0;
}

.single-product .summary .quantity input.qty {
	width: 68px;
	height: 46px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: var(--splesh-ink);
	font-size: 16px;
	text-align: center;
}

.single-product .summary .single_add_to_cart_button:not(.splesh-buy-now) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid #004d4a !important;
	border-radius: 999px !important;
	background: var(--splesh-teal-ref) !important;
	color: #fff !important;
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 13px !important;
	min-width: 108.828125px;
}

.single-product .summary .splesh-buy-now {
	flex: 0 0 100%;
	width: 100%;
	height: 42px;
	margin: 0 !important;
	padding: 0 28px !important;
	border: 2px solid var(--splesh-ink) !important;
	border-radius: 999px !important;
	background: #ffc200 !important;
	color: var(--splesh-ink) !important;
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 14px !important;
	font-weight: 700;
}

.single-product .summary .product_meta {
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(0, 54, 68, .08);
	color: #6b7280;
	font-size: 13.12px;
	line-height: 1.7;
}

.single-product .summary .product_meta a {
	color: var(--splesh-teal-ref);
	text-decoration: none;
}

.single-product .splesh-shop-shell div.product .woocommerce-tabs {
	grid-column: 1;
	grid-row: 2;
	margin: 32px 0 0;
	overflow: hidden;
	border: 1px solid rgba(0, 54, 68, .06);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 16px rgba(0, 54, 68, .04);
}

.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0;
	overflow: hidden;
	margin: 0 0 1.618em !important;
	padding: 0 0 0 1em !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(0, 54, 68, .06) !important;
	background: #f8faf9;
	list-style: none;
}

.single-product .woocommerce-tabs ul.tabs::before {
	display: block !important;
}

.single-product .woocommerce-tabs ul.tabs li {
	flex: 0 0 auto;
	margin: 0 -5px !important;
	padding: 0 1em !important;
	border: 1px solid #cfc8d8 !important;
	border-radius: 4px 4px 0 0;
	background: #e9e6ed !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: .5em 0;
	border-radius: 10px;
	background: var(--splesh-teal-ref);
	color: #515151;
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 14.08px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 106, 103, .2);
}

.single-product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: #fff !important;
	background: #fff !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	background: var(--splesh-teal-ref);
	color: inherit;
	box-shadow: 0 2px 8px rgba(0, 106, 103, .2);
}

.single-product .woocommerce-Tabs-panel {
	margin: 0 0 2em !important;
	padding: 0 !important;
}

.single-product .woocommerce-Tabs-panel h2 {
	display: none;
}

.single-product .woocommerce-Tabs-panel p {
	margin: 0 0 14px;
	color: #374151;
	font-size: 14.88px;
	line-height: 1.7;
}

.single-product .woocommerce-Tabs-panel p:last-child {
	margin-bottom: 0;
}

.single-product .woocommerce-Tabs-panel ul {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 14px 0;
	padding: 0;
	list-style: none;
}

.single-product .woocommerce-Tabs-panel ul li {
	position: relative;
	padding: 14px 16px 14px 44px;
	border: 1px solid rgba(0, 106, 103, .08);
	border-radius: 12px;
	background: #f9fbfa;
	color: #374151;
	font-size: 14.08px;
	line-height: 1.5;
}

.single-product .woocommerce-Tabs-panel ul li::before {
	content: "✓";
	position: absolute;
	top: 14px;
	left: 13px;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border-radius: 50%;
	background: var(--splesh-mint-ref);
	color: var(--splesh-ink);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.single-product .woocommerce-Tabs-panel b,
.single-product .woocommerce-Tabs-panel strong {
	color: var(--splesh-ink);
	font-weight: 700;
}

.single-product .woocommerce-Tabs-panel a {
	color: var(--splesh-teal-ref);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .splesh-shop-shell div.product .related.products {
	grid-column: 2;
	grid-row: 2;
	margin: 36px 0 0;
}

.single-product .related.products > h2 {
	margin: 0 0 16px;
	color: var(--splesh-ink);
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.018em;
}

.single-product .related.products ul.products {
	gap: 0;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
	font-size: 1em;
}

.single-product .related.products ul.products li.product .price {
	margin: 8px 0 14px !important;
	color: var(--splesh-teal-ref) !important;
	font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
	font-size: 21.6px;
	font-weight: 700;
	line-height: 1.6;
}

.single-product .related.products ul.products li.product .button {
	min-height: 0;
	padding: .618em 1em !important;
	border-radius: 3px !important;
	background: #e9e6ed !important;
	color: #515151 !important;
}

@media (max-width: 767px) {
	/* The reference gallery has a taller media rail and a deliberate transition
	 * into the purchase summary; keep that rhythm without inserting a spacer. */
	.single-product .woocommerce-product-gallery {
		padding-bottom: 0;
	}
	.splesh-shop-shell {
		padding: 32px 16px;
	}

	.single-product .splesh-shop-shell {
		padding: 32px 16px;
	}

	.splesh-shop-shell .woocommerce-result-count { float: left; }
	.splesh-shop-shell .woocommerce-ordering { float: right; }

	.splesh-shop-shell ul.products {
		grid-template-columns: repeat(2, 48%);
		justify-content: space-between;
		column-gap: 0;
		gap: 0;
	}

	.post-type-archive-product .splesh-shop-shell,
	.tax-product_cat .splesh-shop-shell,
	.search-results .splesh-shop-shell {
		padding-top: 32px;
	}

	.post-type-archive-product .splesh-shop-shell .page-title,
	.tax-product_cat .splesh-shop-shell .page-title,
	.search-results .splesh-shop-shell .page-title {
		font-size: 38.4px;
		font-weight: 800;
		line-height: 1.15;
		letter-spacing: normal;
	}

	.post-type-archive-product .splesh-shop-shell .woocommerce-breadcrumb,
	.tax-product_cat .splesh-shop-shell .woocommerce-breadcrumb,
	.search-results .splesh-shop-shell .woocommerce-breadcrumb {
		margin-bottom: 1em;
		font-size: .92em;
		line-height: 1.42857;
	}

	.splesh-shop-shell ul.products li.product .woocommerce-loop-product__title {
		font-size: 1em;
	}

	.splesh-shop-shell ul.products li.product .price {
		font-size: .857em;
	}

	.splesh-shop-shell ul.products li.product .button {
		min-height: 0;
		padding: .618em 1em !important;
		font-size: 1em;
	}

	.single-product .splesh-shop-shell div.product {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.single-product .splesh-shop-shell div.product div.images.woocommerce-product-gallery,
	.single-product .splesh-shop-shell .woocommerce-product-gallery {
		position: relative;
		top: auto;
		grid-column: 1;
		grid-row: auto;
		margin: 0 0 20px !important;
	}

	.single-product .woocommerce-product-gallery .flex-viewport {
		height: calc(100vw - 32px) !important;
		border-radius: 16px;
	}

	.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
		display: flex !important;
		width: 100% !important;
		height: 100% !important;
	}

	.single-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image {
		flex: 0 0 100%;
		width: 100% !important;
	}

	.single-product .woocommerce-product-gallery .flex-control-thumbs,
	.single-product .woocommerce-product-gallery ol.flex-control-nav {
		display: flex !important;
		height: 10px !important;
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.single-product .splesh-shop-shell div.product div.summary {
		grid-column: 1;
		grid-row: auto;
		width: 100% !important;
		max-width: none;
		margin: 0 0 2em !important;
	}

	.single-product .summary .product_title,
	.single-product .summary .product_title.entry-title {
		font-size: 20.8px !important;
		line-height: 1.3 !important;
	}

	.single-product .summary .price {
		font-size: 21.6px !important;
		line-height: 1.6 !important;
	}

	.single-product .summary .woocommerce-product-details__short-description {
		font-size: 14.4px !important;
		line-height: 1.5 !important;
	}

	.single-product .summary form.cart {
		height: 104px;
		margin-bottom: 16px !important;
	}

	.single-product .summary .product_meta {
		font-size: 13.12px;
		line-height: 1.7;
	}

	.single-product .summary .splesh-buy-now {
		height: 48px;
		font-size: 16px !important;
	}

	.single-product .splesh-shop-shell div.product .woocommerce-tabs {
		grid-column: 1;
		grid-row: auto;
		margin-top: 32px;
	}

	.single-product .splesh-shop-shell div.product .related.products {
		grid-column: 1;
		grid-row: auto;
		margin-top: 36px;
	}

	.single-product .woocommerce-Tabs-panel {
		padding: 0 !important;
	}

	.single-product .woocommerce-Tabs-panel p {
		font-size: 14.88px;
	}

	.single-product .related.products ul.products {
		grid-template-columns: repeat(2, 48%);
		justify-content: space-between;
		gap: 0;
	}

	.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
		font-size: 1em;
	}

	.single-product .related.products ul.products li.product .price {
		margin: 8px 0 14px !important;
		color: var(--splesh-teal-ref) !important;
		font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
		font-size: 21.6px;
		font-weight: 700;
		line-height: 1.6;
	}

	.single-product .related.products ul.products li.product .button {
		border-radius: 3px !important;
		background: #e9e6ed !important;
		color: #515151 !important;
	}

	.single-product .related.products > h2 {
		line-height: 1.2;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.splesh-shop-shell,
	.single-product .splesh-shop-shell {
		padding-right: 24px;
		padding-left: 24px;
	}

	.splesh-shop-shell ul.products {
		gap: 22px 16px;
	}

	.single-product .splesh-shop-shell div.product {
		gap: 32px;
	}

	.single-product .splesh-shop-shell div.product div.summary {
		max-width: none;
	}

	.single-product .related.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
