/*
Theme Name: Charted Stitches Digital Charts
Theme URI: https://chartedstitchesstudio.com/
Description: Kadence child theme starter with a custom WooCommerce layout for digital needlepoint charts.
Author: Charted Stitches Studio
Template: kadence
Version: 1.1.0
Text Domain: charted-stitches-digital-charts
*/

/* Kadence parent styles are enqueued in functions.php. */

/* ---------- Digital chart product hero ---------- */
body.single-product.csc-digital-chart-product .csc-chart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	margin-block: clamp(1.5rem, 4vw, 3.5rem);
}

body.single-product.csc-digital-chart-product .csc-chart-layout .csc-chart-gallery .woocommerce-product-gallery,
body.single-product.csc-digital-chart-product .csc-chart-layout > .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.csc-chart-summary .product_title {
	font-family: var(--global-heading-font-family, Georgia, serif);
	line-height: 1.12;
	margin-bottom: .65em;
}

.csc-chart-summary .price {
	font-size: 1.25rem;
	margin-block: .75rem 1rem;
}

.csc-chart-summary .woocommerce-product-details__short-description {
	font-size: 1.02rem;
	line-height: 1.7;
	margin-block: 1rem 1.25rem;
}

.csc-digital-notice {
	background: #f7f3ec;
	border-left: 3px solid #667653;
	padding: .85rem 1rem;
	margin: 1rem 0;
	font-size: .92rem;
	line-height: 1.5;
}

.csc-chart-at-a-glance {
	border-top: 1px solid rgba(50, 50, 50, .15);
	border-bottom: 1px solid rgba(50, 50, 50, .15);
	padding: 1rem 0;
	margin: 1.25rem 0;
}

.csc-chart-at-a-glance h2 {
	font-size: 1rem;
	margin: 0 0 .8rem;
}

.csc-chart-spec-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem 1.25rem;
	margin: 0;
}

.csc-chart-spec-grid div {
	min-width: 0;
}

.csc-chart-spec-grid dt {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .7;
	margin-bottom: .2rem;
}

.csc-chart-spec-grid dd {
	margin: 0;
	font-size: .92rem;
}

.csc-chart-story {
	max-width: 850px;
	margin: clamp(2.5rem, 6vw, 5rem) auto;
}

.csc-chart-story > h2,
.csc-chart-related-heading {
	font-family: var(--global-heading-font-family, Georgia, serif);
}

.csc-chart-story .wp-block-kadence-rowlayout,
.csc-chart-story .wp-block-kadence-column {
	max-width: 100%;
}

/* ---------- Stacked product information sections ---------- */
.csc-product-section {
	max-width: 900px;
	margin-inline: auto;
	padding: clamp(1.75rem, 4vw, 3rem) 0;
	border-top: 1px solid #e8e1d8;
}

.csc-section-title {
	font-family: var(--global-heading-font-family, Georgia, serif);
	font-size: clamp(1.45rem, 2vw, 2rem);
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 1.15rem;
}

.csc-section-content {
	line-height: 1.8;
}

.csc-section-content ul,
.csc-section-content ol {
	padding-left: 1.4em;
}

.csc-section-content li + li {
	margin-top: .35rem;
}

.csc-product-specifications .woocommerce-product-attributes {
	border-collapse: collapse;
	width: 100%;
}

.csc-product-specifications .woocommerce-product-attributes th,
.csc-product-specifications .woocommerce-product-attributes td {
	padding: .8rem 1rem;
	border-bottom: 1px solid #e8e1d8;
	text-align: left;
	vertical-align: top;
}

.csc-product-specifications .woocommerce-product-attributes th {
	font-weight: 600;
	width: 35%;
}

.csc-product-reviews #reviews {
	margin: 0;
}

.csc-product-reviews #reviews > h2 {
	display: none;
}

.csc-chart-related-heading {
	margin-top: 3rem;
}

/* Make the gallery and summary stack cleanly on tablet/mobile. */
@media (max-width: 767px) {
	body.single-product.csc-digital-chart-product .csc-chart-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		margin-block: 1rem 2rem;
	}

	.csc-chart-spec-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.csc-chart-story {
		margin-block: 2rem 3rem;
	}
}
