/* Layout repairs for the saved template; content and links stay in index.html. */

/* The saved carousel has inline width: 0px, which stacks each letter. */
#html-body #custom-slider-28 .owl-stage,
#html-body #custom-slider-28 .owl-item {
    width: 100% !important;
    transform: none !important;
}

#html-body #custom-slider-28 .owl-stage-outer {
    overflow: hidden;
}

#html-body #custom-slider-28 .banner-custom > div {
    white-space: normal;
    line-height: 1.4;
}

/* Let the image determine its height instead of replaying saved screen sizes. */
#html-body .product.media .fotorama__stage,
#html-body .product.media .fotorama__stage__shaft {
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

#html-body .product.media .fotorama__stage__frame.fotorama__active {
    position: relative;
}

#html-body .product.media .fotorama__stage__frame:not(.fotorama__active) {
    display: none;
}

#html-body .product.media .fotorama__nav-wrap {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

#html-body .product.media .fotorama__nav {
    width: 100% !important;
    height: auto !important;
}

#html-body .product.media .fotorama__nav__shaft {
    display: flex;
    gap: 8px;
    transform: none !important;
}

#html-body .product.media .fotorama__thumb-border {
    display: none;
}

#html-body .product.media .fotorama__thumb .fotorama__img {
    position: static;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#html-body .product.media .fotorama__stage__frame.fotorama__active .fotorama__img {
    position: static !important;
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    transform: none !important;
    margin: 0;
}

#html-body .product-info-main,
#html-body .product.media,
#html-body .review-right {
    min-width: 0;
}

#html-body .page-title,
#html-body .mobile-name .value {
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    #html-body .navigation > ul > li.level0 > a {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    #html-body .header-main > .container > .row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    #html-body .header-main .h-logo,
    #html-body .header-main .main-header-right {
        box-sizing: border-box;
        flex: 0 0 50%;
        width: 50%;
        min-width: 0;
        margin: 0;
    }

    #html-body .header-main .h-logo .logo {
        max-width: calc(100% - 30px);
        margin-left: 30px;
    }

    #html-body .header-main .h-logo {
        order: 1;
    }

    #html-body .header-main .main-header-right {
        order: 2;
        min-height: 0;
        padding-right: 8px;
    }

    #html-body .header-main .main-header-right > div {
        justify-content: flex-end;
        gap: 6px !important;
    }

    #html-body .header-main .main-header-right a {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    #html-body .header-main .h-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    #html-body #custom-slider-28 {
        max-width: calc(100% - 10px);
    }

    #html-body .breadcrumbs {
        padding: 12px 15px;
        background: #fff;
    }

    #html-body .breadcrumbs .items,
    #html-body .breadcrumbs .item,
    #html-body .breadcrumbs .item strong {
        white-space: normal;
        overflow-wrap: break-word;
        height: auto;
    }

    #html-body #maincontent {
        background: #fff;
    }

    #html-body .product-info-price,
    #html-body .product-info-price .price-box,
    #html-body .page-bottom,
    #html-body .faq-wrapper,
    #html-body .faq-section {
        box-sizing: border-box;
        max-width: 100%;
    }

    #html-body .faq-wrapper {
        padding: 20px 0;
    }

    #html-body .faq-section {
        padding: 24px 16px;
    }

    #html-body .page-footer,
    #html-body .page-footer * {
        box-sizing: border-box;
        max-width: 100%;
    }

    #html-body #sticky-gall-wrap,
    #html-body #sticky-gall-wrap > .product.media,
    #html-body #sticky-gall-wrap > .product-info-main {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    #html-body .sticky-gallery {
        position: relative !important;
        top: auto !important;
    }

    #html-body .mobile-name .value {
        font-size: 22px;
        line-height: 1.35;
    }

    #html-body .reviews-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    #html-body .reviews-filter-row,
    #html-body .reviews-filter-left,
    #html-body .reviews-filter-bottom,
    #html-body .review-item {
        flex-wrap: wrap;
        gap: 12px !important;
    }

    #html-body .stickycart .sticky-box-tocart {
        display: flex;
        width: 100%;
        gap: 10px;
    }

    #html-body .stickycart .buynow-button {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    #html-body .stickycart .buynow-button button {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}
