/* Shared native storefront layout; retain the legacy visual styles. */
.landing-page {
    background-color: #ebebeb;
}

.query-page *,
.query-page *::before,
.query-page *::after {
    box-sizing: border-box;
}

.landing-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.query-page nav .inner_nav,
.query-page header .inner_header,
.landing-content,
.query-page footer .foo_inner {
    width: calc(100% - 24px);
    max-width: 1300px;
    margin: 0 auto;
}

.query-page nav .inner_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.query-page nav #fb-root {
    display: none;
}

.query-page nav .wel_social_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    flex: 1;
    min-width: 0;
    float: none;
}

.query-page nav .inner_nav .c_name,
.query-page nav .social,
.query-page nav .inner_nav ul {
    margin: 0;
    float: none;
}

.query-page nav .social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.query-page nav .social a,
.query-page nav .social img {
    display: block;
}

.query-page nav .inner_nav ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
    padding: 6px 0;
}

.query-page nav .inner_nav ul li a {
    margin: 0;
}

.query-page header {
    height: auto;
    padding: 12px 0;
}

.query-page header .inner_header {
    display: grid;
    grid-template-columns: minmax(340px, 29fr) minmax(0, 71fr);
    gap: 12px;
}

.query-page header .inner_header .h_left,
.query-page header .inner_header .h_right {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 125px;
    margin: 0;
    float: none;
}

.landing-help {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 123px;
    padding: 4px 12px;
    gap: 8px;
}

.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 115px;
    height: 114px;
}

.landing-logo img {
    display: block;
    width: 115px;
    max-width: 100%;
    height: auto;
}

.query-page header .inner_header .h_left .h_helps {
    position: relative;
    flex: 1;
    width: auto;
    max-width: 210px;
    min-width: 0;
    margin: 0;
}

.query-page .h_helps .landing-help-action {
    margin-top: 8px;
}

.query-page .btn_needHelpBig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 20px;
}

.query-page .h_helps .landing-help-caption {
    margin-top: 4px;
    font-size: 0.8em;
}

.query-page header .inner_header .h_right .h_search {
    width: 80%;
    margin: 10px auto;
}

.landing-search-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.query-page #txtSearch {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 6px;
    font: inherit;
}

.query-page #btnSearch {
    width: 20%;
    min-width: 100px;
    margin: 0;
}

.query-page #txtSearch::placeholder {
    color: #d9d9d9;
}

.query-page .cols_container {
    flex: 1;
    width: 100%;
    height: auto;
    margin: 12px 0;
}

.landing-content {
    display: grid;
    grid-template-columns: minmax(0, 240fr) minmax(0, 796fr) minmax(0, 240fr);
    align-items: stretch;
    gap: 12px;
}

.landing-products,
.landing-categories {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.landing-products {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.landing-categories .rows_plain {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.landing-categories .across,
.landing-products .sb_item {
    min-width: 0;
    border: 1px solid #d5d5d5;
    background-color: #fff;
}

.landing-categories .across a,
.landing-categories .across img {
    display: block;
    width: 100%;
}

.landing-categories .across img {
    height: auto;
}

.landing-products .sb_item > a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.landing-products .sb_content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 16px 16px;
}

.landing-products .s_listed_img {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-products .s_listed_img img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: 150px;
    max-height: 100%;
    object-fit: contain;
}

.landing-products .sb_dls p {
    margin: 0;
    overflow-wrap: anywhere;
}

.landing-products .sb_dls .sb_title {
    min-height: 40px;
    margin-top: 12px;
    color: #000;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
}

.landing-products .sb_dls .sb_price {
    margin-top: 12px;
    color: #B32424;
    font-size: 1.2em;
    font-weight: 500;
}

.landing-products .sb_dls .sb_others {
    margin-top: 2px;
    color: #3e3e3e;
    font-size: 0.9em;
}

.query-page footer {
    position: static;
    height: auto;
    min-height: 25px;
}

.query-page footer .foo_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 4px 0;
}

.query-page footer .foo_left,
.query-page footer .foo_right {
    float: none;
    min-width: 0;
}

.query-page footer .foo_inner .foo_left ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.query-page footer .foo_inner .foo_left ul li a,
.query-page footer .foo_inner .foo_right p {
    margin: 0;
}

.query-page footer .foo_right {
    flex-shrink: 0;
}

.native-info-page section {
    flex: 1;
    margin: 12px 0;
}

.native-info-page section .inner_section {
    width: 70%;
    max-width: 1000px;
}

.native-info-page .cms_class {
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.native-info-page .cms_class img {
    max-width: 100%;
    height: auto;
}

.native-info-page .modal {
    width: 100%;
    padding: 12px;
}

.native-info-page .modal-content {
    width: 100%;
    max-width: 1085px;
    padding: 20px;
}

.native-info-page .modal-content img {
    height: auto;
}

@media only screen and (max-width: 1172px) {
    .native-info-page section .inner_section {
        width: calc(100% - 24px);
    }

    .query-page nav .inner_nav > .f_right {
        display: none;
    }

    .landing-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-categories {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .landing-products {
        grid-template-rows: repeat(3, auto);
    }

    .landing-products .sb_item {
        min-height: 300px;
    }

    .landing-products .s_listed_img {
        flex: 0 0 150px;
    }
}

@media only screen and (max-width: 767px) {
    .query-page header .inner_header {
        grid-template-columns: minmax(0, 1fr);
    }

    .query-page header .inner_header .h_right .h_search {
        width: calc(100% - 32px);
    }

    .query-page #btnSearch {
        width: 30%;
        min-height: 44px;
    }

    .query-page footer .foo_inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .query-page footer .foo_inner .foo_left ul {
        gap: 0 12px;
    }

    .query-page footer .foo_inner .foo_left ul li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media only screen and (max-width: 600px) {
    .landing-categories .rows_plain {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media only screen and (max-width: 479px) {
    .landing-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-help {
        gap: 4px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .landing-logo {
        flex-basis: 104px;
    }

    .query-page .h_helps {
        font-size: 0.9em;
    }

    .query-page .btn_needHelpBig {
        min-height: 44px;
    }
}
