/* Страница категории — современный вид (.ct2) */
.ct2 {
  --ct2-primary: #7c0a02;
  --ct2-primary-soft: rgba(124, 10, 2, .07);
  --ct2-ink: #1d1d1f;
  --ct2-muted: #6e6e73;
  --ct2-line: #e8e6e3;
  --ct2-bg: #f7f5f2;
}

/* ---------- Левая колонка ---------- */
.ct2 #mse2_mfilter .col-lg-3 > .mb-4 { margin-bottom: 16px !important; }
.ct2 .catalog-top-menu .menu-item:after { display: none; }
@media (min-width: 992px) {
  .ct2 .catalog-top-menu { gap: 2px; width: 100%; }
  .ct2 .catalog-top-menu .menu-item { width: 100%; }
  .ct2 .catalog-top-menu .menu-item a {
    display: block; padding: 9px 14px; border-radius: 10px;
    color: var(--ct2-ink); font-size: 15px; transition: background .15s, color .15s;
  }
  .ct2 .catalog-top-menu .menu-item a:hover { background: var(--ct2-bg); }
  .ct2 .catalog-top-menu .menu-item.active a { background: var(--ct2-primary-soft); color: var(--ct2-primary); font-weight: 600; }
  .ct2 #mse2_mfilter .col-lg-3 .fs-7.fw-bold { font-size: 13px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--ct2-muted); padding-left: 14px; margin-bottom: 8px !important; }
  .ct2 #mse2_mfilter .col-lg-3 { position: sticky; top: 90px; align-self: flex-start; }
}
@media (max-width: 991.98px) {
  .ct2 .catalog-top-menu { justify-content: flex-start; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ct2 .catalog-top-menu::-webkit-scrollbar { display: none; }
  .ct2 .catalog-top-menu .menu-item { flex: 0 0 auto; }
  .ct2 .catalog-top-menu .menu-item a {
    display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
    background: var(--ct2-bg); border: 1px solid var(--ct2-line); font-size: 14px; color: var(--ct2-ink);
  }
  .ct2 .catalog-top-menu .menu-item.active a { background: var(--ct2-primary); border-color: var(--ct2-primary); color: #fff; }
}
.ct2 #mse2_mfilter .btn-new.w-100 { border-radius: 12px; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ct2 #mse2_mfilter .btn-new.w-100 img { float: none !important; margin: 0 !important; }

.ct2 #mse2_mfilter .bg-gra { background: var(--ct2-bg) !important; border-radius: 16px; }
.ct2 #mse2_mfilter .bg-gra h4 { font-size: 18px; font-weight: 700; }
.ct2 #mse2_mfilter .bg-gra .fs-3 { font-size: 20px !important; text-decoration: none; color: var(--ct2-primary); }
.ct2 #mse2_mfilter .bg-gra p { font-size: 14px; color: var(--ct2-muted); }
.ct2 #mse2_mfilter .bg-gra .btn.bg-white { border-radius: 10px; border: 1px solid var(--ct2-line); font-weight: 500; }
.ct2 #mse2_mfilter .bg-gra .btn.bg-white:hover { border-color: #c9c4bd; }
.ct2 #mse2_mfilter .dost h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ct2 #mse2_mfilter .dost p { font-size: 13px; margin-bottom: 6px; color: #3a3a3c; }
.ct2 #mse2_mfilter .dost .row:last-child p { color: var(--ct2-muted); font-size: 12px; }

/* ---------- Панель над товарами ---------- */
.ct2-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ct2-bar__count { color: var(--ct2-muted); font-size: 15px; }
.ct2-bar__count b { color: var(--ct2-ink); }
.ct2-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ct2-filter button {
  appearance: none; border: 1.5px solid var(--ct2-line); background: #fff; color: var(--ct2-ink);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ct2-filter button:hover { border-color: #c9c4bd; }
.ct2-filter button.is-active { border-color: var(--ct2-primary); background: var(--ct2-primary-soft); color: var(--ct2-primary); font-weight: 600; }
.ct2 #mse2_results > .col.ct2-hidden { display: none; }

/* ---------- Плитка товара ---------- */
.ct2 .product-item {
  background: #fff; border: 1px solid var(--ct2-line); border-radius: 18px;
  padding: 12px 12px 16px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.ct2 .product-item:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .08); transform: translateY(-2px); border-color: transparent; }
.ct2 .product-item .item-image { border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 14px !important; }
.ct2 .product-item .item-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; height: auto; transition: transform .4s ease; }
.ct2 .product-item:hover .item-image .image-static:last-child { transform: scale(1.04); }
.ct2 .btn-product-list-video {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px !important; border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important; color: var(--ct2-ink) !important;
  border: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  font-size: 13px; font-weight: 600; width: auto !important; height: auto !important;
}
.ct2 .btn-product-list-video .icon { width: 12px; height: 12px; color: var(--ct2-primary); }
.ct2 .btn-product-list-video:after { content: "Видео"; }
.ct2 .product-item .item-content { padding: 0 4px; }
.ct2 .product-item .item-content .h5 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ct2-ink); margin-bottom: 12px; text-decoration: none;
}
.ct2 .product-item .item-content .h5:hover { color: var(--ct2-primary); }
.ct2 .product-item .form-label { font-size: 12px; color: var(--ct2-muted); margin-bottom: 4px !important; }
.ct2 .product-item .mb-2 { margin-bottom: 10px !important; }
.ct2 .product-item .form-select { border-radius: 10px; border-color: var(--ct2-line); font-size: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; background-color: var(--ct2-bg); }
.ct2 .product-item .form-select:focus { background-color: #fff; }
.ct2 .product-item .product-price { font-size: 22px !important; }
.ct2 .product-item .item-price { color: var(--ct2-ink) !important; font-weight: 800; letter-spacing: -.01em; }
.ct2 .product-item .item-price .msoptionsprice-cost { font-size: 22px; }
.ct2 .product-item button[value="cart/add"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0 !important; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(124, 10, 2, .22); transition: transform .15s;
}
.ct2 .product-item button[value="cart/add"]:hover { transform: translateY(-1px); }
.ct2 .product-item button[value="cart/add"] .icon { width: 22px; height: 22px; }

/* Пагинация */
.ct2 .mse2_pagination .pagination { gap: 6px; }
.ct2 .mse2_pagination .page-link { border-radius: 10px !important; border-color: var(--ct2-line); color: var(--ct2-ink); min-width: 40px; text-align: center; }
.ct2 .mse2_pagination .active .page-link { background: var(--ct2-primary); border-color: var(--ct2-primary); color: #fff; }

/* ---------- Текст категории ---------- */
.ct2 > section.my-5 .col-12 > h2:first-child { margin-top: 0; }
.ct2 section .col-12 > h2 { font-size: 26px; font-weight: 700; margin: 2.2rem 0 .9rem; }
.ct2 section .col-12 > p, .ct2 section .col-12 > ul { max-width: 860px; font-size: 16px; line-height: 1.7; color: #2c2c2e; }
.ct2 section .col-12 > ul li::marker { color: var(--ct2-primary); }
.ct2 section .col-12 .table-responsive { max-width: 860px; border-radius: 14px; border: 1px solid var(--ct2-line); }
.ct2 section .col-12 .table { margin: 0; }
.ct2 section .col-12 .table.table-bordered > :not(caption) > * > * { border-width: 0; border-bottom: 1px solid var(--ct2-line); padding: 12px 14px; }
.ct2 section .col-12 .table thead th { background: var(--ct2-bg); font-size: 14px; color: var(--ct2-muted); font-weight: 600; }
.ct2 section .col-12 .table tbody tr:last-child > * { border-bottom: 0; }
.ct2 section .col-12 .card.shadow-sm { border: 0 !important; box-shadow: none !important; background: var(--ct2-bg); border-radius: 16px; }
.ct2 section .accordion-item { border: 0; border-radius: 14px !important; overflow: hidden; margin-bottom: 8px; background: var(--ct2-bg); }
.ct2 section .accordion-button { background: var(--ct2-bg); font-weight: 600; box-shadow: none !important; }
.ct2 section .accordion-button:not(.collapsed) { color: var(--ct2-primary); background: var(--ct2-bg); }
.ct2 section .accordion-body { background: #fff; margin: 0 8px 8px; border-radius: 10px; color: #3a3a3c; }
.ct2 section.border-top { border-top: 0 !important; }

/* ---------- Кнопки внизу ---------- */
.ct2 section.wow hr { display: none; }
.ct2 section.wow .btn-hover-dark {
  background: var(--ct2-bg) !important; color: var(--ct2-ink) !important; border: 1px solid var(--ct2-line) !important;
  border-radius: 999px; padding: 10px 22px; font-weight: 600;
}
.ct2 section.wow .btn-hover-dark:hover { border-color: var(--ct2-primary) !important; color: var(--ct2-primary) !important; }

.ct2 section .col-12 .table td:last-child { white-space: nowrap; }

/* На телефоне товары сразу после списка категорий */
@media (max-width: 991.98px) {
  .ct2 #mse2_mfilter .col-lg-3 > .bg-gra.dost { display: none; }
  .ct2 #mse2_mfilter .col-lg-3 > .mb-4 { margin-bottom: 8px !important; }
  .ct2-filter button { padding: 6px 12px; font-size: 13px; }
}
