/*
 * ESKLÉ — produktová galerie kategorie pro Shoptet Samba, verze 1.
 * Dvě stejné dlaždice v řádku, bez filtrace a řazení.
 */

body.type-category{
  --ae-category-text:#242424;
  --ae-category-muted:#777;
  --ae-category-max:1440px;
  --ae-category-x:48px;
  --ae-category-photo:clamp(420px,35vw,620px);
  --ae-category-gap:clamp(36px,5vw,72px);
}

body.type-category #content-wrapper{
  padding-top:0!important;
}

body.type-category #content{
  width:calc(100% - var(--ae-category-x))!important;
  max-width:calc(
    var(--ae-category-photo) + var(--ae-category-photo) + var(--ae-category-gap)
  )!important;
  margin:0 auto!important;
  padding:22px 0 100px!important;
  color:var(--ae-category-text);
}

/* Horní část kategorie zůstává klidná a bez ovládacích prvků. */
body.type-category .breadcrumbs{
  display:none!important;
}

body.type-category .category-perex{
  max-width:620px!important;
  margin:0 auto 46px!important;
  color:var(--ae-category-muted)!important;
  font-size:12px!important;
  line-height:1.6!important;
  text-align:center!important;
}

body.type-category .category-perex:empty,
body.type-category .category-title,
body.type-category h1.category-title,
body.type-category #content>h1,
body.type-category .category-top,
body.type-category .subcategories,
body.type-category .category-header,
body.type-category #category-header,
body.type-category .filters-unveil-button-wrapper,
body.type-category .filters-wrapper,
body.type-category .filter-sections,
body.type-category .category-content-wrapper>aside,
body.type-category .category-content-wrapper>.sidebar,
body.type-category .products-top,
body.type-category .products-top-header,
body.type-category .product-count,
body.type-category .ordering-process,
body.type-category .sort-param,
body.type-category .category-appendix{
  display:none!important;
}

body.type-category .category-content-wrapper,
body.type-category .category-content-wrapper>main,
body.type-category .category-content-wrapper>.category-content,
body.type-category .products-wrapper{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* Stejně velké produktové dlaždice — žádná zvýrazněná velká karta. */
body.type-category .products-block{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:var(--ae-category-gap)!important;
  row-gap:52px!important;
  margin:0!important;
}

body.type-category .products-block>.product{
  display:block!important;
  float:none!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

body.type-category .products-block>.product .p{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.type-category .products-block>.product .image{
  display:block!important;
  order:0;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1127/1436!important;
  margin:0 0 13px!important;
  overflow:hidden!important;
  background:#f3f1ee!important;
}

body.type-category .products-block>.product .image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
  transition:transform .5s ease;
}

body.type-category .products-block>.product .image:hover img,
body.type-category .products-block>.product .image:focus-visible img{
  transform:scale(1.02);
}

body.type-category .products-block>.product .p-in{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  padding:0!important;
  text-align:left!important;
}

body.type-category .products-block>.product .p-in-in{
  padding:0!important;
  text-align:left!important;
}

body.type-category .products-block>.product .name{
  display:block!important;
  margin:0 0 3px!important;
  padding:0!important;
  width:auto!important;
  min-height:0!important;
  height:auto!important;
  color:var(--ae-category-text)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:1.35!important;
  text-align:left!important;
  text-decoration:none!important;
  text-transform:none!important;
}

body.type-category .products-block>.product .prices{
  display:block!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

body.type-category .products-block>.product .p-bottom{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  text-align:left!important;
}

body.type-category .products-block>.product .price,
body.type-category .products-block>.product .price-final,
body.type-category .products-block>.product .price-standard,
body.type-category .products-block>.product [data-testid="productCardPrice"]{
  display:block!important;
  color:var(--ae-category-text)!important;
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.35!important;
  text-align:left!important;
}

/* Na přehledu nerušíme dlaždice štítky, popisem ani nákupním tlačítkem. */
body.type-category .products-block>.product .flags,
body.type-category .products-block>.product .ratings-wrapper,
body.type-category .products-block>.product .p-desc,
body.type-category .products-block>.product .availability,
body.type-category .products-block>.product .p-tools{
  display:none!important;
}

/* Jednoduché stránkování zůstává jediným ovládáním výpisu. */
body.type-category .pagination-wrapper{
  margin:76px 0 0!important;
  padding:0!important;
  border:0!important;
  text-align:center!important;
}

body.type-category .pagination{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  margin:0!important;
}

body.type-category .pagination a,
body.type-category .pagination strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  height:34px!important;
  padding:0 8px!important;
  border:1px solid transparent!important;
  border-radius:50%!important;
  background:transparent!important;
  color:var(--ae-category-text)!important;
  font-size:11px!important;
  font-weight:400!important;
}

body.type-category .pagination strong,
body.type-category .pagination a:hover,
body.type-category .pagination a:focus-visible{
  border-color:#cfcfcb!important;
}

@media(max-width:767px){
  body.type-category{
    --ae-category-x:24px;
  }

  body.type-category #content{
    padding-top:24px!important;
    padding-bottom:70px!important;
  }

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

  body.type-category .category-perex{
    margin:0 auto 36px!important;
  }

  body.type-category .products-block{
    grid-template-columns:1fr!important;
    gap:44px!important;
  }

  body.type-category .products-block>.product .image{
    margin-bottom:11px!important;
  }

  body.type-category .products-block>.product .name{
    font-size:11px!important;
  }

  body.type-category .pagination-wrapper{
    margin-top:56px!important;
  }
}

@media(max-width:420px){
  body.type-category{
    --ae-category-x:20px;
  }
}

@media(prefers-reduced-motion:reduce){
  body.type-category .products-block>.product .image img{
    transition:none!important;
  }
}
