.alert.alert-dismissible,
.alert.alert-dismissible.rounded-0,
body .alert.alert-dismissible,
.alert-primary, .alert-secondary, .alert-success, .alert-danger, 
.alert-warning, .alert-info, .alert-light, .alert-dark {
    background-color: #ffffff !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e9ecef !important;
    color: #212529 !important;
}

[data-bs-theme="dark"] .alert.alert-dismissible,
[data-bs-theme="dark"] .alert.alert-dismissible.rounded-0,
[data-bs-theme="dark"] body .alert.alert-dismissible,
[data-bs-theme="dark"] .alert-primary, 
[data-bs-theme="dark"] .alert-secondary, 
[data-bs-theme="dark"] .alert-success, 
[data-bs-theme="dark"] .alert-danger, 
[data-bs-theme="dark"] .alert-warning, 
[data-bs-theme="dark"] .alert-info, 
[data-bs-theme="dark"] .alert-light, 
[data-bs-theme="dark"] .alert-dark {
    background-color: #212529 !important;
    background: #212529 !important;
    background-image: none !important;
    border: 1px solid #495057 !important;
    color: #e9ecef !important;
}
.navbar .btn-primary {
    background-color: #040506 !important;
    border-color: #040506 !important;
    font-size: 1.1rem !important; 
    font-weight: 600 !important; 
    padding: 0.5rem 1.25rem !important; 
}
.navbar .btn-primary:hover {
    background-color: #2a2f3a !important;
    border-color: #2a2f3a !important;
}
.navbar-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
}
.navbar {
    min-height: 50px !important; 
    padding: 0.5rem 0 !important; 
}
.navbar-brand img {
    width: 120px !important; 
    height: 60px !important; 
    object-fit: contain !important;
}
.navbar-brand {
    padding: 0.5rem 0 !important; 
}
.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important; 
    font-size: 1.3rem !important; 
    font-weight: 700 !important; 
}
.navbar-nav .dropdown-toggle {
    font-size: 1.3rem !important; 
    font-weight:700 !important; 
}
.navbar-nav .dropdown-item {
    font-size: 1.3rem !important; 
    font-weight: 700 !important; 
    padding: 0.75rem 1rem !important; 
}
.offcanvas-title {
    font-size: 1.25rem !important; 
    font-weight: 700 !important; 
}
.offcanvas-body .navbar-nav .nav-link {
    font-size: 1.1rem !important; 
    font-weight: 600 !important; 
    padding: 0.75rem 1rem !important; 
}
body {
    padding-top: 60px !important; 
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

@media (min-width: 992px) {
    body {
        padding-top: 80px !important; 
    }
}

nav[aria-label="breadcrumb"],
nav.container[aria-label="breadcrumb"] {
    position: relative !important;
    z-index: 10 !important; 
    margin-top: 0.5rem !important; 
    background-color: transparent !important; 
}
@media (min-width: 992px) {
    nav.container[aria-label="breadcrumb"],
    nav[aria-label="breadcrumb"].container {
        margin-top: 0 !important; 
        padding-top: 1rem !important; 
        padding-bottom: 0.5rem !important;
    }
}

nav[aria-label="breadcrumb"] .breadcrumb,
nav.container[aria-label="breadcrumb"] .breadcrumb {
    position: relative !important;
    z-index: 1 !important;
}
.content-wrapper {
    flex: 1 !important; 
    min-height: auto !important; 
}
.container-fluid[style*="max-width: 1600px"] {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
}
.navbar[style*="max-width: 1600px"] {
    max-width: 1600px !important;
    width: 100% !important;
}
@media (min-width: 1600px) {
    .container-fluid[style*="max-width: 1600px"],
    .navbar[style*="max-width: 1600px"] {
        max-width: 1600px !important;
    }
}
@media (max-width: 1599px) {
    .container-fluid[style*="max-width: 1600px"] {
        max-width: 100% !important;
        padding: 15px !important;
    }
    .navbar[style*="max-width: 1600px"] {
        max-width: 100% !important;
    }
}
.category-children {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-in-out;
}
.category-children.expanded {
    max-height: 10000px !important;
}
.category-children.collapsed {
    max-height: 0 !important;
}
.list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    background-color: #ffffff !important;
    color: #212529 !important;
}
.list-group-item:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}
.list-group-item.active {
    background-color: #409EFF !important;
    border-color: #409EFF !important;
    color: white !important;
}
.category-name {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
h5.category-name,
h5.category-count {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    display: inline !important;
}
.category-count {
    background-color: transparent !important;
    color: #6c757d !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.list-group-item.active .category-name {
    color: white !important;
    font-weight: 700 !important;
}
.list-group-item.active .category-count {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
.list-group-item:not(.active) .category-name {
    color: #212529 !important;
    font-weight: 700 !important;
}
.list-group-item:not(.active) .category-count {
    background-color: transparent !important;
    color: #6c757d !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
[data-bs-theme="dark"] .category-children {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-in-out;
}
[data-bs-theme="dark"] .category-children.expanded {
    max-height: 10000px !important;
}
[data-bs-theme="dark"] .category-children.collapsed {
    max-height: 0 !important;
}
[data-bs-theme="dark"] .list-group-item {
    border-bottom-color: #495057 !important;
    background-color: transparent !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #495057 !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .list-group-item.active {
    background-color: #409EFF !important;
    border-color: #409EFF !important;
    color: white !important;
}
[data-bs-theme="dark"] .category-name,
[data-bs-theme="dark"] .list-group-item .category-name,
[data-bs-theme="dark"] .list-group-item-action .category-name {
    color: #ffffff !important;
    font-weight: 700 !important;
}
[data-bs-theme="dark"] .category-count,
[data-bs-theme="dark"] .list-group-item .category-count,
[data-bs-theme="dark"] .list-group-item-action .category-count {
    background-color: transparent !important;
    color: #adb5bd !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    padding: 0 !important;
}
[data-bs-theme="dark"] .list-group-item.active .category-name,
[data-bs-theme="dark"] .list-group-item-action.active .category-name {
    color: #ffffff !important;
    font-weight: 700 !important;
}
[data-bs-theme="dark"] .list-group-item.active .category-count,
[data-bs-theme="dark"] .list-group-item-action.active .category-count {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
[data-bs-theme="dark"] .list-group-item-action:not(.active) .category-name {
    color: #ffffff !important;
    font-weight: 700 !important;
}
[data-bs-theme="dark"] .list-group-item-action:not(.active) .category-count {
    background-color: transparent !important;
    color: #adb5bd !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
.card-header .position-relative {
    flex-shrink: 0;
}
.card-header .form-control {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    height: 38px;
    transition: all 0.3s ease;
}
.card-header .form-control:focus {
    border-color: #409EFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
[data-bs-theme="dark"] .card-header .form-control {
    background-color: #343a40;
    border-color: #495057;
    color: #ffffff;
}
[data-bs-theme="dark"] .card-header .form-control:focus {
    background-color: #343a40;
    border-color: #409EFF;
    color: #ffffff;
}
[data-bs-theme="dark"] .card-header .form-control::placeholder {
    color: #adb5bd;
}
.card-body .d-flex.justify-content-between {
    flex-wrap: nowrap;
    gap: 1rem;
}
.card-body .d-flex.justify-content-between > div:first-child {
    flex: 1;
    min-width: 0;
}
.card-body .d-flex.justify-content-between > div:last-child {
    flex-shrink: 0;
}
.card-body .d-flex.justify-content-between h6 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.card-body .d-flex.justify-content-between .fw-bold.text-danger {
    white-space: nowrap;
    font-size: 1rem;
}
.card-body .d-flex.justify-content-between .text-muted.small {
    white-space: nowrap;
    font-size: 0.85rem;
}
.card-body .d-flex.justify-content-between .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.notice-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.notice-content p,
.notice-content div,
.notice-content ul,
.notice-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.notice-content p:last-child,
.notice-content div:last-child,
.notice-content ul:last-child,
.notice-content li:last-child,
.notice-content > *:last-child {
    margin-bottom: 0 !important;
}
.notice-content ul:last-child li:last-child {
    margin-bottom: 0 !important;
}
#noticeCollapse .card-body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
#noticeCollapse.collapse {
    margin-bottom: 0 !important;
}
#noticeCollapse .card-body.p-0 {
    padding-bottom: 0 !important;
}
#noticeCollapse .notice-content {
    margin-bottom: 0 !important;
}
[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #495057;
}
[data-bs-theme="dark"] .card-header {
    background-color: #343a40;
    border-color: #495057;
    color: #e9ecef;
}
[data-bs-theme="dark"] .card-body {
    background-color: #212529;
    color: #e9ecef;
}
[data-bs-theme="dark"] .card.border-0.bg-light {
    background-color: #343a40 !important;
    color: #e9ecef !important;
}
[data-bs-theme="dark"] .notice-content {
    background-color: #343a40;
    color: #e9ecef;
}
[data-bs-theme="dark"] #productSearch {
    background-color: #343a40;
    border-color: #495057;
    color: #ffffff;
}
[data-bs-theme="dark"] #productSearch:focus {
    background-color: #343a40;
    border-color: #409EFF;
    color: #ffffff;
}
[data-bs-theme="dark"] #productSearch::placeholder {
    color: #adb5bd;
}
[data-bs-theme="dark"] .bg-light {
    background-color: #212529 !important;
}
[data-bs-theme="dark"] .card-header.bg-light {
    background-color: #343a40 !important;
    color: #e9ecef !important;
}
[data-bs-theme="dark"] .card-header.bg-light .card-title {
    color: #e9ecef !important;
}
[data-bs-theme="dark"] .card-header.bg-light i {
    color: #e9ecef !important;
}
@media (max-width: 992px) {
    .card-body .d-flex.justify-content-between {
        gap: 0.5rem;
    }
    .card-body .d-flex.justify-content-between .fw-bold.text-danger {
        font-size: 0.9rem;
    }
    .card-body .d-flex.justify-content-between .text-muted.small {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .card-header.d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }
    .card-header .position-relative {
        max-width: 100% !important;
        width: 100%;
    }
    .card-header .form-control {
        width: 100%;
    }
    .card-body .d-flex.justify-content-between:not(.product-first-row):not(.product-detail-header) {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .product-detail-header {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .product-detail-header .btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    
    .product-item .card-body .product-first-row,
    .product-item .card-body .d-flex.product-first-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    .card-body .d-flex.justify-content-between:not(.product-first-row) > div:last-child {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
    
    
    .product-item .card-body .product-first-row > div:last-child,
    .product-item .card-body .d-flex.product-first-row > div:last-child {
        width: auto !important;
        flex-shrink: 0 !important;
    }
    .card-body .d-flex.justify-content-between:not(.product-first-row) h6 {
        white-space: normal;
        max-width: 100%;
    }
    
    
    .product-item .card-body .product-first-row h6 {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    
    .product-item a.card .card-body .d-flex.justify-content-between,
    .product-item .product-card .card-body .d-flex.justify-content-between,
    .product-item .card .card-body .d-flex.justify-content-between,
    .product-item .card-body .d-flex.justify-content-between,
    .product-item .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    
    .product-item .card-body .d-flex.align-items-center.flex-shrink-0,
    .product-item .d-flex.align-items-center.flex-shrink-0 {
        flex-direction: row !important;
        gap: 0.15rem !important;
        flex-wrap: nowrap !important;
    }
    
    
    .product-item .card-body {
        padding: 0.25rem 0.25rem !important;
    }
    
    
    .product-item .card-body .d-md-none:not(.d-flex.align-items-start),
    .product-item .d-md-none:not(.d-flex.align-items-start) {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        overflow: visible !important;
    }
    
    
    .product-item a.card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .product-card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div:first-child,
    .product-item .d-md-none > div.d-flex.justify-content-between,
    .product-item .d-md-none > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        overflow: visible !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    
    
    .product-item .card-body .d-md-none > div:last-child,
    .product-item .d-md-none > div:last-child {
        width: 100% !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    
    .product-item .product-item-content {
        overflow: visible !important;
        min-width: 0 !important;
    }
    
    
    .product-item .card-body .badge,
    .product-item .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.3rem !important;
        flex-shrink: 0 !important;
    }
    
    
    .product-item .card-body .text-danger,
    .product-item .card-body .fw-bold.text-danger,
    .product-item .text-danger,
    .product-item .fw-bold.text-danger {
        white-space: nowrap !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
        margin-left: 0.25rem !important;
    }
    .product-item .card-body .text-muted.small,
    .product-item .text-muted.small {
        white-space: nowrap !important;
        font-size: 0.65rem !important;
        flex-shrink: 0 !important;
        margin-right: 0.25rem !important;
    }
}
@media (max-width: 576px) {
    .card-header .form-control {
        font-size: 0.85rem;
        height: 36px;
    }
    .card-body .d-flex.justify-content-between:not(.product-first-row):not(.product-detail-header) > div:last-child {
        flex-direction: column;
        align-items: flex-end !important;
        gap: 0.5rem;
    }
    
    
    .product-item .card-body .product-first-row > div:last-child,
    .product-item .card-body .d-flex.product-first-row > div:last-child {
        flex-direction: row !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
    .card-body .d-flex.justify-content-between .btn {
        width: auto;
    }
    
    
    .product-item .card-body .d-flex.justify-content-between,
    .product-item .card .card-body .d-flex.justify-content-between,
    .product-item a.card .card-body .d-flex.justify-content-between,
    .product-item .product-card .card-body .d-flex.justify-content-between,
    .product-item .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    
    .product-item .card-body .d-flex.align-items-center.flex-shrink-0,
    .product-item .d-flex.align-items-center.flex-shrink-0 {
        flex-direction: row !important;
        gap: 0.15rem !important;
        flex-wrap: nowrap !important;
    }
    
    
    .product-item .card-body {
        padding: 0.25rem 0.25rem !important;
    }
    
    
    .product-item .card-body .d-md-none:not(.d-flex.align-items-start),
    .product-item .d-md-none:not(.d-flex.align-items-start) {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        overflow: visible !important;
    }
    
    
    .product-item a.card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .product-card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div:first-child,
    .product-item .d-md-none > div.d-flex.justify-content-between,
    .product-item .d-md-none > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        overflow: visible !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    
    
    .product-item .card-body .d-md-none > div:last-child,
    .product-item .d-md-none > div:last-child {
        width: 100% !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    
    .product-item .product-item-content {
        overflow: visible !important;
        min-width: 0 !important;
    }
    
    
    .product-item .card-body .badge,
    .product-item .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.35rem !important;
        flex-shrink: 0 !important;
    }
    
    
    .product-item .card-body .text-danger,
    .product-item .card-body .fw-bold.text-danger,
    .product-item .text-danger,
    .product-item .fw-bold.text-danger {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .product-item .card-body .text-muted.small,
    .product-item .text-muted.small {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}
:not([data-bs-theme="dark"]) .list-group-item:not(.active),
:not([data-bs-theme="dark"]) .list-group-item:not(.active) *,
:not([data-bs-theme="dark"]) .list-group-item:not(.active) span,
:not([data-bs-theme="dark"]) .list-group-item:not(.active) i {
    color: #212529 !important;
}
:not([data-bs-theme="dark"]) .list-group-item:not(.active) .category-name,
:not([data-bs-theme="dark"]) .list-group-item:not(.active) .d-flex .category-name {
    color: #212529 !important;
    font-weight: 700 !important;
}
[data-bs-theme="dark"] .list-group-item-action,
[data-bs-theme="dark"] .list-group-item-action *,
[data-bs-theme="dark"] .list-group-item-action span,
[data-bs-theme="dark"] .list-group-item-action .category-name,
[data-bs-theme="dark"] .list-group-item-action .category-count {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .list-group-item-action .category-name {
    font-weight: 700 !important;
    font-size: 1rem !important;
}
[data-bs-theme="dark"] .list-group-item-action .category-count {
    background-color: transparent !important;
    color: #adb5bd !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
[data-bs-theme="dark"] .list-group-item-action.active .category-count {
    background-color: transparent !important;
    color: #eee6e6 !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0 !important;
}
[data-bs-theme="dark"] .list-group-item:not(.active) .category-name,
[data-bs-theme="dark"] .list-group-item-action:not(.active) .category-name,
[data-bs-theme="dark"] .list-group-flush .list-group-item:not(.active) .category-name,
[data-bs-theme="dark"] .list-group-flush .list-group-item-action:not(.active) .category-name {
    color: #eee6e6 !important;
    font-weight: 700 !important;
}
@media (prefers-color-scheme: dark) {
    [data-bs-theme="dark"] .list-group-item-action,
    [data-bs-theme="dark"] .list-group-item-action *,
    [data-bs-theme="dark"] .list-group-item-action span,
    [data-bs-theme="dark"] .list-group-item-action .category-name,
    [data-bs-theme="dark"] .list-group-item-action .category-count {
        color: #eee6e6 !important;
    }
    [data-bs-theme="dark"] .list-group-item-action .category-name {
        font-weight: 700 !important;
    }
    [data-bs-theme="dark"] .list-group-item-action .category-count {
        background-color: transparent !important;
        color: #adb5bd !important;
        border: none !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        padding: 0 !important;
    }
}
.offcanvas-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}
.offcanvas-body .navbar-nav .nav-link {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1rem !important;
}
.balance-payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.balance-payment-icon i {
    font-size: 24px !important;
    color: #28a745 !important;
}
.balance-amount {
    font-size: 10px !important;
    color: #28a745 !important;
    margin-top: 1px !important;
    font-weight: bold;
}
.payment-amount-display {
    color: #F65266 !important;
    font-weight: bold;
}
.payment-method-option input[type="radio"]:checked + span {
    border-color: #28a745 !important;
    background-color: #f8f9fa !important;
}
.payment-method-option input[type="radio"]:checked + span .balance-payment-icon i {
    color: #28a745 !important;
}
.balance-payment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.paymentsvg {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-method-option {
    cursor: pointer;
    margin: 2px;
}
.payment-method-option .btn {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-method-option .btn:hover {
    border-color: #28a745;
    background-color: #f8f9fa;
}
.payment-method-option input[type="radio"]:checked + .btn {
    border-color: #28a745 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
.product-item {
    margin-bottom: 0 !important;
}
.product-item .card,
.product-item .product-card {
    border-bottom: 1px solid #e9ecef !important;  
    border-radius: 0 !important;                   
    margin-bottom: 0 !important;                  
    cursor: pointer !important;                    
}
.product-item .product-card:hover {
    background-color: #409EFF !important;         
    color: #ffffff !important;                     
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3) !important; 
}
.product-item .product-card:hover h6 {
    color: #ffffff !important;
}
.product-item .product-card:hover .badge {
    background-color: #ffffff !important;
    color: #409EFF !important;
}
.product-item .product-card:hover .text-danger {
    color: #ffffff !important;
}
.product-item .product-card:hover .text-muted {
    color: #e0e0e0 !important;
}
.product-item:last-child .card,
.product-item:last-child .product-card {
    border-bottom: none !important;
}
.product-item .card-body {
    padding: 0.25rem 0.5rem !important;  
}

@media (max-width: 991.98px) {
    .product-item .card-body {
        padding: 0.25rem 0.25rem !important;
        overflow: visible !important;
    }
    
    .product-item .card,
    .product-item a.card,
    .product-item .product-card {
        overflow: visible !important;
    }
    
    .product-item .row {
        overflow: visible !important;
    }
}
.product-item .d-flex.align-items-center {
    min-height: 50px !important;       
}
.product-item h6 {
    margin: 0 !important;              
    line-height: 1.2 !important;       
    white-space: nowrap !important;    
    overflow: hidden !important;        
    text-overflow: ellipsis !important; 
    word-break: keep-all !important;    
    word-wrap: normal !important;       
    max-width: 100% !important;         
    flex-shrink: 1 !important;          
    min-width: 0 !important;            
}
.product-item .col {
    min-width: 0 !important;           
}
.product-item .d-flex.flex-grow-1 {
    min-width: 0 !important;           
    flex-shrink: 1 !important;         
}
[data-bs-theme="dark"] .product-item .card,
[data-bs-theme="dark"] .product-item .product-card {
    border-bottom-color: #495057 !important;  
}
[data-bs-theme="dark"] .product-item a:hover,
[data-bs-theme="dark"] .product-item .card:hover,
[data-bs-theme="dark"] .product-item .product-card:hover,
[data-bs-theme="dark"] .product-item .bg-light:hover,
[data-bs-theme="dark"] .product-item .card.bg-light:hover {
    background-color: #409EFF !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.4) !important;
}
[data-bs-theme="dark"] .product-item a:hover *,
[data-bs-theme="dark"] .product-item .card:hover *,
[data-bs-theme="dark"] .product-item .product-card:hover *,
[data-bs-theme="dark"] .product-item .bg-light:hover *,
[data-bs-theme="dark"] .product-item .card.bg-light:hover * {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .product-item a:hover .badge,
[data-bs-theme="dark"] .product-item .card:hover .badge,
[data-bs-theme="dark"] .product-item .product-card:hover .badge,
[data-bs-theme="dark"] .product-item .bg-light:hover .badge,
[data-bs-theme="dark"] .product-item .card.bg-light:hover .badge {
    background-color: #ffffff !important;
    color: #409EFF !important;
}
[data-bs-theme="dark"] .product-item .card.bg-light:hover,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover,
[data-bs-theme="dark"] .product-item .card.bg-light:focus,
[data-bs-theme="dark"] .product-item a.card.bg-light:focus,
[data-bs-theme="dark"] .product-item .product-card.bg-light:focus,
[data-bs-theme="dark"] .product-item .card.bg-light:active,
[data-bs-theme="dark"] .product-item a.card.bg-light:active,
[data-bs-theme="dark"] .product-item .product-card.bg-light:active {
    background-color: #409EFF !important;
    background: #409EFF !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.4) !important;
}
[data-bs-theme="dark"] .product-item .card.bg-light:hover *,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover *,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover *,
[data-bs-theme="dark"] .product-item .card.bg-light:focus *,
[data-bs-theme="dark"] .product-item a.card.bg-light:focus *,
[data-bs-theme="dark"] .product-item .product-card.bg-light:focus *,
[data-bs-theme="dark"] .product-item .card.bg-light:active *,
[data-bs-theme="dark"] .product-item a.card.bg-light:active *,
[data-bs-theme="dark"] .product-item .product-card.bg-light:active * {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .product-item .card.bg-light:hover .badge,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover .badge,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover .badge,
[data-bs-theme="dark"] .product-item .card.bg-light:focus .badge,
[data-bs-theme="dark"] .product-item a.card.bg-light:focus .badge,
[data-bs-theme="dark"] .product-item .product-card.bg-light:focus .badge,
[data-bs-theme="dark"] .product-item .card.bg-light:active .badge,
[data-bs-theme="dark"] .product-item a.card.bg-light:active .badge,
[data-bs-theme="dark"] .product-item .product-card.bg-light:active .badge {
    background-color: #ffffff !important;
    color: #409EFF !important;
}
[data-bs-theme="dark"] .product-item .card.bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item .card.bg-light:focus .text-muted,
[data-bs-theme="dark"] .product-item a.card.bg-light:focus .text-muted,
[data-bs-theme="dark"] .product-item .product-card.bg-light:focus .text-muted,
[data-bs-theme="dark"] .product-item .card.bg-light:active .text-muted,
[data-bs-theme="dark"] .product-item a.card.bg-light:active .text-muted,
[data-bs-theme="dark"] .product-item .product-card.bg-light:active .text-muted {
    color: #e0e0e0 !important;
}
[data-bs-theme="dark"] .product-item a:hover,
[data-bs-theme="dark"] .product-item .card:hover,
[data-bs-theme="dark"] .product-item .product-card:hover,
[data-bs-theme="dark"] .product-item .bg-light:hover,
[data-bs-theme="dark"] .product-item .card.bg-light:hover,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover {
    background-color: #409EFF !important;
    background: #409EFF !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.4) !important;
}
[data-bs-theme="dark"] .product-item a:hover .card-body,
[data-bs-theme="dark"] .product-item .card:hover .card-body,
[data-bs-theme="dark"] .product-item .product-card:hover .card-body,
[data-bs-theme="dark"] .product-item .bg-light:hover .card-body,
[data-bs-theme="dark"] .product-item .card.bg-light:hover .card-body,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover .card-body,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover .card-body {
    background-color: #409EFF !important;
    background: #409EFF !important;
    background-image: none !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .product-item a:hover *,
[data-bs-theme="dark"] .product-item .card:hover *,
[data-bs-theme="dark"] .product-item .product-card:hover *,
[data-bs-theme="dark"] .product-item .bg-light:hover *,
[data-bs-theme="dark"] .product-item .card.bg-light:hover *,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover *,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover * {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .product-item a:hover .badge,
[data-bs-theme="dark"] .product-item .card:hover .badge,
[data-bs-theme="dark"] .product-item .product-card:hover .badge,
[data-bs-theme="dark"] .product-item .bg-light:hover .badge,
[data-bs-theme="dark"] .product-item .card.bg-light:hover .badge,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover .badge,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover .badge {
    background-color: #ffffff !important;
    color: #409EFF !important;
}
[data-bs-theme="dark"] .product-item a:hover .text-muted,
[data-bs-theme="dark"] .product-item .card:hover .text-muted,
[data-bs-theme="dark"] .product-item .product-card:hover .text-muted,
[data-bs-theme="dark"] .product-item .bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item .card.bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item a.card.bg-light:hover .text-muted,
[data-bs-theme="dark"] .product-item .product-card.bg-light:hover .text-muted {
    color: #e0e0e0 !important;
}
.btn-scroll-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #409EFF !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    text-decoration: none !important;
}
.btn-scroll-top:hover {
    background: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4) !important;
    color: white !important;
}
.btn-scroll-top svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}
.btn-scroll-top svg rect {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    stroke-dasharray: 155.201 !important;
    stroke-dashoffset: 155.201 !important;
    transition: stroke-dashoffset 0.3s ease !important;
}

@media (min-width: 992px) {
    nav.container[aria-label="breadcrumb"],
    nav.container[aria-label="breadcrumb"].pt-2,
    nav.container[aria-label="breadcrumb"].pt-xxl-3,
    nav.container[aria-label="breadcrumb"].my-3,
    nav.container[aria-label="breadcrumb"].my-md-4,
    nav[aria-label="breadcrumb"].container,
    nav[aria-label="breadcrumb"].container.pt-2,
    nav[aria-label="breadcrumb"].container.pt-xxl-3,
    nav[aria-label="breadcrumb"].container.my-3,
    nav[aria-label="breadcrumb"].container.my-md-4 {
        margin-top: 1rem !important; 
        margin-bottom: 1rem !important; 
        padding-top: 0.5rem !important; 
        padding-bottom: 0.5rem !important; 
    }
    
    
    section.container[style*="max-width: 1600px"].py-5,
    section.container.py-5[style*="max-width: 1600px"] {
        padding-top: 0 !important; 
        padding-bottom: 3rem !important; 
    }
}

@media (min-width: 992px) {
    nav.container[aria-label="breadcrumb"] .breadcrumb,
    nav[aria-label="breadcrumb"].container .breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        width: 100% !important;
        white-space: nowrap !important;
    }
    
    nav.container[aria-label="breadcrumb"] .breadcrumb-item:first-child,
    nav[aria-label="breadcrumb"].container .breadcrumb-item:first-child {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    
    nav.container[aria-label="breadcrumb"] .breadcrumb-item + .breadcrumb-item::before,
    nav[aria-label="breadcrumb"].container .breadcrumb-item + .breadcrumb-item::before {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    nav.container[aria-label="breadcrumb"] .breadcrumb-item.active,
    nav[aria-label="breadcrumb"].container .breadcrumb-item.active {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }
    
    nav.container[aria-label="breadcrumb"] .breadcrumb-item.active *,
    nav[aria-label="breadcrumb"].container .breadcrumb-item.active * {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 991.98px) {
    
    nav.container[style*="max-width: 1600px"],
    nav.container[style*="max-width: 1600px"].pt-2,
    nav.container[style*="max-width: 1600px"].my-3,
    nav.container[style*="max-width: 1600px"].my-md-4,
    nav.breadcrumb-container {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 1rem !important; 
        padding-bottom: 0 !important; 
        margin-top: 0 !important; 
        margin-bottom: 1rem !important; 
    }
    
    
    nav[aria-label="breadcrumb"].container,
    nav[aria-label="breadcrumb"].container.pt-2,
    nav[aria-label="breadcrumb"].container.pt-xxl-3,
    nav[aria-label="breadcrumb"].container.my-3,
    nav[aria-label="breadcrumb"].container.my-md-4,
    nav.container[aria-label="breadcrumb"],
    nav.container[aria-label="breadcrumb"].pt-2,
    nav.container[aria-label="breadcrumb"].pt-xxl-3,
    nav.container[aria-label="breadcrumb"].my-3,
    nav.container[aria-label="breadcrumb"].my-md-4 {
        padding-top: 1rem !important; 
        padding-bottom: 0 !important;
        margin-top: 0 !important; 
        margin-bottom: 1rem !important; 
    }
    
    
    section.container[style*="max-width: 1600px"].py-5,
    section.container.py-5[style*="max-width: 1600px"] {
        padding-top: 0 !important; 
        padding-bottom: 1rem !important; 
    }
    
    
    nav.container[style*="max-width: 1600px"] .breadcrumb,
    .breadcrumb {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
    }
    
    
    .breadcrumb-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    
    .breadcrumb-item + .breadcrumb-item::before {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    
    .breadcrumb-item:first-child {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    
    .breadcrumb-item.active {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }
    
    
    .breadcrumb-item.active,
    .breadcrumb-item.active * {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 991.98px) {
    
    section.container[style*="max-width: 1600px"] > .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1rem !important; 
    }
    
    
    section.container[style*="max-width: 1600px"] .row > .col-lg-8 {
        display: contents !important;
    }
    
    
    section.container[style*="max-width: 1600px"] .product-info-card {
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    
    
    section.container[style*="max-width: 1600px"] .row > .col-lg-4 {
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important; 
    }
    
    
    section.container[style*="max-width: 1600px"] .product-purchase-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    
    section.container[style*="max-width: 1600px"] .product-detail-card {
        grid-row: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important; 
        box-sizing: border-box !important;
    }
}

@media (max-width: 991.98px) {
    
    .container-fluid[style*="max-width: 1600px"] {
        padding: 15px 0 !important; 
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] > .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1rem !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important; 
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-3.col-md-4.mobile-order-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        grid-row: 2 !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0 !important; 
        width: 100% !important;
        min-width: 0 !important; 
        box-sizing: border-box !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-3.col-md-4.mobile-order-2 > .card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; 
        height: auto !important; 
        max-height: none !important;
        margin-bottom: 0 !important;
        min-height: auto !important; 
        box-sizing: border-box !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 > .card > .card-body {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0.75rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 > .card > .card-body > .list-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0.5rem !important;
        border: none !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action {
        flex: 0 0 auto !important;
        min-width: fit-content !important;
        width: auto !important;
        border: 1px solid #e9ecef !important;
        border-radius: 0.375rem !important;
        margin: 0 !important;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
        display: inline-flex !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item[data-category-id="all"] {
        flex: 0 0 auto !important;
        min-width: fit-content !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item > div:first-child,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action > div:first-child {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item .category-name,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .category-name {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item > div:last-child,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item > .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item > h6.category-count,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action > div:last-child,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action > .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action > h6.category-count {
        flex: 0 0 auto !important;
        margin-left: 0.25rem !important;
        white-space: nowrap !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-main-item {
        display: contents !important;
    }
    
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e9ecef !important;
        padding: 0.75rem !important;
        z-index: 10 !important;
        display: none !important;
        
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
        
        transition: none !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children.expanded {
        display: flex !important;
        
        max-height: none !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children.collapsed {
        display: none !important;
        
        max-height: none !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        min-width: fit-content !important;
        width: auto !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem !important;
        margin: 0 !important;
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap !important;
        background-color: #f8f9fa !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .category-name {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        margin-left: 0 !important; 
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .category-count {
        margin-left: 0.25rem !important;
        white-space: nowrap !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .ms-3 {
        margin-left: 0 !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active {
        background-color: #409EFF !important;
        border-color: #409EFF !important;
        color: #ffffff !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active .category-name,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active .category-name {
        color: #ffffff !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active span.category-count,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active span.category-count {
        color: #ffffff !important;
        background-color: transparent !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 > .card {
        position: relative !important;
    }
    
    
    .product-item .card-body .d-flex.justify-content-between,
    .product-item .card .card-body .d-flex.justify-content-between,
    .product-item a.card .card-body .d-flex.justify-content-between,
    .product-item .product-card .card-body .d-flex.justify-content-between,
    .product-item .d-flex.align-items-center.justify-content-between {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    
    .product-item .card-body .d-flex.align-items-center.flex-shrink-0,
    .product-item .d-flex.align-items-center.flex-shrink-0 {
        flex-direction: row !important;
        gap: 0.15rem !important;
        flex-wrap: nowrap !important;
    }
    
    
    .product-item .card-body {
        padding: 0.25rem 0.25rem !important;
    }
    
    
    .product-item .card-body .d-md-none:not(.d-flex.align-items-start),
    .product-item .d-md-none:not(.d-flex.align-items-start) {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        overflow: visible !important;
    }
    
    
    .product-item a.card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .product-card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div.d-flex.justify-content-between,
    .product-item .card-body .d-md-none > div:first-child,
    .product-item .d-md-none > div.d-flex.justify-content-between,
    .product-item .d-md-none > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        overflow: visible !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    
    
    .product-item .card-body .d-md-none > div:last-child,
    .product-item .d-md-none > div:last-child {
        width: 100% !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    
    .product-item .product-item-content {
        overflow: visible !important;
        min-width: 0 !important;
    }
    
    
    .product-item .card-body .badge,
    .product-item .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.3rem !important;
        flex-shrink: 0 !important;
    }
    
    
    .product-item .card-body .fw-bold.text-danger,
    .product-item .card-body .text-danger[data-cny],
    .product-item .fw-bold.text-danger,
    .product-item .text-danger[data-cny] {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.85rem !important;
    }
    .product-item .card-body .text-muted.small,
    .product-item .text-muted.small {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.7rem !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-3.col-md-4.mobile-order-2 > .card,
    .container-fluid[style*="max-width: 1600px"] .col-lg-9.col-md-8 > .card.mobile-order-1,
    .container-fluid[style*="max-width: 1600px"] .col-lg-9.col-md-8 > .card.mobile-order-3 {
        box-sizing: border-box !important;
        border-radius: var(--bs-border-radius, 0.375rem) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    
    
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action {
        background-color: #343a40 !important;
        border-color: #495057 !important;
        color: #e9ecef !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item:hover,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action:hover {
        background-color: #495057 !important;
        color: #ffffff !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item.active,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action.active {
        background-color: #409EFF !important;
        border-color: #409EFF !important;
        color: #ffffff !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item .category-name,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .category-name {
        color: #e9ecef !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item.active .category-name,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action.active .category-name {
        color: #ffffff !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item h6.category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action h6.category-count {
        color: #adb5bd !important;
        background-color: transparent !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item.active .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action.active .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item.active h6.category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action.active h6.category-count {
        color: #ffffff !important;
    }
    
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children {
        background-color: #212529 !important;
        border-top-color: #495057 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5) !important;
    }
    
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action {
        background-color: #343a40 !important;
        border-color: #495057 !important;
        color: #e9ecef !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item:hover,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action:hover {
        background-color: #495057 !important;
        color: #ffffff !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active {
        background-color: #409EFF !important;
        border-color: #409EFF !important;
        color: #ffffff !important;
    }
    
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .category-name {
        color: #e9ecef !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active .category-name,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active .category-name {
        color: #ffffff !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children span.category-count {
        color: #adb5bd !important;
        background-color: transparent !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active .category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active span.category-count,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active span.category-count {
        color: #ffffff !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-9.col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: contents !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        min-width: 0 !important; 
        box-sizing: border-box !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-9.col-md-8 > .card.mobile-order-1 {
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; 
        margin-bottom: 0 !important; 
        box-sizing: border-box !important;
    }
    
    
    .container-fluid[style*="max-width: 1600px"] .col-lg-9.col-md-8 > .card.mobile-order-3 {
        grid-row: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; 
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    
    
    .mobile-order-1 {
        order: 1 !important; 
    }
    .mobile-order-2 {
        order: 2 !important; 
    }
    .mobile-order-3 {
        order: 3 !important; 
    }
    
    
    .list-group-item.d-flex.justify-content-between,
    .list-group-item-action.d-flex.justify-content-between {
        flex-wrap: nowrap !important; 
        gap: 0.5rem !important; 
        align-items: center !important; 
    }
    
    
    .list-group-item.d-flex.justify-content-between > div:first-child,
    .list-group-item.d-flex.justify-content-between > .d-flex:first-child,
    .list-group-item-action.d-flex.justify-content-between > div:first-child,
    .list-group-item-action.d-flex.justify-content-between > .d-flex:first-child {
        flex: 1 1 0% !important; 
        min-width: 0 !important; 
        max-width: 100% !important; 
        overflow: hidden !important;
        position: relative !important;
    }
    
    
    .list-group-item > div.d-flex.align-items-center,
    .list-group-item-action > div.d-flex.align-items-center {
        min-width: 0 !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    
    .list-group-item .category-name,
    .list-group-item-action .category-name,
    .list-group-item h6.category-name,
    .list-group-item-action h6.category-name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
        flex-shrink: 1 !important;
    }
    
    
    .list-group-item.d-flex.justify-content-between > div:last-child,
    .list-group-item.d-flex.justify-content-between > .d-flex:last-child,
    .list-group-item.d-flex.justify-content-between > .category-count,
    .list-group-item.d-flex.justify-content-between > h6.category-count,
    .list-group-item.d-flex.justify-content-between > h6.badge.category-count,
    .list-group-item-action.d-flex.justify-content-between > div:last-child,
    .list-group-item-action.d-flex.justify-content-between > .d-flex:last-child,
    .list-group-item-action.d-flex.justify-content-between > .category-count,
    .list-group-item-action.d-flex.justify-content-between > h6.category-count,
    .list-group-item-action.d-flex.justify-content-between > h6.badge.category-count {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important; 
        flex-grow: 0 !important; 
        white-space: nowrap !important;
        min-width: fit-content !important;
    }
    
    
    .list-group-item .category-count,
    .list-group-item h6.category-count,
    .list-group-item h6.badge.category-count,
    .list-group-item span.category-count,
    .list-group-item-action .category-count,
    .list-group-item-action h6.category-count,
    .list-group-item-action h6.badge.category-count,
    .list-group-item-action span.category-count,
    
    .list-group-item.d-flex.justify-content-between > h6.badge.category-count,
    .list-group-item-action.d-flex.justify-content-between > h6.badge.category-count,
    .list-group-item.d-flex.justify-content-between > h6.category-count,
    .list-group-item-action.d-flex.justify-content-between > h6.category-count {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        white-space: nowrap !important;
        display: inline-block !important;
        min-width: fit-content !important;
        max-width: fit-content !important;
        margin-left: auto !important; 
        width: auto !important;
        line-height: 1.2 !important;
    }
    
    
    .list-group-item .d-flex.align-items-center img,
    .list-group-item .d-flex.align-items-center i,
    .list-group-item-action .d-flex.align-items-center img,
    .list-group-item-action .d-flex.align-items-center i {
        flex-shrink: 0 !important;
    }
    
    
    
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .container-fluid[style*="max-width: 1600px"] {
        padding: 20px !important;
    }
    
    
    .card-header {
        padding: 0.875rem 1.25rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action {
        padding: 0.875rem 1rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 767.98px) and (min-width: 576px) {
    .container-fluid[style*="max-width: 1600px"] {
        padding: 15px !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .card-header h5 {
        font-size: 0.95rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .list-group-item,
    .list-group-item-action {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.95rem !important;
    }
    
    .category-name,
    .list-group-item h6.category-name {
        font-size: 0.95rem !important;
    }
    
    .category-count,
    .list-group-item .category-count {
        font-size: 0.9rem !important;
    }
    
    
    .container-fluid > .row {
        gap: 0.375rem !important;
    }
}

@media (max-width: 575.98px) {
    .container-fluid[style*="max-width: 1600px"] {
        padding: 10px !important;
    }
    
    .card-header {
        padding: 0.625rem 0.875rem !important;
    }
    
    .card-header h5 {
        font-size: 0.9rem !important;
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 > .card > .card-body {
        padding: 0.5rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 > .card > .card-body > .list-group {
        gap: 0.375rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action {
        padding: 0.5rem 0.625rem !important;
        font-size: 0.875rem !important;
    }
    
    .list-group-item,
    .list-group-item-action {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-name,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item h6.category-name,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action h6.category-name {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    .category-name,
    .list-group-item h6.category-name,
    .list-group-item-action h6.category-name {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item .category-count,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .category-count {
        font-size: 0.75rem !important;
    }
    
    .category-count,
    .list-group-item .category-count,
    .list-group-item h6.category-count,
    .list-group-item-action .category-count,
    .list-group-item-action h6.category-count {
        font-size: 0.8rem !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item .d-flex.align-items-center img,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .d-flex.align-items-center img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .list-group-item .d-flex.align-items-center img,
    .list-group-item-action .d-flex.align-items-center img {
        width: 18px !important;
        height: 18px !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item .d-flex.align-items-center i,
    .col-lg-3.col-md-4.mobile-order-2 .list-group-item-action .d-flex.align-items-center i {
        font-size: 0.8rem !important;
    }
    
    .list-group-item .d-flex.align-items-center i,
    .list-group-item-action .d-flex.align-items-center i {
        font-size: 0.875rem !important;
    }
    
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children {
        padding: 0.5rem !important;
        gap: 0.375rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item,
    .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action {
        padding: 0.5rem 0.625rem !important;
        font-size: 0.875rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .category-name {
        font-size: 0.875rem !important;
    }
    
    .col-lg-3.col-md-4.mobile-order-2 .category-children .category-count {
        font-size: 0.75rem !important;
    }
    
    
    .container-fluid > .row {
        gap: 0.25rem !important;
    }
    
    .list-group-item.d-flex.justify-content-between,
    .list-group-item-action.d-flex.justify-content-between {
        gap: 0.375rem !important;
    }
    
    
    .card-header .form-control {
        font-size: 0.8rem !important;
        height: 32px !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children {
        background-color: #212529 !important;
        border-top-color: #495057 !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action {
        background-color: #343a40 !important;
        border-color: #495057 !important;
        color: #e9ecef !important;
    }
    
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item.active,
    [data-bs-theme="dark"] .col-lg-3.col-md-4.mobile-order-2 .category-children .list-group-item-action.active {
        background-color: #409EFF !important;
        border-color: #409EFF !important;
        color: #ffffff !important;
    }
}

@media (max-width: 991.98px) {
  
  .col-lg-3.col-md-4.mobile-order-2 {
    display: none !important;
  }
  
  
  .container-fluid[style*="max-width: 1600px"] > .row {
    gap: 0.2rem !important;
  }
}

@media (max-width: 991.98px) {
  
  .mobile-nav-horizontal {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  
  .nav-link-horizontal {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    padding: 0.5rem 0.75rem !important;
    color: #212529 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.375rem !important;
    transition: background-color 0.2s ease !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }
  
  .nav-link-horizontal:hover,
  .nav-link-horizontal:active {
    background-color: #f8f9fa;
  }
  
  .nav-link-horizontal.active {
    background-color: #409EFF;
    color: #ffffff;
  }
  
  
  [data-bs-theme="dark"] .nav-link-horizontal {
    color: #e9ecef !important;
    background-color: #2b3035 !important;
    border: 1px solid #495057 !important;
  }
  
  [data-bs-theme="dark"] .nav-link-horizontal:hover,
  [data-bs-theme="dark"] .nav-link-horizontal:active {
    background-color: #343a40 !important;
    border-color: #6c757d !important;
  }
  
  [data-bs-theme="dark"] .nav-link-horizontal.active {
    background-color: #409EFF !important;
    color: #ffffff !important;
    border-color: #409EFF !important;
  }
}

@media (max-width: 991.98px) {
  
  .mobile-category-accordion {
    margin-top: 0.75rem;
    padding: 0;
  }
  
  .mobile-category-accordion .category-list {
    width: 100%;
    padding: 0;
  }
  
  
  .mobile-category-accordion .category-item {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
  }
  
  .mobile-category-accordion .category-item:last-child {
    border-bottom: none;
  }
  
  
  .mobile-category-accordion .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #212529;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .mobile-category-accordion .category-link:hover,
  .mobile-category-accordion .category-link:active {
    background-color: #f8f9fa;
  }
  
  
  .mobile-category-accordion .category-parent {
    font-weight: 600;
  }
  
  .mobile-category-accordion .category-parent.expanded .category-arrow {
    transform: rotate(180deg);
  }
  
  .mobile-category-accordion .category-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #6c757d;
  }
  
  
  .mobile-category-accordion .category-children {
    background-color: #f8f9fa;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
  }

  .mobile-category-accordion .category-children.expanded {
    max-height: 2000px;
  }

  .mobile-category-accordion .category-children.collapsed {
    max-height: 0;
  }
  
  
  .mobile-category-accordion .category-child-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #dee2e6;
  }
  
  .mobile-category-accordion .category-child-link:last-child {
    border-bottom: none;
  }
  
  .mobile-category-accordion .category-child-link:hover,
  .mobile-category-accordion .category-child-link:active {
    background-color: #e9ecef;
  }
  
  
  .mobile-category-accordion .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-item {
    border-bottom-color: #495057;
  }
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-link {
    color: #e9ecef;
  }
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-link:hover,
  [data-bs-theme="dark"] .mobile-category-accordion .category-link:active {
    background-color: #343a40;
  }
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-children {
    background-color: #2b3035;
    max-height: 0;
  }

  [data-bs-theme="dark"] .mobile-category-accordion .category-children.expanded {
    max-height: 2000px;
  }

  [data-bs-theme="dark"] .mobile-category-accordion .category-children.collapsed {
    max-height: 0;
  }
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-child-link {
    color: #adb5bd;
    border-bottom-color: #495057;
  }
  
  [data-bs-theme="dark"] .mobile-category-accordion .category-child-link:hover,
  [data-bs-theme="dark"] .mobile-category-accordion .category-child-link:active {
    background-color: #343a40;
  }
}

/* 移动端商品列表新布局样式 */
@media (max-width: 767.98px) {
  /* 商品项整体布局 - 强制水平排列 */
  .product-item .d-md-none.d-flex.align-items-start {
    width: 100% !important;
    gap: 0.5rem !important;
    flex-direction: row !important;
    display: flex !important;
  }
  
  /* 商品图片样式 - 确保图片在最左侧，大小与标题高度匹配 */
  .product-item .d-md-none img.rounded.flex-shrink-0 {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border-radius: 0.25rem !important;
    order: -1 !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    display: block !important;
  }
  
  /* 商品信息容器 */
  .product-item .d-md-none .flex-grow-1 {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  
  /* 第一行：货号 + 标题 */
  .product-item .d-md-none .mb-1 {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
  /* 货号标签 */
  .product-item .d-md-none .badge.bg-primary {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  
  /* 商品标题 - 移动端需要换行 */
  .product-item .d-md-none h6.mb-0 {
    /* 重置通用样式中的阻止换行属性 */
    white-space: normal !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    
    /* 多行截断样式 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* 其他样式 */
    flex: 1 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
  }
  
  /* 第二行：库存 + 价格 */
  .product-item .d-md-none .d-flex.align-items-center.justify-content-end {
    gap: 0.5rem !important;
  }
  
  /* 库存文字 */
  .product-item .d-md-none .text-muted {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }
  
  /* 价格 */
  .product-item .d-md-none .fw-bold.text-danger {
    font-size: 0.875rem !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
  }
  
  /* 调整卡片内边距 */
  .product-item .card-body.py-2 {
    padding: 0.5rem !important;
  }
}

/* 更小屏幕优化 */
@media (max-width: 575.98px) {
  /* 确保容器水平排列 */
  .product-item .d-md-none.d-flex.align-items-start {
    flex-direction: row !important;
    display: flex !important;
  }
  
  /* 小屏幕图片 - 进一步缩小 */
  .product-item .d-md-none img.rounded.flex-shrink-0 {
    width: 28px !important;
    height: 28px !important;
    order: -1 !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    display: block !important;
  }
  
  /* 货号标签更小 */
  .product-item .d-md-none .badge.bg-primary {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.35rem !important;
  }
  
  /* 商品标题稍小 - 保持换行 */
  .product-item .d-md-none h6.mb-0 {
    white-space: normal !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
  }
  
  /* 库存和价格稍小 */
  .product-item .d-md-none .text-muted {
    font-size: 0.7rem !important;
  }
  
  .product-item .d-md-none .fw-bold.text-danger {
    font-size: 0.8125rem !important;
  }
  
  /* 卡片内边距更紧凑 */
  .product-item .card-body.py-2 {
    padding: 0.4rem !important;
  }
}

/* 暗黑主题优化 */
[data-bs-theme="dark"] .product-item .d-md-none .badge.bg-primary {
  background-color: #409EFF !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .product-item .d-md-none .text-muted {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .product-item .d-md-none .fw-bold.text-danger {
  color: #ff6b6b !important;
}
