/* =====================================================================================
 * Module "shop" — phase 3: range / product pages as copies of tecpap.ma's product pages
 * (measured: /opt/compak-dev/work/tecpap/spec-produit-*.json).
 * Shared components come from module global (global-10-tecpap.css): .tp-section(--main,
 * --green, --top-c), .tp-container, .tp-title, .tp-tabs, .tp-cards, .tp-card, .tp-btn and the
 * --tp-* tokens. This file only adds what is specific to the range page.
 * ===================================================================================== */

/* The theme's content wrapper adds nothing on catalogue pages. */
body.tp-shop-page #page #content.site-content {
	margin: 0;
	padding: 0;
}
body.tp-shop-page #content > .col-full {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* -------------------------------------------------------------------------------------
 * White main area (tecpap tm-main). Font: the site-wide Roboto (tecpap's product area shows
 * a Helvetica/Arial fallback of an unloaded "Roboto Slab"; CLONE.md keeps Roboto).
 * ----------------------------------------------------------------------------------- */
.tp-shop-main .tp-shop-title {
	margin: 0 0 25px;
	padding: 0;
	font-size: 54px;
	font-weight: 500;
	line-height: 58px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tp-heading);
}

/* Open product: photo in a 30 % column (tecpap 250×233, rounded 5 px), text in 70 %,
 * vertically centred; tecpap gutters 40 px (≥1220) / 25 px, stacked under 768. */
.tp-shop-panels {
	margin-bottom: 25px;
}
.tp-shop-panel {
	display: grid;
	grid-template-columns: calc(30% - 28px) minmax(0, 1fr);
	column-gap: 40px;
	align-items: center;
}
.tp-shop-panel[hidden] {
	display: none;
}
.tp-shop-panel:focus:not(:focus-visible) {
	outline: none;
}
.tp-shop-panel__img {
	display: block;
	width: 100%;
	max-width: 250px;
	height: auto;
	aspect-ratio: 250 / 233;
	object-fit: cover;
	border-radius: 5px;
}
.tp-shop-main .tp-shop-panel__name {
	margin: 0 0 25px;
	padding: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tp-heading);
}
.tp-shop-panel__text p,
.tp-shop-panel__text ul {
	margin: 0 0 25px;
	color: var(--tp-text);
}
.tp-shop-panel__text strong {
	font-weight: 700;
}
/* Lists from the catalogue facts: small square accent bullets. */
.tp-shop-panel__text ul {
	padding: 0;
	list-style: none;
}
.tp-shop-panel__text li {
	position: relative;
	margin: 0;
	padding: 0 0 0 25px;
}
.tp-shop-panel__text li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 10px;
	width: 5px;
	height: 5px;
	background: var(--tp-accent);
}
.tp-shop-panel__text .tp-shop-panel__cta {
	margin: 0;
}
@media (max-width: 1219px) {
	.tp-shop-panel {
		grid-template-columns: calc(30% - 17.5px) minmax(0, 1fr);
		column-gap: 25px;
	}
}
@media (max-width: 767px) {
	.tp-shop-panel {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 25px;
	}
}

/* Search results / product tags: the band's cards on white. */
.tp-shop-results {
	margin-top: 35px;
}
.tp-shop-empty {
	margin: 0;
}

/* -------------------------------------------------------------------------------------
 * Branded placeholder (product / range without a COMPAK-branded photo): soft cream, the
 * COMPAK mark in green, the name in small uppercase. It takes the box of the photo it
 * replaces: 250×233 in a product panel, the card's photo frame in a card.
 * ----------------------------------------------------------------------------------- */
.tp-shop-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-sizing: border-box;
	padding: 16px;
	background: #f3efe6;
	text-align: center;
}
.tp-card__media .tp-shop-ph {
	width: 100%;
	height: 100%;
}
.tp-shop-ph__mark {
	display: block;
	width: 56px;
	height: 56px;
	background-color: var(--tp-accent);
	-webkit-mask: var(--tp-mark) center / contain no-repeat;
	mask: var(--tp-mark) center / contain no-repeat;
}
.tp-shop-ph__label {
	display: block;
	max-width: 100%;
	color: var(--tp-heading-2);
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
