/**
 * Meowtrick Custom — product description + shared product guide.
 * Follows the storefront's own language: Syne headings, 4px rules in the
 * primary color (as on the home page), white rounded cards on the page
 * background, and the star marks from the media library. All colors, radii
 * and fonts come from WoodMart's CSS variables.
 */
.mt-desc {
	--mt-ink: var(--wd-primary-color, #1c1c1c);
	--mt-line: var(--brdcolor-gray-300, rgba(0, 0, 0, 0.105));
	--mt-muted: var(--color-gray-500, #767676);
	--mt-card: var(--bgcolor-white, #fff);
	--mt-gap: 20px;
	--mt-space: 50px;
	text-align: start;
}

.mt-desc > *,
.mt-desc .mt-pg > * {
	margin-block: 0;
}

.mt-desc p,
.mt-desc ul,
.mt-desc figure {
	margin: 0;
}

/* Headings ------------------------------------------------------------- */
.mt-desc .mt-pg-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-ink);
}

.mt-desc .mt-pg-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: url("/wp-content/uploads/2025/03/ps-color-star-4.svg") center / contain no-repeat;
}

.mt-desc .mt-pg-h {
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
}

.mt-desc .mt-pg-lead {
	margin-top: 12px;
	max-width: 720px;
}

.mt-desc .mt-pg-label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-muted);
}

/* Section rhythm ---------------------------------------------------------- */
.mt-desc .mt-pg-section {
	margin-top: var(--mt-space);
}

.mt-desc .mt-pg-head {
	margin-bottom: 25px;
}

.mt-desc .mt-pg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--mt-gap);
}

/* About this design: heading left, the product's own description right ---- */
.mt-desc .mt-pg-about,
.mt-desc .mt-pg-faq {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--mt-gap);
	align-items: start;
}

.mt-desc .mt-pg-about > .mt-pg-head,
.mt-desc .mt-pg-faq > .mt-pg-head {
	grid-column: span 2;
	margin-bottom: 0;
	padding-inline-end: 20px;
}

.mt-desc .mt-pg-original,
.mt-desc .mt-pg-faq__list {
	grid-column: span 2;
}

.mt-desc .mt-pg-original > * + * {
	margin-top: 15px;
}

.mt-desc .mt-pg-original > ul {
	padding: 0;
	list-style: none;
	--li-pl: 0;
	--li-mb: 0;
}

.mt-desc .mt-pg-original > ul > li {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--mt-line);
}

.mt-desc .mt-pg-original > ul > li:last-child {
	border-bottom: 1px solid var(--mt-line);
}

.mt-desc .mt-pg-original > ul > li > strong:first-child {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-muted);
}

/* At a glance: four facts between two bold rules --------------------------- */
.mt-desc .mt-pg-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--mt-gap);
	margin-top: var(--mt-space);
	padding: 25px 0;
	border-block: 4px solid var(--mt-ink);
}

.mt-desc .mt-pg-fact > p:last-child {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wd-title-color, #242424);
}

/* Cards --------------------------------------------------------------------- */
.mt-desc .mt-pg-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 25px;
	background: var(--mt-card);
	border-radius: var(--wd-brd-radius, 0);
}

.mt-desc .mt-pg-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}

.mt-desc .mt-pg-card__model {
	margin-top: 2px;
	font-size: 14px;
	color: var(--mt-muted);
}

.mt-desc .mt-pg-card__lead {
	margin-top: 12px;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.55;
}

.mt-desc .mt-pg-specs {
	margin-top: auto;
}

.mt-desc .mt-pg-spec {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--mt-line);
	font-size: 14px;
	line-height: 1.5;
}

.mt-desc .mt-pg-spec:last-child {
	padding-bottom: 0;
}

.mt-desc .mt-pg-spec strong {
	font-weight: 600;
	color: var(--wd-title-color, #242424);
}

/* Size charts ----------------------------------------------------------------- */
.mt-desc .mt-pg-chart .mt-pg-table {
	margin-top: 15px;
}

.mt-desc .mt-pg-table table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.mt-desc .mt-pg-table th,
.mt-desc .mt-pg-table td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px solid var(--mt-line);
	background: none;
	text-align: end;
}

.mt-desc .mt-pg-table th:first-child,
.mt-desc .mt-pg-table td:first-child {
	text-align: start;
}

.mt-desc .mt-pg-table th {
	padding-top: 0;
	border-bottom: 2px solid var(--mt-ink);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-muted);
}

.mt-desc .mt-pg-table td:first-child {
	font-weight: 600;
	color: var(--wd-title-color, #242424);
}

.mt-desc .mt-pg-table tr:last-child td {
	padding-bottom: 0;
	border-bottom: 0;
}

/* Shipping / care cards ---------------------------------------------------- */
.mt-desc .mt-pg-info {
	font-size: 15px;
	line-height: 1.55;
}

.mt-desc .mt-pg-info .mt-pg-card__title {
	margin-bottom: 12px;
}

.mt-desc .mt-pg-info .mt-pg-note {
	margin-top: auto;
	padding-top: 15px;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
}

.mt-desc .mt-pg-info a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mt-desc .mt-pg-list {
	padding: 0;
	list-style: none;
	--li-pl: 0;
	--li-mb: 0;
}

.mt-desc .mt-pg-list li {
	position: relative;
	margin: 0;
	padding: 0 0 8px 22px;
}

.mt-desc .mt-pg-list li:last-child {
	padding-bottom: 0;
}

.mt-desc .mt-pg-list li::before {
	content: "";
	position: absolute;
	top: 0.4em;
	inset-inline-start: 0;
	width: 12px;
	height: 12px;
	background: url("/wp-content/uploads/2025/03/ps-bold-static-star.svg") center / contain no-repeat;
}

/* FAQ ------------------------------------------------------------------------- */
.mt-desc .mt-pg-faq__list details {
	border-top: 1px solid var(--mt-line);
}

.mt-desc .mt-pg-faq__list details:first-child {
	border-top: 4px solid var(--mt-ink);
}

.mt-desc .mt-pg-faq__list details:last-child {
	border-bottom: 1px solid var(--mt-line);
}

.mt-desc .mt-pg-faq__list summary {
	position: relative;
	display: block;
	padding: 16px 40px 16px 0;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	cursor: pointer;
	list-style: none;
}

.mt-desc .mt-pg-faq__list summary::-webkit-details-marker {
	display: none;
}

.mt-desc .mt-pg-faq__list summary::before,
.mt-desc .mt-pg-faq__list summary::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 4px;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	background: var(--mt-ink);
	transition: transform 0.25s ease;
}

.mt-desc .mt-pg-faq__list summary::after {
	transform: rotate(90deg);
}

.mt-desc .mt-pg-faq__list details[open] summary::after {
	transform: rotate(0deg);
}

.mt-desc .mt-pg-faq__list summary:focus-visible {
	outline: 2px solid var(--mt-ink);
	outline-offset: 2px;
}

.mt-desc .mt-pg-faq__list details > p {
	padding: 0 40px 18px 0;
}

/* More collections ------------------------------------------------------------ */
.mt-desc .mt-pg-more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: var(--mt-space);
	padding-top: 25px;
	border-top: 4px solid var(--mt-ink);
}

.mt-desc .mt-pg-more .mt-pg-label {
	margin: 0;
	color: var(--mt-ink);
}

.mt-desc .mt-pg-more ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
	--li-pl: 0;
	--li-mb: 0;
}

.mt-desc .mt-pg-more li {
	margin: 0;
}

.mt-desc .mt-pg-more a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 5px 16px;
	border: 1px solid var(--mt-ink);
	border-radius: var(--btn-default-brd-radius, 0);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mt-ink);
	text-decoration: none;
	transition: all 0.25s ease;
}

.mt-desc .mt-pg-more a:hover {
	background: var(--mt-ink);
	color: var(--color-white, #fff);
}

/* Tablet ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mt-desc {
		--mt-space: 40px;
	}

	.mt-desc .mt-pg-h {
		font-size: 26px;
	}

	.mt-desc .mt-pg-grid,
	.mt-desc .mt-pg-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile ----------------------------------------------------------------------- */
@media (max-width: 768.98px) {
	.mt-desc {
		--mt-space: 35px;
	}

	.mt-desc .mt-pg-h {
		font-size: 22px;
	}

	.mt-desc .mt-pg-about,
	.mt-desc .mt-pg-faq {
		display: block;
	}

	.mt-desc .mt-pg-about > .mt-pg-head,
	.mt-desc .mt-pg-faq > .mt-pg-head {
		margin-bottom: 20px;
		padding-inline-end: 0;
	}
}

@media (max-width: 576px) {
	.mt-desc .mt-pg-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mt-desc .mt-pg-facts {
		gap: 18px 15px;
	}

	.mt-desc .mt-pg-card {
		padding: 20px;
	}
}
