/* Wędkarz.pro 2.17.75 — podkategorie, szczegóły zestawów i krótsze nazwy sklepów.
   Nakładka po CSS sklepu; nie ingeruje w kolumny, checkout ani struktury danych. */

/* Podkategorie: osobna, spokojniejsza warstwa nawigacji pod nagłówkiem kategorii. */
.catalog-page .wpro-subcategory-nav {
  margin: 22px 0 26px;
  padding: 22px 23px 24px;
  border: 1px solid #dce5e7;
  border-radius: 16px;
  background: #fbfcfc;
}
.catalog-page .wpro-subcategory-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.catalog-page .wpro-subcategory-heading > div > span {
  display: block;
  margin-bottom: 5px;
  color: #507285;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-page .wpro-subcategory-heading h2 {
  margin: 0;
  color: #182e3b;
  font-size: clamp(19px, 1.65vw, 24px);
  font-weight: 790;
  line-height: 1.26;
}
.catalog-page .wpro-subcategory-heading > small {
  flex-shrink: 0;
  color: #617783;
  font-size: 12px;
}
.catalog-page .wpro-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.catalog-page .wpro-subcategory-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dbe3e7;
  border-radius: 11px;
  color: #1f3947;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(14, 41, 52, .025);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.catalog-page .wpro-subcategory-card:is(:hover, :focus-visible) {
  color: #153742;
  background: #f6faef;
  border-color: #9fca53;
  box-shadow: 0 4px 12px rgba(20, 54, 26, .075);
}
.catalog-page .wpro-subcategory-card:focus-visible {
  outline: 2px solid #326f86;
  outline-offset: 3px;
}
.catalog-page .wpro-subcategory-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #edf3e8;
  color: #436521;
  font-size: 19px;
}
.catalog-page .wpro-subcategory-text {display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1;}
.catalog-page .wpro-subcategory-text strong {font-size: 13px; font-weight: 730; line-height: 1.25; overflow-wrap: anywhere;}
.catalog-page .wpro-subcategory-text small {font-size: 11px; color: #6c828c; line-height: 1.3;}
.catalog-page .wpro-subcategory-arrow {flex: 0 0 auto; align-self: flex-start; color: #75919d; font-size: 13px;}
/* W filtrze bocznym podkategoria pozostaje podrzędna, bez wyglądu głównego działu. */
.catalog-page .category-tree-item.level-1 > a,
.catalog-page .category-tree-item.level-2 > a,
.catalog-page .category-tree-item.level-3 > a {
  font-weight: 550;
  letter-spacing: normal;
}
.catalog-page .category-tree-item.level-1 > a {font-size: 13px;}
.catalog-page .category-tree-item.level-2 > a {font-size: 12px;}
.catalog-page .category-tree-item.level-1.active > a,
.catalog-page .category-tree-item.level-2.active > a {
  font-weight: 750;
}

/* Zestawy: cena i zamawianie od razu pod tytułem, cały opis dopiero potem. */
.bundle-detail-page .bundle-order-panel {
  margin: 25px 0 28px;
  padding: 18px;
  border: 1px solid #dce5e9;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 23px rgba(17, 44, 56, .045);
}
.bundle-detail-page .bundle-order-panel .bundle-summary-box {
  margin: 0 0 14px;
  border-radius: 10px;
  background: #f5f8f3;
  box-shadow: none;
}
.bundle-detail-page .bundle-order-panel .bundle-summary-box strong {overflow-wrap:anywhere;}
.bundle-detail-page .bundle-order-panel .bundle-stock-note {display:block;margin-top:12px;color:#6a7c84;font-size:12px;line-height:1.5;}
.bundle-detail-page .bundle-order-panel .bundle-stock-note i {margin-right:5px;}
.bundle-detail-page .bundle-order-panel .alert {margin-top:12px;margin-bottom:13px;font-size:13px;line-height:1.55;}
.bundle-detail-page .bundle-order-panel .wpro-soon-detail {margin-top:11px;}
.bundle-detail-page .bundle-description-section {margin: 0; padding: 0 0 8px;}
.bundle-detail-page .bundle-description-section > h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4e9eb;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 790;
  color: #1d3440;
}
.bundle-detail-page .bundle-description-section .bundle-rich-description {margin:0;line-height:1.75;}
.bundle-detail-page .bundle-detail-info h1 {overflow-wrap:anywhere;}

/* Kolumna galerii ma wysokość opisu. Sticky zatrzymuje się przed listą produktów. */
@media (min-width: 992px) {
  .bundle-detail-page .bundle-detail-layout {align-items:stretch!important;}
  .bundle-detail-page .bundle-gallery-column {align-self:stretch;min-width:0;overflow:visible;}
  .bundle-detail-page .bundle-gallery-sticky {
    position: sticky;
    top: 114px;
    z-index: 2;
  }
  .bundle-detail-page .bundle-gallery-sticky .bundle-detail-cover {
    height: min(510px, calc(100vh - 235px));
    min-height: 270px;
    overflow: hidden;
  }
  .bundle-detail-page .bundle-gallery-sticky .bundle-detail-cover > img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .bundle-detail-page .bundle-gallery-sticky .bundle-gallery-thumbs {
    max-height: 105px;
    overflow-y: auto;
  }
}
@media (max-height: 640px) and (min-width: 992px) {
  .bundle-detail-page .bundle-gallery-sticky {top: 75px;}
  .bundle-detail-page .bundle-gallery-sticky .bundle-detail-cover {height: calc(100vh - 210px);min-height:220px;}
  .bundle-detail-page .bundle-gallery-sticky .bundle-gallery-thumbs {max-height:66px;}
}
@media (max-width: 1199px) {
  .catalog-page .wpro-subcategory-grid {grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 991.98px) {
  .bundle-detail-page .bundle-gallery-sticky {position: static;}
  .bundle-detail-page .bundle-detail-layout {align-items: start!important;}
  .catalog-page .wpro-subcategory-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 575.98px) {
  .catalog-page .wpro-subcategory-nav {padding:16px;margin:15px 0 22px;border-radius:12px;}
  .catalog-page .wpro-subcategory-grid {grid-template-columns:1fr;gap:8px;}
  .catalog-page .wpro-subcategory-heading {align-items:start;flex-direction:column;gap:4px;}
  .catalog-page .wpro-subcategory-card {min-height:66px;padding:10px 11px;}
  .bundle-detail-page .bundle-order-panel {padding:13px;margin:19px 0 23px;}
  .bundle-detail-page .bundle-description-section > h2 {margin-bottom:13px;}
}
@media (prefers-reduced-motion: reduce) {
  .catalog-page .wpro-subcategory-card {transition:none;}
}
