.acc{
  margin: 16px 0;
}

.acc__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.acc__title{
  font-size:18px;
  line-height:1.2;
  margin:0;
}

.acc__grid{
  --acc-cols: 4;
  display:grid;
  grid-template-columns: repeat(var(--acc-cols), minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 1199px){
  .acc__grid{ --acc-cols: 3; }
}
@media (max-width: 991px){
  .acc__grid{ --acc-cols: 2; }
}
@media (max-width: 600px){
  .acc__grid{ --acc-cols: 1; }
}

.acc__swiper{
  position:relative;
}



.acc-card{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.acc-card__media{
  position:relative;
  aspect-ratio: 1 / 1;
  background:rgba(0,0,0,.03);
}

.acc-card__media-link{
  position:absolute;
  inset:0;
  display:block;
}

.acc-card__img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  padding:10px;
}

.acc-card__img--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  color:rgba(0,0,0,.5);
}

.acc-card__badge{
  position:absolute;
  left:8px;
  top:8px;
  z-index:2;
}

.acc-card__side-icons{
  position:absolute;
  right:8px;
  top:8px;
  z-index:2;
}

.acc-card__body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* цена-фолбек */
.acc-card__price-current--empty{
  font-weight:700;
}

.acc-card__title{
  font-size:14px;
  line-height:1.25;
}

.acc-card__title-link{
  text-decoration:none;
  color:inherit;
}

.acc-card__subtitle{
  font-size:13px;
  opacity:.75;
}

.acc-card__meta{
  font-size:12px;
  opacity:.95;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.acc-card__meta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.acc-card__article{
  opacity:.8;
}

/* действия */
.acc-card__actions{
  margin-top:4px;
}

/* SKU блок */
.acc-card__sku{
  margin-top:8px;
  padding-top:10px;
  border-top:1px dashed rgba(0,0,0,.15);
}

.acc-card__mods-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-size:13px;
  text-decoration:none;
}

.acc-card__mods-count{
  display:inline-flex;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(0,0,0,.08);
  align-items:center;
  justify-content:center;
  font-size:12px;
}

/* ---- СБРОСЫ: чтобы “каталожные” классы темы не переоформляли наш блок ---- */
.acc .catalog-block__info-bottom,
.acc .catalog-block__info-bottom-wrapper{
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  box-shadow:none;
}
/* ===== Native horizontal scroll вместо Swiper ===== */

.acc__scroll-wrap{
  position: relative;
}

.acc__scroll{
  display: flex;
  gap: var(--acc-gap, 12px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  /* приятное "прилипание" как у слайдера */
  

  /* чтобы стрелки/drag не дергали верстку */
  padding-bottom: 8px;

  /* drag-мышью */
  cursor: grab;
  user-select: none;
}

.acc__scroll.is-dragging{
  cursor: grabbing;
}

/* элемент в скролле */
.acc__scroll-item{
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ширина элемента: "как Swiper breakpoints" через CSS vars */
@media (min-width: 1200px){
  .acc__scroll{ --acc-visible: var(--acc-v-1200, 4); }
}
@media (max-width: 1199px){
  .acc__scroll{ --acc-visible: var(--acc-v-992, 3); }
}
@media (max-width: 991px){
  .acc__scroll{ --acc-visible: var(--acc-v-768, 2); }
}
@media (max-width: 767px){
  .acc__scroll{ --acc-visible: var(--acc-v-600, 1); }
}

/* итоговая ширина карточки */
.acc__scroll-item{
  flex-basis: calc(
    (100% - (var(--acc-gap, 12px) * (var(--acc-visible, 1) - 1)))
    / var(--acc-visible, 1)
  );
}

/* Firefox */
.acc__scroll{
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.35) rgba(0,0,0,.10);
  scrollbar-gutter: stable; /* чтобы место под полосу было стабильным */
}

/* Chrome / Edge / Safari */
.acc__scroll::-webkit-scrollbar{
  height: 10px;
}
.acc__scroll::-webkit-scrollbar-track{
  background: rgba(0,0,0,.10);
  border-radius: 999px;
}
.acc__scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.35);
  border-radius: 999px;
}
.acc__scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(0,0,0,.45);
}
/* FIX: запас справа, чтобы последняя карточка не резалась */
.acc__scroll{
  box-sizing: border-box;
  padding-right: 12px;
  scroll-padding-right: 12px;
}

.acc__scroll::after{
  content: "";
  flex: 0 0 12px;
}

/* disabled-state для стрелок аксессуаров */
.acc__nav-btn.is-disabled,
.acc__nav-btn.swiper-button-disabled{
  opacity: .35;
  pointer-events: none;
  cursor: default;
}
/* V1: clean cards */
.acc{margin:24px 0}
.acc__title{margin:0 0 12px}

.acc__grid{display:grid;gap:14px}
@media (min-width: 0px){.acc__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width: 768px){.acc__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width: 1200px){.acc__grid{grid-template-columns:repeat(var(--acc-cols,4),minmax(0,1fr))}}

.acc-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition:transform .15s ease, box-shadow .15s ease;
}
.acc-card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.10)}

.acc-card__media{position:relative}
.acc-card__img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff}
.acc-card__body{padding:12px}
.acc-card__title{margin-top:8px}
.acc-card__title-link{display:block;line-height:1.25;text-decoration:none}
.acc-card__subtitle{margin-top:6px;opacity:.75}
.acc-card__actions{margin-top:10px}
/* ============================================================
   ACC — compact override (вставить В САМЫЙ НИЗ после V1)
   ============================================================ */

.acc[data-acc-block]{
  margin: 12px 0 !important; /* было 24/16 */
}

.acc[data-acc-block] .acc__head{
  margin-bottom: 8px !important; /* было 12 */
  gap: 8px !important;          /* было 12 */
}

/* меньше зазоры и ниже скроллбар */
.acc[data-acc-block] .acc__scroll{
  --acc-gap: 8px !important;     /* было 12 */
  padding-bottom: 4px !important;/* было 8 */
}

/* делаем карточку ниже: уменьшаем высоту медиа (квадрат -> 4/3) */
.acc[data-acc-block] .acc-card__media{
  aspect-ratio: 4 / 3 !important; /* было 1/1 */
}

.acc[data-acc-block] .acc-card__img{
  padding: 6px !important; /* было 10 */
}

/* уплотняем тело карточки */
.acc[data-acc-block] .acc-card__body{
  padding: 10px !important; /* было 12 */
  gap: 6px !important;      /* было 8 */
}

/* заголовок чуть компактнее + максимум 2 строки */
.acc[data-acc-block] .acc-card__title{
  font-size: 13px !important; /* было 14 */
  line-height: 1.2 !important;
}

.acc[data-acc-block] .acc-card__title-link span{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* мета плотнее */
.acc[data-acc-block] .acc-card__meta{
  font-size: 11px !important; /* было 12 */
  gap: 4px !important;        /* было 6 */
}

.acc[data-acc-block] .acc-card__meta-row{
  gap: 8px !important; /* было 10 */
}

/* действия: меньше отступ сверху (у тебя V1 ставит 10px) */
.acc[data-acc-block] .acc-card__actions{
  margin-top: 6px !important;
}

/* скроллбар тоньше */
.acc[data-acc-block] .acc__scroll::-webkit-scrollbar{
  height: 6px !important; /* было 10 */
}
/* FIX: чтобы hover-подъем/тень карточки не обрезались внутри горизонтального скролла */
.acc__scroll-wrap{
  padding-top: 12px;
}

.acc__scroll{
  margin-top: -12px;
  padding-top: 12px;
}
/* как на детальной: серый фон + “убираем” белый фон картинки через blend */
.acc[data-acc-block] .acc-card__media{
  background: #f8f8fc !important;   /* подложка как в галерее */
  isolation: isolate;              /* чтобы blending был только внутри блока */
}

.acc[data-acc-block] .acc-card__img{
  background: transparent !important;
  mix-blend-mode: multiply;        /* белый станет цветом подложки */
  padding: 0 !important;           /* чтобы не было “серой рамки” от padding */
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}