.tab-content img {
    max-width: 100%;
}
.table_class tr {
    margin: 10px auto;
}
.table_class td {
    padding: 2px 5px;
}
.thead-dark {
    background-color: #143f6c;
    color: azure;
}
pre {
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    background: #fff;
    border: 1px solid #e9e9e9;
    font-size: 14px;
}
.body-h2 {
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    color: #666;
}

.quantity-btns .flex-fill button{
    height: 43px;
}

.row-no-gutters-container{
    width: 50%;
}

.cert-icon{
    display: inline-flex !important;
    width: 25px !important;
    height: 25px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.cert-icon img{
    width: 25px !important;
    height: 25px !important;
    object-fit: contain !important;
    display: inline-flex !important;
    margin: 0 10px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 25px !important;
    max-height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    box-sizing: border-box !important;
    float: none !important;
    flex-shrink: 0 !important;
}

.title-tag-below-title {
    display: block !important;
    height: 25px !important;
    max-height: 25px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.title-cert-scroll-container {
    width: 100% !important;
    height: 25px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.title-cert-scroll-track {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    transition: none !important;
    flex-shrink: 0 !important;
}



.fixed-img img{
    width: 100% !important;
}

.rich-text-editor-content {
    /* 1. 禁止单词中间截断 */
    word-break: normal !important;
    /* 2. 空间不够时整词挪到下一行 */
    overflow-wrap: break-word !important;
    /* 可选：英文不强行挤字 */
    white-space: normal !important;
}

.price-new{
    text-decoration: underline;
}

.warehouse-title{
    border: none;
}

.warehouse-title th{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #fff;
}

.warehouse-section {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(51, 129, 211, 0.08);
}

.warehouse-section .warehouse-title {
    color: #fff;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 14px;
    background-color: #3381d3;
}

.warehouse-options {
    display: flex;
    flex-wrap: nowrap;
    padding: 8px;
    gap: 8px;
}

.warehouse-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    position: relative;
    border-radius: 8px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
    cursor: pointer;
}

.warehouse-option:hover {
    background: #eaf2fb;
    border-color: #3381d3;
}

.warehouse-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.warehouse-option .custom-control {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.warehouse-option .custom-control-label {
    margin-left: 0;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding-left: 0;
    cursor: pointer;
}

.warehouse-option .custom-control-label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #bbb;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    margin-right: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.warehouse-option input[type="radio"]:checked + .custom-control-label::before {
    border-color: #3381d3;
    background: radial-gradient(circle, #fff 4px, #3381d3 5px);
}

.warehouse-option:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #eaf2fb 0%, #dce9f7 100%);
    border-color: #3381d3;
    box-shadow: 0 2px 8px rgba(51, 129, 211, 0.15);
}

.warehouse-divider::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #e0e0e0;
}

.text-primary{
    color: #3381d3 !important;
}

.add-cart{
    border: 2px solid #3381d3 !important;
}

.alert-info{
    background-color: #E4F2ED !important;
    border: none !important;
}

.alert-warning, .alert-success{
    background-color: #3381d3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    text-align: center !important;
    padding: 20px 14px !important;
}

.member-supply{
    margin-left: calc(var(--bs-gutter-x)* -.5) !important;
    margin-right: calc(var(--bs-gutter-x)* -.5) !important;
}

.supply-text{
    display: block;
    margin-bottom: 10px;
}

/* Supply section buttons: allow wrapping */
.alert-warning .btn,
.alert-success .btn {
    display: inline-flex;
    align-items: center;
    margin: 4px 4px 4px 0;
    white-space: nowrap;
}

.button-supply{
    background-color: #fff !important;
    color: #3381d3 !important;
    border-radius: 20px !important;
    padding: 6px 15px !important;
}

.category-line{
    width: 90%;
    margin-top: 10px;
    margin-bottom: 10px;
    height: 1px;
    border-top: 1px #c9caca solid;
}

/* Large Screen (H5-style) - switch to mobile layout below 1200px */
@media (max-width: 1199px) {
    /* Warehouse: wrap options */
    .warehouse-options {
        flex-wrap: wrap;
        gap: 8px;
    }

    .warehouse-option {
        flex: 1 1 auto;
        min-width: 150px;
        margin-bottom: 8px;
    }

    .warehouse-divider::after {
        display: none;
    }

    /* Buttons: equal width */
    .quantity-btns .flex-fill {
        gap: 8px;
    }

    .quantity-btns .flex-fill button {
        flex: 1;
        min-width: unset;
        font-size: 13px;
    }

    /* Supply section buttons: wrap and fit */
    .alert-warning .btn,
    .alert-success .btn {
        margin: 4px 4px 4px 0;
    }

    /* Xzoom: ensure responsive */
    .xzoom {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Medium Screen Styles (Tablet) */
@media (max-width: 991px) {
    /* Warehouse/button styles inherited from 1199px breakpoint */
}

/* Hide tawk/tm widgets and mobile overrides */
@media (max-width: 767px) {
    div[id^="tawk"],
    div[id^="tm"],
    iframe[id^="tawk"],
    iframe[id^="tm"],
    [class*="tawk"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Warehouse options stack on mobile */
    .warehouse-options {
        flex-direction: column;
    }

    .warehouse-option {
        width: 100%;
        min-width: unset;
    }

    .warehouse-divider::after {
        display: none;
    }

    /* Buttons: full flex on mobile */
    .quantity-btns .flex-fill button {
        flex: 1;
        min-width: unset;
        height: 40px !important;
        min-height: 40px;
        font-size: 11px;
        padding: 0 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .quantity-btns .flex-fill button i {
        font-size: 13px;
    }
}

.panel .panel-body p{
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.category-container{
    h4{
        color: #727171 !important;
    }
}

#column-right .category-table .category-icon,
.category-table .category-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
#column-right .mb-4 h4 .category-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
}
#column-right .category-table a,
.category-table a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.qc-file-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    background-color: #fff;
    border-radius: 20px !important;
}

.qc-file-item .btn {
    width: 100%;
}

.qc-file-item .qc-title{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qc-container{
    h4{
        color: #3381d3 !important;
        text-align: center;
    }
}

@media (max-width: 1199px) {
    #product-product.container { padding-left: 0 !important; padding-right: 0 !important; }
    #content, #aside {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #content .row.containerp {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #content > .row.containerp > .col-xl-5,
    #content > .row.containerp > .col-xl-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    #content > .row.containerp > .col-xl-7 .row.containerp {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #content .alert.alert-warning.member-supply {
        padding: 10px 30px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #content .row.containerp .col-sm-12 {
        padding: 0 !important;
    }
}

/* 右边栏样式 */
#column-right {
    padding-top: 2rem;
    padding-left: 1.5rem;
}

#column-right .row-no-gutters {
    margin: 0 -5px;
}

#column-right .row-no-gutters .col-xs-6 {
    padding: 0 5px;
}

#column-right .btn-blue {
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none !important;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 10px;
    height: 37px;
    transition: all ease .3s;
    font-weight: 600;
}

#column-right .list-group {
    background: rgba(51, 129, 211, 0.1);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem !important;
}

#column-right .list-group h4 {
    color: #253237;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

#column-right .alert-warning {
    background: #fff8e6;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0 !important;
}

#column-right .alert-warning button {
    margin-right: 0.5rem;
    border-radius: 0.375rem;
}

/* 分类模块样式 */
#column-right .mb-4 {
    margin-bottom: 0.5rem !important;
}

#column-right .qc-module{
    text-align: center;
}

#column-right .qc-module a{
    margin-top: 10px;
}

#column-right .mb-4 h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

#column-right .category-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#column-right .category-table tr {
    border-bottom: 1px solid #f0f0f0;
}

#column-right .category-table tr:last-child {
    border-bottom: none;
}

#column-right .category-table td {
    padding: 0.25rem 0;
    vertical-align: middle;
}

#column-right .category-table td:first-child {
    width: 40px;
}

#column-right .category-table td:first-child i {
    color: #1f608d;
    font-size: 1rem;
}

#column-right .category-table a {
    color: #374151;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

#column-right .category-table a:hover {
    color: #3381d3;
    font-weight: 800;
}

#column-right .category-table tr.category-selected > td > a {
    color: #3381d3;
    font-weight: 800;
}

#column-right .category-table:hover tr.category-selected:not(:hover) > td > a {
    color: #374151;
    font-weight: 400;
}
