/* DEKATRADE 20.14.31 — one product-filter language across catalogue pages. */

/* Shared sidebar/card standard: mirrors the approved /polipropilenovye-truby/ filter. */
.ppr-showcase-filter,
.ppr211-filter.ppr-showcase-filter,
.brand219-filter.ppr-showcase-filter{
  box-sizing:border-box;
  width:100%;
  border:1px solid #dbe4ed!important;
  border-radius:14px!important;
  background:#fff!important;
  padding:18px!important;
  box-shadow:none!important;
}

.ppr-showcase-filter fieldset,
.ppr211-filter.ppr-showcase-filter fieldset{
  border:0!important;
  padding:0!important;
  margin:0 0 20px!important;
  min-width:0;
}
.ppr-showcase-filter fieldset:last-of-type,
.ppr211-filter.ppr-showcase-filter fieldset:last-of-type{margin-bottom:14px!important}

.ppr-showcase-filter legend,
.ppr211-filter.ppr-showcase-filter legend,
.ppr211-filter.ppr-showcase-filter .ppr211-filter__select>span,
.brand219-filter.ppr-showcase-filter label>span{
  display:block;
  margin:0 0 10px!important;
  color:#132f4f!important;
  font-size:14px!important;
  line-height:1.3;
  font-weight:800!important;
}

.ppr-showcase-filter label,
.ppr211-filter.ppr-showcase-filter .ppr211-filter__radios label{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:30px!important;
  margin:6px 0!important;
  padding:0!important;
  color:#54697f!important;
  font-size:13px!important;
  line-height:1.3;
  cursor:pointer;
}

/* Square controls everywhere, including legacy radio filters from PPR HUB. */
.ppr-showcase-filter input[type="checkbox"],
.ppr-showcase-filter input[type="radio"],
.ppr211-filter.ppr-showcase-filter input[type="checkbox"],
.ppr211-filter.ppr-showcase-filter input[type="radio"],
.deniz-catalog-20136__filters input[type="checkbox"],
.deniz-catalog-20136__filters input[type="radio"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  min-height:17px!important;
  flex:0 0 17px!important;
  margin:0!important;
  padding:0!important;
  border:1.5px solid #9aabba!important;
  border-radius:2px!important;
  background:#fff!important;
  box-shadow:none!important;
  cursor:pointer;
}
.ppr-showcase-filter input[type="checkbox"]:checked,
.ppr-showcase-filter input[type="radio"]:checked,
.ppr211-filter.ppr-showcase-filter input[type="checkbox"]:checked,
.ppr211-filter.ppr-showcase-filter input[type="radio"]:checked,
.deniz-catalog-20136__filters input[type="checkbox"]:checked,
.deniz-catalog-20136__filters input[type="radio"]:checked{
  border-color:#1266c3!important;
  background:#1266c3!important;
  box-shadow:inset 0 0 0 3px #fff!important;
}
.ppr-showcase-filter input:focus-visible,
.ppr211-filter.ppr-showcase-filter input:focus-visible,
.deniz-filter-standard :is(select,input):focus-visible{
  outline:3px solid rgba(18,102,195,.24)!important;
  outline-offset:2px!important;
}

/* Compact native selects inside the same filter card. */
.ppr211-filter.ppr-showcase-filter .ppr211-filter__select,
.brand219-filter.ppr-showcase-filter label{
  display:block!important;
  margin:0 0 18px!important;
  color:#132f4f!important;
  font-weight:700!important;
}
.ppr211-filter.ppr-showcase-filter select,
.brand219-filter.ppr-showcase-filter select,
.deniz-filter-standard select{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:42px;
  border:1px solid #d5e0e9!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#173653!important;
  padding:0 36px 0 11px!important;
  font:inherit;
}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__select small{
  display:block;
  margin-top:6px;
  color:#7b8b9b;
  font-size:11px;
  line-height:1.4;
}

/* The legacy PPR HUB now reads like the approved filter instead of screenshot 3. */
.ppr211-catalog__layout{grid-template-columns:220px minmax(0,1fr)!important;gap:18px!important}
.ppr211-filter.ppr-showcase-filter{top:92px!important}
.ppr211-filter.ppr-showcase-filter form{display:block!important}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__radios{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__other{
  border-top:1px solid #e6edf4;
  margin-top:16px;
  padding-top:14px;
}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__other strong{font-size:13px;color:#53687d}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__other a{
  border-radius:7px!important;
  background:#f7fbff!important;
}
.ppr211-filter.ppr-showcase-filter .ppr211-filter__note{margin-bottom:0}

/* One reset treatment; apply buttons are intentionally absent. */
.ppr-showcase-filter__reset,
.ppr211-filter__reset,
.brand219-filter__reset,
.deniz-filter-standard .filter-reset{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin-top:8px!important;
  padding:4px 0!important;
  color:#6f8090!important;
  font-size:12px!important;
  font-weight:650!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}

/* Safety net for old/cached fragments: no visible apply button on auto-filter forms. */
.deniz-auto-filter-form .ppr-showcase-filter__submit,
.deniz-auto-filter-form button[type="submit"].btn--primary,
.deniz-auto-filter-form button[type="submit"].ui-btn{
  display:none!important;
}

/* Full catalogue / price / project filters: same border, typography and controls. */
.catalog-filter.deniz-filter-standard,
.price-filter.deniz-filter-standard{
  border:1px solid #dbe4ed!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.catalog-filter.deniz-filter-standard label,
.price-filter.deniz-filter-standard label{
  color:#173653!important;
  font-size:12px!important;
  font-weight:750!important;
}
.catalog-filter.deniz-filter-standard :is(select,input[type="search"],input[type="text"]),
.price-filter.deniz-filter-standard :is(select,input[type="search"],input[type="text"]){
  min-height:44px;
  border:1px solid #d5e0e9!important;
  border-radius:9px!important;
  background:#fff!important;
}
.catalog-filter--progressive.deniz-filter-standard .catalog-filter__actions{
  justify-content:flex-start!important;
  min-height:0!important;
}
.catalog-filter--progressive.deniz-filter-standard .catalog-filter__actions:empty{display:none!important}

/* 20.13.6 category renderer was rebuilt into the same left filter + right cards layout. */
.deniz-catalog-20136 .ppr-showcase__head{margin-bottom:18px}
.deniz-catalog-20136 .ppr-showcase__head .eyebrow{margin:0 0 5px}
.deniz-catalog-20136 .ppr-showcase__head h2{margin:0}
.deniz-catalog-20136 .deniz-results-count{margin:0 0 12px;color:#52687e;font-size:13px;font-weight:650}
.deniz-catalog-20136 .deniz-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.deniz-catalog-20136 .deniz-pagination .page-numbers{
  min-width:38px;min-height:38px;display:inline-grid;place-items:center;border:1px solid #d6e1ea;border-radius:8px;background:#fff
}
.deniz-catalog-20136 .deniz-pagination .current{background:#1266c3;color:#fff;border-color:#1266c3}
.deniz-filter-empty{display:block;color:#7b8b9b;font-size:12px;line-height:1.4}

/* Immediate-filter feedback while navigation starts. */
.deniz-auto-filter-form.is-filter-loading{opacity:.72;pointer-events:none;transition:opacity .12s ease}

@media(max-width:920px){
  .ppr211-catalog__layout{grid-template-columns:1fr!important}
  .ppr211-filter.ppr-showcase-filter{position:static!important}
  .ppr211-filter.ppr-showcase-filter .ppr211-filter__radios{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px 14px!important}
  .brand219-filter.ppr-showcase-filter{position:static!important}
}
@media(max-width:620px){
  .ppr211-filter.ppr-showcase-filter .ppr211-filter__radios{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .catalog-filter--progressive.deniz-filter-standard .catalog-filter__actions{display:block!important}
  .catalog-filter--progressive.deniz-filter-standard .catalog-filter__actions .filter-reset{width:auto!important}
}

/* Full catalogue uses the same left sidebar geometry as category pages. */
.deniz-unified-catalog-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.deniz-unified-catalog-layout>.catalog-filter.deniz-filter-standard{
  display:block!important;
  position:sticky;
  top:92px;
  margin:0!important;
  padding:18px!important;
  min-width:0;
}
.deniz-unified-catalog-layout .catalog-filter.deniz-filter-standard>label,
.deniz-unified-catalog-layout .catalog-filter__more-grid>label{
  display:block!important;
  margin:0 0 18px!important;
}
.deniz-unified-catalog-layout .catalog-filter__more{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.deniz-unified-catalog-layout .catalog-filter__more>summary{display:none!important}
.deniz-unified-catalog-layout .catalog-filter__more-grid{
  display:block!important;
  padding:0!important;
}
.deniz-unified-catalog-layout .catalog-filter__actions{
  display:block!important;
  margin-top:2px;
}
.deniz-unified-catalog-layout .catalog-filter__actions .filter-reset{
  width:auto!important;
  justify-content:flex-start!important;
}
.deniz-unified-catalog-results{min-width:0}
.deniz-unified-catalog-results .catalog-result-head{margin-top:0}

@media(max-width:920px){
  .deniz-unified-catalog-layout{grid-template-columns:1fr}
  .deniz-unified-catalog-layout>.catalog-filter.deniz-filter-standard{position:static}
  .deniz-unified-catalog-layout .catalog-filter.deniz-filter-standard{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .deniz-unified-catalog-layout .catalog-filter__more,
  .deniz-unified-catalog-layout .catalog-filter__actions{grid-column:1/-1}
  .deniz-unified-catalog-layout .catalog-filter__more-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .deniz-unified-catalog-layout .catalog-filter.deniz-filter-standard>label,
  .deniz-unified-catalog-layout .catalog-filter__more-grid>label{margin:0!important}
}
@media(max-width:620px){
  .deniz-unified-catalog-layout .catalog-filter.deniz-filter-standard,
  .deniz-unified-catalog-layout .catalog-filter__more-grid{grid-template-columns:1fr!important}
}

/* DEKATRADE 20.14.37 — /katalog/ product action buttons.
   Two equal minmax(0,1fr) tracks prevent intrinsic button content from widening
   a column and pushing either CTA outside the card. The renderer now uses the
   theme's unmodified default SVGs here, so admin-sized global icons cannot
   distort the compact catalogue actions. */
@media(min-width:721px){
  .deniz-unified-catalog-results .product-card__actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
  }
}
.deniz-unified-catalog-results .product-card__actions>.btn{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding-inline:10px!important;
  gap:7px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}
.deniz-unified-catalog-results .product-card__actions>.btn>svg{
  display:block!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
@media(max-width:720px){
  .deniz-unified-catalog-results .product-card__actions{
    grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* ========================================================================== 
   DEKATRADE 20.14.38 — final /katalog/ usability pass
   ========================================================================== */

/* Do not force a visitor through 30+ category cards before the actual catalogue. */
.catalog-groups-section__head{align-items:flex-end}
.catalog-category-more{margin-top:16px;border:1px solid #d8e4ee;border-radius:12px;background:#fff;overflow:hidden}
.catalog-category-more>summary{
  min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;
  list-style:none;cursor:pointer;color:#145aa6;font-size:13px;font-weight:800;background:#fff;
}
.catalog-category-more>summary::-webkit-details-marker{display:none}
.catalog-category-more>summary:after{content:"+";width:24px;height:24px;display:grid;place-items:center;border:1px solid #c6d8e7;border-radius:50%;font-size:16px;line-height:1}
.catalog-category-more[open]>summary:after{content:"−"}
.catalog-category-more>summary span{display:grid;place-items:center;min-width:28px;height:22px;padding:0 6px;border-radius:999px;background:#eaf3fb;color:#145aa6;font-size:11px}
.catalog-category-more .catalog-category-grid{padding:14px;border-top:1px solid #e5edf4}
.catalog-category-grid--primary .catalog-category-card__subs a:nth-child(n+7){display:none}

/* Three readable cards beat four compressed cards beside the fixed filter. */
.deniz-unified-catalog-results .product-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__image{
  height:190px!important;min-height:190px!important;max-height:190px!important;padding:14px!important;
}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__image>img{
  inset:14px!important;width:calc(100% - 28px)!important;height:calc(100% - 28px)!important;
}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__body{padding:16px!important}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__volume-note{display:none!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__source{color:#8a9bad!important}
.deniz-unified-catalog-results [data-deniz-product-card] .product-card__details{margin-top:2px!important}

/* One clear conversion priority: WhatsApp is primary; phone is secondary. */
.deniz-unified-catalog-results .product-card__actions{
  display:grid!important;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr)!important;
  gap:8px!important;width:100%!important;height:46px!important;min-height:46px!important;max-height:46px!important;
}
.deniz-unified-catalog-results .product-card__actions>.btn{
  min-height:46px!important;height:46px!important;padding-inline:9px!important;gap:6px!important;
  border-radius:10px!important;font-size:12px!important;font-weight:800!important;line-height:1!important;
}
.deniz-unified-catalog-results .product-card__actions>.btn>svg{
  flex:0 0 16px!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;
}
.deniz-unified-catalog-results .product-card__actions>.btn--call{
  background:#fff!important;color:#145aa6!important;border:1px solid #b9d0e5!important;box-shadow:none!important;
}
.deniz-unified-catalog-results .product-card__actions>.btn--call svg,
.deniz-unified-catalog-results .product-card__actions>.btn--call path{color:#145aa6!important;stroke:#145aa6!important}
.deniz-unified-catalog-results .product-card__actions>.btn--call:hover{background:#eef6fd!important;border-color:#7eadd5!important}
.deniz-unified-catalog-results .product-card__actions>.btn--wa{background:#0b8b43!important;border-color:#0b8b43!important}
.deniz-unified-catalog-results .product-card__actions>.btn--wa:hover{background:#08783a!important;border-color:#08783a!important}

/* Pagination should say where the visitor is, not just throw 283 at them. */
.catalog-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px!important;padding-top:20px;border-top:1px solid #e3ebf2}
.catalog-pagination__status{color:#6e8194;font-size:12px;font-weight:700}
.catalog-pagination .page-numbers{margin:0!important;display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap}
.catalog-pagination a,.catalog-pagination span.page-numbers{min-width:40px!important;height:40px!important;border-radius:9px!important;font-size:14px!important}

/* Result header has all shared commercial caveats; do not repeat them 24 times. */
.deniz-unified-catalog-results .catalog-result-head{padding:0 0 12px;border-bottom:1px solid #e5edf4;margin-bottom:16px!important}
.deniz-unified-catalog-results .catalog-result-head span{font-size:12px}

@media(min-width:921px) and (max-width:1199px){
  .deniz-unified-catalog-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:920px){
  .catalog-groups-section__head{align-items:flex-start}
  .deniz-unified-catalog-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .deniz-unified-catalog-results [data-deniz-product-card] .product-card__image{height:200px!important;min-height:200px!important;max-height:200px!important}
}
@media(max-width:620px){
  .catalog-category-more .catalog-category-grid{padding:10px}
  .deniz-unified-catalog-results .product-grid{grid-template-columns:1fr!important;gap:14px!important}
  .deniz-unified-catalog-results [data-deniz-product-card] .product-card__image{height:200px!important;min-height:200px!important;max-height:200px!important}
  .deniz-unified-catalog-results .product-card__actions{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;height:46px!important;min-height:46px!important;max-height:46px!important}
  .catalog-pagination{align-items:flex-start;flex-direction:column;gap:10px}
}
@media(max-width:390px){
  .deniz-unified-catalog-results .product-card__actions{grid-template-columns:1fr!important;height:auto!important;min-height:0!important;max-height:none!important}
  .deniz-unified-catalog-results .product-card__actions>.btn{width:100%!important}
}
