.homepage-carousel {
    position: relative;
    background-color: #fff;
}

.homepage-carousel .owl-stage {
    display: flex;
}

.homepage-carousel .item {
    position: relative;
    height: 100%;
    max-height: 500px;
}

/*
@media (max-width: 993px) {
  .homepage-carousel .item {
    height: 400px;
  }
}
@media (max-width: 576px) {
  .homepage-carousel .item {
    height: 350px;
  }
}
@media screen and (max-width: 400px) {
  .homepage-carousel .item {
    height: 300px;
  }
}*/
.homepage-carousel .item .slider-item-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.homepage-carousel .item .slider-item {
    padding: 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

@media (max-width: 1200px) {
    .homepage-carousel .item .slider-item {
        padding: 35px;
    }
}

@media (max-width: 993px) {
    .homepage-carousel .item .slider-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item {
        padding: 25px;
    }
}

@media screen and (max-width: 400px) {
    .homepage-carousel .item .slider-item {
        padding: 17px;
    }
}

.homepage-carousel .item .slider-item .slider-item-box {
    display: flex;
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text {
    width: 430px;
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text h1 {
    padding-bottom: 10px;
    font-weight: 400;
    display: inline-block;
    padding: 10px;
}

@media (max-width: 993px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text h1 {
        font-size: 35px;
        line-height: 35px;
    }
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text h1 {
        font-size: 24px;
        line-height: 24px;
    }
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
    font-size: 19px;
    margin-bottom: 0;
    font-weight: 500;
    padding: 0 10px;
    display: inline-block;
}

@media (max-width: 993px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

@media screen and (max-width: 400px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
        font-size: 14px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text h1,
.homepage-carousel .item .slider-item .slider-item-box .slider-item-text h2,
.homepage-carousel .item .slider-item .slider-item-box .slider-item-text p {
    color: #fff;
    font-family: "Poppins", sans-serif;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle {
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle {
        margin-bottom: 5px;
    }
}

.homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle p {
    font-size: 146px;
    line-height: 146px;
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    display: inline-block;
    padding: 10px;
}

@media (max-width: 1600px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle p {
        font-size: 100px;
        line-height: 100px;
    }
}

@media (max-width: 993px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle p {
        font-size: 50px;
        line-height: 50px;
    }
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .slider-item-box .slider-item-text .subtitle p {
        font-size: 30px;
        line-height: 30px;
    }
}

.homepage-carousel .item .slider-item .slider-item-box .text-center-width {
    width: 70%;
}

@media (max-width: 993px) {
    .homepage-carousel .item .slider-item .slider-item-box .text-center-width {
        width: 100%;
    }
}

.homepage-carousel .item .slider-item .carousel-btn {
    margin-top: 30px;
    display: flex;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .homepage-carousel .item .slider-item .carousel-btn {
        margin-top: 10px;
    }
}

.homepage-carousel .item .slider-item .carousel-btn a {
    text-decoration: none;
    display: inline-block;
    padding: 15px 25px;
    color: #fff;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    padding-right: 65px;
    transition: all ease-in 0.1s;
    position: relative;
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .carousel-btn a {
        background-size: 20px;
        background-position: right 10px center;
        padding: 6px 10px;
        padding-right: 50px;
        font-size: 14px;
    }
}

.homepage-carousel .item .slider-item .carousel-btn a svg {
    position: absolute;
    right: 25px;
    bottom: 50%;
    transform: translateY(50%);
    width: 30px;
}

@media (max-width: 576px) {
    .homepage-carousel .item .slider-item .carousel-btn a svg {
        width: 25px;
        right: 15px;
    }
}

.homepage-carousel .item .slider-item .btn-color-green a {
    background-color: #93bb07;
    border: 2px solid #93bb07;
}

.homepage-carousel .item .slider-item .btn-color-red a {
    background-color: #ec383e;
    border: 2px solid #ec383e;
}

.slider-item-template {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    z-index: 1;
    object-fit: cover;
    top: 0;
    left: 0;
}

.fade:not(.show) {
    opacity: inherit;
}

#catalog {
    margin-top: -1rem;
    padding-top: 1rem;
}

input[type=number] {
    -moz-appearance: textfield;
}

#glsIframe {
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (min-width: 993px) {
    .cart-table-col-image img {
        margin: 0 auto;
    }
}

/* ppl select box fix */
.ppl-delivery-box .modal-box {
    position: fixed;
    top: 0;
}

.ppl-delivery-box .modal-overlay,
.ppl-delivery-box .modal-box {
    z-index: 9999 !important;
}

.ppl-delivery-box #close-modal-button {
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background-color: var(--light-color);
    font-size: 0;
    line-height: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'><path d='M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z' fill='currentColor'/></svg>");
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center center;
}

.ppl-delivery-box #ppl-parcelshop-map .language-wrapper {
    top: 40px;
    right: 106px;
}

@media (max-width: 992px) {
    .ppl-delivery-box #ppl-parcelshop-map .language-wrapper {
        top: 20px;
        right: 56px;
    }

    .ppl-delivery-box #close-modal-button {
        width: 24px;
        height: 24px;
        right: 16px;
        top: 16px;
        background-size: 24px;
    }
}

/* dropdowny */

.section-block-dropdowns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.5rem .8755rem 1.5rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .section-block-dropdowns-header {
        padding: .875rem 1.25rem;
    }
}

.section-block-dropdowns-header:hover {
    text-decoration: none;
}

.section-block-dropdowns-header h4 {
    margin-bottom: 0;
    transition-duration: 0.2s;
}

.section-block-dropdowns-header:hover h4 {
    color: var(--highlight-color);
}

.section-block-dropdowns-header-icon {
    background-color: var(--highlight-color);
    height: 43px;
    width: 43px;
    border-radius: 50%;
    transition-duration: 0.2s;
    flex-shrink: 0;
    margin-left: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-block-dropdowns-header:hover .section-block-dropdowns-header-icon {
    background-color: var(--highlight-color);
}

.section-block-dropdowns-header-icon svg {
    transition-duration: 0.2s;
}

.section-block-dropdowns-header-icon svg path {
    fill: var(--light-color) !important;
}

.section-block-dropdowns-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 100ms linear, max-height 100ms linear;
    will-change: opacity, max-height;
}

.section-block-dropdowns-body-content {
    padding: 0 2rem 2.25rem;
}

@media (max-width: 768px) {
    .section-block-dropdowns-body-content {
        padding: 0 1.25rem 1.25rem;
    }
}

.section-block-dropdowns-body-content>div>*:last-child {
    margin-bottom: 0;
}

.section-block-dropdowns-item {
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 1px solid var(--border-color);
    margin-top: .44rem;
    margin-bottom: .44rem;
}

.section-block-dropdowns-item.active .section-block-dropdowns-body {
    opacity: 1;
    max-height: 100%;
}

.section-block-dropdowns-item.active .section-block-dropdowns-header-icon svg {
    transform: rotate(180deg);
}

.banner-trio-inner {
    display: grid;
    grid-template-columns: 980fr 410fr;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.banner-trio-carousel--large,
.banner-trio-small-wrapper {
    min-width: 0;
    min-height: 0;
}

.banner-trio-small-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.banner-trio-carousel,
.homepage-carousel,
.banner-trio-carousel .owl-stage,
.banner-trio-carousel .owl-stage-outer {
    height: 100%;
    width: 100%;
}

.banner-trio-carousel--small {
    height: calc(50% - 4px);
}

.banner-trio-item {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-trio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homepage-banner .item-icons img,
.homepage-banner .item-icons svg {
    max-width: 60px;
}

.banner-trio-carousel--large .banner-trio-item {
    aspect-ratio: 980 / 505;
}

.banner-trio-carousel--small .banner-trio-item {
    aspect-ratio: 410 / 248;
}

.banner-trio {
    min-height: 390px;
}

@media (min-width: 1200px) {
    .banner-trio .homepage-banner .item-imagebox {
        padding: 2.25rem 1rem 2.25rem 0;
        display: flex;
        align-items: center;
    }

    .banner-trio .homepage-banner .item-texts {
        padding: 1.5rem 2.25rem;
    }

    .banner-trio .homepage-banner .item-title {
        font-size: 34px;
        line-height: 44px;
    }
}

@media (max-width: 1475px) and (min-width: 1200px) {

    .banner-trio .homepage-banner .item.extended {
        grid-template-columns: 1fr 1.1fr;
    }

    .banner-trio .homepage-banner .item-icons img,
    .banner-trio .homepage-banner .item-icons svg {
        max-height: 34px;
        max-width: 52px;
    }

    .banner-trio .homepage-banner .item-desciption,
    .banner-trio .homepage-banner .item-desciption p {
        font-size: 16px;
        line-height: 26px;
    }

    .banner-trio .homepage-banner .item-title {
        font-size: 28px;
        line-height: 38px;
    }
}



@media (max-width: 1200px) {
    .banner-trio-inner {
        grid-template-columns: 1fr;
    }

    .banner-trio-small-wrapper {
        flex-direction: row;
    }

    .banner-trio-carousel--small {
        width: calc(50% - 4px);
        height: auto;
    }

    .banner-trio {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .banner-trio.section-spacing {
        padding: 0;
    }
    
    .homepage-banner.banner-trio-carousel {
        padding: 0;
    }
    
    .banner-trio-inner {
        gap: 0;
    }

    .banner-trio-small-wrapper {
        padding: 2.25rem 2.25rem 0;
        flex-direction: column;  
        gap: .75rem;
    }

    .banner-trio-carousel--small {
        width: 100%;
    }

    .banner-trio>.container {
        padding: 0;
    }
}
@media (max-width: 576px) {

    .banner-trio-small-wrapper {
        padding: 1.5rem 1.5rem 0;
    }
}

.textimage {
    margin: 1rem 0;
}
.textimage-image {
    max-width: 275px;
}
.textimage-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.textimage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (min-width: 768px) {
    
    .textimage-image {
        max-width: 100%;
    }

    .textimage {
        margin: 2.75rem 0;
    }

    .textimage-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    .textimage-image,
    .textimage-text {
        flex: 1;
    }
}

.news-item-photo {
    background-color: var(--section-color);
    aspect-ratio: 5/3;
    object-fit: cover;
    width: 100%;
    height: auto;
}
.news-item-photo.scale-down {
    object-fit: scale-down;
}
@media (max-width: 576px) {
  .news-outerbox {
    padding: 1.5rem 0;
    background-color: var(--section-color);
    margin-bottom: -.5rem;
  } 
  .news-item {
    padding-bottom: 0;
  }
}
/* Keep prices aligned within each product-grid row, including mobile cards. */
.products-row > .products-item > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.products-row > .products-item > a > .products-item-bottom {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}
.products-row > .products-item > a > .products-item-bottom > .products-item-price {
    margin-top: auto;
    padding-top: 4px;
}

/* upravy.odt: homepage heading, compact category introduction and checkout. */
.header-h1 { max-width: 260px; margin: 6px 0 0; font-size: 14px; line-height: 1.4; font-weight: 500; color: #494949; }
.category-intro { margin-bottom: 20px; }
.category-intro .productbox-inner { padding: 0; }
.category-intro .productbox-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
.category-intro .productbox-description { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.5; }
.category-intro .productbox-description p { margin: 0; font-size: inherit; line-height: inherit; }
.category-intro .productbox-description h1, .category-intro .productbox-description h2, .category-intro .productbox-description h3 { display: inline; font: inherit; margin: 0; }
.category-intro .category-intro-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.category-intro .productbox-button { flex: 0 0 auto; margin: 0; }
.category-intro .category-intro-toggle { width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 1px solid #ddd; }
.category-intro .category-intro-toggle svg { width: 18px; height: 18px; margin: 0; }
.checkout-login { margin: 14px 0 0; font-size: 14px; font-weight: 400; }
.checkout-login summary, .checkout-coupon summary { cursor: pointer; list-style: none; width: fit-content; }
.checkout-login summary::-webkit-details-marker, .checkout-coupon summary::-webkit-details-marker { display: none; }
.checkout-login summary span { text-decoration: underline; text-underline-offset: 3px; }
.checkout-login-panel { margin-top: 16px; padding: 20px; border: 1px solid #ddd; max-width: 620px; text-align: left; }
.checkout-login-panel .cart-boxes-item-facebook { margin-top: 16px; }
.checkout-coupon { font-size: 14px; margin: 0 0 20px; }
.checkout-coupon > .cart-boxes-item-form { padding-top: 16px; }
.checkout-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.checkout-actions-first { margin: 18px 0; }
.checkout-actions .checkout-sticky-price { display: none; }
.checkout-actions .checkout-next { min-height: 48px; }
.checkout-next[aria-disabled="true"] { opacity: .65; cursor: wait; }
.checkout-login summary:focus-visible, .checkout-coupon summary:focus-visible { outline: 2px solid #f52f42; outline-offset: 4px; }
@media (max-width: 767px) {
    .header-h1 { max-width: 165px; font-size: 11px; line-height: 1.35; }
    .checkout-has-actions { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
    .checkout-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -3px 12px rgba(0,0,0,.08); gap: 12px; }
    .checkout-actions .checkout-sticky-price { display: flex; flex-direction: column; flex: 0 0 auto; line-height: 1.4; }
    .checkout-sticky-price small { font-size: 11px; color: #555; }
    .checkout-sticky-price strong { font-size: 17px; white-space: nowrap; }
    .checkout-actions .checkout-next { flex: 1; padding: 12px; font-size: 13px; line-height: 1.4; text-align: center; }
    .checkout-actions .checkout-next > span { justify-content: center; }
    .checkout-actions .checkout-next svg { flex-shrink: 0; }
    .checkout-login-panel { padding: 16px; }
    .checkout-login-panel .form-onerow { flex-wrap: wrap; }
    .checkout-login-panel .form-onerow input { flex: 1 1 100%; width: 100%; }
}

/* Keep third-party chat from covering mobile checkout actions. */
@media (max-width: 767px) {
    body.checkout-page #supportBox-iframe { display: none !important; }
}

/* Keep checkout summary grid inside the mobile viewport. */
@media (max-width: 767px) {
    .cart-boxes-row { margin-left: 0; margin-right: 0; max-width: 100%; }
    .cart-boxes-row > [class*="col-"] { min-width: 0; overflow-wrap: anywhere; }
}
