/**
 * FREEZEMILL single-product experience
 * Refined navy commerce layout with conversion-focused purchase details.
 */

body.single-product {
	background:
		radial-gradient(circle at 8% 18%, rgba(98, 201, 244, .10), transparent 24rem),
		linear-gradient(180deg, #f7fbfd 0%, #ffffff 42%);
}

body.single-product main {
	width: min(var(--fm-width), calc(100% - 40px));
	margin-inline: auto;
	padding-block: 34px 104px;
}

body.single-product .woocommerce-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 26px;
	color: var(--fm-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .035em;
	text-transform: uppercase;
}

body.single-product .woocommerce-breadcrumb a {
	color: var(--fm-blue);
	text-decoration: none;
}

body.single-product .woocommerce-breadcrumb a:hover {
	color: var(--fm-navy);
}

body.single-product div.product:not(.wp-block-group) {
	display: grid !important;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
	column-gap: clamp(36px, 5vw, 76px);
	align-items: start;
	padding: 0 0 12px !important;
}

body.single-product div.product::before,
body.single-product div.product::after {
	display: none !important;
}

body.single-product div.product > .woocommerce-product-gallery {
	float: none !important;
	grid-column: 1;
	grid-row: 1;
	width: auto !important;
	margin: 0 !important;
	padding: clamp(14px, 2vw, 22px);
	border: 1px solid rgba(9, 36, 64, .10);
	border-radius: 26px;
	background:
		linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,245,248,.94));
	box-shadow: 0 24px 65px rgba(9, 36, 64, .09);
	opacity: 1 !important;
	animation: none !important;
	transform: none !important;
}

body.single-product .woocommerce-product-gallery__wrapper {
	margin: 0;
}

body.single-product .woocommerce-product-gallery__image {
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
}

body.single-product .woocommerce-product-gallery__image a {
	display: block;
}

body.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	border-radius: 18px !important;
	object-fit: contain;
	transition: transform .45s ease;
}

body.single-product .woocommerce-product-gallery__image:hover img {
	transform: scale(1.018);
}

body.single-product .woocommerce-product-gallery__trigger {
	top: 34px !important;
	right: 34px !important;
	display: grid !important;
	width: 44px !important;
	height: 44px !important;
	place-items: center;
	border: 1px solid rgba(9, 36, 64, .12);
	border-radius: 50%;
	background: rgba(255,255,255,.94) !important;
	box-shadow: 0 10px 28px rgba(9,36,64,.12);
	backdrop-filter: blur(10px);
}

body.single-product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0 0 !important;
	padding: 0;
	list-style: none;
}

body.single-product .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.single-product .flex-control-thumbs img {
	aspect-ratio: 1 / 1;
	padding: 5px;
	border: 1px solid transparent;
	border-radius: 12px !important;
	background: #fff !important;
	object-fit: contain;
	opacity: .68;
	transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

body.single-product .flex-control-thumbs img:hover,
body.single-product .flex-control-thumbs img.flex-active {
	border-color: var(--fm-blue);
	opacity: 1;
	transform: translateY(-2px);
}

body.single-product div.product > .summary {
	position: sticky;
	top: 144px;
	display: flex;
	flex-direction: column;
	float: none !important;
	grid-column: 2;
	grid-row: 1;
	width: auto !important;
	margin: 0 !important;
	padding: clamp(26px, 3vw, 38px);
	border: 1px solid rgba(9, 36, 64, .12);
	border-radius: 26px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 24px 70px rgba(6, 25, 44, .12);
	animation: fm-product-in .7s .08s ease both;
}

body.single-product .summary .fm-product-kicker { order: 1; }
body.single-product .summary .product_title { order: 2; }
body.single-product .summary .woocommerce-product-rating { order: 3; }
body.single-product .summary .price { order: 4; }
body.single-product .summary .woocommerce-product-details__short-description { order: 5; }
body.single-product .summary .stock { order: 6; }
body.single-product .summary form.cart { order: 7; }
body.single-product .summary .fm-buy-confidence { order: 8; }
body.single-product .summary .product_meta { order: 9; }

body.single-product .fm-product-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 15px;
	color: var(--fm-blue);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

body.single-product .fm-product-kicker__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fm-sky);
	box-shadow: 0 0 0 5px rgba(98,201,244,.16);
}

body.single-product div.product .product_title {
	margin: 0 0 16px;
	color: var(--fm-navy);
	font-size: clamp(30px, 3vw, 43px);
	line-height: 1.08;
	letter-spacing: -.035em;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--fm-blue);
	font-family: "Public Sans", sans-serif;
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 800;
	line-height: 1.2;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
	color: #8594a0;
	font-size: .63em;
	font-weight: 600;
	opacity: 1;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
	color: var(--fm-blue);
	text-decoration: none;
}

body.single-product .woocommerce-product-details__short-description {
	position: relative;
	max-height: 10.2em;
	margin: 0 0 18px;
	overflow: hidden;
	color: #506678;
	font-size: 14px;
	line-height: 1.7;
}

body.single-product .woocommerce-product-details__short-description::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2.7em;
	background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 80%);
	pointer-events: none;
}

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

body.single-product div.product p.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 17px;
	padding: 8px 12px;
	border-radius: 999px;
	color: #146242;
	background: #eaf7f0;
	font-size: 12px;
	line-height: 1.2;
}

body.single-product div.product p.stock small {
	padding-left: 8px;
	border-left: 1px solid rgba(20,98,66,.2);
	color: #477061;
	font-size: 11px;
}

body.single-product .fm-stock-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2b996d;
	box-shadow: 0 0 0 4px rgba(43,153,109,.13);
}

body.single-product div.product p.out-of-stock {
	color: #933a3a;
	background: #fff0f0;
}

body.single-product div.product form.cart {
	display: grid !important;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: stretch;
	gap: 10px;
	margin: 0 0 20px !important;
	padding: 0 !important;
}

body.single-product div.product form.cart::before,
body.single-product div.product form.cart::after {
	display: none !important;
}

body.single-product div.product form.cart .quantity {
	float: none !important;
	margin: 0 !important;
}

body.single-product .quantity .qty {
	width: 100% !important;
	height: 58px;
	min-height: 58px;
	padding: 10px 8px;
	border: 1px solid #c8d6df;
	border-radius: 14px;
	color: var(--fm-navy);
	background: #f8fbfc;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

body.single-product div.product form.cart .button,
body.single-product div.product .single_add_to_cart_button {
	float: none !important;
	width: 100%;
	min-height: 58px;
	margin: 0 !important;
	padding: 15px 22px !important;
	border: 0 !important;
	border-radius: 14px !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--fm-blue), var(--fm-navy)) !important;
	box-shadow: 0 14px 30px rgba(9,36,64,.23);
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: .015em;
	text-transform: none;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.single-product div.product form.cart .button:hover,
body.single-product div.product .single_add_to_cart_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(9,36,64,.28);
	filter: saturate(1.1);
}

body.single-product .fm-buy-confidence {
	margin: 0 0 18px;
	padding: 18px;
	border: 1px solid rgba(25,106,168,.14);
	border-radius: 18px;
	background: linear-gradient(145deg, #f6fbfe, #eef6fa);
}

body.single-product .fm-buy-confidence > h2 {
	margin: 0 0 14px;
	font-family: "Public Sans", sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

body.single-product .fm-buy-confidence__grid {
	display: grid;
	gap: 12px;
}

body.single-product .fm-buy-confidence__item {
	display: grid;
	grid-template-columns: 36px minmax(0,1fr);
	align-items: center;
	gap: 11px;
}

body.single-product .fm-buy-confidence__icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	color: var(--fm-blue);
	background: #fff;
	box-shadow: 0 7px 18px rgba(9,36,64,.08);
}

body.single-product .fm-buy-confidence__icon svg {
	width: 19px;
	height: 19px;
}

body.single-product .fm-buy-confidence__item > span:last-child {
	display: grid;
	gap: 1px;
}

body.single-product .fm-buy-confidence__item strong {
	color: var(--fm-navy);
	font-size: 12px;
	line-height: 1.35;
}

body.single-product .fm-buy-confidence__item small {
	color: var(--fm-muted);
	font-size: 10px;
	line-height: 1.45;
}

body.single-product .fm-delivery-details {
	margin-top: 15px;
	border-top: 1px solid rgba(9,36,64,.11);
}

body.single-product .fm-delivery-details summary,
body.single-product .fm-product-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0 0;
	color: var(--fm-navy);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

body.single-product .fm-delivery-details summary::-webkit-details-marker,
body.single-product .fm-product-faq summary::-webkit-details-marker {
	display: none;
}

body.single-product .fm-delivery-details summary svg,
body.single-product .fm-product-faq summary svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	transition: transform .2s ease;
}

body.single-product details[open] > summary svg {
	transform: rotate(180deg);
}

body.single-product .fm-delivery-details__content {
	padding-top: 11px;
	color: var(--fm-muted);
	font-size: 11px;
	line-height: 1.6;
}

body.single-product .fm-delivery-details__content p {
	margin: 3px 0;
}

body.single-product .fm-delivery-details__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 15px;
	margin-top: 10px;
}

body.single-product .fm-delivery-details__links a {
	color: var(--fm-blue);
	font-weight: 700;
}

body.single-product .product_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding-top: 4px;
	color: var(--fm-muted);
	font-size: 11px;
	line-height: 1.6;
}

body.single-product .product_meta > span {
	padding: 6px 9px;
	border: 1px solid rgba(9,36,64,.10);
	border-radius: 8px;
	background: #f8fbfc;
}

body.single-product .product_meta .tagged_as {
	display: none !important;
}

body.single-product .product_meta a {
	color: var(--fm-navy);
	font-weight: 700;
	text-decoration: none;
}

body.single-product div.product > .woocommerce-tabs {
	float: none !important;
	grid-column: 1 / -1;
	width: 100% !important;
	margin: 74px 0 0 !important;
	padding: clamp(25px, 4vw, 48px);
	border: 1px solid var(--fm-border);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(9,36,64,.08);
}

body.single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 34px !important;
	padding: 0 !important;
	overflow: visible !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--fm-border) !important;
	border-radius: 999px !important;
	background: #f5f9fb !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	padding: 10px 16px !important;
	color: var(--fm-muted) !important;
	font-size: 12px;
	font-weight: 800 !important;
	text-decoration: none;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
	border-color: var(--fm-navy) !important;
	background: var(--fm-navy) !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
	color: #fff !important;
}

body.single-product .woocommerce-tabs .panel {
	max-width: 900px;
	margin: 0 !important;
	color: #42596c;
	font-size: 15px;
	line-height: 1.8;
}

body.single-product .woocommerce-tabs .panel h2:first-child {
	margin-top: 0;
	font-size: clamp(28px, 3vw, 38px);
}

body.single-product .woocommerce-tabs .panel ul {
	padding-left: 1.25em;
}

body.single-product .woocommerce-tabs .panel li {
	margin-bottom: 11px;
}

body.single-product .woocommerce-tabs .panel img {
	margin-block: 18px;
	border-radius: 18px;
}

body.single-product .fm-product-help {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
	gap: clamp(30px, 5vw, 72px);
	margin-top: 34px;
	padding: clamp(30px, 5vw, 58px);
	border-radius: 26px;
	color: #d7e7f2;
	background:
		radial-gradient(circle at 5% 0%, rgba(98,201,244,.22), transparent 20rem),
		linear-gradient(135deg, #0d426b, var(--fm-deep));
	box-shadow: 0 25px 65px rgba(6,25,44,.18);
}

body.single-product .fm-section-kicker {
	color: var(--fm-sky);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

body.single-product .fm-product-help h2 {
	margin: 10px 0 14px;
	color: #fff;
	font-size: clamp(34px, 4vw, 52px);
}

body.single-product .fm-product-help__intro p {
	margin: 0 0 24px;
	color: #abc2d2;
	font-size: 14px;
}

body.single-product .fm-product-help__contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

body.single-product .fm-product-help__contact svg {
	width: 18px;
	height: 18px;
	transition: transform .2s ease;
}

body.single-product .fm-product-help__contact:hover svg {
	transform: translateX(4px);
}

body.single-product .fm-product-faq {
	border-top: 1px solid rgba(255,255,255,.15);
}

body.single-product .fm-product-faq details {
	border-bottom: 1px solid rgba(255,255,255,.15);
}

body.single-product .fm-product-faq summary {
	padding: 19px 0;
	color: #fff;
	font-size: 14px;
}

body.single-product .fm-product-faq details p {
	margin: 0;
	padding: 0 34px 20px 0;
	color: #abc2d2;
	font-size: 13px;
	line-height: 1.7;
}

body.single-product div.product > .related.products,
body.single-product div.product > .upsells.products {
	float: none !important;
	grid-column: 1 / -1;
	width: 100% !important;
	margin: 78px 0 0 !important;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
	margin: 0 0 28px;
	font-size: clamp(34px, 4vw, 50px);
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 18px !important;
	margin: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after {
	display: none !important;
}

body.single-product .related.products li.product:nth-child(n+5),
body.single-product .upsells.products li.product:nth-child(n+5) {
	display: none !important;
}

body.single-product .related.products li.product,
body.single-product .upsells.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 14px 14px 17px !important;
	border: 1px solid var(--fm-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 13px 36px rgba(9,36,64,.07);
	transition: transform .22s ease, box-shadow .22s ease;
}

body.single-product .related.products li.product:hover,
body.single-product .upsells.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 46px rgba(9,36,64,.13);
}

body.single-product .related.products li.product img,
body.single-product .upsells.products li.product img {
	aspect-ratio: 1 / 1;
	margin: 0 0 14px !important;
	border-radius: 13px;
	background: var(--fm-ice);
	object-fit: contain;
}

body.single-product .related.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products li.product .woocommerce-loop-product__title {
	padding: 0 !important;
	color: var(--fm-navy);
	font-family: "Public Sans", sans-serif;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.45;
}

body.single-product .related.products li.product .price,
body.single-product .upsells.products li.product .price {
	margin: 10px 0 !important;
	font-size: 17px !important;
}

body.single-product .related.products li.product .button,
body.single-product .upsells.products li.product .button {
	width: 100%;
	margin-top: 4px !important;
	padding: 11px 12px !important;
	border-radius: 10px !important;
	color: #fff !important;
	background: var(--fm-navy) !important;
	font-size: 11px !important;
	text-align: center;
}

@keyframes fm-product-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
	body.single-product div.product:not(.wp-block-group) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product div.product > .woocommerce-product-gallery,
	body.single-product div.product > .summary {
		grid-column: 1;
	}

	body.single-product div.product > .summary {
		position: static;
		grid-row: 2;
		margin-top: 24px !important;
	}

	body.single-product div.product > .woocommerce-tabs {
		grid-row: auto;
		margin-top: 48px !important;
	}

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

@media (max-width: 680px) {
	body.single-product main {
		width: min(100% - 28px, var(--fm-width));
		padding-block: 22px 76px;
	}

	body.single-product .woocommerce-breadcrumb {
		margin-bottom: 17px;
		font-size: 10px;
	}

	body.single-product div.product > .woocommerce-product-gallery {
		padding: 9px;
		border-radius: 20px;
	}

	body.single-product .woocommerce-product-gallery__image,
	body.single-product .woocommerce-product-gallery__image img {
		border-radius: 14px !important;
	}

	body.single-product .woocommerce-product-gallery__trigger {
		top: 21px !important;
		right: 21px !important;
	}

	body.single-product .flex-control-thumbs {
		grid-template-columns: repeat(5, minmax(62px, 1fr));
		overflow-x: auto;
		padding-bottom: 5px;
		scrollbar-width: thin;
	}

	body.single-product div.product > .summary {
		margin-top: 16px !important;
		padding: 23px 19px;
		border-radius: 20px;
	}

	body.single-product div.product .product_title {
		font-size: clamp(27px, 8.5vw, 35px);
	}

	body.single-product .woocommerce-product-details__short-description {
		max-height: 8.7em;
	}

	body.single-product div.product form.cart {
		grid-template-columns: 78px minmax(0,1fr);
	}

	body.single-product .quantity .qty,
	body.single-product div.product form.cart .button {
		min-height: 55px;
		height: 55px;
	}

	body.single-product div.product > .woocommerce-tabs {
		margin-top: 38px !important;
		padding: 22px 18px;
		border-radius: 20px;
	}

	body.single-product .woocommerce-tabs ul.tabs {
		flex-wrap: nowrap;
		margin-bottom: 25px !important;
		overflow-x: auto !important;
		padding-bottom: 4px !important;
	}

	body.single-product .woocommerce-tabs ul.tabs li {
		flex: 0 0 auto;
	}

	body.single-product .fm-product-help {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 22px;
		padding: 29px 21px;
		border-radius: 20px;
	}

	body.single-product .fm-product-help h2 {
		font-size: 38px;
	}

	body.single-product div.product > .related.products,
	body.single-product div.product > .upsells.products {
		margin-top: 54px !important;
	}

	body.single-product .related.products ul.products,
	body.single-product .upsells.products ul.products {
		gap: 12px !important;
	}

	body.single-product .related.products li.product,
	body.single-product .upsells.products li.product {
		padding: 10px 10px 13px !important;
		border-radius: 15px;
	}
}
