.form-success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 15px;
  text-align: center;
}
.form-success-message p {
  margin: 0;
}

.mb-0 {
  margin-bottom: 0px !important;
}
.reference-tab-a {
  background: url(../img/ico-question.gif) 14px 14px no-repeat;
}
.active .reference-tab-a, .active .reference-tab-a:hover {
  background: url(../img/ico-question-a.gif) 14px 16px no-repeat #fff;
  color: #e56b16 !important;
}
.tab-reference .reference-tab-a, .tab-reference .reference-tab-a:hover {
  background: url(../img/ico-question.gif) 14px 16px no-repeat;
  background-color: unset !important;
  color: #e56b16 !important;
}
.tab-reference.active .reference-tab-a, .tab-reference.active .reference-tab-a:hover {
  background: url(../img/ico-question-a.gif) 14px 16px no-repeat #fff;
  background-color: #fff !important;
}
.construct .pimg {
  width: 100%;
  height: auto;
}
.availability-wrapper {
   padding-right:5px;
   overflow: hidden;
   padding-bottom: 0px;
   padding-top: 0px;
   margin-top: 15px;
   float: right;
   margin-left:auto;
}
.product-card-img {
  overflow: hidden;
  height: 228px;
}
.product-card-img img {
  transition: transform 0.4s ease;
}
.pimg .product-card-img:hover img {
  transform: scale(1.05);
}
#categories ul ul li, #pages ul ul li {
  border-bottom: solid 1px white;
}
.product-detail-ref-heading {
  color: #333;
  text-align:center;
}
.reference-heading-wrapper-prod-detail {
  margin-top:20px;
  margin-bottom: 20px;
}
.tab_container {
  margin-bottom:20px;
}
#content-main .reference-title {
  background: url(../img/bg-otitle.gif) repeat-x #DDD;
  border-top: 1px solid #DDD;
  height: 24px;
  padding: 5px 10px;
  font-weight: normal;
}
.reference-category-wrapper {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   margin-top:10px;
   margin-bottom:20px;
   width: 100%;
}

.reference-tile {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-sizing: border-box;
    width: 100%;
}

.reference-title-container {
   height: 40px;
   display: flex;
   align-items: center;
   margin-bottom: 10px;
}

.reference-tile h3 {
   margin: 0;
   font-size: 1.2em;
   color: #333;
   line-height: 1.2;
   word-wrap: break-word;
}

.reference-image {
   margin-bottom: 10px;
   text-align: center;
}

.reference-image img {
   width: 100%;
   height: auto;
   max-width: 300px;
   border-radius: 4px;
}

.reference-tile p {
   margin: 0 0 15px 0;
   color: #666;
   line-height: 1.4;
   word-wrap: break-word;
}

.reference-tile .button {
   display: inline-block;
   padding: 8px 16px;
   background: #e56b16;
   color: #fff;
   text-decoration: none;
   border-radius: 4px;
   font-weight: 700;
   float:right;
}

.reference-tile .button:hover {
    background: #d55a14;
}

.reference-tile .reference-link {
    color: #e56b16;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    text-align: right;
}

.reference-tile .reference-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
   .reference-category-wrapper {
       grid-template-columns: 1fr;
       gap: 15px;
       margin-top:10px;
   }
   #content-main .cat-title-reference {
      padding-bottom: .15em;
   }
}
.more-ref-btn-wrap {
  padding: 15px 0 40px 0;
  text-align: center;
  margin-top:10px;
}
.more-references-btn {
  padding: 10px 30px;
  border-radius: 15px;
  background-color: #e56b16;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #e56b16;
  text-decoration: none;
}
.more-references-btn:hover {
  color: #e56b16;
  background-color: #fff;
  border-color:#e56b16;
}

/* Blog Post Wrapper - based on reference wrapper */
.blog-post-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top:20px;
  margin-bottom:20px;
}

.blog-post-tile {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-post-title-container {
  height: 54.6px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  overflow: hidden;
}

.blog-post-tile h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
  line-height: 1.2em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight:500 !important;
}
.blog-post-tile h3 a {
  color:inherit;
  text-decoration:none;
}
.blog-post-tile h3 a:hover {
  text-decoration:underline;
}
.blog-post-image {
  margin-bottom: 10px;
  text-align: center;
}

.blog-post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.blog-post-tile p {
  margin: 0 0 15px 0;
  color: #666;
  line-height: 1.4;
}

.blog-post-tile .button {
  display: inline-block;
  padding: 8px 16px;
  background: #e56b16;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  float:right;
}

.blog-post-tile .button:hover {
  background: #d55a14;
}

.more-blog-btn-wrap {
  padding: 15px 0 30px 0;
  text-align: center;
}
.more-blog-btn {
  padding: 10px 30px;
  border-radius: 15px;
  background-color: #e56b16;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #e56b16;
  text-decoration: none;
}
.more-blog-btn:hover {
  color: #e56b16;
  background-color: #fff;
  border-color:#e56b16;
}

@media (max-width: 768px) {
  .blog-post-wrapper {
      grid-template-columns: 1fr;
      gap: 15px;
  }
}
.cat-title-reference {
  font-size: 1.6em !important;
  line-height:1.55em !important;
  text-align:center;
  padding-bottom: 0.15em !important;
}
.info {
  min-height: 100px;
  float: right;
  width: 156px;
}

.page-cat-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.page-cat-list .category-item {
  flex: 0 0 25%;
  margin: 0;
  max-width: 284px;
  width: auto !important;
  line-height:normal;
}

@media screen and (max-width: 1199px) {
  .page-cat-list .category-item {
    flex: 0 0 31.75%;
    max-width:none;
  }
}

@media screen and (max-width: 768px) {
  .page-cat-list .category-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .category-item .cat-list-title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 480px) {
  .page-cat-list .category-item {
    flex: 0 0 100%;
  }
}

/* Second row — 5 smaller categories.
   gap: 6px  →  4 gaps × 6px = 24px total gap space
   flex-basis per item: (100% - 24px) / 5 = 20% - 4.8px ≈ calc(20% - 5px)
   This keeps the row exactly the same total width as the first row. */
.page-cat-list-secondary {
  margin-top: 0;
  gap: 6px;
}
.page-cat-list-secondary .category-item {
  /* 5px + 0.2px tweak so 5 × (20% - 5.2px) + 4 × 6px = 100% - 2px,
     exactly matching the first row's 4 × (25% - 5px) + 3 × 6px = 100% - 2px.
     Eliminates the 1px right-side overflow that made the second row stick
     out further than the first. */
  flex: 0 0 calc(20% - 5.2px);
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
.page-cat-list-secondary .category-item .cat-list-img img {
  max-height: 130px;
  object-fit: cover;
}
.page-cat-list-secondary .category-item .cat-list-title {
  height: 34px;
}
.page-cat-list-secondary .category-item .cat-list-title a {
  font-size: 15px;
}
/* Tablet kept at 5-per-row so it matches the first row's 4-per-row
   layout (both fill the same container width = identical left/right edges). */
@media screen and (max-width: 768px) {
  /* 2 per row: (100% - 1×6px) / 2 = 50% - 3px */
  .page-cat-list-secondary .category-item {
    flex: 0 0 calc(50% - 3px) !important;
  }
}
@media screen and (max-width: 480px) {
  /* 1 per row: full width, no gap needed */
  .page-cat-list-secondary .category-item {
    flex: 0 0 100% !important;
  }
}

/* CTA button under Dřevostavba měsíce heading */
.drevostavba-mesice-cta-wrap {
  text-align: center;
  margin: 10px 0 20px;
}
.drevostavba-mesice-cta-btn {
  display: inline-block;
  background-color: #e56b16;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.drevostavba-mesice-cta-btn:hover {
  background-color: #c55a10;
  color: #fff;
}

.ordering-padding {
  padding-right: 15px;
}

.footer-copyright {
  color: #fff;
  width: 50%;
}

.footer-copyright a {
  color: #fff !important;
}

.footer-copyright a:hover {
  color: #e56b16 !important;
}

.footer-wrapper-bottom {
  padding: 30px 15px;
  background-color: #2f2f2f;
  box-shadow: inset 0 10px 40px -10px rgba(0, 0, 0, .15);
  display: flex;
}
li.download-list-item {
  background: url(../img/list.gif) 5px 4px no-repeat;
  padding-left: 22px;
}

#product-list {
  display: grid;
  /* Make the container element behave like a table */
  width: 100%;
  /* Set full-width to expand the whole page */
  grid-template-columns: 1fr 1fr 1fr;
}

@media screen and (max-width: 1199px) {
  #product-list {
    grid-template-columns: 1fr 1fr;
  }
}
.filter-option-icon-img {
  width: 1.5em !important;
}
@media screen and (max-width: 480px) {
  #product-list {
    grid-template-columns: 1fr;
  }
  .filter-option-icon-img {
    width: 1.75em !important;
  }
}

#product-list .construct,
.category-item {
  display: table-cell;
  /* Make elements inside the container behave like table cells */
  width: auto;
}
/* 
#product-list .construct,
#product-list .construct a {
  overflow: hidden;
}

#product-list .construct img {
  transition: transform .7s ease;
}

#product-list .construct img:hover {
  transform: scale(1.18);
}

#product-list .construct .has-tooltip {
  position: relative;
  z-index: 999;
} */

.category-item.category-main-item {
  width: calc(50% - 12px) !important;
  margin: 5px !important;
}

@media screen and (max-width: 1200px) {
  .category-item {
    width: calc(33% - 9px) !important;
  }
}

/* Note: this was added */
#product-list-new {
  display: flex !important;
  width: 100%;
  flex-wrap: wrap;
}

/* Note: this was added */
#product-list-new .construct-new {
  display: block !important;
  flex: 1 !important;
  min-width: 300px;
  max-width: 300px;
}

#footer {
  width: auto;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-wrapper {
  background-color: #333333;
}

@media only screen and (min-width: 1200px) {
  #footer {
    width: auto;
    max-width: 1200px;
  }
}

@media only screen and (min-width: 1360px) {
  #footer {
    max-width: 1320px;
    width: auto;
  }
}
.kdo-jsme-text {
  margin-bottom:30px;
}
.kdo-jsme-grid {
  display:flex;
}
.kdo-jsme-left {
  width:50%;
}
.kdo-jsme-right {
  width:50%;
}
.kdo-jsme-image-row {
  display:flex;
  padding-right:15px;
}
.kdo-jsme-images-wrapper .kdo-jsme-image-row:last-child {
  margin-top:15px;
}
.kdo-jsme-image-row img {
  width:50%;
}
.kdo-jsme-image-row img:first-child {
  padding-right:15px;
}
.kdo-jsme-yt-iframe-wrapper iframe {
  width:100%;
}
@media screen and (max-width:992px) {
  .kdo-jsme-grid {
    display:block;
  }
  .kdo-jsme-left {
    width:100%;
  }
  .kdo-jsme-right {
    width:100%;
  }
  .kdo-jsme-image-row {
    display: flex;
  }
  .kdo-jsme-images-wrapper {
    margin-bottom:20px;
  }
}
#ajax__view-more {
  text-align: center;
}
#ajax__view-more .detail-but {
  float: none !important;
  display: inline-block;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Wrapper aligns the "Load more" button to the center and keeps
   the pagination on the same visual row, vertically centered on the right. */
.loadmore-pagination-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 10px 0;
}
.loadmore-pagination-wrapper #ajax__view-more {
  flex: 0 0 auto;
}
.loadmore-pagination-wrapper #ajax__pagination {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
@media screen and (max-width: 768px) {
  .loadmore-pagination-wrapper #ajax__pagination {
    display: none;
  }
}
@media screen and (max-width: 1520px) {
  .footer-map-widget iframe {
    max-width: 220px !important;
  }
}
@media screen and (max-width: 1199px) {
  .footer-map-widget iframe {
    max-width: 150px !important;
    max-height: 150px;
  }
}
@media screen and (max-width: 850px) {
  .footer-map-widget iframe {
    max-width: 150px !important;
    max-height: 150px;
  }
}

.footer-wrapper {
  display: flex;
  padding: 0px 30px;
  flex-wrap: wrap;
}

.footer-column-3 {
  width: 33%;
  margin-top: 25px;
  margin-bottom: 20px;
}

.footer-column-4 {
  width: 25%;
  margin-top: 15px;
}

.footer-column-3 .new-footer-heading {
  color: #e56b16;
  font-size: 25px;
}

.footer-column-3 .atypicke-realizace {
  text-align: center;
  line-height: 1.2;
}

.footer-column-3 .cesky-vyrobek {
  text-align: center;
  line-height: 1.2;
}

.footer-column-3 .doprava-po-cele-cr {
  text-align: center;
  line-height: 1.2;
}

.footer-column-4 a,
.footer-column-3 a {
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}

@media screen and (max-width: 840px) {
  .footer-column-3 .new-footer-heading {
    font-size: 24px;
    text-align: center;
  }

  .footer-column-4 a {
    font-size: 13px;
  }

  .footer-column-4 .new-footer-heading {
    font-size: 16px;
  }
}

.footer-column-4 a:hover,
.footer-column-3 a:hover {
  color: #e56b16 !important;
}

.footer-column-4 .footer-menu li,
.footer-column-3 .footer-menu li {
  float: none;
}

.footer-contact-detail {
  font-size: 15px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-social-icon-link {
  margin-left: 5px;
  margin-right: 5px;
}

.footer-social-links {
  margin-bottom: 20px;
}

.new-footer-heading {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

.category-item .cat-list-title {
  height: 42px;
}
.category-item .cat-list-title a {
  width: 94%;
  font-size: 20px;
}
@media only screen and (max-width: 575px) { 
  #wrapper {
    max-width: 100%;
  }
}
@media only screen and (min-width: 576px) {
    #wrapper {
        max-width: 540px;
    }
}
@media only screen and (min-width: 768px) {
    #wrapper {
        max-width: 720px;
    }
}
@media screen and (max-width: 1199px) {
      #wrapper {
        max-width: 1100px;
    }
}
@media only screen and (min-width: 992px) {
    #wrapper {
        max-width: 960px;
    }
}
@media only screen and (min-width: 1200px) {
  #wrapper {
    width: 1200px;
    max-width: 1200px;
  }

  #top-menu li a,
  #top-menu li div.wchild {
    font-size: 1.25em;
  }

  #actions a,
  #advsearch a {
    font-size: 1.4em;
  }

  #categories li.menu-item a, #pages li.menu-item a {
    font-size: 1.1em;
  }

  #content-main {
    width: calc(100% - 240px);
  }
  #content.homepage #content-main {
    width:100%;
  }

  #content-left {
    width: 240px;
  }
  #content.homepage #content-left {
    display:none;
  }
  #actions,
  #advsearch {
    width: 290px;
  }

  #categories,
  #social,
  #pages,
  .panel {
    width: 231px;
  }

  .category-item .cat-list-title {
    width: initial;
  }

  .category-item {
    width: calc(33% - 10px);
    margin: 5px !important;
  }

  #content-main {
    float: right;
    font-size: 1.4em;
    line-height: 1.6em;
    padding-bottom: 10px;
  }

  .construct .ptitle {
    min-height: 52px;
    position: relative;
    z-index: 9;
  }

  .product-text {
    height: initial;
  }

  .detail-info-inner {
    width: 270px;
  }

  .detail-image {
    width: calc(100% - 280px);
    float: left;
  }

  table.product-info {
    width: 100%;
  }

  .detail-but-dr {
    width: 220px;
  }
  .more,
  .panel-new {
    line-height: 1.4em;
    font-size: 1.2em;
  }

  #header {
    width: auto;
    max-width: initial;
  }

  .category-item .cat-list-title {
    width: initial;
    height: 59px;
  }

  .construct .tra-icons {
    min-height: 50px;
  }

  .gal-item {
    width: calc(20% - 10px);
    height: auto;
  }

  #cboxTitle {
    left: 10%;
    max-width: 80%;
  }

  #cboxCurrent {
    display: none !important;
  }

  .qtip {
    font-size: 1.3em;
    line-height: 1.3em;
  }

  table.download {
    width: 100%;
  }

  label {
    width: 150px;
    padding-top: 2px;
  }
}
/*@media only screen and (min-width: 1360px) {
  #wrapper {
    width: auto;
    max-width: 1320px;
  }
}*/

/*@media only screen and (min-width: 1540px) {
  #wrapper {
    width: auto;
    max-width: 1320px;
  }
}
@media only screen and (min-width: 1710px) {
  #wrapper {
    width: auto;
    max-width: 1520px;
  }
}   */
@media only screen and (max-width: 480px) {
  /* Note this was uncommented */
  /* .detail-but { */
  /* float: right; */
  /* } */
  #header {
    height: 150px;
    padding-bottom: 10px;
  }

  table.download {
    margin-top: 10px;
    width: 100%;
  }
}
@media screen and (max-width: 860px) {
  .addc-but,
  .add-but,
  .detail-but-dr {
    width: 100%;
    box-sizing: border-box;
    background: url(../img/button-500.png) no-repeat #303030;
    background-size: auto 100%;
  }
}


@media only screen and (min-width: 480px) and (max-width: 1199px) {
  .category-item .cat-list-title {
    width: initial;
  }

  .detail-info-inner {
    width: 200px;
  }

  table.product-info {
    width: 200px;
  }

  .detail-image {
    width: calc(100% - 210px);
  }
}
@media only screen and (min-width: 480px) and (max-width: 768px) {
  .detail-info-inner {
    width: 100%;
  }

  table.product-info {
    width: 100%;
  }

  .detail-image {
    width: 100%;
  }
}
.cert-icons-detailpage {
  display: flex;
  justify-content: center;
  align-items: center;
}
table.order tbody tr.has-radio:hover td,
table.order tbody tr.has-checkbox:hover td {
  background-color: #ddd;
}
table#sumtable tr:nth-child(even) td {
  background: #f8f8f8;
}
table#sumtable tr td:last-child {
  font-weight: 700;
}
.cert-icons-detailpage img {
  height: 62px;
  width: auto;
}
.availability-wrapper, .cert-wrapper {
  display: inline-block;
}
.cert-wrapper {
  padding: 12px 15px;
  padding-bottom: 0px;
  text-align: center;
}
.cert-wrapper img {
  width: auto;
  height: 35px;
}
@media screen and (min-width:360px) {
  .cert-wrapper img { 
    height:54px;
  }
}
@media screen and (min-width:481px) {
  .cert-wrapper img {
    height: 26.5px;
  }
}
@media screen and (min-width: 502px) {
  .cert-wrapper img {
    height: 45px;
  }
  .availability-wrapper {
    padding-left:7.5px;
  }
}
@media screen and (min-width:545px) {
  .cert-wrapper img {
    height: 50px;
  }
}
@media screen and (min-width:769px) 
{
  .cert-wrapper img {
    height: 52px;
  }
}
@media screen and (min-width: 1200px) {
  .cert-wrapper img {
    height: 62px;
  }
}
.av-and-cert-wrap {
  text-align: center;
}
.av-and-cert-wrap .availability-wrapper {
  margin-top: 5px;
  font-size:13px;
}
@media screen and (max-width: 991px) {
  .sl-wrapper.simple-lightbox > .sl-image > .sl-caption {
      position: relative;
      left: -10px;
      top: 0px;
      padding-top: 0px;
    }
}
@media screen and (max-height: 400px) {
  .sl-wrapper.simple-lightbox > .sl-image > .sl-caption {
    font-size: 12px;
    top: -20px;
  }
}
@media only screen and (min-width: 769px) and (max-width: 1199px) {
  .category-item:nth-child(3) {
    width: calc(33% - 12px);
    margin: 5px !important;
  }
}

.showmore-button {
  text-decoration: underline;
  color: #e56b16;
  cursor: pointer;
  padding-bottom: 10px;
  margin: auto;
  text-align: center;
  padding-top: 15px;
  font-weight: 600;
}

#img-list a {
  width: calc(50% - 3px) !important;
  height: auto !important;
}

.order-info {
  width: 100%;
  margin-top: 15px;
}

/* BARVY AFFIL*/
.cta-container {
  min-height: 60px;
}

@media only screen and (max-width: 480px) {
  .cta-container {
    margin-top: 20px;
    min-height: 20px;
    text-align: center
  }

  .col:nth-child(1) {
    padding: 16px 0px 0px 0px;
  }

  .col:nth-child(2) {
    padding: 16px 0px 0px 0px;
  }
}

@media only screen and (min-width: 481px) {
  .col-container {
    display: flex;
    width: 100%;
  }

  .col {
    flex: 1;
    position: relative;
    margin-bottom: 20px;
  }

  .barvy-cta {
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -70px;
    width: 100px;
  }

  .col:nth-child(1) {
    padding: 16px 10px 0px 0px;
  }

  .col:nth-child(2) {
    padding: 16px 0px 0px 10px;
  }

  .col-container .col p:nth-child(3) {
    text-align: center;
    min-height: 60px;
  }
}

.barvy-cta {
  color: #fff;
  background-color: #e86e17;
  padding: 10px 20px;
  text-decoration: none;
  width: 100px;
  margin-bottom: 10px;
  border-bottom: solid 4px #d16315;
  -webkit-transition: background .3s, border .3s, box-shadow .3s, color .3s;
  transition: background .3s, border .3s, box-shadow .3s, color .3s;
}

.barvy-cta:hover {
  background-color: #d16315;
  border-bottom: solid 4px #d16315;
}

.col-container .col h3 {
  font-weight: 600 !important;
  line-height: 1.5em !important;
  padding-bottom: .5em !important;
  font-size: 1.5em !important;
}

.col-container .col {
  box-shadow: 2px 5px 25px 1px rgba(0, 0, 0, 0.2);
}

.col-container .col:nth-child(1) {
  margin: 5px 5px 5px 0px;
  padding: 10px;
}

.col-container .col:nth-child(2) {
  margin: 5px 0px 5px 5px;
  padding: 10px;
}

.pt25 {
  padding-top: 25px;
}

.col-container img {
  max-width: 160px;
  float: left;
  margin-right: 10px;
}

.col-container p {
  text-align: justify;
}

.col-container .col p:nth-child(3) {
  text-align: justify;
}

#cesky-vyrobek {
  display: none;
  float: left;
  margin-top: 31px;
}

/*.construct:hover .pimg img {
  transform: scale(1.05);
}*/

.construct:hover .pimg .guarantee-ico {
  transform: scale(1.1, 1.1);
}
.guarantee-ico .guarantee-icon {
  width: 42px;
}
.construct .pimg img,
.construct:hover .pimg .guarantee-ico {
  transition: all 0.5s ease;
}

@media only screen and (min-width: 481px) {
  .home-adverts .mobil {
    display: none
  }
}

@media only screen and (max-width: 480px) {
  .home-adverts .desktop {
    display: none
  }
}

#content-main .product-text p {
  min-height: 120px;
}
@media screen and (max-width:1199px) {
  #content-main .product-text p {
    min-height:90px;
  }
}
@media only screen and (min-width: 1360px) {
  #content-main .product-text p {
    min-height: 112px;
  }
}

@media only screen and (min-width: 600px) {
  .construct .ptitle {
    min-height: 52px;
  }
}

.new-pagination-list {
  text-align: center;
}

.new-pagination {
  display: inline;
  padding: 10px;
}

.new-pagination-link {
  color: #303030;
  text-decoration: none;
  font-size: 18px;
}

.new-pagination-link:hover,
.new-pagination-link-active {
  color: #e56b16;
  text-decoration: underline;
}

.filtration-heading {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 25px;
  margin-top: 10px;
}

.filtration-filter-heading {
  font-weight: 700;
  font-size: 18px;
  margin-top: 20px;
}
.filters__group label {
  width: 100%;
}

.filtration-filter-checkbox-span {
  font-size: 16px;
  position: relative;
  bottom: 3px;
}
.filter-icon-img {
  width: 15px;
  position: relative;
  top: 2px;
}

@media screen and (max-width: 600px) {
  .podkategorie-grid-item {
    width: 45%;
  }

  .podkategorie-link span:nth-child(2),
  .podkategorie-link span:nth-child(3) {
    font-size: 14px;
  }
}

@media screen and (max-width: 440px) {

  .podkategorie-link span:nth-child(2),
  .podkategorie-link span:nth-child(3) {
    font-size: 12px;
  }
}

@media screen and (max-width: 380px) {
  .podkategorie-grid-item {
    width: 99%;
  }

  .podkategorie-link span:nth-child(2),
  .podkategorie-link span:nth-child(3) {
    font-size: 14px;
  }
}

/* Delta Advantages Section */
.delta-advantages-title {
  text-align: center;
  font-size: 2em;
  margin: 40px 0 20px 0;
  color: #333;
}

.delta-advantages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 28px;
  max-width: 900px;
  padding: 0 20px;
}

.advantage-column {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(229, 107, 22, 0.07);
  border: 1.5px solid rgba(229, 107, 22, 0.35);
  border-radius: 50px;
  flex: none;
}

.advantage-column i {
  font-size: 1em;
  color: #e56b16;
  display: inline;
  margin-bottom: 0;
}

.advantage-text {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

/* Responsive breakpoints */
@media screen and (max-width: 768px) {
  .delta-advantages {
    gap: 10px;
    padding: 0 10px;
  }

  .advantage-column {
    padding: 9px 18px;
  }
}

@media screen and (max-width: 480px) {
  .delta-advantages {
    flex-direction: column;
    align-items: center;
  }

  .advantage-column {
    width: 80%;
    justify-content: center;
  }

  .delta-advantages-title {
    font-size: 1.5em;
  }
}

.homepage-advice-grid {
  display: grid;
  grid-template-columns: 75% 25%;
  align-items: center;
  max-width: 1200px;
  margin: 10px auto 30px;
  padding: 22px 30px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ebebeb;
}

.advice-text-col p {
  margin: 0;
  font-size: 1.5em;
  color: #444;
  line-height: 1.6;
}

.advice-btn-col {
  text-align: center;
  padding-left: 20px;
}

.advice-btn {
  display: inline-block;
  background: #e56b16;
  color: #fff;
  padding: 12px 22px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.425em;
  white-space: nowrap;
  transition: background 0.2s;
}

.advice-btn:hover {
  background: #c95f12;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .homepage-advice-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px 20px;
  }

  .advice-btn-col {
    padding-left: 0;
    text-align: center;
  }
}

/* Proč dřevostavbu od DELTA? */
.proc-drevostavba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 40px 0;
}
.proc-drevostavba-col {
  text-align: center;
}
.proc-drevostavba-icon {
  font-size: 2.5em;
  color: #e56b16;
  display: block;
  margin-bottom: 10px;
}
.proc-drevostavba-col p {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}
@media screen and (max-width: 600px) {
  .proc-drevostavba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.delta-breadcrumb li {
  display: inline;
}

.new-pagination-list {
  float: right;
}

#product-list .delta-breadcrumb,
#product-list .cat-description {
  display: none;
}

/* ****************** */
/* Responsive filters */
/* ****************** */

/* Base sidebar structure */
#ajax__filters {
  display: flex;
  flex-direction: column;
}

#ajax__filters>h3 {
  font-weight: 550;
  font-size: 22px;
  line-height: 22px;
  padding: 10px;
}

#ajax__filters>#filters__options {
  flex: 1 0 150px;
  overflow: auto;
  padding: 10px;
}

@media (min-width: 660px) {
  #ajax__filters>#filters__options {
    flex: 0 0 100%;
    overflow: none;
  }
}

#ajax__filters>#filters__controls {
  flex: 0 0 50px;
  margin-top: 15px;

  display: flex;
  justify-content: center;
  align-items: center;
}

#ajax__filters>#filters__controls>a {
  cursor: pointer;
  font-size: 14px;
  width: 200px;
}

@media (min-width: 660px) {
  #ajax__filters>#filters__controls {
    display: none;
  }
}


/* Filters groups */
.filters__group {
  margin-bottom: 20px;
}

.filters__group>h4 {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;

  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.filters__group>h4 img {
  width: 20px;
  height: 20px;
}

#filters__options .filters__group:first-child>h4 {
  margin-top: 0;
}

.filters__group>label {
  float: none !important;

  display: block;
}

.filters__group>label:hover {
  cursor: pointer;
  text-decoration: underline;
}

.filters__group__slider {
  padding: 5px 20px
}
.filters__group input[type="checkbox"] {
  width: 15px;
  height: 15px;
}
.filters__group label {
  margin-top: 13px;
}
/* Mobile view overrides */
@media (max-width: 660px) {
  #ajax__filters {
    display: none;

    position: fixed;
    z-index: 9999;

    /* Explicit top/right/bottom/left instead of width/height 100%
       so the overlay stretches to the actual visible viewport edges
       — more reliable on iOS Safari where 100% height can refer to
       the layout viewport (incl. area behind the URL bar). */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto !important;
    height: auto;
    overflow: auto;

    box-sizing: border-box;
    padding: 0 !important;
  }

  #ajax__filters.filters--visible {
    display: flex;
  }

  /* Keep the filter header (title + close ✕) pinned to the top of
     the filter, so it's always visible — even when the user scrolls
     inside a long filter list AND regardless of any initial scroll
     position quirk on first open. Fixes "title and × don't appear
     on first open" bug reported by the client. */
  #ajax__filters > h3 {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    margin: 0;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
  }

  #ajax__filters .filters__group {
    display: flex;
    flex-wrap: wrap;
  }

  #ajax__filters .filters__group>h4 {
    flex: 0 0 100%;
  }

  #ajax__filters .filters__group__slider {
    flex: 0 0 90%;
  }

  #ajax__filters .filters__group>label {
    flex: 0 0 225px;
  }
  .filters__group label {
    margin-top: 20px;
  }
  .filters__group input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 471px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 445px;
  }
}
@media screen and (max-width: 440px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 415px;
  }
}
@media screen and (max-width: 428px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 405px;
  }
}
@media screen and (max-width: 420px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 395px;
  }
}
@media screen and (max-width: 408px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 385px;
  }
}
@media screen and (max-width: 396px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 370px;
  }
}
@media screen and (max-width: 382px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 360px;
  }
}
@media screen and (max-width: 372px) {
  #ajax__filters .filters__group>label {
    flex: 0 0 345px;
  }
}
/* Outer filters controls */
#filters--mobile__controls {
  padding: 15px 0;
  text-align:center;
}

@media (min-width: 660px) {
  #filters--mobile__controls {
    display: none;
  }
}

#filtration__active-filters-wrapper {
  margin-bottom: 15px;
}

#filtration__active-filters {}

#filtration__active-filters>label {
  float: none !important;

  display: inline-block;
  width: auto;
  white-space: nowrap;
  margin: 0 5px 5px 0;
  padding: 4px 10px;

  background: #565656;
  color: white;
  border-radius: 4px;
}

#filtration__active-filters>label:before {
  display: inline-block;
  content: "\00d7";
  margin-right: 5px;
}

#filtration__active-filters>label.secondary {
  background: transparent;
  color: black;
}

#filtration__active-filters>label:hover {
  cursor: pointer;
  text-decoration: underline;
}

#filters--mobile__controls__show {
  padding: 10px 30px;
  border-radius: 15px;
  background-color: #e56b16;
  color: #fff;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border: none;
}

#filters--mobile__controls__show:hover {
  background-color: #ff6630;
}

.filters__controls--close {
  margin-bottom: 30px;
}


#ajax__filters>h3>.filters__controls--close {
  float: right;
}

@media (min-width: 660px) {
  #ajax__filters>h3>.filters__controls--close {
    display: none;
  }
}

.contact-form-half-one-40 {
  width: 40%;
  display: inline-block;
}

.contact-form-half-one-60 {
  width: 50%;
  display: inline-block;
}

.oasis-button {
  background-color: #e56b16;
  color: white;
  display: block;
  padding: 15px 30px;
  font-family: Tahoma;
  font-weight: bold;
  font-size: 14px;
  margin-left: 270px;
  cursor: pointer;
}

.oasis-input,
.oasis-textarea {
  border: 2px solid #000;
}

.oasis-textarea {
  height: 165px;
}

.oasis-label {
  font-size: 18px;
}

#product-list .construct a:nth-child(2) {
  transform: scale(1.1, 1.1);
}

@media screen and (max-width: 1366px) {
  .oasis-textarea {
    height: 180px;
    position: relative;
    top: 15px;
  }

  .oasis-button {
    margin-left: 155px;
  }
}

@media screen and (max-width: 1280px) {
  .oasis-button {
    margin-left: 160px;
  }
}

@media screen and (max-width: 1024px) {
  .oasis-textarea {
    height: 160px;
  }

  .oasis-button {
    margin-left: 170px;
  }

}

@media screen and (max-width: 768px) {

  .contact-form-half-one-60,
  .contact-form-half-one-40 {
    display: block;
  }

  .contact-form-half-one-60 {
    margin-top: 20px;
  }

  .oasis-textarea {
    width: 250px !important;
  }

  .oasis-button {
    margin-left: -120px;
    padding: 15px 80px;
  }

  .footer-column-4 a,
  .footer-column-3 a {
    font-size: 15px;
  }

  .footer-column-3 .new-footer-heading {
    margin-bottom: 5px;
  }

  .footer-column-4 .new-footer-heading {
    margin-bottom: 10px;
  }

  .footer-map-widget iframe {
    max-width: 300px !important;
    max-height: 300px;
  }
}

@media screen and (max-width: 580px) {
  .oasis-button {
    padding: 15px 85px;
  }

  .oasis-textarea {
    width: 250px !important;
  }
}

@media screen and (min-width: 2560px) {
  .img-zahrada-2560 {
    width: 588px;
  }

  .contact-form-half-one-40 {
    width: 35%;
  }

  /*#wrapper,
  #footer {
    max-width: 1520px;
  }*/

  .oasis-button {
    margin-left: 440px;
  }
}

@media screen and (max-width: 1220px) and (min-width: 1210px) {
  #cart {
    width: auto;
  }

  #content-left {
    width: 200px;
  }
  #ajax__filters {
    max-width: 200px;
  }

  #categories,
  #social,
  #pages,
  .panel {
    width: 200px;
  }

  #content-main {
    width: calc(100% - 250px);
  }

  .oasis-button {
    margin-left: 150px;
  }
}

.construct.construct-new .construct-image {
  position: relative;
  overflow: hidden;
  padding-top: 240px;
  margin-top: 50px;
}

.construct.construct-new .construct-image a {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 30px;
  right: 0;
  color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50% 50%;
  transition: all 1s ease;
}

.construct.construct-new:hover >.construct-image a {
  transform: scale(1.1, 1.1);
}
.homepage-reviews-section {
  background-color: #f2f2f2;
  padding: 1px 0 30px;
  margin: 25px 0;
}
.homepage-reviews-section .bestselling-title-homepage {
  margin-top: 30px;
}
#content.homepage {
  padding-left: 0;
  padding-right: 0;
}
.hp-padded {
  padding: 0 12px;
}
.bestselling-title-homepage {
  margin-top: 50px;
  font-weight: bold !important;
  text-align: center;
  color: #e56b16 !important;
}

@media screen and (max-width: 1200px) {
  .ajax__filters {
    width: 206px !important;
  }
}



/* Pagination start */
.royal-pagination {
  display: flex;
  justify-content: flex-end;
}

.royal-pagination > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  font-size: 20px;
  text-decoration: none;
  margin: 0 5px;
  color: #393939;
}

.royal-pagination > .royal-pagination__current > a {
  color: #e56b16;
}

.royal-pagination > .royal-pagination__first > a:hover, .royal-pagination > .royal-pagination__last > a:hover {
  color: #656565;
}

.royal-pagination > .royal-pagination__prev > a, .royal-pagination > .royal-pagination__next > a {
  background: #393939;
  color: white;
  border-radius: 100%;
}

.royal-pagination > .royal-pagination__prev > a:hover, .royal-pagination > .royal-pagination__next > a:hover {
  background: #656565;
}
/* Pagination end */

#blog-detail ul li {
  list-style-image: url('https://www.domky-delta.cz/templates/default/img/list.gif');
}
#filters--price__value, #filters--size__value {
  font-size: 14px;
}
/*.certificate-icon {
  position: relative;
  bottom: 310%;
  left: 5%;
}
.guarantee-icon {
  position: relative;
  right: 235%;
  bottom: 475%;
}*/
.product-card-tags {
    position: absolute;
    top: 85px;
    z-index: 1;
    margin-left:10px;
}
@media screen and (max-width: 1199px) {
  .product-card-img { 
    height: auto;
  }
  /*.certificate-icon {
    bottom: 210%;
    left: -8%;
  }*/
}
@media screen and (max-width: 991px) {
  /*.guarantee-icon {
    bottom: 285%;
  }
  .certificate-icon {
    bottom: 245%;
    left: 40%;
  }*/
}
@media screen and (max-width: 968px) {
  /*.certificate-icon {
    bottom: 220%;
    left: -10%;
  }*/
}
@media screen and (max-width: 850px) {
      /*.certificate-icon {
        bottom: 210%;
        left: -10%;
    }*/
}
@media screen and (max-width: 838px) {

}
@media screen and (max-width: 767px) {
  /*.certificate-icon {
    bottom: 245%;
  }
  .guarantee-icon {
    bottom: 285%;
  }*/
}
@media screen and (max-width: 660px) {
  /*.certificate-icon {
    bottom: 350%;
    left: 40%;
  }

  .guarantee-icon {
    bottom: 400%;
    right: 240%;
  }*/
}
@media screen and (max-width: 600px) {
  /*.certificate-icon {
    left: 0%;
  }*/
  .product-card-img {
    height: auto;
  }
  .ptitle {
    min-height: 36px;
  }
  .product-card-tags {
    top: 70px;
  }
}
@media screen and (max-width: 580px) {
  /*.guarantee-icon {
    right: 235%;
  }*/
}
@media screen and (max-width: 530px) {
  /*.guarantee-icon {
    right: 245%;
  }*/
}
@media screen and (max-width: 480px) {
  /*.certificate-icon {
    left: 20%;
    bottom: 220%;
  }*/
  .product-card-img {
    height: auto;
  }
}
@media screen and (max-width: 472px) {
  /*.certificate-icon {
    left: 20%;
    bottom: 230%;
  }*/
}
@media screen and (max-width: 452px) {
  /*.certificate-icon {
    left: 15%;
    bottom: 230%;
  }*/
}
@media screen and (max-width: 450px) {
  /*.guarantee-icon {
    right: 225%;
  }*/
}
@media screen and (max-width: 438px) {
}
@media screen and (max-width: 428px) {
  /*.certificate-icon {
    left: 10%;
    bottom: 220%;
  }*/
}
@media screen and (max-width: 408px) {
}
@media screen and (max-width: 394px) {
  /*.guarantee-icon {
    right: 245%;
  }*/
}
@media screen and (max-width: 384px) {
}
@media screen and (max-width: 374px) {
  /*.guarantee-icon {
    bottom: 420%;
    right: 225%;
  }*/
}
@media screen and (min-width: 768px) {
  #ajax__filters {
    max-width: 229px;
  }
  .filtration-filter-checkbox-span {
    font-size: 14px;
  }
}
.reklama_leva {
  float: left;
}
.reklama_prava {
  float: right;
}
#blog-detail ul {
  margin-left: 20px;
}
.sl-wrapper .sl-image .sl-caption {
  bottom: unset;
}
#cart-in a {
  display: block;
  color: #e56b16 !important;
  text-decoration: none;
}
.cart-icon {
  font-size: 40px;
  margin-right:15px;
  align-content: center;
  text-align:center;
}
#cart-in .cprice {
  align-content: center;
  margin-top:10px;
}
#cart.cart-without-items {
  height: auto;
}
#cart.cart-with-items {
  height: auto;
}
#cart {
  width: auto;
}
@media screen and (max-width: 1199px) {
  #cart {
    width: auto !important;
    float:right;
  }
}
#cart.cart-with-items #cart-in .cart-icon i {
  position: relative;
  top: 2px;
  margin-left: 10px;
}
#cart.cart-without-items .cart-icon i {
}
#cart.cart-without-items #cart-in .cprice span {
  position: relative;
  top: 5px;
}
.top-panel-wrap {
  display: flex;
  position: relative;
}
#top-menu {
  display: flex;
}
#cart {
  margin-left: -10px;
}
#top-menu .top-menu-item {
  position: static;
}
.topmenu-submenu {
  display: none;
  position: absolute;
  top: 100%; /* Zajistí, že submenu začne pod hlavní položkou */
  left: 0;
  width: 100%; /* Rozšíří submenu na celou šířku okna */
  background: url(../img/bg.gif) #e56b16;
  border-left: 2px solid #e56b16;
  border-right: 2px solid #e56b16;
  border-bottom: 2px solid #e56b16;
  flex-wrap: wrap;
  padding: 10px 0;
  z-index: 1000;
  box-sizing: border-box;
}
#top-menu .top-menu-item:first-child a {
  color:#e56b16;
  background: unset;
  font-size:1.39em;
}
#top-menu .top-menu-item:first-child {
  background: url(../img/bg-cart.gif) repeat-x #303030;
}
@media screen and (min-width:992px) {
  .topbar-mobile-phone-number {
    pointer-events: none;
  }
}
.megamenu-subitem {
  position: relative;
}
#top-menu li, #top-menu li a {
  float: none !important;
}
#top-menu .top-menu-item:hover .topmenu-submenu {
  display: flex;
}
#top-menu .top-menu-item .topmenu-submenu li {
  width: 33%;
}
#top-menu .top-menu-item .topmenu-submenu li a {
  background: unset;
  color: #393939;
  font-weight: 500;
  display: flex;
  height: 48px;
  padding: 7.5px 12px;
  line-height: 48px;
}
.megamenu-subitem a img {
  margin-right: 10px;
  align-content: center;
}
.megamenu-subitem a span {
  align-content: center;
  font-size: 15px;
}
@media screen and (max-width: 992px) {
  .top-panel-wrap {
    display: block;
  }
  #top-menu {
    display: none;
  }
}
body {
  position: relative;
}
.top-navigation-bar {
  /*border-bottom: 1px solid #393939;*/
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 990px;
  background: url(../img/bg.gif) #eaeaea;
}
@media only screen and (max-width: 575px) {
  .top-navigation-bar { max-width: 100%; }
}
@media only screen and (min-width: 576px) {
  .top-navigation-bar { max-width: 540px; }
}
@media only screen and (min-width: 768px) {
  .top-navigation-bar { max-width: 720px; }
}
@media screen and (max-width: 1199px) {
  .top-navigation-bar { max-width: 1100px; }
}
@media only screen and (min-width: 992px) {
  .top-navigation-bar { max-width: 960px; }
}
@media only screen and (min-width: 1200px) {
  .top-navigation-bar { width: 1200px; max-width: 1200px; }
}
.topbar-container {
  display: flex;
  margin: 0 auto;
  padding: 15px 0px;
}
@media screen and (min-width: 768px) {
  .topbar-container {
    max-width: 980px;
    padding: 10px 0px;
  }
}
@media screen and (min-width: 992px) {
  .topbar-container {
    max-width: 960px;
  }
}
@media screen and (min-width: 1200px)
{
  .topbar-container {
    max-width: 1200px;
  }
}
.topbar-left-half {
  width: 50%;
  text-align: left;
  margin-left:2px;
}
.topbar-right-half {
  width: 50%;
  text-align: right;
  margin-right:2px;
}
.topbar-left-half a, .topbar-right-half a {
  font-size: 16px;
  text-decoration: none;
  color: #393939;
  font-weight: 500;
  margin-right: 15px;
  line-height:16px;
}
.topbar-right-half ul li:last-child a {
  margin-right: 0px;
}
.topbar-left-half a:hover, .topbar-right-half a:hover {
  color: #e56b16;
}
.topbar-right-half ul li {
  display: inline-block;
}

/* Druhé telefonní číslo v topbaru – jen na desktopu */
@media screen and (max-width: 1199px) {
  .topbar-left-half .topbar-second-phone {
    display: none;
  }
}

/* --- Propagační lišta --- */
.promo-bar-container {
  position: fixed;
  top: 0;
  left: calc(50% - 1px);
  transform: translateX(-50%);
  z-index: 1002;
  width: 100%;
  max-width: 990px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--promo-bar-bg, #73ae42);
  color: #fff;
  text-align: center;
  padding: 0 15px;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
  border-bottom: 1px solid #fff;
}
.promo-bar-container a {
  color: #fff;
  text-decoration: underline;
}
.promo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
}
@media only screen and (max-width: 575px) {
  .promo-bar-container { max-width: 100%; }
}
@media only screen and (min-width: 576px) {
  .promo-bar-container { max-width: 540px; }
}
@media screen and (min-width: 768px) {
  .promo-bar-container {
    max-width: 720px;
    padding: 0;
  }
}
@media screen and (max-width: 1199px) {
  .promo-bar-container { max-width: 1100px; }
}
@media only screen and (min-width: 992px) {
  .promo-bar-container { max-width: 960px; }
}
@media only screen and (min-width: 1200px) {
  .promo-bar-container { width: 1200px; max-width: 1200px; }
}
@media screen and (max-width: 1300px) {
  .promo-bar-container { left: calc(50%); }
}

/* Topbar pushed below promo bar when promo bar is active (desktop) */
body.promo-bar-active .top-navigation-bar {
  padding-top: 54px;
}

/* Desktop: sticky nav offset under promo bar */
body.promo-bar-active .navigation-domky {
  position: -webkit-sticky;
  position: sticky;
  top: 54px;
  z-index: 1003;
}

#wrapper {
  padding-top: 31px;
  overflow-x: clip;
}
body.promo-bar-active #wrapper {
  padding-top: 90px;
}
@media screen and (max-width: 768px) {
  body.promo-bar-active #wrapper {
    padding-top: 95px;
  }
}
@media screen and (max-width: 480px) {
  body.promo-bar-active #wrapper {
    padding-top: 100px;
  }
}
@media screen and (max-width: 380px) {
  body.promo-bar-active #wrapper {
    padding-top: 100px;
  }
}

/* Side banners aligned with wrapper when promo bar is active */
body.promo-bar-active .reklama-leva,
body.promo-bar-active .reklama-prava {
  margin-top: 90px;
}
@media screen and (max-width: 768px) {
  body.promo-bar-active .reklama-leva,
  body.promo-bar-active .reklama-prava {
    margin-top: 95px;
  }
}
@media screen and (max-width: 480px) {
  body.promo-bar-active .reklama-leva,
  body.promo-bar-active .reklama-prava {
    margin-top: 100px;
  }
}

/* Prodejce přihlášen + promo bar aktivní: posunout promo bar pod user-bar (35px) */
body.logged-in-body.promo-bar-active .promo-bar-container {
  top: 35px;
}

body.logged-in-body.promo-bar-active .navigation-domky {
  top: 89px; /* 35px user-bar + 54px promo-bar */
}

body.logged-in-body.promo-bar-active .top-navigation-bar {
  padding-top: 89px;
}

/* Mobile: JS přidá třídu nav-is-fixed na body kdy topbar odscrolluje za promo bar */
@media screen and (max-width: 1300px) {
  body.nav-is-fixed .navigation-domky {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    z-index: 1003;
  }
  body.nav-is-fixed #royalonogy-mobile-menu {
    height: calc(100vh - 103px); /* 54px promo + 49px nav */
  }
  /* Prodejce přihlášen: nav se fixuje pod user-bar + promo bar */
  body.logged-in-body.nav-is-fixed .navigation-domky {
    top: 89px; /* 35px user-bar + 54px promo-bar */
  }
  body.logged-in-body.nav-is-fixed #royalonogy-mobile-menu {
    height: calc(100vh - 138px); /* 35px user-bar + 54px promo + 49px nav */
  }
}

@media screen and (max-width: 768px) {
  .topbar-left-half a {
    display: block;
    margin-bottom: 5px;
  }
  .topbar-right-half {
    display: none;
  }
  .topbar-left-half {
    display: flex;
    width: 100%;
  }
  .topbar-left-half a:first-child {
    text-align: left;
    width: 50%;
  }
  .topbar-left-half a:last-child {
    text-align: right;
    width: 50%;
  }
  #wrapper {
    padding-top: 41px;
  }
  .footer-wrapper {
    padding-bottom:15px;
  }
}
@media screen and (max-width: 480px) {
  .topbar-left-half a, .topbar-right-half a {
    font-size: 14px;
  }
  .topbar-container {
    max-width: 450px;
  }
  .topbar-left-half a {
    margin-bottom: 0px;
  }
  #wrapper {
    padding-top: 44px;
  }
  .topbar-left-half a, .topbar-right-half a {
    margin-right: 0px;
  }
  .topbar-left-half {
    margin-left: 0px;
    align-content: center;
  }
  .topbar-right-half {
    margin-right: 10px;
    align-content: center;
  }
}
@media screen and (max-width: 450px) {
  .topbar-container {
    max-width: 420px;
  }
  .topbar-left-half a:first-child {
    margin-left: 5px;
  }
  .topbar-left-half a:last-child {
    margin-right: 5px;
  }
}
@media screen and (max-width: 408px) {
  .topbar-left-half a, .topbar-right-half a {
    font-size: 13px;
  }
}
@media screen and (max-width: 380px) {
  .topbar-left-half a, .topbar-right-half a {
    font-size: 12px;
  }
  #wrapper {
    padding-top: 42px;
  }
  #content.homepage #content-left,
  #content.homepage #nopanel-right { display: none; }
  
  #content.homepage #content-main,
  #content.homepage #nopanel-left { width: 100% !important; max-width: 100% !important; float: none !important; }
  
  .carousel .product-item {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  @media (max-width: 768px) {
    .carousel .product-item {
      flex: 0 0 50%;
      max-width: 50%;
    }
  }
  
  @media (max-width: 480px) {
    .carousel .product-item {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
}
#top-menu .top-menu-item a {
  font-size: 1.35em;
  text-transform: uppercase;
  padding: 0 12px;
}
.sidebar-pages-title.sidebar-pages-title-on-products {
  margin-top: 25px;
}
.sidebar-pages-title, .sidebar-categories-title {
  margin-top: 5px;
  margin-bottom: 10px;
}
#home-text-top {
  padding-top: 0px;
  max-width: 968px;
  margin: 0 auto;
  text-align: center;
}
#content-main #home-text-top h1 {
  line-height: 22px;
}

/* Contact Info Grid */
.contact-info-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
  padding: 20px 0;
  padding-top:0px;
  margin-top:0px;
}

.contact-tile {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-tile h3 {
  color: #333;
  margin: 10px 0;
  font-size: 1.2em;
}

.contact-tile p {
  color: #666;
  margin: 10px 0;
  font-size: 2em;
}
@media screen and (max-width:992px) {
  .contact-tile p {
    font-size:1.5em;
  }
}
.contact-tile a {
  color: #e56b16;
  text-decoration: none;
}

.contact-tile a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links img {
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Responsive Contact Grid */
@media (max-width: 768px) {
  .contact-info-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-tile {
    padding: 15px;
  }

  .contact-icon {
    font-size: 28px;
  }
}

/* Contact Form Styles */
.contact-form-wrapper {
  margin: 40px 0;
}

.contact-form-wrapper h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.8em;
}

.contact-form {
  max-width: 600px;
  margin: 10px auto 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.contact-form .form-group label {
  text-align:left;
}
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 600;
  font-size: 1em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #e56b16;
  box-shadow: 0 0 0 3px rgba(229, 107, 22, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.required {
  color: #e56b16;
  font-weight: bold;
}

.form-submit {
  margin-top: 30px;
}

.submit-btn {
  background-color: #e56b16;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background-color: #d55a14;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-bottom-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.form-submit {
  margin-top: 10px;
}

.form-copy-check .copy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #555;
  font-size: 0.95em;
  width: 100%;
}

.form-copy-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #e56b16;
}

/* Office Grid Layout */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.office-content {
  /* Left column - office information */
}

.office-sidebar {
  /* Right column - map and gallery */
}

/* Responsive Office Grid */
@media (max-width: 768px) {
  .office-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Responsive Contact Form */
@media (max-width: 768px) {
  .contact-form-wrapper {
    margin: 30px 0;
    padding: 20px;
  }

  .contact-form-wrapper h2 {
    font-size: 1.5em;
  }

  .form-input,
  .form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .submit-btn {
    padding: 12px 30px;
    font-size: 1em;
  }
}

/* Scroll to Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: calc(50% - 600px - 70px);
  width: 50px;
  height: 50px;
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  opacity:0.2;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  font-size: 20px;
}

#scroll-to-top i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (max-width:1199px) {
   #top-menu .top-menu-item:first-child a {
      font-size: 1.1em;
    }
    #top-menu .top-menu-item a {
      font-size: 1.1em;
    }
}
@media screen and (max-width:480px) {
  .office h2 {
    font-size:1.25em !important;
  }
}

/* Poradit Card Styles */
.poradit-card {
  background-color: #e56b16;
  color: #fff;
  padding: 30px 20px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poradit-icon {
  font-size: 54px;
  margin-bottom: 35px;
}

.poradit-title {
  margin: 0 0 30px 0;
  font-size: 24px !important;
  font-weight: bold;
  text-align:center;
}

.poradit-text {
  margin: 0 0 40px 0;
  font-size: 22px;
  line-height: 1.4;
  text-align:center;
}

.poradit-contacts {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* Wrapper for category description below product list */
.cat-description-wrapper {
  margin: 20px 0;
}
.cat-description-wrapper .cat-description {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Mobile order table improvements (covers iPad Air 820px portrait) */
@media screen and (max-width: 860px) {
  /* Safety net: if anything inside the tab still doesn't fit, let
     the tab content scroll horizontally instead of being clipped
     by .tab_container's overflow:hidden. */
  .tab_container {
    overflow-x: auto;
    overflow-y: visible;
  }

  /* Round 3: compact the order-img column so the label has more room.
     The PHP sets the inline style="width: 50px" on the addon thumbnail
     — override it to ~28px on mobile. */
  table.order td.order-img {
    width: 36px;
    padding: 2px;
  }
  table.order td.order-img .relative-option-detail {
    width: 32px !important;
  }
  table.order td.order-img img:not(.option-detail) {
    width: 28px !important;
    height: auto;
  }

  /* Compact mount-col so it doesn't push the table wider than the viewport. */
  table.order td.mount-col,
  table.order td[class*="addonmount-"] {
    font-size: 12px;
    padding: 4px 3px;
  }
  table.order td.mount-col .mount-text,
  table.order td[class*="addonmount-"] .mount-text {
    margin: 0;
    line-height: 1.3em;
  }

  /* Shrink amount-col when it has no number input. */
  table.order td.amount-col {
    width: auto;
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
  }
  /* When an input is present, give it just enough width for input + arrows. */
  table.order td.amount-col:has(input.input-ks) {
    width: 70px;
    min-width: 70px;
  }
  /* Keep price + currency on one line — never "1.500,00" / "Kč". */
  table.order td.pr {
    width: auto;
    min-width: 55px;
    white-space: nowrap;
    padding: 5px 4px;
  }

  /* Tap-friendly number controls — slightly larger than the desktop
     11×11 originals but compact enough that the row still fits. */
  .amount-col .input-ks {
    width: 28px;
    height: 24px;
    padding: 2px;
    font-size: 13px;
    box-sizing: content-box;
  }
  .amount-col .change-amount {
    width: 22px;
    height: 32px;
  }
  .amount-col .change-amount a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    overflow: visible;
    padding: 0;
  }
  .amount-col .change-amount a.amountup {
    height: 16px;
  }
  .amount-col .change-amount a img {
    width: 13px;
    height: auto;
    float: none;
  }

  /* Task 8: rearrange the order-ban above the cart so the
     offer/print buttons sit on top and the larger "Přidat do
     košíku" button is centered below them. */
  .detail-to-cart.order-ban {
    text-align: center;
  }
  /* Task 2 (round 2): "Poslat jako nabídku" on the left with its
     tooltip icon right next to it, "Vytisknout" pushed to the right. */
  .detail-to-cart.order-ban .offer-but {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    margin-top: 0;
    margin-bottom: 12px;
  }
  .detail-to-cart.order-ban .offer-but .send-offer-a {
    float: none;
    display: inline-block;
    margin: 0;
  }
  .detail-to-cart.order-ban .offer-but .tooltip-self {
    float: none;
    display: inline-block;
    margin: 0 0 0 5px;
    order: 2;
  }
  .detail-to-cart.order-ban .offer-but #create-offer-info {
    flex: 0 1 auto;
    order: 3;
  }
  .detail-to-cart.order-ban .offer-but .print-offer-a {
    float: none;
    display: inline-block;
    margin: 0;
    margin-left: auto;
    order: 4;
  }
  .detail-to-cart.order-ban .float-right {
    float: none;
    display: block;
    text-align: center;
  }
  .detail-to-cart.order-ban .add-but {
    font-size: 14px;
    display: inline-block;
    float: none;
  }

  /* Task 4 (round 2): tabs stack vertically on mobile but keep the
     desktop appearance (size, colors, icons). Overrides the prior
     responsive.css rules that shrunk them to font-size 9-10px and
     stripped their icon backgrounds. */
  ul.tabs {
    height: auto !important;
    padding: 7px 7px 0 !important;
    background: #303030 !important;
    margin-top: 20px;
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  ul.tabs li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 38px !important;
    margin-bottom: 2px;
  }
  ul.tabs li a {
    float: none !important;
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    padding: 0 16px 0 38px !important;
    height: 44px !important;
    line-height: 44px !important;
    color: #d7d7d7 !important;
    border-right: 0 !important;
    box-sizing: border-box;
  }
  /* Restore the per-tab icon backgrounds that responsive.css clears
     with "background: 0 0 !important" on mobile. */
  ul.tabs li a.order-tab-a {
    background: url(../img/ico-ordertab.gif) 15px 9px no-repeat #303030 !important;
  }
  ul.tabs li.active a.order-tab-a,
  ul.tabs li.active a.order-tab-a:hover {
    background: url(../img/ico-ordertab-a.gif) 15px 11px no-repeat #fff !important;
  }
  ul.tabs li a.question-tab-a {
    background: url(../img/ico-question.gif) 14px 14px no-repeat #303030 !important;
  }
  ul.tabs li.active a.question-tab-a,
  ul.tabs li.active a.question-tab-a:hover {
    background: url(../img/ico-question-a.gif) 14px 16px no-repeat #fff !important;
  }
  ul.tabs li a.gallery-tab-a {
    background: url(../img/ico-gallery.gif) 15px 11px no-repeat #303030 !important;
  }
  ul.tabs li.active a.gallery-tab-a,
  ul.tabs li.active a.gallery-tab-a:hover {
    background: url(../img/ico-gallery-a.gif) 15px 13px no-repeat #fff !important;
  }
  ul.tabs li a.files-tab-a {
    background: url(../img/ico-files.gif) 13px 12px no-repeat #303030 !important;
  }
  ul.tabs li.active a.files-tab-a,
  ul.tabs li.active a.files-tab-a:hover {
    background: url(../img/ico-files-a.gif) 13px 14px no-repeat #fff !important;
  }
  ul.tabs li a.reference-tab-a {
    background: url(../img/ico-question.gif) 14px 14px no-repeat #303030 !important;
  }
  ul.tabs li.tab-reference a.reference-tab-a,
  ul.tabs li.tab-reference.active a.reference-tab-a {
    background: url(../img/ico-question-a.gif) 14px 16px no-repeat #fff !important;
    color: #e56b16 !important;
  }
  /* Active-state text color (icons are handled above) */
  html ul.tabs li.active a,
  html ul.tabs li.active a:hover {
    color: #333 !important;
  }
  html ul.tabs li.active,
  html ul.tabs li.tab-reference.active {
    line-height: 44px !important;
  }
}
@media screen and (max-width: 860px) {
  .detail-to-cart.order-ban .add-but,
  .detail-but-dr {
    font-size: 20px;
  }
}

a.desc-toggle {
  display: block;
  text-align: center;
  color: #e8701d;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 8px;
}

/* Výsledné ceny (poslední sloupec - "Cena celkem") scaled up ~20% */
table#sumtable tr td:last-child {
  font-size: 1.2em;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size:21px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
