/* Shared mobile layout for every page using the modern storefront template. */
@media (max-width: 991.98px) {
    body.store-template-modern {
        --modern-mobile-nav-height: 68px;
        --modern-mobile-announcement-height: 0px;
        padding-top: calc(var(--modern-mobile-nav-height) + var(--modern-mobile-announcement-height));
    }

    body.store-template-modern.store-has-announcement {
        --modern-mobile-announcement-height: 34px;
    }

    body.store-template-modern > .store-announcement {
        min-height: 34px;
        padding: 7px 16px;
        font-size: 11px;
        line-height: 20px;
        overflow-wrap: anywhere;
    }

    body.store-template-modern .store-navbar {
        position: fixed !important;
        inset: 0 0 auto !important;
        top: var(--modern-mobile-announcement-height) !important;
        background: #fff !important;
        color: #161412 !important;
        border-bottom: 1px solid rgba(22, 20, 18, .08) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    body.store-template-modern .store-navbar .container {
        padding-inline: 14px !important;
    }

    body.store-template-modern .store-navbar .nav-inner {
        min-height: calc(var(--modern-mobile-nav-height) - 1px);
        grid-template-columns: minmax(78px, 1fr) 42px auto;
        gap: 0;
    }

    body.store-template-modern .store-navbar .brand {
        display: flex !important;
        grid-column: 1 !important;
        grid-row: 1;
        justify-self: start !important;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        gap: 0;
        color: #161412 !important;
        font-size: clamp(14px, 3.8vw, 20px);
        letter-spacing: .08em;
        line-height: 1.35;
    }

    body.store-template-modern .brand-name {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.store-template-modern .brand .brand-mark,
    body.store-template-modern .brand--has-logo .brand-name {
        display: none;
    }

    body.store-template-modern .brand--has-logo .brand-mark {
        display: flex;
        width: 100%;
        height: 52px;
        max-width: 142px;
        flex: 0 1 142px;
        border-radius: 0;
    }

    body.store-template-modern .brand-mark img {
        object-fit: contain;
        object-position: left center;
        padding: 1px 0;
    }

    body.store-template-modern .store-navbar .modern-contact-actions {
        display: flex !important;
        grid-column: 2 !important;
        grid-row: 1;
        justify-self: end !important;
        gap: 0;
    }

    body.store-template-modern .modern-contact-link,
    body.store-template-modern .luxury-menu-btn span {
        display: none;
    }

    body.store-template-modern .store-navbar .nav-actions {
        display: flex !important;
        grid-column: 3 !important;
        grid-row: 1;
        justify-self: end !important;
        gap: 0;
    }

    html[dir="ltr"] body.store-template-modern .store-navbar .brand {
        grid-column: 1 !important;
        justify-self: start !important;
        justify-content: flex-start;
    }

    html[dir="ltr"] body.store-template-modern .store-navbar .modern-contact-actions {
        grid-column: 2 !important;
        justify-self: end !important;
    }

    html[dir="ltr"] body.store-template-modern .store-navbar .nav-actions {
        grid-column: 3 !important;
        justify-self: end !important;
    }

    html[dir="rtl"] body.store-template-modern .store-navbar .nav-inner {
        grid-template-columns: auto 42px minmax(78px, 1fr);
    }

    html[dir="rtl"] body.store-template-modern .store-navbar .brand {
        grid-column: 3 !important;
        justify-self: end !important;
        justify-content: flex-end;
    }

    html[dir="rtl"] body.store-template-modern .brand-mark img {
        object-position: right center;
    }

    html[dir="rtl"] body.store-template-modern .store-navbar .modern-contact-actions {
        grid-column: 2 !important;
        justify-self: start !important;
    }

    html[dir="rtl"] body.store-template-modern .store-navbar .nav-actions {
        grid-column: 1 !important;
        justify-self: start !important;
        direction: rtl;
    }

    html[dir="rtl"] body.store-template-modern .luxury-inline-search input {
        right: auto !important;
        left: -44px !important;
    }

    body.store-template-modern .store-navbar .store-navbar__account-control--mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    body.store-template-modern .store-navbar .modern-contact-cart,
    body.store-template-modern .store-navbar .store-navbar__mobile-favorite,
    body.store-template-modern .store-navbar .store-navbar__account-control--mobile,
    body.store-template-modern .store-navbar .luxury-search-btn,
    body.store-template-modern .store-navbar .luxury-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        padding: 0;
        color: #161412 !important;
        border: 0;
        background: transparent;
        border-radius: 50%;
        font-size: 17px;
    }

    body.store-template-modern .store-navbar a:focus-visible,
    body.store-template-modern .store-navbar button:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
    }

    body.store-template-modern .store-navbar__mobile-drawer.is-open {
        display: block !important;
    }

    body.store-template-modern .store-navbar__mobile-panel {
        width: min(100%, 440px);
        padding: 24px 24px max(32px, env(safe-area-inset-bottom));
    }

    body.store-template-modern .luxury-menu-account-form {
        width: 100%;
        margin: 0;
    }

    body.store-template-modern .luxury-menu-account-form .store-navbar__mobile-link {
        width: 100%;
        font-family: inherit;
        text-align: start;
        cursor: pointer;
    }

    body.store-template-modern .luxury-menu-account-form .luxury-menu-logout {
        color: #b4232f;
    }

    body.store-template-modern.store-page--category > main {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    body.store-template-modern.store-page--category .modern-category-hero {
        min-height: 390px !important;
        height: clamp(390px, 112vw, 560px);
        display: grid;
        place-items: end center;
        overflow: hidden;
    }

    body.store-template-modern.store-page--category .modern-category-hero__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    body.store-template-modern.store-page--category .modern-category-hero__shade {
        background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .12) 58%, rgba(0, 0, 0, .6) 100%);
    }

    body.store-template-modern.store-page--category .modern-category-hero__content {
        width: 100%;
        padding: 30px 22px 34px;
        text-align: center;
    }

    body.store-template-modern.store-page--category .modern-category-hero__content span {
        margin-bottom: 8px;
        font-size: 11px;
        letter-spacing: .04em;
    }

    body.store-template-modern.store-page--category .modern-category-hero__content h1 {
        font-size: clamp(19px, 5vw, 26px);
        line-height: 1.45;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    body.store-template-modern .modern-filter-overlay {
        z-index: 2700;
    }

    body.store-template-modern.store-page--category .shein-mobile-subcategory-strip {
        display: none !important;
    }

    body.store-template-modern .modern-filter-panel {
        width: 100%;
        max-width: none;
        padding: 84px 24px 34px;
    }

    body.store-template-modern .modern-filter-close {
        top: 18px;
        inset-inline-end: 20px;
        z-index: 2;
        width: 38px;
        height: 38px;
        border-radius: 0;
        background: transparent;
        color: #161412;
        box-shadow: none;
        font-size: 20px;
    }

    html[dir="rtl"] body.store-template-modern .modern-filter-close {
        inset-inline-start: auto;
        inset-inline-end: 20px;
    }

    body.store-template-modern .modern-filter-header {
        align-items: center;
        gap: 16px;
        margin-bottom: 22px;
    }

    body.store-template-modern .modern-filter-header h2 {
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.35;
    }

    body.store-template-modern .modern-filter-header a {
        font-size: .72rem;
    }

    body.store-template-modern .product-card {
        width: 100%;
        margin-inline: auto;
    }

    body.store-template-modern .pc-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    body.store-template-modern .pc-price-row {
        display: grid !important;
        place-items: center !important;
        place-self: center !important;
        align-self: center !important;
        justify-self: center !important;
        justify-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.store-template-modern .pc-price-stack,
    body.store-template-modern .pc-price {
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important;
        align-self: center !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.store-template-modern .pc-add-btn {
        width: 100% !important;
        margin-inline: auto !important;
        justify-self: center !important;
        align-self: center !important;
        justify-content: center !important;
    }

    body.store-template-modern .pc-badge-oos {
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        bottom: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        max-width: calc(100% - 58px) !important;
        min-height: 28px !important;
        padding-inline: 9px !important;
        font-size: 10px !important;
        inset: 8px auto auto 8px !important;
    }

    html[dir="rtl"] body.store-template-modern .pc-badge-oos {
        left: 8px !important;
        right: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        inset: 8px auto auto 8px !important;
    }

    body.store-template-modern .modern-category-product-grid {
        align-items: stretch !important;
    }

    body.store-template-modern .modern-category-product-grid .product-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: 294px !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-img-wrap {
        flex: 0 0 auto !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-body {
        flex: 1 1 auto !important;
        min-height: 128px !important;
        padding: 8px 10px 10px !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-cat-label {
        width: 100% !important;
        min-height: 1.25em !important;
        margin-bottom: 2px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-name {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 2.8em !important;
        min-height: 2.8em !important;
        margin-bottom: 3px !important;
        overflow: hidden !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-name a {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-price-row {
        margin-top: auto !important;
        gap: 6px !important;
    }

    body.store-template-modern .modern-category-product-grid .pc-add-btn {
        min-height: 34px !important;
        padding-inline: 8px !important;
    }

    body.store-template-modern .pc-add-btn.is-disabled,
    body.store-template-modern .pc-add-btn:disabled,
    body.store-template-modern .pc-add-btn.is-disabled:hover,
    body.store-template-modern .pc-add-btn:disabled:hover {
        background: #f6f2ec !important;
        border-color: #e7dfd5 !important;
        color: #8a7560 !important;
        opacity: .78 !important;
        transform: none !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 6px 14px rgba(42, 36, 28, .06) !important;
    }

    body.store-template-modern .modern-category-product-grid,
    body.store-template-modern .luxury-product-grid,
    body.store-template-modern .related-section .related-products-grid {
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 10px !important;
        margin: 0 !important;
        align-items: start !important;
    }

    body.store-template-modern .related-section .related-products-grid > .col {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    body.store-template-modern .product-card,
    body.store-template-modern .modern-category-product-grid .product-card,
    body.store-template-modern .luxury-product-grid .product-card,
    body.store-template-modern .related-section .product-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 6px !important;
        border: 1px solid #e8e4de !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 10px 28px rgba(22, 20, 18, .08) !important;
        overflow: hidden !important;
    }

    body.store-template-modern .product-card .pc-img-wrap,
    body.store-template-modern .modern-category-product-grid .product-card .pc-img-wrap,
    body.store-template-modern .luxury-product-grid .product-card .pc-img-wrap,
    body.store-template-modern .related-section .product-card .pc-img-wrap {
        width: 100% !important;
        margin: 0 !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 10px !important;
        background: #f5f2ec !important;
        overflow: hidden !important;
    }

    body.store-template-modern .product-card .pc-img-wrap img,
    body.store-template-modern .product-card .pc-img-wrap .pc-gallery-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.store-template-modern .product-card .pc-img-wrap img.is-store-logo-placeholder,
    body.store-template-modern .product-card .pc-img-wrap .pc-gallery-img.is-store-logo-placeholder {
        object-fit: contain !important;
        padding: 10% !important;
    }

    body.store-template-modern .pc-wishlist-btn {
        top: 8px !important;
        inset-inline-end: 8px !important;
        width: 32px !important;
        height: 32px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, .96) !important;
        color: #111827 !important;
        box-shadow: 0 8px 18px rgba(22, 20, 18, .14) !important;
    }

    body.store-template-modern .pc-body,
    body.store-template-modern .modern-category-product-grid .pc-body,
    body.store-template-modern .related-section .pc-body {
        flex: 1 1 auto !important;
        min-height: 88px !important;
        padding: 8px 5px 8px !important;
        align-items: stretch !important;
        text-align: start !important;
    }

    body.store-template-modern .pc-cat-label,
    body.store-template-modern .modern-category-product-grid .pc-cat-label {
        width: 100% !important;
        min-height: 1.2em !important;
        margin: 0 0 3px !important;
        color: #8d8275 !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        text-align: start !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.store-template-modern .pc-name,
    body.store-template-modern .modern-category-product-grid .pc-name {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 2.5em !important;
        margin: 0 0 3px !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1.3 !important;
        text-align: start !important;
        overflow: hidden !important;
    }

    body.store-template-modern .pc-name a,
    body.store-template-modern .modern-category-product-grid .pc-name a {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.store-template-modern .pc-price-row,
    body.store-template-modern .modern-category-product-grid .pc-price-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: end !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: auto !important;
        margin-inline: 0 !important;
        padding: 0 !important;
        text-align: start !important;
    }

    body.store-template-modern .pc-price-stack,
    body.store-template-modern .pc-price {
        width: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        justify-self: auto !important;
        align-self: auto !important;
        margin: 0 !important;
        text-align: start !important;
    }

    body.store-template-modern .pc-price-old {
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    body.store-template-modern .pc-price {
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 950 !important;
        line-height: 1.1 !important;
    }

    body.store-template-modern .pc-price-sale {
        color: #e30613 !important;
    }

    body.store-template-modern .pc-add-btn,
    body.store-template-modern .modern-category-product-grid .pc-add-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        flex: 0 0 34px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: #050505 !important;
        color: #fff !important;
        margin: 0 !important;
        align-self: auto !important;
        justify-self: auto !important;
        justify-content: center !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .18) !important;
    }

    body.store-template-modern .pc-add-btn__label,
    body.store-template-modern .pc-add-btn__text {
        display: none !important;
    }

    body.store-template-modern .pc-add-btn__icon {
        display: inline-flex !important;
        font-size: 13px !important;
    }
}

@media (max-width: 359.98px) {
    body.store-template-modern .store-navbar .container {
        padding-inline: 8px !important;
    }

    body.store-template-modern .store-navbar .nav-inner {
        grid-template-columns: minmax(72px, 1fr) 38px auto;
    }

    html[dir="rtl"] body.store-template-modern .store-navbar .nav-inner {
        grid-template-columns: auto 38px minmax(72px, 1fr);
    }

    body.store-template-modern .brand--has-logo .brand-mark {
        max-width: 118px;
        flex-basis: 118px;
    }

    body.store-template-modern .store-navbar .modern-contact-cart,
    body.store-template-modern .store-navbar .store-navbar__mobile-favorite,
    body.store-template-modern .store-navbar .store-navbar__account-control--mobile,
    body.store-template-modern .store-navbar .luxury-search-btn,
    body.store-template-modern .store-navbar .luxury-menu-btn {
        width: 38px;
        height: 42px;
        flex-basis: 38px;
    }
}
