/* ==============================================
   ERGESHOP – KATEGORIE PRODUKTŮ
   FINÁLNÍ KOMPLETNÍ CSS
   ============================================== */

/* ==============================================
   1) HLAVNÍ ŠÍŘKA A ODSAZENÍ
   ============================================== */

body.type-category .content-wrapper-in {
  max-width: 100% !important;
}

body.type-category main#content.content.narrow {
  max-width: 100% !important;
  width: 100% !important;
}

body.type-category .category-top,
body.type-category .category-content-wrapper,
body.type-category .category__secondDescription {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ==============================================
   2) HORNÍ ČÁST KATEGORIE
   ============================================== */

body.type-category .category-top {
  margin-bottom: 24px !important;
}

body.type-category .category-title {
  font-size: 32px !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
}

body.type-category .category-perex {
  max-width: 1000px !important;
  margin: 0 0 24px 0 !important;
}

body.type-category .category-perex h2 {
  font-size: 19px !important;
  line-height: 1.34 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 12px 0 !important;
  text-transform: none !important;
}

body.type-category .category-perex p {
  font-size: 16px !important;
  line-height: 1.78 !important;
  color: #3f454a !important;
  margin: 0 0 12px 0 !important;
}

body.type-category .category-perex strong {
  color: #161616 !important;
  font-weight: 700 !important;
}

/* ==============================================
   3) BLOK MEISTVERKAUFT
   ============================================== */

body.type-category .products-top-wrapper {
  margin: 18px 0 22px 0 !important;
  padding: 14px 14px 10px 14px !important;
  border: 1px solid #dfe7ee !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fafc 100%) !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03) !important;
}

body.type-category .products-top-header {
  font-size: 23px !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 12px 0 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
}

body.type-category .products.products-inline.products-top {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

body.type-category .products-top .product,
body.type-category .products-top .product.active,
body.type-category .products-top .product.inactive {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

body.type-category .products-top .p {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  grid-template-areas:
    "image name"
    "image availability"
    "price price" !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 14px !important;
  row-gap: 2px !important;
  align-items: start !important;
  align-content: start !important;
  height: 100% !important;
  min-height: 152px !important;
  padding: 12px 14px 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #e5ebf0 !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
  box-sizing: border-box !important;
}

body.type-category .products-top .p:hover {
  border-color: #cfd9e2 !important;
  box-shadow: 0 8px 18px rgba(28, 50, 69, 0.06) !important;
  transform: translateY(-1px) !important;
}

body.type-category .products-top .image {
  grid-area: image !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 76px !important;
  min-width: 76px !important;
  height: 54px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

body.type-category .products-top .image img {
  max-width: 72px !important;
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body.type-category .products-top .p-in,
body.type-category .products-top .p-in-in {
  display: contents !important;
}

body.type-category .products-top .name {
  grid-area: name !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  min-height: 52px !important;
  max-height: 52px !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  font-weight: 600 !important;
  color: #202020 !important;
  text-decoration: none !important;
  margin: 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

body.type-category .products-top .name:hover {
  color: #111 !important;
}

body.type-category .products-top .ratings-wrapper {
  grid-area: availability !important;
  margin: 2px 0 0 0 !important;
}

body.type-category .products-top .availability {
  margin: 0 !important;
}

body.type-category .products-top .availability span {
  display: inline-block !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

body.type-category .products-top .p-bottom {
  grid-area: price !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.type-category .products-top .offers {
  width: 100% !important;
}

body.type-category .products-top .prices {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

body.type-category .products-top .price-standard-wrapper {
  display: none !important;
}

body.type-category .products-top .price-final,
body.type-category .products-top .price {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  line-height: 1 !important;
  min-height: 0 !important;
}

body.type-category .products-top .price-final strong,
body.type-category .products-top .price strong {
  display: block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #111 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

body.type-category .products-top .price-final::after,
body.type-category .products-top .price::after {
  content: "inkl. MwSt. zzgl. Versand" !important;
  display: block !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #6b7280 !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  white-space: normal !important;
  max-width: 150px !important;
}

body.type-category .button-wrapper {
  margin-top: 8px !important;
  text-align: center !important;
}

body.type-category .toggle-top-products.btn {
  background: transparent !important;
  border: 0 !important;
  color: #00AEEF !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-transform: none !important;
}

body.type-category .toggle-top-products.btn:hover {
  color: #008fc6 !important;
}

/* ==============================================
   4) ŘAZENÍ – ZRUŠIT
   ============================================== */

body.type-category .category-header,
body.type-category .listSorting,
body.type-category .listSorting__controls,
body.type-category .listSorting__control {
  display: none !important;
}

/* ==============================================
   5) HLAVNÍ GRID PRODUKTŮ
   ============================================== */

body.type-category #products.products-page.products-block.big {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body.type-category #products .product {
  width: 100% !important;
  margin: 0 !important;
}

body.type-category #products .product .p,
body.type-category #products .product .p.big {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 438px !important;
  border: 1px solid #dde5eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: hidden !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
}

body.type-category #products .product .p:hover,
body.type-category #products .product .p.big:hover {
  border-color: #c4d0da !important;
  box-shadow: 0 10px 22px rgba(28, 50, 69, 0.07) !important;
  transform: translateY(-1px) !important;
}

body.type-category #products .product.highlight-product {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}

body.type-category #products .product.highlight-product .p.big {
  min-height: 438px !important;
}

/* ==============================================
   6) JEDNOTNÉ PRODUKTOVÉ KARTY
   ============================================== */

body.type-category #products .product .image {
  height: 184px !important;
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 1px solid #eef2f5 !important;
  background: #fff !important;
}

body.type-category #products .product .image img {
  max-width: 100% !important;
  max-height: 134px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

body.type-category #products .p-in {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 15px 16px 0 16px !important;
}

body.type-category #products .p-in-in {
  flex: 1 1 auto !important;
}

body.type-category #products .name {
  display: block !important;
  min-height: 74px !important;
  font-size: 14px !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  color: #1f1f1f !important;
  text-decoration: none !important;
  margin-bottom: 10px !important;
}

body.type-category #products .name:hover {
  color: #111 !important;
}

body.type-category #products .ratings-wrapper {
  margin-bottom: 8px !important;
}

/* ==============================================
   7) SPODNÍ ČÁST KARTY
   ============================================== */

body.type-category #products .p-bottom {
  padding: 11px 16px 16px 16px !important;
  margin-top: auto !important;
  border-top: 1px solid #eef2f5 !important;
  background: #fcfdfe !important;
}

body.type-category #products .p-bottom > [data-micro="offer"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
}

body.type-category #products .p-bottom > [data-micro="offer"][data-micro-availability*="InStock"]::before {
  content: "Sofort lieferbar" !important;
  display: block !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #2f7d32 !important;
  margin: 0 0 9px 0 !important;
}

body.type-category #products .p-bottom > [data-micro="offer"][data-micro-availability*="OutOfStock"]::before,
body.type-category #products .p-bottom > [data-micro="offer"][data-micro-availability*="PreOrder"]::before {
  content: none !important;
}

body.type-category #products .offers {
  width: 100% !important;
  display: block !important;
}

body.type-category #products .prices,
body.type-category #products .price-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 106px !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}

body.type-category #products .price-standard-wrapper {
  display: none !important;
}

body.type-category #products .price-final,
body.type-category #products .price,
body.type-category #products .price-standard,
body.type-category #products .price strong,
body.type-category #products .price-final strong {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.type-category #products .price-final {
  margin: 0 !important;
  line-height: 1 !important;
  min-height: 0 !important;
}

body.type-category #products .price-final::after,
body.type-category #products .price::after {
  content: "inkl. MwSt. zzgl. Versand" !important;
  display: block !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  color: #6b7280 !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  white-space: normal !important;
  max-width: 180px !important;
}

body.type-category #products .price-final strong,
body.type-category #products .price strong {
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #101820 !important;
  letter-spacing: -0.02em !important;
}

/* ==============================================
   8) TLAČÍTKA V KARTÁCH – sjednocení s headerem
   ============================================== */

body.type-category #products .p-tools {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

body.type-category #products .p-tools .pr-action {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

body.type-category #products .btn,
body.type-category #products .btn-primary,
body.type-category #products .btn-cart {
  border-radius: 0 !important;
  height: 46px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

body.type-category #products .btn-cart {
  min-width: 56px !important;
  width: 56px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, var(--rg-blue-main), var(--rg-blue-dark)) !important;
  border: 1px solid var(--rg-blue-main) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

body.type-category #products .btn-cart:hover {
  filter: brightness(0.92) !important;
  border-color: var(--rg-blue-main) !important;
}

body.type-category #products .btn-primary {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 18px !important;
  background: #e3edf4 !important;
  border: 1px solid #a9bccb !important;
  color: #0f3550 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

body.type-category #products .btn-primary:hover {
  background: #d9e7f0 !important;
  border-color: #93aabd !important;
  color: #0d3149 !important;
}

/* ==============================================
   9) PAGINACE A DALŠÍ OVLÁDÁNÍ
   ============================================== */

body.type-category .loadMore,
body.type-category .pagination,
body.type-category .itemsTotal,
body.type-category .goToTop {
  margin-top: 16px !important;
}

body.type-category .loadMore {
  text-align: center !important;
}

body.type-category .loadMore .btn {
  min-width: 146px !important;
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  background: linear-gradient(135deg, var(--rg-blue-main), var(--rg-blue-dark)) !important;
  border: 1px solid var(--rg-blue-main) !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.type-category .loadMore .btn:hover {
  filter: brightness(0.92) !important;
  border-color: var(--rg-blue-main) !important;
}

body.type-category .pagination__list {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body.type-category .pagination__currentPage,
body.type-category .pagination__link {
  min-width: 32px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

body.type-category .pagination__currentPage {
  background: #f4fbff !important;
  border: 1px solid #00AEEF !important;
  color: #00AEEF !important;
}

body.type-category .itemsTotal {
  font-size: 12px !important;
  color: #444 !important;
}

body.type-category .goToTop__button {
  min-width: 126px !important;
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border-radius: 0 !important;
}

/* ==============================================
   10) SPODNÍ SEO / FAQ BLOK
   ============================================== */

body.type-category .category__secondDescription {
  margin-top: 34px !important;
  padding-top: 6px !important;
  max-width: 1000px !important;
}

body.type-category .category__secondDescription h2 {
  font-size: 19px !important;
  line-height: 1.34 !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 13px 0 !important;
  text-transform: none !important;
}

body.type-category .category__secondDescription p {
  font-size: 16px !important;
  line-height: 1.78 !important;
  color: #444 !important;
  margin: 0 0 13px 0 !important;
}

body.type-category .category__secondDescription h2:not(:first-child) {
  margin-top: 30px !important;
}

body.type-category .category__secondDescription .faq {
  margin-top: 24px !important;
}

body.type-category .faq .faq-question,
body.type-category .faq .faq-question a,
body.type-category .faq .faq-question span,
body.type-category .faq .faq-item h3,
body.type-category .faq .faq-item summary {
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #1f1f1f !important;
}

body.type-category .faq .faq-item,
body.type-category .faq .faq-question,
body.type-category .faq details,
body.type-category .faq summary {
  border-color: #e7edf2 !important;
}

body.type-category .faq summary,
body.type-category .faq .faq-question {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

body.type-category .faq summary::after,
body.type-category .faq .faq-question::after,
body.type-category .faq .expandable-header::after {
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #00AEEF !important;
}

/* ==============================================
   11) RESPONSIVE
   ============================================== */

@media (max-width: 1480px) {
  body.type-category .products.products-inline.products-top {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.type-category #products.products-page.products-block.big {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  body.type-category .products.products-inline.products-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.type-category #products.products-page.products-block.big {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.type-category #products.products-page.products-block.big {
    grid-template-columns: 1fr !important;
  }

  body.type-category .category-title {
    font-size: 29px !important;
  }

  body.type-category .category-perex h2,
  body.type-category .category__secondDescription h2 {
    font-size: 20px !important;
  }

  body.type-category .category-perex p,
  body.type-category .category__secondDescription p {
    font-size: 17px !important;
    line-height: 1.8 !important;
  }

  body.type-category #products .prices,
  body.type-category #products .price-wrapper {
    min-height: 102px !important;
  }

  body.type-category #products .price-final strong,
  body.type-category #products .price strong {
    font-size: 28px !important;
  }

  body.type-category #products .price-final::after,
  body.type-category #products .price::after {
    max-width: 176px !important;
  }

  body.type-category .faq .faq-question,
  body.type-category .faq .faq-question a,
  body.type-category .faq .faq-question span,
  body.type-category .faq .faq-item h3,
  body.type-category .faq .faq-item summary {
    font-size: 17px !important;
  }
}

@media (max-width: 767px) {
  body.type-category .products-top-wrapper {
    padding: 14px !important;
    margin-bottom: 20px !important;
  }

  body.type-category .products.products-inline.products-top {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.type-category .category-top {
    margin-bottom: 20px !important;
  }

  body.type-category .category-title {
    font-size: 27px !important;
    margin-bottom: 10px !important;
  }

  body.type-category .category-perex h2,
  body.type-category .category__secondDescription h2 {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }

  body.type-category .category-perex p,
  body.type-category .category__secondDescription p {
    font-size: 17px !important;
    line-height: 1.82 !important;
  }

  body.type-category .products-top .p {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    grid-template-areas:
      "image name"
      "image availability"
      "price price" !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    min-height: 0 !important;
    padding: 10px !important;
  }

  body.type-category .products-top .image {
    width: 68px !important;
    min-width: 68px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body.type-category .products-top .image img {
    max-width: 64px !important;
    max-height: 40px !important;
  }

  body.type-category .products-top .name {
    min-height: 48px !important;
    max-height: 48px !important;
    font-size: 12px !important;
    line-height: 1.32 !important;
  }

  body.type-category .products-top .availability span {
    font-size: 12px !important;
  }

  body.type-category .products-top .price-final strong,
  body.type-category .products-top .price strong {
    font-size: 18px !important;
  }

  body.type-category .products-top .price-final::after,
  body.type-category .products-top .price::after {
    font-size: 11px !important;
    max-width: 150px !important;
  }

  body.type-category #products .product .p,
  body.type-category #products .product .p.big {
    min-height: auto !important;
  }

  body.type-category #products .product .image {
    height: 188px !important;
  }

  body.type-category #products .name {
    min-height: 0 !important;
    font-size: 15px !important;
    line-height: 1.46 !important;
  }

  body.type-category #products .prices,
  body.type-category #products .price-wrapper {
    min-height: 108px !important;
    margin-bottom: 14px !important;
  }

  body.type-category #products .p-bottom > [data-micro="offer"][data-micro-availability*="InStock"]::before {
    font-size: 13px !important;
  }

  body.type-category #products .price-final strong,
  body.type-category #products .price strong {
    font-size: 26px !important;
  }

  body.type-category #products .price-final::after,
  body.type-category #products .price::after {
    font-size: 13px !important;
    max-width: 190px !important;
  }

  body.type-category #products .p-tools {
    gap: 6px !important;
  }

  body.type-category #products .btn,
  body.type-category #products .btn-primary,
  body.type-category #products .btn-cart {
    height: 46px !important;
    font-size: 11px !important;
  }

  body.type-category #products .btn-cart {
    min-width: 54px !important;
    width: 54px !important;
  }

  body.type-category .faq .faq-question,
  body.type-category .faq .faq-question a,
  body.type-category .faq .faq-question span,
  body.type-category .faq .faq-item h3,
  body.type-category .faq .faq-item summary {
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  body.type-category .faq summary,
  body.type-category .faq .faq-question {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
}