/* Mindreks tootegrupid – kujundus eelvaate põhjal. Fondid ja põhivärv tulevad WoodMarti teemast. */
.mm-tooted {
	--mm-text: #171717;
	--mm-muted: #626262;
	--mm-soft: #f7f7f7;
	--mm-line: #e7e7e7;
	--mm-red: var(--wd-primary-color, #e30613);
	--mm-red-dark: var(--btn-accented-bgcolor-hover, #c12505);
	--mm-tint: #fff5f4;
	color: var(--mm-text);
	font-size: 15px;
	line-height: 1.5;
}
.mm-tooted *, .mm-tooted *::before, .mm-tooted *::after { box-sizing: border-box; }
.mm-tooted a:focus-visible { outline: 3px solid var(--mm-red); outline-offset: 4px; }
.mm-tooted img { display: block; }

/* --- Pealeht: kaardid --- */
.mm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mm-card {
	display: flex; flex-direction: column; align-items: flex-start;
	min-height: 260px; padding: 22px;
	border: 1px solid var(--mm-line); border-radius: 16px; background: #fff;
	color: var(--mm-text) !important; text-decoration: none !important;
	transition: background-color .15s, border-color .15s;
}
.mm-card:hover { background: var(--mm-tint); border-color: var(--mm-red); }
.mm-card__img { width: 110px; height: 100px; object-fit: contain; object-position: left center; margin-bottom: 16px; }
.mm-tooted .mm-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 9px; overflow-wrap: anywhere; color: var(--mm-text); }
.mm-card__text { margin: 0; font-size: 14px; color: var(--mm-muted); }

.mm-smoker {
	display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center;
	margin-top: 32px; padding: 28px;
	border: 1px solid var(--mm-line); border-radius: 16px; background: var(--mm-soft);
	color: var(--mm-text) !important; text-decoration: none !important;
	transition: border-color .15s;
}
.mm-smoker:hover { border-color: var(--mm-red); }
.mm-smoker__img { width: 170px; height: 170px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }
.mm-tooted .mm-smoker__title { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 0 0 10px; color: var(--mm-text); }
.mm-smoker__text { font-size: 15px; color: var(--mm-muted); margin: 0; }

/* --- Kategoorialeht --- */
.mm-back {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; margin: 0 0 28px;
	border: 1px solid var(--mm-line); border-radius: 35px; background: #fff;
	color: var(--mm-text) !important; font-weight: 700; font-size: 14px; text-decoration: none !important;
}
.mm-back:hover { background: var(--mm-soft); border-color: var(--mm-muted); }

.mm-intro { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 32px; }
.mm-intro__img { width: 126px; height: 150px; object-fit: contain; }
.mm-tooted .mm-intro__title { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 10px; color: var(--mm-text); }
.mm-intro__text { color: var(--mm-muted); max-width: 760px; font-size: 16px; }
.mm-intro__text p:last-child { margin-bottom: 0; }

.mm-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.mm-subnav__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 24px;
	border: 2px solid var(--mm-red); border-radius: 35px; background: #fff;
	color: var(--mm-red) !important; font-weight: 700; font-size: 14px; line-height: 1.3;
	text-decoration: none !important; overflow-wrap: anywhere;
}
.mm-subnav__link:hover { background: var(--mm-red); color: #fff !important; }

.mm-section { margin: 0 0 56px; scroll-margin-top: calc(var(--wd-header-sticky-h, 60px) + var(--wd-admin-bar-h, 0px) + 32px); }
.mm-tooted .mm-section__title { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 0 0 22px; overflow-wrap: anywhere; color: var(--mm-text); }
.mm-section__intro { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 25px; align-items: center; margin: 0 0 24px; }
.mm-section__img { width: 150px; height: 185px; object-fit: contain; }
.mm-tooted .mm-section__intro--noimg { grid-template-columns: 1fr; }
.mm-section__text { color: var(--mm-muted); max-width: 720px; }
.mm-section__text p { margin: 0 0 10px; }
.mm-section__text p:last-child { margin-bottom: 0; }

/* --- Tootetabel --- */
.mm-table { border-top: 1px solid var(--mm-line); }
.mm-table__head, .mm-row {
	display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px 180px; gap: 18px; align-items: center;
	border-bottom: 1px solid var(--mm-line);
}
.mm-tooted--novol .mm-table__head, .mm-tooted--novol .mm-row { grid-template-columns: minmax(0, 1fr) 130px 180px; }
.mm-table__head { padding: 12px 0; font-size: 13px; color: var(--mm-muted); }
.mm-row { padding: 20px 0; }
.mm-row__vol { font-size: 22px; font-weight: 700; white-space: nowrap; }
.mm-tooted .mm-row__name { font-size: 16px; line-height: 1.4; font-weight: 700; margin: 0 0 6px; }
.mm-row__name a { color: var(--mm-text) !important; text-decoration: none !important; }
.mm-row__name a:hover { color: var(--mm-red) !important; }
.mm-row__desc p { font-size: 14px; color: var(--mm-muted); margin: 0; }
.mm-row__price { font-size: 18px; font-weight: 700; color: var(--mm-text); font-variant-numeric: tabular-nums; }
.mm-row__price .price, .mm-row__price .amount { color: inherit; font-weight: inherit; }
.mm-row__price del { display: block; order: 2; font-size: 13px; font-weight: 400; color: var(--mm-muted); }
.mm-row__price ins { text-decoration: none; }
.mm-row__price .price, .mm-row__price { display: flex; flex-direction: column; }
.mm-row__price ins { order: 1; }
.mm-row__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
	border-radius: 35px; background: var(--mm-red); color: #fff !important;
	font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; text-align: center;
}

.mm-row > .mm-row__btn { justify-self: end; white-space: normal; }
.mm-row__btn:hover { background: var(--mm-red-dark); }

/* --- Responsiivsus --- */
@media (max-width: 1024px) {
	.mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-table__head, .mm-row { grid-template-columns: 80px minmax(0, 1fr) 110px; gap: 12px; }
	.mm-tooted--novol .mm-table__head, .mm-tooted--novol .mm-row { grid-template-columns: minmax(0, 1fr) 110px; }
	.mm-table__head span:last-child { display: none; }
	.mm-row__btn { grid-column: 2 / -1; justify-self: start; }
	.mm-tooted--novol .mm-row__btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.mm-intro { grid-template-columns: 1fr; gap: 12px; }
	.mm-section__intro { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
	.mm-intro__img { width: 80px; height: 100px; }
	.mm-section__img { width: 90px; height: 120px; }
	.mm-tooted .mm-intro__title { font-size: 24px; }
	.mm-tooted .mm-section__title { font-size: 21px; }
	.mm-smoker { grid-template-columns: 110px minmax(0, 1fr); padding: 20px; gap: 20px; }
	.mm-smoker__img { width: 110px; height: 140px; }
	.mm-subnav__link { flex: 1 1 auto; padding: 10px 16px; }
	.mm-table__head { display: none; }
	.mm-row, .mm-tooted--novol .mm-row { grid-template-columns: 1fr auto; gap: 10px; }
	.mm-row__vol { grid-column: 1; grid-row: 1; font-size: 20px; }
	.mm-row__desc { grid-column: 1 / -1; grid-row: 2; }
	.mm-row__price { grid-column: 1; grid-row: 3; }
	.mm-row__btn, .mm-tooted--novol .mm-row__btn { grid-column: 2; grid-row: 3; justify-self: end; }
	.mm-tooted--novol .mm-row__desc { grid-row: 1; }
	.mm-tooted--novol .mm-row__price, .mm-tooted--novol .mm-row__btn { grid-row: 2; }
}
@media (max-width: 480px) {
	.mm-grid { grid-template-columns: 1fr; }
	.mm-card { min-height: 0; display: grid; grid-template-columns: 78px 1fr; gap: 0 16px; padding: 18px; }
	.mm-card__img { width: 78px; height: 96px; grid-row: 1 / 3; margin: 0; }
	.mm-smoker { grid-template-columns: 1fr; }
	.mm-smoker__img { width: 140px; height: 150px; }
}

.mm-tooted .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
