/* =========================================================
   S2F.2 — CHAO SINGLE PRODUCT EDITORIAL REFINEMENT
   Presentation only. Commerce behavior remains in PHP/WooCommerce.
   ========================================================= */

body.single-product #primary {
	background: #f7f3ed;
}

body.single-product .site-main {
	padding-top: clamp(48px, 4vw, 58px) !important;
}

body.single-product div.product .chao-product-editorial-description {
	max-width: 62ch;
	margin: 22px 0 0;
	color: rgba(24, 18, 15, .76);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.72;
}

body.single-product div.product .chao-product-editorial-description > :first-child {
	margin-top: 0;
}

body.single-product div.product .chao-product-editorial-description > :last-child {
	margin-bottom: 0;
}

body.single-product .chao-pickup-date-field,
body.single-product .chao-pickup-time-field {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-product .chao-pickup-label,
body.single-product .chao-pickup-time-field label {
	display: block;
	margin-bottom: 9px;
	font-weight: 600;
}

body.single-product .chao-pickup-calendar {
	max-width: 420px;
	padding: 18px;
	border: 1px solid rgba(24, 18, 15, .13);
	border-radius: 4px;
	background: #f6f3ee;
}

body.single-product .chao-pickup-calendar-header {
	display: grid;
	grid-template-columns: 42px 1fr 42px;
	align-items: center;
	margin-bottom: 12px;
	text-align: center;
}

body.single-product .chao-pickup-calendar-header button {
	min-height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #18120f;
	font-size: 28px;
}

body.single-product .chao-pickup-calendar-header button:disabled { opacity: .25; }

body.single-product .chao-calendar-weekdays,
body.single-product .chao-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

body.single-product .chao-calendar-weekdays span {
	padding: 5px 0;
	color: rgba(24, 18, 15, .56);
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

body.single-product .chao-calendar-day {
	position: relative;
	min-width: 0;
	min-height: 44px;
	padding: 7px 2px 13px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #18120f;
	font-size: 14px;
}

body.single-product .chao-calendar-day.is-available::after {
	position: absolute;
	bottom: 6px;
	left: 50%;
	width: 5px;
	height: 5px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: #39864a;
	content: "";
}

body.single-product .chao-calendar-day.is-unavailable {
	color: rgba(24, 18, 15, .28);
	cursor: default;
}

body.single-product .chao-calendar-day.is-selected {
	background: #c62d17;
	color: #fff;
}

body.single-product .chao-calendar-day.is-selected::after { background: #fff; }
body.single-product .chao-calendar-day.is-available:not(.is-selected):hover,
body.single-product .chao-calendar-day.is-available:not(.is-selected):focus-visible { background: rgba(198, 45, 23, .10); }

body.single-product .chao-pickup-selection {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

body.single-product .chao-pickup-selection.is-error { color: #b42318; }

@media (max-width: 480px) {
	body.single-product .chao-pickup-calendar { max-width: none; padding: 12px 8px; }
	body.single-product .chao-calendar-day { min-height: 42px; }
}

body.single-product div.product .woocommerce-product-gallery img {
	box-shadow: none !important;
}

body.single-product div.product .woocommerce-product-gallery__wrapper {
	box-shadow: 0 10px 24px rgba(24, 18, 15, .10) !important;
}

body.single-product div.product .woocommerce-product-gallery__trigger {
	display: none !important;
}

body.single-product .related.products {
	margin-top: clamp(64px, 8vw, 104px) !important;
}

body.single-product .related.products > h2 {
	margin: 0 0 clamp(28px, 4vw, 42px);
	color: #c62d17;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .22em;
	text-align: center;
	text-transform: uppercase;
}

body.single-product .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: clamp(24px, 3vw, 38px) !important;
}

body.single-product .related.products ul.products li.product {
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
}

body.single-product .related.products .woocommerce-loop-image-link {
	display: block;
	margin: 0 0 14px;
}

body.single-product .related.products .woocommerce-loop-image-link img {
	width: 100%;
	height: auto;
	margin: 0 !important;
	border: 0;
	box-shadow: 0 8px 20px rgba(24, 18, 15, .06);
}

body.single-product .related.products .product-details,
body.single-product .related.products .entry-content-wrap {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.single-product .related.products .woocommerce-loop-product__title {
	margin: 0 !important;
	font-family: "Chao Patisserie", Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

body.single-product .related.products .woocommerce-loop-product__title a {
	color: #18120f;
	text-decoration: none;
}

body.single-product .related.products .woocommerce-loop-product__title a:hover,
body.single-product .related.products .woocommerce-loop-product__title a:focus-visible {
	color: #c62d17;
}

body.single-product .related.products .chao-related-product-composition {
	margin: 0 !important;
	color: rgba(24, 18, 15, .58);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.45;
}

body.single-product .related.products .chao-related-product-composition::before {
	display: block;
	width: 22px;
	height: 1px;
	margin: 7px auto 7px;
	background: #c62d17;
	content: "";
}

body.single-product .related.products .product-action-wrap,
body.single-product .related.products .price,
body.single-product .related.products .onsale {
	display: none !important;
}

@media (max-width: 1023px) {
	body.single-product .site-main {
		padding-top: 42px !important;
	}

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

@media (max-width: 767px) {
	body.single-product .site-main {
		padding-top: 30px !important;
	}

	body.single-product div.product .chao-product-editorial-description {
		max-width: none;
		margin-top: 20px;
		font-size: 13.5px;
		line-height: 1.7;
	}
}

@media (max-width: 339px) {
	body.single-product .related.products ul.products {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
