/* Kroma-style social commerce shell. Mobile/tablet only. */

@media (max-width: 991.98px) {
    :root {
        --km-bg: #f6f3ee;
        --km-card: #ffffff;
        --km-ink: #161616;
        --km-muted: #7a746c;
        --km-accent: #ff9c38;
        --km-radius: 22px;
        --km-tabbar: 68px;
    }

    html,
    body,
    .body-wrap {
        width: 100% !important;
        max-width: 100% !important;
        background: var(--km-bg) !important;
    }

    .body-wrap {
        padding-bottom: calc(var(--km-tabbar) + env(safe-area-inset-bottom, 0px) + 12px);
    }

    .top-navbar,
    .main-nav-area,
    .hover-category-menu,
    .nav-search-box,
    .logo-bar-area .search-box {
        display: none !important;
    }

    #navbar1.header,
    .logo-bar-area {
        background: var(--km-card) !important;
        box-shadow: none !important;
    }

    #navbar1 {
        position: sticky;
        top: 0 !important;
        z-index: 1040;
    }

    .logo-bar-area .container {
        padding-top: 8px;
        padding-bottom: 0;
    }

    .logo-bar-area .col-8,
    .logo-bar-area .col-4 {
        flex: 0 0 auto;
        max-width: none;
    }

    .logo-bar-area .row.no-gutters {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-bar-area .col-lg-3.col-8 {
        flex: 1 1 auto;
        max-width: 62%;
    }

    .logo-bar-area .col-lg-9.col-4 {
        flex: 0 0 auto;
        max-width: 38%;
    }

    .logo-bar-area .navbar-brand img {
        max-height: 36px !important;
        width: auto !important;
        background: transparent !important;
    }

    .hamburger-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--km-bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #refresh-wishlist {
        display: inline-block !important;
    }

    .nav-box-text,
    .nav-box-number {
        display: none !important;
    }

    .nav-box-link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--km-bg);
        color: var(--km-ink);
    }

    .nav-box-icon {
        font-size: 20px;
    }

    .km-app-search {
        display: block;
        padding: 10px 16px 14px;
        background: var(--km-card);
    }

    .km-app-search form {
        margin: 0;
    }

    .km-app-search-field {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border: 0;
        border-radius: 999px;
        background: var(--km-bg);
    }

    .km-app-search-field i {
        color: var(--km-muted);
        font-size: 18px;
    }

    .km-app-search-field input {
        flex: 1;
        border: 0;
        background: transparent;
        outline: none;
        font-size: 15px;
        color: var(--km-ink);
        min-width: 0;
    }

    .header + div[style*="margin-top"] {
        margin-top: 8px !important;
    }

    .home-slide,
    .home-slide .slick-list,
    .home-slide .slick-slide > div {
        border-radius: var(--km-radius);
        overflow: hidden;
    }

    .home-slide img {
        border-radius: var(--km-radius);
        max-height: 210px;
        object-fit: cover;
    }

    .trending-category {
        display: block !important;
        margin: 14px 0 6px;
        overflow: hidden;
    }

    .trending-category ul {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px 10px;
        margin: 0;
        list-style: none;
        scrollbar-width: none;
    }

    .trending-category ul::-webkit-scrollbar {
        display: none;
    }

    .trending-category li {
        flex: 0 0 auto;
        width: 72px;
        text-align: center;
    }

    .trend-category-single a {
        color: inherit;
        text-decoration: none;
    }

    .trend-category-single .img {
        width: 64px;
        height: 64px;
        margin: 0 auto 6px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
        border: 2px solid #fff;
        outline: 2px solid var(--km-accent);
        outline-offset: 2px;
    }

    .trend-category-single .name {
        font-size: 11px;
        line-height: 1.25;
        color: var(--km-ink);
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .section-title-1,
    .section-title-2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 4px 0 10px;
    }

    .section-title-1 h3,
    .section-title-1 .heading-5,
    .section-title-2 h3 {
        float: none !important;
        font-size: 20px !important;
        font-weight: 700;
        color: var(--km-ink);
        margin: 0;
    }

    .section-title-1 .badge,
    .section-title-1 .pull-right,
    .section-title-2 .pull-right {
        float: none !important;
        background: transparent !important;
        color: var(--km-accent) !important;
        font-weight: 600;
        padding: 0;
    }

    .pt-4.px-4.bg-white.shadow-sm,
    .p-4.bg-white.shadow-sm,
    .pt-4.px-4.pb-3.bg-white.shadow-sm {
        padding: 14px 12px !important;
        border-radius: 24px;
        box-shadow: none !important;
        background: transparent !important;
    }

    .product-box-1,
    .product-box-2,
    .product-box-2.alt-box,
    .product-card-2 {
        border: 0;
        border-radius: 20px;
        overflow: hidden;
        background: var(--km-card);
        box-shadow: 0 10px 24px rgba(22, 22, 22, 0.06);
        height: 100%;
    }

    .product-box-1 .card-image a,
    .product-box-2 .product-image,
    .product-box-2.alt-box .product-image,
    .product-card-2 .card-image a {
        aspect-ratio: 1 / 1;
        min-height: 0 !important;
        height: auto !important;
        background-size: cover;
        background-position: center;
        border-radius: 20px 20px 0 0;
    }

    .product-title,
    .fit-title1,
    .product-box-1 .product-title a {
        font-size: 13px;
        font-weight: 600;
        color: var(--km-ink);
        line-height: 1.3;
    }

    .product-price,
    .price-bar .product-price,
    .km-short-price {
        color: var(--km-accent) !important;
        font-weight: 700;
        font-size: 14px;
    }

    .product-list.row,
    #loadedproduct.row {
        display: flex;
        flex-wrap: wrap;
    }

    .product-list .col-6,
    #loadedproduct .col-6,
    .product-list [class*="col-6"],
    #loadedproduct [class*="col-6"] {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 14px;
    }

    .flash-deal-box,
    #flash-deal-mobile,
    #hotsale-mobile {
        background: transparent !important;
        border-radius: 20px;
    }

    .flash-deal-hr-box,
    #hotsale-mobile {
        background-image: none !important;
        background: var(--km-card) !important;
        border-radius: 20px;
        margin-bottom: 8px;
    }

    .btn-base-1,
    .moreproductbtn a {
        border-radius: 999px !important;
        background: var(--km-accent) !important;
        border: 0 !important;
        color: #fff !important;
        font-weight: 600;
    }

    .km-shorts-track {
        margin: 0 8px;
    }

    .km-short-thumb {
        border-radius: 20px;
    }

    .footer-top-bar,
    #footer {
        display: none;
    }

    .km-app-tabbar {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 1050;
        width: auto;
        max-width: calc(100vw - 20px);
        height: 58px;
        padding: 0 4px;
        align-items: center;
        justify-content: space-between;
        background: #161616;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
        box-sizing: border-box;
    }

    .km-app-tabbar a {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #cfc8bf;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        min-height: 48px;
        overflow: hidden;
    }

    .km-app-tabbar a span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .km-app-tabbar a i {
        font-size: 18px;
    }

    .km-app-tabbar a.is-active,
    .km-app-tabbar a:hover,
    .km-app-tabbar a:focus {
        color: #fff;
        text-decoration: none;
    }

    .km-app-tabbar a.is-active i {
        color: var(--km-accent);
    }

    body:has(.km-shorts-viewer.is-open) .km-app-tabbar {
        display: none !important;
    }

    .dropdown-cart {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: calc(var(--km-tabbar) + 16px) !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 20px;
    }

    .products-pagination {
        background: transparent !important;
    }

    .inline-button1,
    .inline-button2 {
        bottom: calc(var(--km-tabbar) + env(safe-area-inset-bottom, 0px) + 8px) !important;
        width: 46% !important;
        border-radius: 999px !important;
    }

    .storefront-filter-toggle {
        border-radius: 999px !important;
        background: var(--km-card);
        border: 0;
        box-shadow: 0 8px 18px rgba(22, 22, 22, 0.06);
        font-weight: 600;
    }

    .brands-bar,
    .bg-white.p-3,
    .card.sticky-top,
    .sidebar--style-3 {
        border-radius: 20px;
    }

    .table-cart tr.cart-item {
        border: 0;
        border-radius: 20px;
        background: var(--km-card);
        box-shadow: 0 10px 24px rgba(22, 22, 22, 0.06);
    }

    .all-category-menu {
        background: transparent !important;
        box-shadow: none;
    }

    .all-category-menu ul {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 12px;
        margin: 0;
        scrollbar-width: none;
    }

    .all-category-menu ul::-webkit-scrollbar {
        display: none;
    }

    .all-category-menu li {
        flex: 0 0 auto;
        float: none !important;
        width: auto !important;
    }

    .all-category-menu a {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 76px;
        text-align: center;
        color: var(--km-ink);
        text-decoration: none;
    }

    .all-category-menu .cat-image {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--km-card);
        box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
    }

    .all-category-menu .cat-name,
    .sub-category-menu .category-name {
        font-size: 12px;
        font-weight: 600;
    }

    .sub-category-menu {
        background: var(--km-card);
        border-radius: 20px;
        padding: 14px;
        margin-bottom: 12px;
    }

    .sub-category-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .sub-category-menu li a {
        display: inline-block;
        padding: 8px 12px;
        border-radius: 999px;
        background: var(--km-bg);
        color: var(--km-ink);
        font-size: 12px;
        font-weight: 600;
    }

    .breadcrumb-area {
        background: transparent;
        padding: 8px 0 0;
    }
}

@media (min-width: 992px) {
    .km-app-search,
    .km-app-tabbar {
        display: none !important;
    }
}
