/**
 * Страница одиночного щенка (mas_puppy).
 * ИЗОЛИРОВАННЫЙ ФАЙЛ — не дублировать правила в functions.php.
 * Версия: 1.4.0
 */

.mas-puppy-single-page {
	background: #fbf8f4;
	padding-bottom: 48px;
}

@media (min-width: 721px) {
	.mas-puppy-single-page {
		background: linear-gradient(180deg, #fffdf9 0%, #fbf8f4 56px, #fbf8f4 100%);
	}
}

/* ——— Кнопка «← Все щенки» ——— */
.mas-puppy-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #9a8878;
	text-decoration: none;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	background: rgba(200,122,69,0.07);
	border: 1px solid rgba(200,122,69,0.18);
	transition: background 0.18s, color 0.18s;
	letter-spacing: 0.02em;
}

.mas-puppy-back-link:hover {
	background: rgba(200,122,69,0.14);
	color: #c87a45;
}

.mas-puppy-back-link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ——— Корневой контейнер ——— */
.mas-puppy-profile-root {
	font-family: Montserrat, system-ui, sans-serif;
	color: #3c2f2f;
	box-sizing: border-box;
}

.mas-puppy-profile-root *,
.mas-puppy-profile-root *::before,
.mas-puppy-profile-root *::after {
	box-sizing: border-box;
}

.mas-puppy-profile-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 28px 20px 40px;
}

@media (min-width: 721px) {
	.mas-puppy-profile-inner {
		max-width: 680px;
		padding-top: 32px;
	}
}

/* ——— Hero: фото + заголовок ——— */
.mas-puppy-profile-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
	margin-bottom: 28px;
}

@media (min-width: 721px) {
	.mas-puppy-profile-hero {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 22px;
	}
}

@media (max-width: 720px) {
	.mas-puppy-profile-hero {
		grid-template-columns: 1fr;
	}
}

.mas-puppy-profile-photo {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: #ede4dc;
	box-shadow: 0 8px 32px rgba(60, 47, 47, 0.1);
}

@media (min-width: 721px) {
	.mas-puppy-profile-photo {
		border-radius: 12px;
		box-shadow: 0 2px 20px rgba(60, 47, 47, 0.07);
	}
}

.mas-puppy-profile-photo--placeholder {
	min-height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 64px;
}

.mas-puppy-profile-photo-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* ——— Бейдж статуса ——— */
.mas-puppy-profile-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 6px 14px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.mas-puppy-profile-badge--available { background: rgba(46, 160, 67, 0.92); }
.mas-puppy-profile-badge--reserved  { background: rgba(200, 122, 69, 0.95); }
.mas-puppy-profile-badge--sold      { background: rgba(120, 110, 110, 0.88); }

/* ——— Intro ——— */
.mas-puppy-profile-intro {
	padding-top: 8px;
}

.mas-puppy-profile-title {
	font-family: "Montserrat Alternates", Montserrat, sans-serif;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 700;
	margin: 0 0 12px;
	line-height: 1.2;
	color: #3c2f2f;
}

.mas-puppy-profile-price {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #c87a45;
}

/* ——— Мета-карточка (мобильная) ——— */
.mas-puppy-profile-dl {
	margin: 0;
	padding: 20px 22px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 16px rgba(60, 47, 47, 0.06);
	border: 1px solid rgba(200, 122, 69, 0.12);
	display: grid;
	gap: 0;
}

.mas-puppy-profile-dl-row {
	display: grid;
	grid-template-columns: minmax(120px, 34%) 1fr;
	gap: 12px 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(60, 47, 47, 0.08);
	align-items: start;
}

.mas-puppy-profile-dl-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mas-puppy-profile-dl dt {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9a8878;
}

.mas-puppy-profile-dl dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #3c2f2f;
}

/* ——— Секции (описание, галерея и т.д.) ——— */
.mas-puppy-profile-section {
	margin-top: 32px;
	padding: 22px 22px 24px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(200, 122, 69, 0.12);
	box-shadow: 0 2px 16px rgba(60, 47, 47, 0.05);
}

/* ——— Заголовок секции с иконкой и декор-линией ——— */
.mas-puppy-profile-h2 {
	font-family: "Montserrat Alternates", Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 18px;
	color: #3c2f2f;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mas-puppy-profile-h2::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(to right, rgba(200,122,69,0.35), transparent);
	border-radius: 2px;
}

.mas-puppy-profile-h2-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(200,122,69,0.12);
	color: #c87a45;
	flex-shrink: 0;
}

.mas-puppy-profile-h2-ico svg {
	width: 16px;
	height: 16px;
}

.mas-puppy-profile-text {
	font-size: 15px;
	line-height: 1.65;
	color: #4a3f3f;
}

.mas-puppy-profile-text p {
	margin: 0 0 12px;
}

.mas-puppy-profile-text p:last-child {
	margin-bottom: 0;
}

/* ——— Галерея: 3 равные колонки, aspect-ratio ——— */
.mas-puppy-profile-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

@media (max-width: 480px) {
	.mas-puppy-profile-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

.mas-puppy-profile-gallery-item {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(200, 122, 69, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	aspect-ratio: 4 / 3;
}

.mas-puppy-profile-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(60, 47, 47, 0.15);
}

.mas-puppy-profile-gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: middle;
}

/* ——— Чипы (десктоп) ——— */
.mas-puppy-profile-call {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
	color: #7a6a6a;
	letter-spacing: 0.02em;
}

.mas-puppy-profile-info-link-wrap {
	margin: 14px 0 0;
}

.mas-puppy-profile-info-link--pill {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	background: #c87a45;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 12px rgba(200, 122, 69, 0.35);
	border: none !important;
}

.mas-puppy-profile-info-link--pill:hover {
	background: #b36a35;
	color: #fff !important;
}

.mas-puppy-profile-meta-de--v2 {
	margin-bottom: 24px;
}

.mas-puppy-profile-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	font-size: 14px;
	font-weight: 500;
	color: #3c2f2f;
	line-height: 1.5;
}

.mas-puppy-chip {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid rgba(200, 122, 69, 0.45);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
}

.mas-puppy-chip-sep {
	color: #c87a45;
	font-weight: 600;
	padding: 0 2px;
	user-select: none;
}

.mas-puppy-profile-info-link-wrap--d {
	margin: 14px 0 0;
}

.mas-puppy-profile-info-link--text {
	display: inline;
	font-size: 14px;
	font-weight: 600;
	color: #c87a45 !important;
	background: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-color: rgba(200, 122, 69, 0.55);
}

.mas-puppy-profile-info-link--text:hover {
	color: #a85d30 !important;
	text-decoration-color: #a85d30;
}

@media (max-width: 720px) {
	.mas-puppy-profile-meta-de--v2 {
		display: none !important;
	}
}

@media (min-width: 721px) {
	.mas-puppy-profile-info-link-wrap--m {
		display: none !important;
	}

	.mas-puppy-profile-dl--m {
		display: none !important;
	}
}

.mas-puppy-profile-lead {
	margin: 0 0 28px;
	padding: 0 2px;
	font-size: 16px;
	line-height: 1.7;
	color: #4a3f3f;
	max-width: 52rem;
}

.mas-puppy-profile-lead p {
	margin: 0 0 10px;
}

/* ——— Родители: плитки ——— */
.mas-puppy-profile-parents {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}

@media (max-width: 640px) {
	.mas-puppy-profile-parents {
		grid-template-columns: 1fr;
	}
}

.mas-puppy-parent-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(200, 122, 69, 0.18);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(60, 47, 47, 0.06);
}

.mas-puppy-parent-photo {
	aspect-ratio: 4 / 3;
	background: #ede4dc;
	overflow: hidden;
}

.mas-puppy-parent-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mas-puppy-parent-photo--empty {
	min-height: 140px;
	background: linear-gradient(145deg, #ede4dc, #f5ebe3);
}

.mas-puppy-parent-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.mas-puppy-parent-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #c87a45;
}

.mas-puppy-parent-name {
	font-family: "Montserrat Alternates", Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #3c2f2f;
	line-height: 1.3;
}

.mas-puppy-parent-note {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6a5a5a;
	flex: 1;
}

.mas-puppy-parent-link {
	margin-top: 10px;
	align-self: flex-start;
	font-size: 13px;
	font-weight: 600;
	color: #c87a45;
	text-decoration: none;
	border-bottom: 1px solid rgba(200, 122, 69, 0.35);
	padding-bottom: 1px;
}

.mas-puppy-parent-link:hover {
	color: #a85d30;
	border-bottom-color: #a85d30;
}

/* ——— Блок «Ещё щенки» ——— */
.mas-puppy-more-block {
	margin-top: 32px;
}

.mas-puppy-more-title {
	font-family: "Montserrat Alternates", Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #3c2f2f;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mas-puppy-more-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background: linear-gradient(to right, rgba(200,122,69,0.35), transparent);
	border-radius: 2px;
}

.mas-puppy-more-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 600px) {
	.mas-puppy-more-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.mas-puppy-more-card {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(200,122,69,0.14);
	box-shadow: 0 2px 12px rgba(60,47,47,0.06);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s, box-shadow 0.18s;
}

.mas-puppy-more-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(60,47,47,0.13);
}

.mas-puppy-more-img-wrap {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #ede4dc;
}

.mas-puppy-more-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mas-puppy-more-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	background: linear-gradient(145deg, #ede4dc, #f5ebe3);
}

.mas-puppy-more-body {
	padding: 12px 14px 14px;
	flex: 1;
}

.mas-puppy-more-name {
	font-family: "Montserrat Alternates", Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #3c2f2f;
	line-height: 1.3;
	margin: 0 0 4px;
}

.mas-puppy-more-sub {
	font-size: 12px;
	color: #9a8878;
	margin: 0;
}

/* Зона под контент Elementor — без наших жёстких ограничений */
.mas-puppy-elementor-zone {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px 48px;
}
