/* ============================================================
   Карточка товара Fabech Bazaar (собственный шаблон .mm-pdp).
   Раскладка наша — тема сюда не вмешивается.
   ============================================================ */

.mm-pdp { max-width: 1340px; margin: 0 auto; padding: 0 24px 64px; }

.mm-pdp__crumbs { padding: 18px 0; font-size: 12px; color: var(--mm-text-muted, #6b6b66); }
.mm-pdp__crumbs a { color: var(--mm-text-muted, #6b6b66); text-decoration: none; }
.mm-pdp__crumbs a:hover { color: var(--mm-accent, #4E0000); }

/* --- Сетка: галерея + колонка решения --- */
.mm-pdp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 44px;
	align-items: start;
}

/* --- Галерея --- */
.mm-pdp__gallery { display: flex; gap: 12px; align-items: flex-start; }
.mm-pdp__thumbs {
	display: flex; flex-direction: column; gap: 8px;
	width: 72px; flex-shrink: 0;
}
.mm-pdp__thumb {
	padding: 0; border: 1px solid transparent; background: none;
	cursor: pointer; line-height: 0; transition: border-color .15s;
}
.mm-pdp__thumb img { width: 100%; height: auto; display: block; }
.mm-pdp__thumb.is-active { border-color: #1a1a1a; }
.mm-pdp__thumb:hover { border-color: #b9b2ad; }

.mm-pdp__stage { position: relative; flex: 1; min-width: 0; background: var(--mm-surface, #f7f4f2); }
.mm-pdp__slide { display: none; margin: 0; }
.mm-pdp__slide.is-active { display: block; }
.mm-pdp__slide img { width: 100%; height: auto; display: block; }

.mm-pdp__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.85);
	font-size: 26px; line-height: 1; color: #1a1a1a; cursor: pointer;
	opacity: 0; transition: opacity .2s;
}
.mm-pdp__stage:hover .mm-pdp__nav { opacity: 1; }
.mm-pdp__nav--prev { left: 10px; }
.mm-pdp__nav--next { right: 10px; }

.mm-pdp__badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	background: var(--mm-accent, #4E0000); color: #fff;
	padding: 5px 10px; font-size: 10px; letter-spacing: .12em; font-weight: 700;
}

/* --- Колонка решения --- */
.mm-pdp__summary { padding-top: 4px; }

.mm-pdp__brand {
	display: inline-block; margin-bottom: 6px;
	font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
	color: #1a1a1a; text-decoration: none; font-weight: 700;
}
.mm-pdp__brand:hover { color: var(--mm-accent, #4E0000); }

.mm-pdp__title {
	font-family: var(--mm-font-display, Georgia, serif);
	font-size: 22px; line-height: 1.35; font-weight: 400;
	margin: 0 0 14px; color: #1a1a1a;
}

.mm-pdp__price { font-size: 20px; margin-bottom: 18px; color: #1a1a1a; }
.mm-pdp__price del { display: inline-block; font-size: 14px; opacity: .5; margin-right: 8px; }
.mm-pdp__price ins { text-decoration: none; font-weight: 700; color: var(--mm-accent, #4E0000); }

.mm-pdp__excerpt { font-size: 13px; line-height: 1.6; color: #4a4a4a; margin-bottom: 20px; }

/* Форма покупки */
.mm-pdp__form table.variations { width: 100%; border: 0; margin: 0 0 8px; }
.mm-pdp__form table.variations th,
.mm-pdp__form table.variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.mm-pdp__form table.variations th.label {
	padding-bottom: 6px;
	font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mm-text-muted, #6b6b66); font-weight: 700;
}
.mm-pdp__form table.variations tr { display: block; margin-bottom: 14px; }
.mm-pdp__form select {
	width: 100%; height: 50px; padding: 0 12px;
	border: 1px solid var(--mm-border, #e6dfdb); background: #fff;
	font-size: 15px; border-radius: 0;
}
.mm-pdp__form .quantity { display: none; }
.mm-pdp__form .button,
.mm-pdp__form button[type="submit"] {
	width: 100%; height: 54px; border-radius: 0;
	background: var(--mm-accent, #4E0000); color: #fff; border: 0;
	font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
	cursor: pointer;
}
.mm-pdp__form .button:hover { opacity: .9; }
.mm-pdp__form .woocommerce-variation-price { margin-bottom: 12px; font-size: 18px; }
.mm-pdp__form .reset_variations { font-size: 12px; color: var(--mm-text-muted, #6b6b66); }

.mm-pdp__meta { margin-top: 12px; font-size: 12px; color: var(--mm-text-muted, #6b6b66); }
.mm-pdp__stock--out { color: #b32d2e; }

.mm-pdp__vendor {
	display: flex; align-items: center; gap: 10px;
	margin-top: 16px; padding-top: 16px;
	border-top: 1px solid var(--mm-border, #e6dfdb); font-size: 13px;
}
.mm-pdp__vendor-label {
	font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mm-text-muted, #6b6b66);
}
.mm-pdp__vendor a { color: #1a1a1a; text-decoration: none; font-weight: 600; }
.mm-pdp__vendor a:hover { color: var(--mm-accent, #4E0000); }

.mm-pdp__note {
	margin-top: 16px; padding: 12px 14px;
	border: 1px solid var(--mm-border, #e6dfdb); background: var(--mm-surface, #f7f4f2);
	font-size: 13px; line-height: 1.5;
}
.mm-pdp__note p { margin: 0; }

/* --- Аккордеоны --- */
.mm-pdp .mm-accordions { margin-top: 24px; border-top: 1px solid var(--mm-border, #e6dfdb); }
.mm-pdp .mm-accordion { border-bottom: 1px solid var(--mm-border, #e6dfdb); }
.mm-pdp .mm-accordion summary {
	display: flex; justify-content: space-between; align-items: center;
	padding: 15px 0; cursor: pointer; list-style: none;
	font-size: 13px; font-weight: 700; color: #1a1a1a;
}
.mm-pdp .mm-accordion summary::-webkit-details-marker { display: none; }
.mm-pdp .mm-accordion summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--mm-text-muted, #6b6b66); }
.mm-pdp .mm-accordion[open] summary::after { content: "–"; }
.mm-pdp .mm-accordion__body { padding-bottom: 18px; font-size: 13px; line-height: 1.65; color: #3a3a3a; }
.mm-pdp .mm-accordion__body p:first-child { margin-top: 0; }
.mm-pdp .mm-accordion__body table { width: 100%; font-size: 13px; }
.mm-pdp .mm-accordion__body th { text-align: left; font-weight: 600; color: var(--mm-text-muted, #6b6b66); padding: 6px 12px 6px 0; }
.mm-pdp .mm-accordion__count {
	margin-left: 6px; padding: 1px 7px; border-radius: 9px;
	background: var(--mm-accent, #4E0000); color: #fff; font-size: 11px;
}

/* --- Похожие --- */
.mm-pdp .related > h2, .mm-pdp .upsells > h2 {
	text-align: center; margin: 56px 0 28px;
	font-family: var(--mm-font-display, Georgia, serif); font-weight: 400;
}

/* --- Планшет и мобильные --- */
@media (max-width: 1024px) {
	.mm-pdp__grid { grid-template-columns: 1fr; gap: 28px; }
	.mm-pdp__gallery { flex-direction: column-reverse; }
	.mm-pdp__thumbs { flex-direction: row; width: 100%; overflow-x: auto; }
	.mm-pdp__thumb { width: 68px; flex-shrink: 0; }
	.mm-pdp__nav { opacity: 1; }
}
@media (max-width: 600px) {
	.mm-pdp { padding: 0 12px 40px; }
	.mm-pdp__title { font-size: 19px; }
}

/* Условия доставки/оплаты продавца */
.mm-pdp__terms-title {
	margin: 14px 0 4px; font-size: 11px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--mm-text-muted, #6b6b66);
}
.mm-pdp__terms-title:first-child { margin-top: 0; }
.mm-pdp__terms-note {
	margin: 14px 0 0; padding-top: 10px;
	border-top: 1px solid var(--mm-border, #e6dfdb);
	font-size: 11px; color: var(--mm-text-muted, #6b6b66);
}
