/* ==========================================================================
   «Последние отзывы» внизу раздела каталога — в стиле карточек сайта
   (белые карточки, рамка #ededed, скругление 8px, красный #dc2f2f).
   ========================================================================== */
.cm-rf { --cm-rf-red: var(--theme-base-color, #dc2f2f); margin: 48px 0 40px; color: #333; }
.cm-rf__top {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
	margin: 0 0 16px; padding: 20px 24px; border: 1px solid #ededed; border-radius: 8px; background: #fff;
}
.cm-rf__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; color: #333; }
.cm-rf__summary { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #777; }
.cm-rf__avg { padding: 4px 10px; border-radius: 6px; background: #eef8ef; color: #2e9b42; font-weight: 700; }

.cm-rf__list { display: flex; flex-direction: column; gap: 12px; }
.cm-rf__item {
	display: grid; grid-template-columns: minmax(300px, 340px) 1fr; gap: 0;
	border: 1px solid #ededed; border-radius: 8px; background: #fff; overflow: hidden;
	transition: box-shadow .25s ease;
}
.cm-rf__item[hidden] { display: none; }
@media (hover: hover) { .cm-rf__item:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .06); } }

/* товар */
.cm-rf__product { display: flex; gap: 18px; padding: 24px; border-right: 1px solid #f0f0f0; }
.cm-rf__pic { flex: 0 0 96px; display: flex; align-items: flex-start; justify-content: center; }
.cm-rf__pic img { display: block; width: 96px; height: 150px; object-fit: contain; }
.cm-rf__pinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-rf__score { display: flex; align-items: center; gap: 10px; }
.cm-rf__num {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 2px solid #3bb54a; border-radius: 50%; font-size: 17px; font-weight: 700; color: #333;
}
.cm-rf__score--mid .cm-rf__num { border-color: #f2a51a; }
.cm-rf__score--low .cm-rf__num { border-color: var(--cm-rf-red); }
.cm-rf__score-txt { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: #555; }
.cm-rf__stars { font-size: 13px; letter-spacing: 1px; color: #dcdcdc; }
.cm-rf__star.is-on { color: #f6b400; }
.cm-rf__stock { font-size: 14px; font-weight: 600; color: #2e9b42; }
.cm-rf__stock--no { color: #999; }
.cm-rf__pname {
	font-size: 15px; line-height: 1.35; font-weight: 600; color: #333 !important; text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-rf__pname:hover { color: var(--cm-rf-red) !important; }
.cm-rf__price { font-size: 22px; line-height: 1.2; font-weight: 700; color: #333; }
.cm-rf__go { align-self: flex-start; display: inline-flex !important; align-items: center; gap: 8px; margin-top: 4px; }

/* отзыв */
.cm-rf__review { min-width: 0; padding: 24px 28px; }
.cm-rf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.cm-rf__author { font-size: 18px; font-weight: 700; color: #333; }
.cm-rf__date { flex: none; font-size: 14px; color: #999; }
.cm-rf__body { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cm-rf__body.with-photos { grid-template-columns: minmax(0, 1fr) auto; }
.cm-rf__texts { min-width: 0; }
.cm-rf__part + .cm-rf__part { margin-top: 12px; }
.cm-rf__label { margin: 0 0 4px; font-size: 14px; color: #999; }
.cm-rf__text {
	font-size: 15px; line-height: 1.5; color: #333;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-rf__item.is-open .cm-rf__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cm-rf__more {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none;
	font: inherit; font-size: 15px; font-weight: 600; color: var(--cm-rf-red); cursor: pointer;
}
.cm-rf__more[hidden] { display: none; }
.cm-rf__more span { font-size: 18px; line-height: 1; transition: transform .2s; }
.cm-rf__more:hover span { transform: translateX(3px); }
.cm-rf__photos { min-width: 0; }
.cm-rf__grid { display: grid; grid-template-columns: repeat(2, 84px); gap: 8px; }
.cm-rf__photo {
	position: relative; display: block; width: 84px; height: 104px; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
	background: #f3f3f3; cursor: zoom-in;
}
.cm-rf__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cm-rf__photo:hover img { transform: scale(1.06); }
.cm-rf__photo:focus-visible, .cm-rf__more:focus-visible { outline: 2px solid var(--cm-rf-red); outline-offset: 2px; }

.cm-rf__foot { display: flex; justify-content: center; margin-top: 20px; }
.cm-rf__all { min-width: 260px; }

@media (max-width: 991px) {
	.cm-rf__item { grid-template-columns: 1fr; }
	.cm-rf__product { border-right: 0; border-bottom: 1px solid #f0f0f0; }
}
@media (max-width: 600px) {
	.cm-rf { margin: 32px 0 28px; }
	.cm-rf__top { padding: 16px; }
	.cm-rf__title { font-size: 20px; }
	.cm-rf__product, .cm-rf__review { padding: 16px; }
	.cm-rf__pic { flex-basis: 72px; }
	.cm-rf__pic img { width: 72px; height: 112px; }
	.cm-rf__price { font-size: 19px; }
	.cm-rf__body.with-photos { grid-template-columns: 1fr; }
	.cm-rf__grid { grid-template-columns: repeat(auto-fill, 72px); }
	.cm-rf__photo { width: 72px; height: 90px; }
	.cm-rf__go { align-self: stretch; justify-content: center; }
}
