
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
}

/* ===== GRID ===== */
.shop-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* ===== CARD ===== */
.product-card .card-inner {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== IMAGE ===== */
.product-card .image {
  display: block;
  text-align: left;
}

.product-card .image img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

/* ===== TEXT BLOCK ===== */
.product-card .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.product-card .title a {
  color: #1c1c1c;
  text-decoration: none;
}

/* ===== PRICE ===== */
.product-card .price {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* ===== BUTTON ===== */
.product-card .cart-btn a {
  display: inline-block;
  padding: 8px 16px;
  background: #2f5aa8;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
}

/* ===== BADGES ===== */
.badges {
  position: absolute;
  top: 10px;
  left: 10px;
}

.badge {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 10px;
}

.badge.hot {
  border: 1px solid orange;
  color: orange;
}

/* ===== WISHLIST ===== */
.wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* ===== NORMALIZE ===== */
.product-card .card-inner {
  position: relative;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px;
}

.shop-sidebar {
  padding-top: 10px;
}

.shop-sidebar .filter-block,
.shop-sidebar .berocket_filter,
.shop-sidebar .woof_container {
  margin-bottom: 20px;
}

/* заголовки */
.shop-sidebar h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* чекбокси */
.shop-sidebar label {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

/* inputs */
.shop-sidebar input {
  margin-right: 6px;
}

.sm-filters { background:#fff; border-radius:16px; padding:16px; }
.sm-filters__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.sm-filters__title { font-weight:600; font-size:16px; }
.sm-filters__clear { background:none; border:none; color:#2f5aa8; cursor:pointer; font-weight:500; }

.sm-filter { border-top:1px solid #eee; padding:12px 0; }
.sm-filter:first-child { border-top:none; }
.sm-filter__toggle { width:100%; text-align:left; background:none; border:none; font-weight:600; cursor:pointer; padding:0; }
.sm-filter__body { margin-top:10px; display:none; }
.sm-filter.is-open .sm-filter__body { display:block; }

.sm-list { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.sm-list--scroll { max-height:240px; overflow:auto; padding-right:6px; }

.sm-check { display:flex; gap:10px; align-items:center; cursor:pointer; }
.sm-check input { width:16px; height:16px; }

.sm-price { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sm-input, .sm-select, .sm-price input {
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:10px; outline:none;
}
.sm-input:focus, .sm-select:focus, .sm-price input:focus { border-color:#2f5aa8; }

.sm-active { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sm-chip { border:1px solid #ddd; background:#f7f9fc; border-radius:999px; padding:6px 10px; cursor:pointer; font-size:12px; }

.shop-products.sm-loading { opacity:0.55; pointer-events:none; position:relative; }
.shop-products.sm-loading::after{
  content:"Завантаження…";
  position:absolute; inset:0;
  display:flex; align-items:flex-start; justify-content:center;
  padding-top:30px;
  font-weight:600;
}

/* === SM FILTERS: force checkbox + label alignment === */
.sm-filters .sm-list li { margin: 0; padding: 0; }

.sm-filters .sm-check{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  line-height: 1.25;
  cursor: pointer;
  width: 100%;
}

.sm-filters .sm-check input[type="checkbox"]{
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  vertical-align: middle !important;
  appearance: auto; /* щоб не ламалося кастомними стилями */
}

.sm-filters .sm-check span{
  flex: 1 1 auto;
  display: block;
  min-width: 0;
}

/* щоб текст не "стрибає" від чужих стилів */
.sm-filters label.sm-check { float: none !important; }

/* Скрол для довгого списку категорій */
.sm-filters .sm-filter:first-of-type .sm-filter__body{
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

/* === SM Filters: checkbox alignment fix === */
.sm-filters .sm-check{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100%;
  line-height:1.25;
}

.sm-filters .sm-check input[type="checkbox"]{
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  margin:0 !important;
  padding:0 !important;
  position:static !important;
  transform:none !important;
  vertical-align:middle !important;
  appearance:auto;
}

.sm-filters .sm-check span{
  flex:1 1 auto;
  min-width:0;
  display:block;
}

/* довгий список: скрол */
.sm-filters .sm-list--scroll{
  max-height:240px;
  overflow:auto;
  padding-right:6px;
}

.sm-filters { background:#fff; border-radius:16px; padding:16px; }
.sm-filters__top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.sm-filters__actions { display:flex; gap:10px; }

.sm-btn{ background:#2f5aa8; color:#fff; border:0; border-radius:12px; padding:10px 14px; cursor:pointer; }
.sm-btn--ghost{ background:transparent; color:#2f5aa8; border:1px solid #cfe0ff; }
.sm-btn--full{ width:100%; justify-content:center; }

.sm-filter{ border-top:1px solid #eee; padding:12px 0; }
.sm-filter__toggle{ width:100%; text-align:left; background:none; border:0; font-weight:600; padding:0; cursor:pointer; }
.sm-filter__body{ margin-top:10px; }

.sm-price{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sm-input, .sm-select, .sm-price input { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:10px; }

.sm-pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.sm-pill{ border:1px solid #d7e4ff; background:#f7faff; border-radius:999px; padding:8px 10px; cursor:pointer; font-size:13px; }

.sm-link{ background:none; border:0; color:#2f5aa8; cursor:pointer; padding:8px 0; }

.sm-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.sm-check{ display:flex; align-items:center; gap:10px; justify-content:flex-start; }
.sm-check input{ width:18px; height:18px; margin:0; }

.is-hidden{ display:none; }
.sm-brands.is-all .is-hidden,
.sm-cats.is-all .is-hidden{ display:block; }

.shop-products.sm-loading{ opacity:.55; pointer-events:none; position:relative; }
.shop-products.sm-loading:after{ content:"Завантаження…"; position:absolute; inset:0; display:flex; justify-content:center; padding-top:30px; font-weight:600; }

/* якщо sm-loading раптом “залип”, хай не блокує кліки */
.shop-products.sm-loading::after{
  pointer-events: none !important;
}

/* страхівка: фільтри завжди клікабельні */
.sm-filters,
.sm-filters *{
  pointer-events: auto !important;
}

.sm-price {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.sm-price input {
  width: 100%;
  min-width: 0;
}

.sm-filter {
  margin-bottom: 24px;
}

.sm-filter__body {
  margin-top: 12px;
}

.sm-input {
  margin-bottom: 12px;
}

.sm-pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-list li {
  margin-bottom: 8px;
}

.sm-filters__bottom {
  margin-top: 16px;
}

.sm-btn--full {
  width: 100%;
}
.sm-input,
.sm-price input {
  border-radius: 10px;
  padding: 10px 12px;
}