#product-category-group.komplekt-listing-page .heading {
	font-family: "CPM", sans-serif;
	font-size: 16px;
	margin: 0px 0 15px;
}

#product-category-group.komplekt-listing-page #top-category .category-drop-menu .container {
  padding-left: 0;
  padding-right: 0;
}

#product-category-group.komplekt-listing-page #top-category .category-navigation .inner.komplekt-filter-inner {
  justify-content: space-between;
}

#product-category-group.komplekt-listing-page #top-category .category-navigation .inner.komplekt-filter-inner > .catalog-list,
#product-category-group.komplekt-listing-page #top-category .category-navigation .inner.komplekt-filter-inner > .sort {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

#product-category-group.komplekt-listing-page #top-category .category-navigation .inner.komplekt-filter-inner > .filter-list {
  flex: 0 0 auto;
  width: auto;
}

#product-category-group.komplekt-listing-page .new_set_child {
  margin-bottom: 10px;
}

#product-category-group.komplekt-listing-page #komplekt-filter-module.ocf-container {
  padding: 0;
  margin: 0;
}

#product-category-group.komplekt-listing-page #komplekt-filter-module .ocf-filter {
  margin-bottom: 0;
}

#product-category-group.komplekt-listing-page #komplekt-filter-module .ocf-filter-header .ocf-angle-down {
  transform: rotate(180deg);
  transition: none;
}

#product-category-group.komplekt-listing-page #komplekt-filter-module .ocf-filter.ocf-open .ocf-filter-header .ocf-angle-down {
  transform: rotate(180deg);
}

#product-category-group.komplekt-listing-page #komplekt-filter-module a.ocf-filter-discard {
  text-decoration: none;
  border: 0;
}

#product-category-group.komplekt-listing-page .komplekt-filter-link {
  font-family: "CPR", sans-serif;
  font-size: 13px;
  color: #878787;
  text-decoration: none;
}

#product-category-group.komplekt-listing-page .komplekt-filter-link:hover,
#product-category-group.komplekt-listing-page .komplekt-filter-link.active {
  color: #000;
  font-family: "CPM", sans-serif;
}

#product-category-group.komplekt-listing-page .block-filter-fit.filter .item > .radio-selecting + .radio-selecting {
  margin-top: 20px;
}

#product-category-group.komplekt-listing-page .komplekt-color-link {
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: flex;
  width: 22px;
  height: 22px;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

#product-category-group.komplekt-listing-page .komplekt-color-link.active {
  border-color: #000;
}

#product-category-group.komplekt-listing-page .komplekt-color-link .filter-value {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
}

#komplekt-detail .inner {
	width: 100%;
	max-width: 1234px;
}


/* --- сетка карточек --- */
.komplekt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 15px;
}
@media (max-width: 1200px) { .komplekt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .komplekt-grid { grid-template-columns: repeat(2, 1fr); gap: 15px 10px; } }
@media (max-width: 480px)  { .komplekt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; } }

.komplekt-card {
  background: #fff;
  display: flex; flex-direction: column;
}
.komplekt-card .thumb {
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
}
.komplekt-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.komplekt-card .meta { padding: 10px 4px 0; }
.komplekt-card .name a {
  color: #000;
  font-family: "CPR", sans-serif;
  font-size: 14px;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.komplekt-card .name a:hover { text-decoration: underline; }
.komplekt-card .sub-name {
  font-family: "CPR", sans-serif;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}
.komplekt-card .price {
	font-family: "CPM", sans-serif;
	font-size: 15px;
	margin-top: 4px;
	color: #000;
}

.komplekt-empty {
  padding: 40px 0;
  text-align: center;
  color: #888;
  font-family: "CPR", sans-serif;
}

/* =============================================================================
   ДЕТАЛЬНАЯ СТРАНИЦА /komplekty/<keyword>
   ============================================================================= */

#komplekt-detail .komplekt-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	width: 100%;
}

#komplekt-detail .komplekt-main .left-section {
	flex-shrink: 0;
	margin-right: 65px;
	width: 150px;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini {
	width: 150px;
	display: flex;
	justify-content: flex-start;
	position: relative;
	margin-left: -5px;
	margin-right: -5px;
	flex-wrap: wrap;
	overflow-y: auto;
	max-height: 682px;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini::-webkit-scrollbar {
	width: 2px;
	height: 2px;
	background-color: #f8f8f8;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini::-webkit-scrollbar-thumb {
	background-color: #d3d3d3;
	border-radius: 0;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini .item {
	width: 100%;
	position: relative;
	margin: 0 5px 10px;
	background: #fff;
	max-width: calc((100% / 2) - 10px);
	flex: 1 0 calc((100% / 2) - 10px);
	cursor: pointer;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini .item .image {
	width: 100%;
	text-align: center;
	position: relative;
	overflow: hidden;
}

#komplekt-detail .komplekt-main .left-section .komplekt-images-mini .item .image > img {
	max-width: 100%;
	height: auto;
	display: block;
	width: 100%;
	object-fit: cover;
	vertical-align: middle;
}

#komplekt-detail .komplekt-main .center-section {
	width: 100%;
	min-width: 0;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images {
	width: 100%;
	max-width: 550px;
	position: relative;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .item {
	width: 100% !important;
	position: relative;
	margin: 0;
	max-width: 100%;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .item .image {
	width: 100%;
	text-align: center;
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 3;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .item .image > img {
	max-width: 100%;
	height: auto;
	display: block;
	width: 100%;
	object-fit: cover;
	vertical-align: middle;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-pagination {
	text-align: left;
	bottom: 24px;
	padding-left: 20px;
	width: auto;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-container-horizontal > .swiper-pagination-bullets {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
	margin: 0;
	width: 4px;
	height: 4px;
	padding: 0;
	border-radius: 50%;
	outline: 0;
	background: #aaa;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet + .swiper-pagination-bullet {
	margin-left: 7px;
}

#komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet-active {
	width: 6px;
	height: 6px;
	background: #000;
}

.komplekt-main #komplekt-images .swiper-button-next {
	right: 10px;
}

.komplekt-main #komplekt-images .swiper-button-prev {
	left: 10px;
}

/* --- правая колонка --- */
#komplekt-detail .komplekt-main .right-section.komplekt-info {
	padding-top: 0;
	margin-left: 37px;
	width: 335px;
	flex-shrink: 0;
	font-family: "CPR", sans-serif;
}

#komplekt-detail .komplekt-main .right-section .functional-block .heading {
	margin-bottom: 9px;
}

.komplekt-title {
	font-family: "CPM", sans-serif;
	font-size: 18px;
	margin: 0;
	padding: 0;
}

.komplekt-price {
	font-family: "CPM", sans-serif;
	font-size: 18px;
	margin: 0 0 11px;
	line-height: 1;
}

.option-block { margin-bottom: 14px; }
.option-block .lbl {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.option-color { display: flex; gap: 6px; flex-wrap: wrap; }
.option-color .color-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-block;
  padding: 2px;
  border: 1px solid transparent;
}
.option-color .color-chip.active { border-color: #000; }
.option-color .color-chip .dot {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
}

.option-fits { display: flex; gap: 6px; flex-wrap: wrap; }
.option-fits .fit-chip {
  padding: 6px 10px;
  border: 1px solid #e7e7e7;
  background: #fff;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
}
.option-fits .fit-chip:hover { border-color: #000; color: #000; }
.option-fits .fit-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.option-subvariants { display: flex; gap: 6px; flex-wrap: wrap; }
.option-subvariants .sub-chip {
  padding: 6px 10px;
  border: 1px solid #e7e7e7;
  background: #fff;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s ease;
}
.option-subvariants .sub-chip:hover { border-color: #000; color: #000; }
.option-subvariants .sub-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.komplekt-actions { margin: 14px 0 20px; }
.main-product-button {
	width: 100%;
	height: 40px;
	font-size: 14px;
	font-family: "CPM", sans-serif;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	transition: all .3s ease-in-out !important;
	border: 1px solid #000;
	margin-top: 0;
}
.main-product-button:hover { color:#000;background:#fff;transition:all .3s ease-in-out!important }
.main-product-button:disabled { background: #888; cursor: not-allowed; }

/* --- список товаров с размерами --- */
.komplekt-products {
  margin-top: 8px;
  border-top: 1px solid #ececec;
  padding-top: 12px;
}
.kp-row {
  padding: 10px 0;
}
.kp-row:last-child { border-bottom: none; }
.kp-row.kp-disabled .kp-size-row { display: none; }
.kp-row.is-optional .kp-head { transition: opacity 0.2s ease; }
.kp-row.kp-disabled .kp-head { opacity: 0.35; transition: opacity 0.2s ease; }
.kp-row.has-error {}

.kp-head { margin-bottom: 10px; }
.kp-name {
	font-family: "CPM", sans-serif;
	font-size: 14px;
	margin: 0 0 2px;
}
.kp-name a { color: #000; text-decoration: none; }
.kp-name a:hover { text-decoration: underline; }
.kp-model { font-size: 12px; color: #888; }

.kp-optional-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 7px 11px;
  background: #fafafa;
  border: 1px solid #efefef;
}

.kp-badge-optional {
  font-size: 11px;
  font-family: "CPR", sans-serif;
  color: #aaa;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.kp-include-toggle {
	cursor: pointer;
	user-select: none;
	display: inline-flex;
	flex-shrink: 0;
	margin-bottom: 0;
	font-weight: 400;
}

.kp-include-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.kp-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 13px;
  font-size: 12px;
  font-family: "CPM", sans-serif;
  white-space: nowrap;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kp-toggle-btn .state-off { display: none; }
.kp-toggle-btn .state-on  { display: inline; }

.kp-include-toggle:hover .kp-toggle-btn {
  background: #333;
  border-color: #333;
}

.kp-include-toggle input:not(:checked) + .kp-toggle-btn {
  background: #fff;
  color: #555;
  border-color: #ccc;
}
.kp-include-toggle input:not(:checked) + .kp-toggle-btn .state-on  { display: none; }
.kp-include-toggle input:not(:checked) + .kp-toggle-btn .state-off { display: inline; }

.kp-include-toggle:hover input:not(:checked) + .kp-toggle-btn,
.kp-include-toggle:has(input:not(:checked)):hover .kp-toggle-btn {
  background: #f0f0f0;
  border-color: #999;
  color: #222;
}

.kp-size {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  font-size: 14px;
  font-family: "CPR", sans-serif;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23666'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.kp-no-size {
  color: #b00;
  font-size: 13px;
  padding: 8px 0;
}
.kp-error {
  color: #b00;
  font-size: 12px;
  margin-top: 4px;
}

#komplekt-detail #accordion-items {
  width: 100%;
  margin-top: 35px;
}

#komplekt-detail #accordion-items .item {
  width: 100%;
  border-bottom: 1px solid #000;
  margin-top: -1px;
}

#komplekt-detail #accordion-items .item:first-child {
  border-top: 1px solid #000;
}

#komplekt-detail #accordion-items .item .product_delivery div:first-child {
  margin-bottom: 18px;
}

#komplekt-detail #accordion-items .item .product_delivery div p:nth-child(2) {
  font-style: italic;
  font-size: 13px;
}

#komplekt-detail #accordion-items .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 40px;
  padding: 0 5px 0 0;
}

#komplekt-detail #accordion-items .head > .name {
  font-size: 14px;
  font-family: "CPR", sans-serif;
  color: #000;
  margin: 0 20px 0 0;
  font-weight: 400;
}

#komplekt-detail #accordion-items .head.active span.plus,
#komplekt-detail #accordion-items .head span.minus {
  display: none;
}

#komplekt-detail #accordion-items .head span.plus,
#komplekt-detail #accordion-items .head.active span.minus {
  display: block;
}

#komplekt-detail #accordion-items .text {
  display: none;
  font-size: 13px;
  font-family: "CPR", sans-serif;
  color: #000;
  line-height: 1.4;
  padding: 10px 0 30px;
}

#komplekt-detail #accordion-items .komplekt-detail-item + .komplekt-detail-item {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e7e7e7;
}

#komplekt-detail #accordion-items .komplekt-detail-name {
	font-size: 13px;
	font-family: "CPM", sans-serif;
	color: #000;
	margin-bottom: 5px;
}

#komplekt-detail #accordion-items .komplekt-detail-text p {
  margin-bottom: 5px;
}

#komplekt-detail #accordion-items .komplekt-detail-text p:last-child {
  margin-bottom: 0;
}

/* --- адаптивность (по аналогии с product.twig) --- */

@media (min-width: 1024px) {
  #komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-pagination {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  #komplekt-detail .komplekt-main .left-section {
    margin-right: calc(20px + (65 - 20) * ((100vw - 1024px) / (1240 - 1024)));
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #komplekt-detail .komplekt-main .right-section.komplekt-info {
    margin-left: 30px;
    position: relative;
  }
}

@media (max-width: 1024px) {
  #komplekt-detail .komplekt-main .left-section {
    display: none;
  }

  #komplekt-detail .komplekt-main .center-section .komplekt-images {
    max-width: 100%;
  }

  #komplekt-detail .komplekt-main .center-section .komplekt-images .item {
    margin: 0;
  }
}

@media (max-width: 768px) {
  #komplekt-detail .komplekt-main {
    flex-direction: column;
  }

  #komplekt-detail .komplekt-main .center-section .komplekt-images {
    max-width: 100%;
  }

  #komplekt-detail .komplekt-main .right-section.komplekt-info {
    margin: 20px auto 0;
    top: unset;
    position: relative;
    width: 100%;
  }
}

/* --- sticky-кнопка «Добавить в корзину» на мобильных --- */
.komplekt-actions_clone {
  display: none;
}

@media (max-width: 600px) {
  .komplekt-actions_clone {
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    padding: 10px 15px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #ececec;
    z-index: 999;
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
    will-change: transform;
  }

  .komplekt-actions_clone.is-visible {
    transform: translateY(0);
    pointer-events: auto;
  }

  .komplekt-actions_clone .main-product-button {
    width: 100%;
    height: 40px;
    font-size: 14px;
    font-family: "CPM", sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #000;
  }

  .komplekt-actions_clone .main-product-button[disabled] {
    background: #fff;
    color: #000;
  }

  body.komplekt-actions-stuck .chats_wrapper {
    transition: bottom .25s ease-out;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body.komplekt-actions-stuck .top_fly_button {
    transition: bottom .25s ease-out;
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  body.komplekt-actions-stuck #button-to-top.active {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 525px) {
  #komplekt-detail .komplekt-main .center-section .komplekt-images .swiper-pagination {
    padding-left: 13px;
  }

  #komplekt-detail #accordion-items {
    margin-top: 25px;
  }
}

@media (max-width: 375px) {
  .kp-optional-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .kp-toggle-btn {
    padding: 0 10px;
    font-size: 11px;
  }

  .option-fits .fit-chip,
  .option-subvariants .sub-chip {
    padding: 5px 8px;
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  #komplekt-detail .komplekt-main .right-section .functional-block .heading h1,
  .komplekt-title {
    font-size: 16px;
  }

  .komplekt-price {
    font-size: 16px;
  }

  .kp-name {
    font-size: 13px;
  }

  .kp-model {
    font-size: 11px;
  }

  .kp-optional-bar {
    padding: 6px 8px;
  }

  .kp-badge-optional {
    font-size: 10px;
  }

  .kp-toggle-btn {
    height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .option-block .lbl {
    font-size: 12px;
  }

  .option-fits .fit-chip,
  .option-subvariants .sub-chip {
    padding: 4px 7px;
    font-size: 11px;
  }

  #komplekt-detail #accordion-items .head > .name {
    font-size: 13px;
    margin-right: 10px;
  }

  #komplekt-detail #accordion-items .text {
    font-size: 12px;
    padding-bottom: 20px;
  }

  .komplekt-actions_clone {
    padding-left: 10px;
    padding-right: 10px;
  }
}
