/* ===============================
   HLAVNÍ LAYOUT
   =============================== */

.pm-catalog{
  display:grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 32px;
  align-items:start;
}

/* sidebar */
.pm-sidebar{
  width: 100%;
}

.pm-cats{
  padding-top: 6px;
}

.pm-sidebar ul,
.pm-sidebar li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pm-sidebar-title{
  display: inline-block; 
  margin-bottom: 22px;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e7a04a;
  color: #3c4142;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.pm-cat-top{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-cat-top > li{
  position: relative;
}

.pm-cat-top > li > a{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #3c4142 !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 160ms ease, color 160ms ease;
}

.pm-cat-top > li > a span{
  display: block;
}

.pm-cat-top > li.has-children > a::after{
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.8px solid #8d9395;
  border-bottom: 1.8px solid #8d9395;
  transform: rotate(-45deg);
  transition: transform 160ms ease, border-color 160ms ease;
  margin-left: 12px;
  flex: 0 0 auto;
}

.pm-cat-top > li.is-open > a{
  background: #f5f1ea;
  color: #e39a3b !important;
}

.pm-cat-top > li.is-open.has-children > a::after{
  transform: rotate(45deg);
  border-color: #e39a3b;
}

.pm-cat-top > li:not(.is-open) > ul{
  display: none;
}

.pm-cat-top > li + li{
  margin-top: 2px;
}

/* podstrom */
.pm-cat-top > li > ul{
  margin-top: 10px !important;
  margin-left: 16px !important;
  padding-left: 18px !important;
  border-left: 2px solid #d9d3ca;
}

.pm-cat-top > li > ul > li{
  margin-bottom: 6px !important;
}

.pm-cat-top > li > ul > li > a{
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: #7b8284 !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 160ms ease;
}

.pm-cat-top > li > ul > li > a:hover{
  color: #3c4142 !important;
}

.pm-cat-top > li > ul > li.is-active > a{
  color: #3c4142 !important;
  font-weight: 700;
}

/* vnořené úrovně případně ještě o kousek jemněji */
.pm-cat-top ul ul{
  margin-top: 4px !important;
  margin-left: 14px !important;
  padding-left: 14px !important;
  border-left: 1px solid #ddd7cf;
}

.pm-cat-top ul ul li a{
  font-size: 14px;
  color: #8b9092 !important;
}

/* ===============================
   HEADER NAD PRODUKTY
   =============================== */

.pm-content-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

/* název kategorie */
.pm-current-category{
  color: #3c4142;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* search bar */
.pm-search{
  position: relative;
  flex: 0 0 auto;
}

.pm-search input{
  width: 220px;
  height: 26px;
  padding: 0 40px 0 14px !important;
  border-radius: 30px;
  border: 1px solid #d6d2cb;
  background: #fff;
  font-size: 14px;
  color: #3c4142;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pm-search input:focus{
  border-color: #c7b299;
  box-shadow: 0 0 0 3px rgba(231,160,74,0.12);
}

/* lupa vpravo */
.pm-search::before{
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #9aa0a2;
  border-radius: 50%;
  transform: translateY(-68%);
  pointer-events: none;
}

.pm-search::after{
  content: "";
  position: absolute;
  right: 15px;
  top: 58%;
  width: 7px;
  height: 2px;
  background: #9aa0a2;
  transform: rotate(45deg);
  pointer-events: none;
}

/* neviditelná klikací oblast nad lupou */
.pm-search-submit{
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* ===============================
   GRID PRODUKTŮ
   =============================== */

.pm-grid-wrap{
  width:100%;
}

.pm-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 32px;
}

/* ===============================
   DLAŽDICE
   =============================== */

.pm-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pm-tile-media{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 42px 28px;
  background: #ffffff;
}

.pm-tile-media img{
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.pm-img-placeholder{
  width: 100%;
  height: 210px;
  border: 1px dashed #d4d0c8;
  border-radius: 8px;
}

.pm-tile-badge{
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3e7d8;
  color: #d98a2f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.pm-tile-body{
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 28px;
  background: #f5f1ea;
  text-align: left;
}

.pm-tile-brand{
  margin-bottom: 10px;
  color: #d98a2f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.pm-title{
  margin: 0 0 10px;
  color: #3c4142;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.pm-weight{
  margin-bottom: 8px;
  color: #3c4142;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.pm-tile-desc{
  max-width: 85%;
  color: #6e7475;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 10px;
}


/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 1024px){
  .pm-catalog{
    grid-template-columns: 220px 1fr !important;
  }
  .pm-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 700px){
  .pm-catalog{
    grid-template-columns: 1fr !important;
  }
  .pm-grid{
    grid-template-columns: 1fr !important;
  }
}


/* Hover efekt na dlaždici */
.pm-tile:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.pm-grid-empty{
  grid-column: 1 / -1;      /* přes všechny sloupce */
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  color: #8a8f91;
  border: 1px dashed #3c4142;
}

.pm-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin: 9em 0 5em 0 !important;
}

.pm-detail-left{
  width:100%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertikální centrování */
}

.pm-detail-logo img{
  height:auto;
  display:block;
  margin-bottom: 1.2em !important;
}

.pm-detail-title{
  margin: 0 0 12px 0;
  font-size: 22px;
  line-height: 1.3;
  color: #e39a3b;
}

.pm-detail-weight{
  display:block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #3c4142;
}

.pm-detail-desc{
  margin: 0 0 18px 0;
  line-height: 1.6;
  color: #3c4142;
}

.pm-detail-specs{
  margin-top: 10px;
}

.pm-spec-row{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  line-height: 1.6;
  color: #3c4142;
}

.pm-spec-row span{
  opacity: 0.75;
}

.pm-detail-right{
  display: flex;
  align-items: center;      /* vertikálně */
  justify-content: center;  /* horizontálně */
  min-height: 100%;         /* aby měl kontejner výšku */
}

.pm-detail-image{
  max-width: 100%;
  max-height: 500px;
  height: auto;
  width: auto;
  display: block;
}

.pm-detail-image-placeholder{
  width: 100%;
  height: 320px;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pm-detail-back{
  margin-top: 3em;
}

.pm-detail-back a{
  text-decoration:none;
  color:#3c4142;
}

.pm-detail-back a:hover{
  color:#cc2229;
}

@media (max-width: 900px){
  .pm-detail{
    grid-template-columns: 1fr;
  }
}

.pm-product-detail .bc-carousel{
  display:none !important;
}

.pm-tile-footer {
	margin-top: auto;
	padding-top: 10px;
}

.pm-tile-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 999px;

	background: #fff;          
	color: #6f7577;            
	border: 1px solid #e3dfd8; 

	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1.2px;
	text-transform: uppercase;

	transition: all 0.2s ease;
}

/* hover na celou kartu */
.pm-tile:hover .pm-tile-more {
	background: #f3e7d8;  
	color: #d98a2f;       
	border-color: #f3e7d8;
}


/* Footer wrapper má výšku 0 -> typicky kvůli floatům uvnitř */
footer.main-footer-wrapper,
footer.main-footer-wrapper::before,
footer.main-footer-wrapper::after{
  display: block;
}

footer.main-footer-wrapper::after{
  content: "";
  display: table;
  clear: both;
}

/* Robustnější varianta: vytvoří nový block formatting context */
footer.main-footer-wrapper{
  overflow: auto;  /* nebo hidden; auto je bezpečnější */
}

.pm-pagination {
  text-align: center;
  margin-top: 2em;
}

.pm-pagination a {
  margin: 0 0.5em;
  color:#3c4142 !important;
}

.pm-pagination a.is-active {
  color:#d98a2f !important;
  font-weight: bold;
}

.pm-seasonal-catalogs {
	margin-top: 3em;
}

.pm-seasonal-catalogs p {
	font-size: 18px;
	margin-bottom: 4px;
}