/* Ready designs injected into the existing native category /17-sklep. */
body.ss-design-store-category #js-product-list-top {
  display: none !important;
}

/* Restore the native category description only on /17-sklep. Its content is
   edited in Catalog > Categories > Sklep. */
body.ss-design-store-category .block-category.ss-store-intro,
body.ss-design-store-category .block-category.ss-store-intro.card,
body.ss-design-store-category .block-category.ss-store-intro.card-block {
  position: static !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  width: auto !important;
  height: auto !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.ss-design-store-category .ss-store-intro > img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0;
  object-fit: cover;
}

body.ss-design-store-category
  .ss-store-intro
  > #category-description:only-child {
  grid-column: 1 / -1;
}

body.ss-design-store-category .ss-store-intro #category-description {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
  justify-content: initial !important;
  align-items: initial !important;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.7;
}

body.ss-design-store-category .ss-store-intro #category-description::before {
  display: none !important;
  content: none !important;
}

body.ss-design-store-category .ss-store-intro #category-description > h1,
body.ss-design-store-category .ss-store-intro #category-description > div {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

body.ss-design-store-category .ss-store-intro #category-description h1 {
  display: none !important;
  margin: 0 0 14px;
  color: #111;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-align: left !important;
}

body.ss-design-store-category .ss-store-intro #category-description h2,
body.ss-design-store-category .ss-store-intro #category-description h3 {
  margin: 20px 0 8px;
  color: #222;
  line-height: 1.3;
  letter-spacing: 0;
}

body.ss-design-store-category .ss-store-intro #category-description h2 {
  font-size: 24px;
}

body.ss-design-store-category .ss-store-intro #category-description h3 {
  font-size: 20px;
}

body.ss-design-store-category .ss-store-intro #category-description p {
  margin: 0 0 12px;
  padding: 0;
}

body.ss-design-store-category
  .ss-store-intro
  #category-description
  p:last-child {
  margin-bottom: 0;
}

body.ss-design-store-category .ss-store-native-hidden {
  display: none !important;
}

body.ss-design-store-category .ss-store-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.035);
}

body.ss-design-store-category .ss-store-count {
  flex: 1 0 auto;
  margin: 0;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

body.ss-design-store-category .ss-store-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
}

body.ss-design-store-category .ss-store-category {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  color: #333;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

body.ss-design-store-category .ss-store-category:hover,
body.ss-design-store-category .ss-store-category.is-active {
  color: #fff;
  background: #e60072;
  border-color: #e60072;
}

body.ss-design-store-category .ss-store-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

body.ss-design-store-category .ss-store-search,
body.ss-design-store-category .ss-store-sort {
  height: 40px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 13px;
  outline: none;
}

body.ss-design-store-category .ss-store-search {
  width: 210px;
  padding: 0 13px;
}

body.ss-design-store-category .ss-store-sort {
  padding: 0 34px 0 12px;
}

body.ss-design-store-category .ss-store-search:focus,
body.ss-design-store-category .ss-store-sort:focus {
  border-color: #e60072;
  box-shadow: 0 0 0 3px rgba(230, 0, 114, 0.08);
}

/* Match the native Projektuj product-card hover. */
body.ss-design-store-category .ss-design-product-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease !important;
}

body.ss-design-store-category .ss-design-product-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(229, 61, 96, 0.4) !important;
  box-shadow:
    0 12px 26px rgba(229, 61, 96, 0.12),
    0 4px 12px rgba(17, 17, 26, 0.06) !important;
}

body.ss-design-store-category .ss-design-product-card:hover .product-title a {
  color: var(--ss-accent, #e53d60) !important;
}

body.ss-design-store-category
  .ss-design-product-card
  .thumbnail-container-image {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #f7f7f7 !important;
}

body.ss-design-store-category .ss-design-product-card .product-thumbnail {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  overflow: hidden !important;
  background: #f7f7f7 !important;
}

body.ss-design-store-category .ss-store-composite {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

body.ss-design-store-category .ss-store-composite__mockup {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.ss-design-store-category .ss-store-composite__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

body.ss-design-store-category .ss-store-composite__art {
  position: absolute !important;
  z-index: 2;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill !important;
  pointer-events: none !important;
}

body.ss-design-store-category .ss-design-product-card .product-description {
  text-align: left !important;
}

body.ss-design-store-category .ss-store-loading,
body.ss-design-store-category .ss-store-empty,
.ss-store-loading {
  width: 100%;
  padding: 30px 18px;
  text-align: center;
  color: #777;
  font-size: 14px;
  font-weight: 650;
}

body.ss-design-store-category .ss-store-empty {
  grid-column: 1 / -1;
}

.ss-store-loading.is-error {
  color: #b42318;
}

@media (max-width: 991px) {
  body.ss-design-store-category .ss-store-controls {
    align-items: stretch;
    flex-direction: column;
  }
  body.ss-design-store-category .ss-store-tools {
    width: 100%;
  }
  body.ss-design-store-category .ss-store-search {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 575px) {
  body.ss-design-store-category .ss-store-controls {
    padding: 12px;
    border-radius: 12px;
  }
  body.ss-design-store-category .ss-store-tools {
    flex-direction: column;
  }
  body.ss-design-store-category .ss-store-search,
  body.ss-design-store-category .ss-store-sort {
    width: 100%;
  }
}

body.ss-design-store-category .ss-store-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 28px auto 0;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #e60072 0%, #ff7a00 100%);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(230, 0, 114, 0.18);
}
body.ss-design-store-category .ss-store-load-more[hidden] {
  display: none !important;
}
body.ss-design-store-category .ss-store-load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(230, 0, 114, 0.22);
}

/* 1.7.5: design categories live in the native left column. */
body.ss-design-store-category .ss-store-controls {
  justify-content: flex-end;
}
body.ss-design-store-category .ss-store-mobile-categories {
  display: none;
  flex: 1 1 100%;
  min-width: 0;
}
body.ss-design-store-category .ss-store-side-filter-host {
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}
body.ss-design-store-category .ss-store-side-filter {
  width: 100%;
  background: #fff;
}
body.ss-design-store-category .ss-store-side-filter__title {
  padding: 18px 18px 14px;
  color: #111;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 1px solid #ededed;
}
body.ss-design-store-category .ss-store-categories--side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 0;
  overflow: visible;
}
body.ss-design-store-category .ss-store-categories--side .ss-store-category {
  width: 100%;
  min-height: 42px;
  padding: 0 18px 0 var(--ss-category-indent, 18px);
  border: 0;
  border-radius: 0;
  color: #333;
  background: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-group,
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-subcategories {
  width: 100%;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-parent {
  display: flex;
  align-items: stretch;
  width: 100%;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-parent
  > .ss-store-category {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category.is-subcategory {
  font-size: 13px;
  font-weight: 600;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-toggle {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #555;
  background: #fff;
  cursor: pointer;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-toggle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.18s ease;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-group.is-collapsed
  > .ss-store-category-parent
  .ss-store-category-toggle::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-toggle:hover,
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category-toggle:focus-visible {
  color: #e60072;
  background: #fff;
  outline: none;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-subcategories[hidden] {
  display: none !important;
}
body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category:hover {
  color: #e60072;
  background: #fff;
  box-shadow: none;
  transform: translateX(3px);
}

body.ss-design-store-category
  .ss-store-categories--side
  .ss-store-category.is-active {
  color: #e60072;
  background: #fff;
  box-shadow: none;
}

body.ss-design-store-category .ss-store-tags-panel {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 6px;
}

body.ss-design-store-category .ss-store-tags-panel__title {
  margin: 0;
  padding: 16px 18px 13px;
  color: #111;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border-bottom: 1px solid #ededed;
}

body.ss-design-store-category .ss-store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.ss-design-store-category .ss-store-tags--side {
  padding: 14px 16px 16px;
}

body.ss-design-store-category .ss-store-tag {
  min-height: 30px;
  padding: 5px 9px;
  color: #333;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

body.ss-design-store-category .ss-store-tag:hover,
body.ss-design-store-category .ss-store-tag.is-active {
  color: #e60072;
  background: #fff3f8;
  border-color: #e60072;
}

body.ss-design-store-category .ss-store-mobile-tags {
  display: none;
}

body.ss-design-store-category .ss-store-mobile-tags[hidden] {
  display: none !important;
}

body.ss-design-store-category .ss-store-mobile-tags__title {
  margin-bottom: 8px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
body.ss-design-store-category .ss-design-product-card .price::before,
body.ss-design-store-category .ss-design-product-card .price::after,
body.ss-design-store-category
  .ss-design-product-card
  .product-price-and-shipping::before {
  display: none !important;
  content: none !important;
}

@media (max-width: 991px) {
  body.ss-design-store-category .block-category.ss-store-intro,
  body.ss-design-store-category .block-category.ss-store-intro.card,
  body.ss-design-store-category .block-category.ss-store-intro.card-block {
    grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
    gap: 20px;
  }
  body.ss-design-store-category .ss-store-mobile-categories {
    display: block;
  }
  body.ss-design-store-category .ss-store-mobile-tags {
    display: block;
  }
  body.ss-design-store-category
    .ss-store-mobile-categories
    .ss-store-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 8px;
  }
  body.ss-design-store-category .ss-store-side-filter {
    display: none;
  }
  body.ss-design-store-category .ss-store-tags-panel {
    display: none;
  }
  body.ss-design-store-category .ss-store-controls {
    justify-content: stretch;
  }
}

@media (max-width: 575px) {
  body.ss-design-store-category .block-category.ss-store-intro,
  body.ss-design-store-category .block-category.ss-store-intro.card,
  body.ss-design-store-category .block-category.ss-store-intro.card-block {
    display: block !important;
    margin-bottom: 22px !important;
    padding-bottom: 22px !important;
  }

  body.ss-design-store-category .ss-store-intro > img {
    max-width: none;
    margin-bottom: 18px;
  }

  body.ss-design-store-category .ss-store-intro #category-description h1 {
    font-size: 25px;
  }
}
