/* Pricna ulice – category sorting aligned with homepage text tabs.
   Load after product-design CSS. Native sorting remains unchanged. */
body.type-category #content .listSorting {border:0;background:transparent;box-shadow:none}
body.type-category #content .listSorting__controls {
 display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;
 gap:0;margin:0 0 20px;padding:0;list-style:none;
 border:0;border-bottom:1px solid #e5dfd4;border-radius:0;
 background:transparent;box-shadow:none;
}
body.type-category #content .listSorting__controls > li {
 position:relative;display:flex;float:none;flex:0 1 auto;
 min-width:0;margin:0;padding:0;border:0;background:transparent;
}
body.type-category #content .listSorting__controls > li + li::before {
 content:'';position:absolute;left:0;top:50%;width:1px;height:16px;
 transform:translateY(-50%);background:#d8ccb5;pointer-events:none;
}
body.type-category #content .listSorting__control {
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 min-height:48px;max-width:100%;margin:0 10px -1px;padding:13px 10px;
 border:0;border-bottom:2px solid transparent;border-radius:0;
 background:transparent;color:#736b5f;box-shadow:none;
 font-family:inherit;font-size:15px;font-weight:500;line-height:1.45;
 white-space:normal;text-align:center;text-decoration:none;
}
body.type-category #content .listSorting__control--current,
body.type-category #content .listSorting__control--current:hover {
 color:#191714;background:transparent;border-color:#b88a2d;
 box-shadow:none;font-weight:500;opacity:1;
}
body.type-category #content .listSorting__control:not(.listSorting__control--current):hover {
 color:#795a22;background:transparent;border-color:#d5bf91;
}
body.type-category #content .listSorting__control:focus-visible {
 outline:2px solid #b88a2d;outline-offset:-3px;
}
@media(max-width:767px) {
 body.type-category #content .listSorting__controls {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;justify-content:stretch;
 }
 body.type-category #content .listSorting__controls > li:nth-child(odd)::before {content:none}
 body.type-category #content .listSorting__controls > li:last-child:nth-child(odd) {grid-column:1 / -1}
 body.type-category #content .listSorting__control {
  width:100%;min-width:0;margin:0 6px -1px;padding:10px 4px;
  font-size:13px;overflow-wrap:break-word;
 }
}

/* V2: centre the entire sorting row within the category content. */
body.type-category #content #category-header {
 box-sizing:border-box; width:100%; max-width:100%;
 margin-left:0; margin-right:0; padding-left:0; padding-right:0;
}
body.type-category #content #category-header .listSorting {
 box-sizing:border-box; display:block; flex:1 1 100%; float:none;
 width:100%; max-width:100%; margin-left:auto; margin-right:auto;
 padding-left:0; padding-right:0;
}
body.type-category #content #category-header .listSorting__controls {
 box-sizing:border-box; width:100%; max-width:100%;
 margin-left:auto; margin-right:auto; padding-left:0; padding-right:0;
 justify-content:center!important;
}
body.type-category #content #category-header .listSorting__controls > li {
 justify-content:center;
}
@media(max-width:767px) {
 body.type-category #content #category-header .listSorting__control {
  width:calc(100% - 12px); flex-shrink:1;
 }
}
/* V3: narrow screens – centred two-column layout, no clipped labels. */
@media(max-width:767px) {
 body.type-category #content #category-header .listSorting__controls {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px 0; width:100%; max-width:100%;
 }
 body.type-category #content #category-header .listSorting__controls > li {
  min-width:0; width:auto; align-items:stretch; justify-content:center;
 }
 body.type-category #content #category-header .listSorting__control {
  box-sizing:border-box; width:calc(100% - 12px); max-width:calc(100% - 12px);
  min-height:48px; height:auto; white-space:normal; overflow-wrap:anywhere;
  margin:0 6px -1px; padding:10px 4px; line-height:1.45;
 }
 body.type-category #content #category-header .listSorting__controls > li:last-child:nth-child(odd) {
  grid-column:1 / -1;
 }
 body.type-category #content #category-header .listSorting__controls > li:last-child:nth-child(odd) > button {
  width:auto; max-width:calc(100% - 12px); padding-left:16px; padding-right:16px;
 }
}
