/* Shop layout mobile fixes — used with _LayoutShop */

.shop-header .shop-logo img {
    height: 74px;
    width: auto;
    max-width: 100%;
}

.shop-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
}

.shop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.25rem;
    text-decoration: none;
}

.shop-nav a + a::before {
    content: "|";
    margin-right: 0.75rem;
    opacity: 0.45;
    pointer-events: none;
}

.shop-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.shop-header-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.25rem;
}

/* Bang giá CTA */
.banggia-cta {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f1e593;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.banggia-cta p {
    margin: 0.4rem 0;
    font-size: 1.1rem;
    line-height: 1.45;
}

.banggia-cta a {
    text-decoration: underline;
    color: #993300;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .shop-header .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
    }

    .shop-header .shop-logo {
        margin-bottom: 0.5rem;
    }

    .shop-header .shop-logo img {
        height: auto;
        max-height: 56px;
        max-width: 180px;
    }

    .shop-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0.5rem 0;
    }

    .shop-nav a {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 1rem;
    }

    .shop-nav a + a::before {
        content: none;
        margin: 0;
    }

    .shop-header-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
    }

    .shop-header-actions a {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0.65rem 0.5rem;
        font-size: 1rem;
    }

    .banggia-cta {
        margin: 1rem 0;
        padding: 0.85rem;
    }

    .banggia-cta p {
        font-size: 0.95rem;
    }

    /* DataTables search full-width on mobile */
    #BANGGIA_wrapper .dataTables_filter {
        text-align: left;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    #BANGGIA_wrapper .dataTables_filter label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.35rem;
        font-size: 1rem;
    }

    #BANGGIA_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        min-height: 44px;
        box-sizing: border-box;
        padding: 0.5rem 0.75rem;
    }

    #BANGGIA_wrapper .dataTables_info {
        padding-top: 0.5rem;
        font-size: 0.85rem;
    }
}
