/*your custom css goes here*/
.bg-red-custom {
    background-color: #f74129;
    color: #ffffff;
}

.list-group .list-group-item .product-name{
    color: #000;
}

.sticky-top .logo-bar-area .container .dropdown-toggle:after {
    color: red;
}

/* 白色背景 */
.text-primary {
    color: #333333 !important;
}

.border-primary {
    border-color: #527fef !important;
}

.bg-white-custom {
    background-color: #fff;
    color: #ffffff;
}

.bg-white-custom .d-flex .d-lg-none {
    color: #527fef;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.hover-category-menu .all-category::before {
    border-bottom: 12px solid #527fef !important;
}

.bg-white-custom .dropdown-item.active,
.bg-white-custom .dropdown-item:hover,
.bg-white-custom .dropdown-item:active {
    color: #fff !important;
    background-color: #527fef;
}

.bg-white-custom .aiz-category-menu .bg-soft-primary {
    background-color:#527fef !important;
}

.bg-white-custom .logo-bar-area .container .dropdown-toggle:after {
    color: #527fef !important;
    font-weight: 900;
}

.bg-white-custom #lang-change {
    color: #333333;
}

.bg-white-custom #lang-change .language{
    color: #000000;
}

.bg-white-custom .container li {
    color: #333333;
}

.bg-white-custom #search {
    color: #333333;
}

.bg-white-custom #compare {
    color: #333;
}

.bg-white-custom .badge-primary {
    background-color:#527fef;
}

.bg-white-custom #wishlist {
    color: #333;
}

.bg-white-custom #cart_items {
    color: #333;
}

.bg-white-custom .input-group-append .btn-primary{
    background-color: #527fef;
    border-color: #527fef;
}

.home-banner-area .bg-soft-primary {
    background-color: #527fef !important;
    color: #ffffff;
}

/* Product detail tabs: allow flex/grid columns to shrink below content width */
.min-width-0 {
    min-width: 0 !important;
}

/* Rich HTML description (H5 + desktop): stay within card, scale media, wrap text */
.product-detail-tab-content {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.product-detail-tab-content .tab-pane {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-detail-tab-content .aiz-editor-data {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-detail-tab-content .aiz-editor-data img,
.product-detail-tab-content .aiz-editor-data video,
.product-detail-tab-content .aiz-editor-data iframe,
.product-detail-tab-content .aiz-editor-data embed,
.product-detail-tab-content .aiz-editor-data object,
.product-detail-tab-content .aiz-editor-data svg,
.product-detail-tab-content .aiz-editor-data .note-video-clip {
    max-width: 100% !important;
    height: auto !important;
}

.product-detail-tab-content .aiz-editor-data img[width],
.product-detail-tab-content .aiz-editor-data table[width] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.product-detail-tab-content .aiz-editor-data table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-detail-tab-content .aiz-editor-data pre,
.product-detail-tab-content .aiz-editor-data code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.product-detail-tab-content .comment-text,
.product-detail-tab-content .tab-pane p,
.product-detail-tab-content .tab-pane li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .product-detail-tab-content .aiz-editor-data * {
        max-width: 100%;
    }

    .product-detail-tab-content .aiz-editor-data table {
        width: 100% !important;
    }
}

/* Shop register (/shops/create): keep submit above fixed mobile bottom nav (iPhone SE, etc.) */
@media (max-width: 1199.98px) {
    .seller-form-register-section {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }

    .seller-form-submit-wrap {
        position: sticky;
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        z-index: 1020;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 0.75rem 0.75rem 0.5rem;
        background: linear-gradient(to top, #f8f9fa 85%, rgba(248, 249, 250, 0));
    }

    .seller-form-submit-btn {
        min-height: 44px;
    }

    .seller-form-recaptcha-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 374.98px) {
    .seller-form-recaptcha-wrap .g-recaptcha {
        transform: scale(0.88);
        transform-origin: 0 0;
    }

    .seller-form-recaptcha-wrap {
        min-height: 78px;
    }
}

