/* market/static/market/css/product-detail.css */

/* общий контейнер PDP */
.mkf-pdp{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== HERO: 3 columns (gallery / keyfacts / buybox) ===== */
.mkf-pdp__hero{
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr minmax(320px, 380px);
  gap: 24px;
  align-items: start;
}

/* medium screens: 2 cols, buybox goes full width */
@media (max-width: 1100px){
  .mkf-pdp__hero{
    grid-template-columns: minmax(320px, 520px) 1fr;
  }
  .mkf-buybox{
    grid-column: 1 / -1;
  }
}

/* small screens: stack */
@media (max-width: 820px){
  .mkf-pdp__hero{
    grid-template-columns: 1fr;
  }
}

/* ===== Gallery ===== */
.mkf-gallery{
  background: var(--mkf-surface);
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  padding: 12px;
  width: 100%;
}

.mkf-gallery__stage{
  position: relative;
  height: 420px;
  background: var(--mkf-thumb);
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

@media (max-width: 820px){
  .mkf-gallery__stage{
    height: 320px;
  }
}

.mkf-gallery__zoom{
  display:block;
  width:100%;
  height:100%;
}

.mkf-gallery__stage img{
  width:100%;
  height:100%;
  object-fit: contain;
}

.mkf-gallery__thumbs{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  overflow-x:auto;
  padding: 2px 2px 6px; 
}

.mkf-gallery__thumb{
  appearance: none;
  border: 1px solid var(--mkf-border);
  border-radius: 10px;
  background: var(--mkf-thumb);
  padding: 6px;
  cursor: pointer;
}

.mkf-gallery__thumb.is-active{
  outline: none;
  box-shadow: 0 0 0 2px var(--mkf-accent);
}

.mkf-gallery__thumb img{
  width: 68px;
  height: 68px;
  object-fit: contain;
  display:block;
}

/* ===== Key facts (middle column) ===== */
.mkf-keyfacts{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mkf-keyfacts__title{
  margin: 0;
}

.mkf-keyfacts__meta{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.mkf-keyfacts__meta-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
}

.mkf-keyfacts__meta-val{
  font-weight: 700;
}

/* meta chip-link (brand) */
.mkf-chiplink{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 999px;

  border: 1px solid var(--mkf-border);
  background: var(--mkf-surface);
  color: var(--mkf-on-surface);

  font-weight: 800;
  font-size: 12px;
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;
}

/* PDP: brand logo inside chip */
.mkf-chiplink__logo{
  max-width: 140px;
  height: 18px;
  width: auto;
  object-fit: contain;
  display: block;

  transition:
    transform .18s ease,
    opacity .18s ease,
    filter .18s ease;
}

/* subtle hover */
.mkf-chiplink:hover .mkf-chiplink__logo{
  transform: translateY(-1px) scale(1.05);
  opacity: 1;
  filter: saturate(1.08);
}

.mkf-chiplink:hover{
  border-color: color-mix(in srgb, var(--mkf-accent) 35%, var(--mkf-border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mkf-accent) 25%, transparent);
}

.mkf-chiplink:active{
  transform: translateY(1px);
}

.mkf-keyfacts__specs{
  background: var(--mkf-surface);
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px; 
}

.mkf-keyfacts__h{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}

.mkf-keyfacts__dl{
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mkf-keyfacts__row{
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr); /* было ... auto */
  gap: 14px;
  align-items: baseline;
  min-width: 0;
}

.mkf-keyfacts__row dt{
  position: relative;
  margin: 0;
  color: var(--mkf-muted);
  min-width: 0;
  padding-right: 10px;
}

.mkf-keyfacts__row dt::after{
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  bottom: .35em;
  border-bottom: 1px dotted var(--mkf-border);
  z-index: 0;
}

.mkf-keyfacts__row dt > span{
  position: relative;
  z-index: 1;
  background: var(--mkf-surface);
  padding: 0 8px 0 6px;
}

.mkf-keyfacts__row dd{
  margin: 0;
  font-weight: 700;
  color: var(--mkf-on-surface);

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}

.mkf-keyfacts__row dd[data-full]:hover::after{
  content: attr(data-full);
  
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;

  background: var(--mkf-surface);
  border: 1px solid var(--mkf-border);
  border-radius: 10px;
  padding: 8px 10px;

  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;

  white-space: normal;
  max-width: 420px;
  z-index: 10;

  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.mkf-keyfacts__all{
  display: inline-flex;
  margin-top: 0;
  padding-left: 6px;
  font-weight: 450;
  text-decoration: none;
}

.mkf-keyfacts__badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mkf-badge{
  display:inline-flex;
  border: 1px solid var(--mkf-border);
  background: var(--mkf-surface);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

/* ===== Buybox ===== */
.mkf-buybox{
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  padding: 16px;

  position: sticky;
  top: 16px;
}

/* PDP: use catalog-card price style inside buybox, but without left divider */
.mkf-buybox__price-card{
  padding-left: 0 !important;
}
.mkf-buybox__price-card::before{
  display: none !important;
}

/* PDP: avoid vw-based resizing from card__price */
.mkf-buybox__price-card{
  font-size: 32px;          /* как в карточке по смыслу */
  line-height: 1;
  margin-top: 0;
}

@media (max-width: 1100px){
  .mkf-buybox{
    position: relative;
    top: auto;
  }
}

.mkf-buybox__price{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* PDP buybox: currency smaller */
.mkf-buybox__price-card .price-currency{
  font-size: 0.7em;
  margin-left: 2px;
}

.mkf-buybox__vat{
  font-size: 12px;
}

/* Buybox: align "₽ за ед." in one line */
.mkf-buybox__price-card{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;                 /* расстояние между рублями/валютой/за */
  white-space: nowrap;      /* не переносить "₽ за м" */
}

/* smaller cents */
.mkf-buybox__price-card .price-cents{
  font-size: 0.55em;
  font-weight: 800;
  position: relative;
  top: -0.15em;
}

/* Buybox: "за шт" with emphasized unit */
.mkf-buybox__price-card .mkf-price__per{
  margin-left: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.mkf-buybox__price-card .mkf-price__per-label{
  font-size: 12px;          /* "за" — как сейчас */
  font-weight: 500;
  color: var(--mkf-muted);
}

.mkf-buybox__price-card .mkf-price__per-unit{
  font-size: 16px;          /* ↑ ед. измерения крупнее */
  font-weight: 800;
  line-height: 1;
  color: var(--mkf-on-surface);
}

/* qty + button */
.mkf-buy{
  display:flex;
  gap: 12px;
  align-items:center;
}

.mkf-buy .qty{
  width: 96px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--mkf-input-border);
  background: var(--mkf-input);
  color: var(--mkf-on-surface);
}

/* copy helper */
.mkf-copy{
  margin-left: 8px;
  border: 1px solid var(--mkf-border);
  background: var(--mkf-thumb);
  border-radius: 8px;
  padding: 2px 6px;
  cursor:pointer;
}

.mkf-copy.is-copied{
  outline: 2px solid var(--mkf-accent);
  outline-offset: 1px;
}

/* “Atlases” under CTA */
.mkf-atlases{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.mkf-atlas{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--mkf-border);
}

.mkf-atlas__icon{
  width: 28px;
  height: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: var(--mkf-thumb);
  border: 1px solid var(--mkf-border);
  flex: 0 0 auto;
}

.mkf-atlas__title{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}

.mkf-atlas__text{
  font-size: 12px;
  line-height: 1.25;
  margin-top: 2px;
}

.mkf-atlas__text .mkf-link{
  font-weight: 450;
  text-decoration: none;
}
.mkf-atlas__text .mkf-link:hover{
  text-decoration: underline;
}

/* ===== Atlas: stock by city (details) ===== */

.mkf-atlas__details{
  margin-top: 6px;
}

/* делаем summary как маленькую “кнопку-ссылку” в стиле UI */
.mkf-atlas__more{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;

  color: var(--mkf-on-surface);
  cursor: pointer;
  user-select: none;

  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--mkf-border);
  background: var(--mkf-surface);
}

.mkf-atlas__more:hover{
  filter: brightness(0.98);
}

/* убираем стандартный маркер, рисуем свой */
.mkf-atlas__more::-webkit-details-marker{
  display: none;
}
.mkf-atlas__more::marker{
  content: "";
}

/* стрелка */
.mkf-atlas__more::after{
  content: "▾";
  opacity: .65;
  transform: translateY(-1px);
}

/* когда details открыт — стрелку вверх */
.mkf-atlas__details[open] > .mkf-atlas__more::after{
  content: "▴";
}

/* контейнер со списком городов */
.mkf-atlas__cities{
  margin-top: 8px;
  padding: 10px;

  border: 1px solid var(--mkf-border);
  border-radius: 12px;
  background: var(--mkf-thumb);

  display: grid;
  gap: 8px;
}

/* строка города: как мини-ключ/значение, в стиле меты */
.mkf-atlas__city{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;

  font-size: 12px;
  line-height: 1.25;
}

.mkf-atlas__city span{
  color: var(--mkf-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkf-atlas__city strong{
  font-weight: 800;
  color: var(--mkf-on-surface);
  white-space: nowrap;
}

/* ===== Разбивка остатков по срокам внутри города ===== */

.mkf-atlas__city-breakdown{
  margin: 6px 0 10px;
  padding-left: 12px;

  border-left: 2px dashed var(--mkf-border);

  display: grid;
  gap: 6px;
}

.mkf-atlas__city-break{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;

  font-size: 12px;
  line-height: 1.25;
}

.mkf-atlas__city-break span{
  color: var(--mkf-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkf-atlas__city-break strong{
  font-weight: 700; /* чуть легче, чем у города */
  color: var(--mkf-on-surface);
  white-space: nowrap;
}

/* ===== Text block ===== */
.mkf-pdp__text{
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  padding: 16px;
}

.mkf-prose :first-child{ margin-top: 0; }
.mkf-prose :last-child{ margin-bottom: 0; }

/* ===== Tabs ===== */
/* чтобы якорь не попадал под фикс-хедер */
#pdp-tabs{
  scroll-margin-top: 220px; /* подгони: 110–160 */
}

.mkf-tabs{
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  overflow: hidden;
}

.mkf-tabs__bar{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  border-bottom: 1px solid var(--mkf-border);
  background: rgba(0,0,0,.02);
}

.mkf-tabs__tab{
  border: 1px solid var(--mkf-border);
  background: var(--mkf-surface);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.mkf-tabs__tab.is-active{
  outline: 2px solid var(--mkf-accent);
  outline-offset: 1px;
}

.mkf-tabs__body{
  padding: 14px 16px;
}

.mkf-tabs__pane{ display:none; }
.mkf-tabs__pane.is-active{ display:block; }

/* ===== Specs (tabs) ===== */

.mkf-specs-group{
  margin-bottom: 20px;
}

.mkf-specs-group__title{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

/* Список характеристик: на десктопе 2 колонки, на мобиле 1 */
.mkf-specs-list{
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2 колонки */
  column-gap: 40px;
  row-gap: 10px;
}

/* Одна строка внутри колонки */
.mkf-specs-row{
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;  /* имя тянется, значение по контенту */
  gap: 16px;
  align-items: baseline;
  min-width: 0;
}

/* Название */
.mkf-specs-row dt{
  position: relative;
  margin: 0;
  color: var(--mkf-muted);
  min-width: 0;
  padding-right: 10px;
}

/* Пунктир-лидеры (как в рефах) */
.mkf-specs-row dt::after{
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  bottom: .35em; /* под текст */
  border-bottom: 1px dotted var(--mkf-border);
  z-index: 0;
}

/* Текст названия перекрывает пунктир */
.mkf-specs-row dt > span{
  padding: 0 8px 0 6px;
  position: relative;
  z-index: 1;
  background: var(--mkf-surface);   /* важно: фон должен совпадать с табом */
  padding-right: 8px;
}

/* Значение */
.mkf-specs-row dd{
  margin: 0;
  font-weight: 700;
  color: var(--mkf-on-surface);
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space: nowrap;              /* чтобы значения не прыгали */
}

/* ===== Adaptive ===== */
@media (max-width: 980px){
  .mkf-specs-list{
    grid-template-columns: 1fr;     /* 1 колонка */
    column-gap: 0;
  }
}

@media (max-width: 700px){
  .mkf-specs-row{
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .mkf-specs-row dt::after{
    display: none;                  /* на мобиле лидеры убираем */
  }
  .mkf-specs-row dd{
    white-space: normal;
  }
}

/* ===== Logistics ===== */

.mkf-logi__title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.mkf-logi__base{
  margin-bottom: 18px;
}

/* ===== Logistics / Packs table ===== */

.mkf-packtbl-wrap{
  overflow-x: auto;
}

.mkf-packtbl{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

/* ===== Header ===== */
.mkf-packtbl thead th{
  background: var(--mkf-bg-soft, #f6f7f9);   /* заливка */
  color: var(--mkf-on-surface);
  font-weight: 600;
  text-align: left;                          /* ВАЖНО */
  padding: 12px 14px;
  border-bottom: 1px solid var(--mkf-border);
}

.mkf-packtbl thead th:first-child{
  border-top-left-radius: 12px;
}

.mkf-packtbl thead th:last-child{
  border-top-right-radius: 12px;
}

/* ===== Stub column (левая) ===== */
.mkf-packtbl__stub,
.mkf-packtbl tbody th{
  text-align: left;
  font-weight: 500;
  color: var(--mkf-muted);
  padding: 10px 14px;
  white-space: nowrap;
}

/* ===== Body cells ===== */
.mkf-packtbl td{
  padding: 10px 14px;
  font-weight: 400;              /* делаем тоньше */
  color: var(--mkf-on-surface);
  vertical-align: top;
}

/* ===== Grid lines ===== */
.mkf-packtbl tbody th,
.mkf-packtbl tbody td{
  border-bottom: 1px solid var(--mkf-border-soft, #e6e8ee);
}

/* ===== Last row cleanup ===== */
.mkf-packtbl tbody tr:last-child th,
.mkf-packtbl tbody tr:last-child td{
  border-bottom: none;
}

/* ===== Barcodes ===== */
.mkf-packtbl__barcodes{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkf-chip{
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--mkf-bg-soft, #f1f3f7);
  color: var(--mkf-muted);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .mkf-packtbl{
    font-size: 13px;
  }
}

/* ===== Docs ===== */
.mkf-docs{
  display: grid;
  gap: 18px;
}

.mkf-docs__group{
  padding-top: 6px;
}

.mkf-docs__title{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.mkf-docs__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mkf-doc{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--mkf-border);
  border-radius: 12px;
  background: var(--mkf-surface);
}

.mkf-doc__icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  font-size: 14px;
}

.mkf-doc__name{
  font-weight: 400;
  line-height: 1.25;
}

.mkf-doc__link{
  color: inherit;
  text-decoration: none;
}

.mkf-doc__link:hover{
  text-decoration: underline;
}

.mkf-doc__nolink{
  color: var(--mkf-muted);
}

.mkf-doc__meta{
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkf-doc__sep{
  opacity: .7;
}

.mkf-doc__btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--mkf-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--mkf-on-surface);
  font-weight: 600;
  background: var(--mkf-surface);
}

.mkf-doc__btn:hover{
  filter: brightness(0.98);
}

@media (max-width: 700px){
  .mkf-doc{
    grid-template-columns: 28px 1fr;
  }
  .mkf-doc__cta{
    grid-column: 2;
  }
}

/* ===== Downloads ===== */
.mkf-dl__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mkf-dl__item{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--mkf-border);
  border-radius: 12px;
  background: var(--mkf-surface);
}

.mkf-dl__icon{
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.03);
  font-size: 14px;
}

.mkf-dl__name{
  font-weight: 700;
  line-height: 1.25;
}

.mkf-dl__link{
  color: inherit;
  text-decoration: none;
}
.mkf-dl__link:hover{
  text-decoration: underline;
}

.mkf-dl__desc{
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.mkf-dl__meta{
  margin-top: 2px;
  font-size: 12px;
}

.mkf-dl__btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--mkf-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--mkf-on-surface);
  font-weight: 600;
  background: var(--mkf-surface);
}
.mkf-dl__btn:hover{
  filter: brightness(0.98);
}

@media (max-width: 700px){
  .mkf-dl__item{
    grid-template-columns: 28px 1fr;
  }
  .mkf-dl__cta{
    grid-column: 2;
  }
}

/* ===== Shelves (cross-sell placeholders) ===== */
.mkf-shelf{
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  padding: 16px;
}

/* ===== Design features (after advantages) ===== */

.mkf-features{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mkf-feature{
  border: 1px solid var(--mkf-border);
  border-radius: 14px;
  background: var(--mkf-surface);
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.mkf-feature__img{
  border-radius: 12px;
  overflow: hidden;
  background: var(--mkf-surface-2, #f6f7fb);
  border: 1px solid var(--mkf-border);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.mkf-feature__img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mkf-feature__ph{
  font-weight: 700;
  opacity: .35;
}

.mkf-feature__text{
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--mkf-on-surface);
}

@media (max-width: 980px){
  .mkf-features{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .mkf-features{ grid-template-columns: 1fr; }
}

/* ===== Shelf carousel ===== */

.mkf-carousel{
  overflow: hidden; /* чтобы ничего не торчало за края секции */
}

.mkf-carousel-wrap{
  position: relative;
}

/* Вуаль по краям */
.mkf-carousel-wrap::before,
.mkf-carousel-wrap::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 56px;
  z-index: 2;
  pointer-events:none;
}
.mkf-carousel-wrap::before{
  left:0;
  background: linear-gradient(to right, var(--mkf-surface), transparent);
}
.mkf-carousel-wrap::after{
  right:0;
  background: linear-gradient(to left, var(--mkf-surface), transparent);
}

/* Трек */
.mkf-carousel__track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 12px;

  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
.mkf-carousel__track::-webkit-scrollbar{ display:none; }

.mkf-carousel__item{
  scroll-snap-align: start;
  min-width: 0;
}

/* Кнопки поверх трека */
.mkf-carousel__btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--mkf-border);
  background: var(--mkf-surface);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  user-select: none;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    opacity .18s ease;
}

.mkf-carousel__btn--prev{ left: 8px; }
.mkf-carousel__btn--next{ right: 8px; }

.mkf-carousel__btn:hover:not(:disabled){
  transform: translateY(-50%) scale(1.05);
  box-shadow:
    0 6px 18px rgba(0,0,0,.12),
    0 2px 6px rgba(0,0,0,.08);
}

.mkf-carousel__btn:disabled{
  opacity: .35;
  cursor: default;
  box-shadow: none;
}

.mkf-carousel__btn.is-scrolling{
  background: var(--mkf-primary-soft, rgba(0,90,255,.08));
  box-shadow:
    0 0 0 1px rgba(0,90,255,.18) inset,
    0 6px 18px rgba(0,0,0,.12);
}

@media (max-width: 700px){
  .mkf-carousel__btn{ display:none; }
}

/* ===== Carousel header layout ===== */

.mkf-shelf__head{
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mkf-shelf__title{
  margin: 0;
}

.mkf-shelf__right{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* на узких экранах можно переносить в 2 строки */
@media (max-width: 700px){
  .mkf-shelf__head{
    align-items: flex-start;
  }
  .mkf-shelf__right{
    white-space: normal;
  }
}

/* ===== Price fit inside carousel cards ===== */

/* только для карточек, которые лежат в карусели */
.mkf-carousel .mkf-card{
  --pc-price: 26px; /* было 32px глобально, см. product-card.css */
}

/* убираем vw-зависимость, чтобы цена не раздувалась от ширины окна */
.mkf-carousel .mkf-card .card__price{
  font-size: var(--pc-price);
  gap: 3px;          /* чуть компактнее */
  padding-left: 12px; /* разделитель-черта ближе */
}

/* копейки/валюта тоже чуть компактнее */
.mkf-carousel .mkf-card .price-cents{ font-size: 0.58em; }
.mkf-carousel .mkf-card .price-currency{ font-size: 0.7em; margin-left: 2px; }

/* PDP atlas icons from sprite */
.mkf-atlas__ico{
  width: 18px;
  height: 18px;
  color: var(--mkf-muted, #6B7280);
}

.mkf-atlas__ico--inline{
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
}
