/* input(14,21): run-time error CSS1030: Expected identifier, found '.'
input(14,50): run-time error CSS1025: Expected comma or open brace, found ')' */
/*********** HOMEPAGE SLIDER **********/
.home-page .theme-custom {
    width: 100vw;
    max-width: inherit;
}
.html-home-page .master-column-wrapper .theme-custom {
    margin-top: -1px;
}
.home-page .theme-custom .nivo-controlNav {
    display: none;
}

/*********** HOMEPAGE CATEGORIES & BESTSELLERS **********/
.home-page:not(:has(.slider-wrapper.theme-custom)) .page-body > div:first-child {
    margin-top: 30px;
}
.home-page-category-grid .row {
    margin: 0 -12.5px;
}
.home-page-category-grid .title,
.bestsellers .title {
    font-weight: bold;
    font-size: 26px;
    color: var(--darken);
}
.home-page-category-grid .sub-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-secondary);
    line-height: 24px;
    margin-bottom: 0;
}
.home-page-category-grid .sub-title a:hover {
    color: var(--dark);
}
.home-page-category-grid .item-box .picture {
    margin-bottom: 15px;
}
.home-page-category-grid .picture a::before {
    padding-top: 100%;
}
.home-page-bestseller .item-box .picture .variants-buttons {
    display: none;
}
.home-page-bestseller .item-box .details {
    padding: 10px;
}

/*********** HOME NEWS CARD **********/
.news-list-homepage .news-items {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.news-list-homepage .view-all {
    flex-basis: 100%;
    margin-top: 1rem;
}
.news-list-homepage .news-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--light-gray);
    padding: 20px;
    border-radius: 15px;
}
.news-list-homepage .news-item:first-child {
    margin-right: 0;
    margin-bottom: 1rem;
}
.news-list-homepage .news-item:nth-last-child(1) {
    margin-left: 0;
    margin-top: 1rem;
}
.news-list-homepage .news-item .read-more {
    display: flex;
    width: fit-content;
    align-items: center;
}
.news-list-homepage .news-item .news-head,
.news-list-homepage .news-item .news-title {
    text-align: left;
    padding: 0;
}
.news-list-homepage .news-item .news-date {
    background-color: transparent;
    margin-top: 1rem;
    color: var(--black);
    padding: 0;
}
.news-list-homepage .news-item .buttons {
    padding: 0;
}

/*********** HOMEPAGE HELP SECTION **********/
.homepage-help-wrapper {
    position: relative;
}
.homepage-help {
    background-color: var(--background);
    margin: 0 auto;
    position: relative;
    padding: 10px 20px;
}
.homepage-help .title {
    display: inline-block;
    font-weight: bolder;
    color: var(--darken);
    margin: 0 0 10px;
}
.homepage-help .content-section {
    display: inline-block;
    width: 50%;
}
.homepage-help-wrapper .content-section p {
    color: var(--dark-secondary);
    margin-bottom: 0;
    padding-bottom: 30px;
}
.homepage-help-wrapper .content-section p:last-child {
    padding-bottom: 0;
}
.homepage-help-wrapper .content-section a {
    text-decoration: underline;
}
.homepage-help-wrapper .content-section a:hover {
    color: var(--darken);
}
.homepage-help-wrapper .img-section {
    position: absolute;
    top: 0;
    height: 100%;
}
.homepage-help-wrapper img {
    max-width: 100%;
    max-height: 100%;
}
.rich-blog-homepage .post-title {
    word-break: break-word;
}

/* Edit Home Sizes Popup */
.form-popup-bg-editHomeSizes {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    background-color: #000000cc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100000;
    overflow-y: auto;
}
.form-popup-bg-editHomeSizes.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
    padding: 30px 20px;
    margin: auto;
}
#alignHomeSizeContent {
    background-color: #F3F3F3;
    min-width: 600px;
    border-radius: var(--rounded-corners);
    margin: auto;
    padding: 0;
}
#alignHomeSizeContent table,
#alignHomeSizeContent .productselectionTable-scroll {
    border-radius: var(--rounded-corners);
}
.form-popup-bg-editHomeSizes .form-group:last-child {
    width: auto;
    max-width: 700px;
    margin: 0 auto;
}
#alignHomeSizeContent select {
    width: 100%;
}
#alignHomeSizeContent tbody tr {
    display: table-row;
}

/* Image help sections */
.img-help-sections .homepage-help-wrapper {
    height: 100%;
}
.img-help-sections .homepage-help-wrapper .img-section {
    position: absolute;
    bottom: 0;
    right: -20px;
    display: flex;
    align-items: flex-end;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .home-page .theme-custom {
        margin: 0 0 50px calc(-1 * ((100vw - 100%) / 2));
    }
    .home-page .page-body > div {
        margin-bottom: 50px;
    }
    .home-page-category-grid .title {
        padding-bottom: 25px;
    }
    .homepage-help {
        padding: 15px;
        min-height: 180px;
    }
    .img-help-sections .homepage-help {
        padding: 25px 15px;
    }
    .img-help-sections .homepage-help-wrapper {
        margin-top: 50px;
        padding-top: 50px;
    }
    .home-page .homepage-help-wrapper .content-section {
        width: 67%;
    }
    .img-help-sections .homepage-help-wrapper .img-section {
        max-width: 43%;
        height: 100%;
    }
    .html-product-details-page .rich-blog-homepage,
    .html-category-page .rich-blog-homepage {
        margin-bottom: 15px;
    }
}
@media (max-width: 767px) {
    .form-popup-bg-editHomeSizes .form-group:last-child {
        margin: 0;
    }
}
@media (max-width: 575px) {
    .homepage-help {
        max-width: 100%;
    }
    .homepage-help .title {
        line-height: 26px;
    }
    .homepage-help p {
        line-height: 20px;
    }
}
@media (max-width: 480px) {
    .home-page-category-grid .item-box:not(:last-child) {
        margin-bottom: 25px;
    }
    .homepage-help .title {
        font-size: 22px;
    }
    .home-page .homepage-help-wrapper .img-section {
        width: 50%;
        right: 0;
    }
    .homepage-help-wrapper p {
        font-size: 14px;
        line-height: 20px;
    }
    .homepage-help-wrapper .content-section p:not(:last-child) {
        padding-bottom: 15px;
    }
}
@media (max-width: 375px) {
    .home-page .homepage-help-wrapper {
        padding: 116px 0 0;
    }
    .home-page .homepage-help-wrapper img {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: auto;
    }
}
@media (min-width: 376px) and (max-width: 480px) {
    .home-page .homepage-help-wrapper {
        padding: 102px 0 0;
    }
}
@media (min-width: 481px) and (max-width: 575px) {
    .home-page-category-grid .item-box {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .home-page-category-grid .item-box:not(:nth-last-child(-n+2)) {
        margin-bottom: 25px;
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .home-page-category-grid .item-box:not(:nth-last-child(-n+2)),
    .home-page-category-grid .item-box:not(:nth-last-child(-n+3)) {
        margin-bottom: 25px;
    }
    .home-page .homepage-help-wrapper {
        padding: 124px 0 0;
    }
    .home-page .homepage-help-wrapper .img-section {
        width: calc(480px / 2);
        right: calc((100% - 480px) / 2);
    }
    .home-page .homepage-help {
        max-width: 480px;
        min-height: 207px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .home-page-category-grid .item-box:not(:nth-last-child(-n+3)) {
        margin-bottom: 25px;
    }
    .home-page .homepage-help-wrapper {
        padding: 170px 0 0;
    }
    .home-page .homepage-help-wrapper .img-section {
        width: calc(566px / 2);
        right: calc((100% - 566px) / 2);
    }
    .home-page .homepage-help {
        max-width: 566px;
        min-height: 207px;
    }
}
@media (min-width: 768px) {
    .news-list-homepage .news-items {
        flex-direction: row;
    }
    .news-list-homepage .news-items .news-item {
        flex: 1 1 0;
    }
    .news-list-homepage .news-items .news-item:first-child {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    .news-list-homepage .news-items .news-item:nth-last-child(1) {
        margin-left: 1rem;
        margin-top: 0;
    }
}
@media (min-width: 992px) {
    .home-page .theme-custom {
        margin: 0 0 100px calc(-1 * ((100vw - 100%) / 2));
    }
    .home-page-category-grid .item-box:not(:nth-last-child(-n+4)) {
        margin-bottom: 25px;
    }
    .home-page .page-body > div {
        margin-bottom: 100px;
    }
    .home-page .homepage-help {
        max-width: 870px;
        min-height: 250px;
        padding: 10px 20px;
    }
    .home-page .homepage-help .title {
        font-size: 40px;
        line-height: 55px;
    }
    .home-page .homepage-help-wrapper {
        padding: 255px 0 45px;
    }
    .home-page .homepage-help-wrapper .content-section {
        max-width: 80%;
    }
    .home-page .homepage-help-wrapper p {
        font-size: 20px;
    }
    .home-page .homepage-help-wrapper .img-section {
        width: calc(870px / 2);
        right: calc((100% - 870px) / 2);
    }
    .html-product-details-page .rich-blog-homepage,
    .html-category-page .rich-blog-homepage {
        max-width: 870px;
        margin: 0 auto 15px;
    }
    .html-product-details-page .panel-body + .rich-blog-homepage {
        margin-top: 100px;
    }
    .shopping-cart-page .img-help-sections .homepage-help {
        height: 100%;
    }
    .img-help-sections .homepage-help {
        padding: 25px 20px;
    }
    .img-help-sections .homepage-help-wrapper .content-section {
        width: 64%;
    }
    .img-help-sections .homepage-help .title {
        font-size: 26px;
        line-height: 35px;
    }
    .img-help-sections .homepage-help-wrapper .img-section {
        height: 140%;
        max-height: 300px;
        max-width: 42%;
    }
}

