/*
 * SHMATS — Single product page (woocommerce/single-product.php)
 * Enqueued only on is_product(). Mobile-first; desktop in the
 * min-width: 1024px block below.
 */

.shmats-product-page {
	--shmats-ink: #17140f;
	background-color: #fbf8f2;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Hebrew", "Arial Hebrew", sans-serif;
	color: var(--shmats-ink);
	padding: 1.25rem 1.25rem 3rem;
}

.shmats-product-page__breadcrumb {
	font-size: 0.8rem;
	color: rgba(23, 20, 15, 0.55);
	margin-bottom: 1.5rem;
}

.shmats-product-page__breadcrumb a {
	color: inherit;
}

/* Column order (gallery, then summary) locked to direction: ltr so
   gallery reliably lands on the left and summary on the right,
   regardless of the page's RTL default -- same reasoning as the
   collection page and floating menu panel. Text inside restates rtl. */
.shmats-product-page__top,
.shmats-product-page__bottom {
	direction: ltr;
}

.shmats-product-page__gallery img {
	display: block;
	width: 100%;
	height: auto;
}

.shmats-product-page__summary {
	direction: rtl;
	text-align: right;
	margin-top: 1.5rem;
}

.shmats-product-page__cat {
	margin: 0 0 0.25rem;
	font-size: 0.85rem;
	color: rgba(23, 20, 15, 0.6);
}

.shmats-product-page__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 6vw, 2.25rem);
	font-weight: 800;
}

.shmats-product-page__price {
	margin: 0 0 1rem;
	font-size: 1.1rem;
}

.shmats-product-page__short-desc {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(23, 20, 15, 0.15);
	font-size: 0.95rem;
	line-height: 1.7;
}

.shmats-product-page__choice {
	border: 0;
	margin: 0 0 1.25rem;
	padding: 0;
}

.shmats-product-page__choice legend {
	margin-bottom: 0.6rem;
	padding: 0;
	font-size: 0.9rem;
	font-weight: 600;
}

.shmats-product-page__choice-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.shmats-product-page__choice-option {
	position: relative;
	display: inline-flex;
}

.shmats-product-page__choice-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.shmats-product-page__choice-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(23, 20, 15, 0.3);
	border-radius: 2px;
	font-size: 0.85rem;
	cursor: pointer;
}

.shmats-product-page__choice-option input:checked + span {
	background-color: var(--shmats-ink);
	border-color: var(--shmats-ink);
	color: #f4f1eb;
}

.shmats-product-page__choice-option input:focus-visible + span {
	outline: 2px solid var(--shmats-ink);
	outline-offset: 2px;
}

.shmats-product-page__cta {
	display: block;
	width: 100%;
	margin-top: 0.5rem;
	padding: 1rem;
	background-color: var(--shmats-ink);
	color: #f4f1eb;
	border: 0;
	border-radius: 2px;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.shmats-product-page__badges {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem 0.75rem;
	margin: 2rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid rgba(23, 20, 15, 0.15);
	list-style: none;
}

.shmats-product-page__badges li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.3;
	color: rgba(23, 20, 15, 0.75);
}

.shmats-product-page__badges svg {
	color: var(--shmats-ink);
}

.shmats-product-page__bottom {
	margin-top: 3rem;
}

.shmats-product-page__story,
.shmats-product-page__meta {
	direction: rtl;
	text-align: right;
}

.shmats-product-page__story {
	margin-bottom: 2.5rem;
}

.shmats-product-page__story h2,
.shmats-product-page__meta h2 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.shmats-product-page__story-text {
	font-size: 0.95rem;
	line-height: 1.8;
}

.shmats-product-page__story-text p {
	margin: 0 0 0.75rem;
}

.shmats-product-page__lifestyle {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.shmats-product-page__lifestyle img {
	display: block;
	width: 100%;
	height: auto;
}

.shmats-product-page__details {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	line-height: 2;
}

.shmats-product-page__details li {
	padding-inline-start: 1rem;
	position: relative;
}

.shmats-product-page__details li::before {
	content: "•";
	position: absolute;
	inset-inline-start: 0;
}

.shmats-product-page__care {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shmats-product-page__care li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
	font-size: 0.7rem;
	line-height: 1.3;
	color: rgba(23, 20, 15, 0.75);
}

.shmats-product-page__care svg {
	color: var(--shmats-ink);
}

/* ---------------- Desktop ---------------- */

@media (min-width: 1024px) {
	.shmats-product-page {
		max-width: 1400px;
		margin: 0 auto;
		padding: 2.5rem 2rem 5rem;
	}

	.shmats-product-page__top {
		display: grid;
		grid-template-columns: 55% 45%;
		gap: 3rem;
		align-items: start;
	}

	.shmats-product-page__summary {
		margin-top: 0;
		padding-inline-start: 1rem;
	}

	.shmats-product-page__badges {
		grid-template-columns: repeat(4, 1fr);
	}

	.shmats-product-page__bottom {
		display: grid;
		grid-template-columns: 60% 40%;
		gap: 4rem;
		margin-top: 4rem;
	}

	.shmats-product-page__story {
		margin-bottom: 0;
	}
}
