/* TMIX v7 preview: «Магазин рекомендует». Only with ?tmix_v7=1. */
.tmix-v7-previewbar{
  position:relative;z-index:50;
  background:#1f3a5f;color:#fff;
  font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;
  padding:8px 16px;text-align:center;
}
.tmix-v7-previewbar a{color:#ffd27a;text-decoration:underline}
.tmix-v7-rec{
  margin:28px 0 8px;
  padding:0;
}
.tmix-v7-rec__head{margin:0 0 14px}
.tmix-v7-rec__title{
  font-size:22px;line-height:1.25;font-weight:700;
  color:#222;margin:0;
}
.tmix-v7-rec__track{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:4px 2px 12px;
  scrollbar-width:thin;
  touch-action:pan-x;
}
.tmix-v7-rec__card{
  position:relative;
  flex:0 0 168px;
  width:168px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:#222;
  cursor:pointer;
  background:#fff;
  border:1px solid #ececec;
  border-radius:10px;
  padding:10px 10px 12px;
  box-sizing:border-box;
  transition:box-shadow .15s ease,border-color .15s ease;
}
.tmix-v7-rec__card:hover{
  border-color:#d9d9d9;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  text-decoration:none;
  color:#222;
}
.tmix-v7-rec__sticker{
  position:absolute;top:8px;left:8px;z-index:2;
  font-size:11px;line-height:1;font-weight:700;
  padding:4px 7px;border-radius:4px;color:#fff;
}
.tmix-v7-rec__sticker--hit{background:#e85d04}
.tmix-v7-rec__sticker--rec{background:#2b8a3e}
.tmix-v7-rec__img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  background:#f7f7f7;
  border-radius:8px;
  overflow:hidden;
  margin:0 0 8px;
}
.tmix-v7-rec__img img,
.tmix-v7-rec__noimg{
  display:block;width:100%;height:100%;object-fit:contain;
  -webkit-user-drag:none;user-select:none;pointer-events:none;
}
.tmix-v7-rec__noimg{background:#efefef}
.tmix-v7-rec__name{
  font-size:13px;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;min-height:2.7em;margin:0 0 8px;
  color:#222;
}
.tmix-v7-rec__prices{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:auto 0 4px}
.tmix-v7-rec__price{font-size:16px;font-weight:700;color:#1a1a1a}
.tmix-v7-rec__old{font-size:13px;color:#999;text-decoration:line-through}
.tmix-v7-rec__avail{font-size:12px;color:#2b8a3e}
@media (min-width:768px){
  .tmix-v7-rec__title{font-size:26px}
  .tmix-v7-rec__card{flex-basis:200px;width:200px}
  .tmix-v7-rec__track{gap:16px}
}
@media (min-width:1440px){
  .tmix-v7-rec__card{flex-basis:210px;width:210px}
}

/* После выноса описания в #tmx-sec лента должна визуально идти сразу под ним. */
.tmix-v7-rec--after-desc{margin-top:8px;margin-bottom:28px}
@media (min-width:992px){
  .tmix-v7-rec--after-desc{margin-top:16px;margin-bottom:32px}
}
