a {
    text-decoration: none;
}
.btn {
    font-size: 0.8rem;
}
.fs-7 {
    font-size: 0.9rem;
}
.fs-8 {
    font-size: 0.8rem;
}

#search-products-modal .modal-header {
    padding: 12px;
}
#search-products-modal .btn-close {
    font-size: 0.7rem;
    margin-right: -2px;
}
#search-products-modal .modal-body {
    max-height: 300px;
    padding: 4px 8px;
    overflow-y: auto;
}
#search-products-input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    margin-left: 7px;
}
.search-products-title {
    font-size: 0.8rem;
    color: #888;
    padding: 5px 0 0 8px;
}
.search-products-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 5px;
}
.search-products-item:hover {
    background-color: #f7f7f7;
}
.search-products-item img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
}
.search-products-item .category-name {
    font-size: 0.9rem;
    color: #333;
}

.pagination .page-link {
    color: #dc3545;
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link,
.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: #dc3545;
    color: #fff;
    border-color: #dee2e6;
}
.pagination .page-item.disabled .page-link {
    background-color: #fff;
    color: #6c757d;
    border-color: #dee2e6;
}

.base-nav {
    background-color:#fff;
    height: 60px;
    border-bottom: 1px solid #e7e5e4;
}
.navbar .logo {
    width: 24px;
    height: 24;
    margin-right: 20px;
}
.base-nav .nav-link i {
    font-size: 1.05rem;
    position: relative;
    top: 1px;
}
.base-nav .nav-right i {
    top: -4px;
}
.base-nav .navbar-nav .nav-link {
    font-size: 0.9rem;
}
.base-nav .nav-link.active {
    color: #dc3545;
    border-color: #dc3545 !important;
}
.base-nav .nav-right .nav-link {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 18px;
}
.base-nav .nav-right .nav-link {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 18px;
}
.base-nav .dropdown-item {
    font-size: 0.8rem;
}
.base-nav .dropdown-item .user-email {
    font-size: 0.75rem;
}
.base-nav .dropdown-item i {
    font-size: 1.05rem;
    position: relative;
    top: 2px;
}
.dropdown-toggle-no-caret:after {
    display: none;
}

#cartGoodsQuantityBadgeContainer {
    position: relative;
    top: -45px;
    left: 10px;
}

hr {
    border-color: #aaa;
}

@media (max-width: 993px) {
    #navbarSupportedContent {
        background-color: #fff;
        padding: 20px;
    }
    .base-nav .nav-right .nav-link {
        border: none;
    }
}

.text-box {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.card-img-title {
    font-size: 0.85rem;
    padding: 4px 0 0 8px;
}
.card-img-cate {
    font-size: 0.75rem;
    padding-left: 8px;
    color: #888;
}

.login-logo {
    text-align: center;
    margin-top: -20px;
}
.login-logo img {
    width: 140px;
}
.login-box {
    width: 420px;
    margin: 38px auto;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
}
.login-box .text-secondary {
    font-size: 0.9rem;
}
.login-box .form-label {
    font-size: 0.9rem;
}
.login-box .btn {
    width: 100%;
}
.login-box span {
    font-size: 0.9rem;
}

.product-img {
    border-radius: 20px;
}
.brands-img {
    width: 48px;
    height: 62.5px;
    margin-right: 17px;
    border-radius: 7px;
}
.brands-cate-name {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 11px;
}
.brands-cate-parent {
    font-size: 0.75rem;
}
.column-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 28px;
}
.column-sub-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 10px 0;
}
.region-item {
    display: block;
    height: 60px;
    padding: 16px;
    line-height: 28px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    color: #333;
    text-decoration: none;
}
.region-item:hover {
    background-color: #f7f7f7;
}

.sku-table {
    border: 1px solid #dee2e6;
    border-bottom: 0;
    background-color: #fff;
    border-radius: 5px;
}
.sku-table table {
    margin-bottom: 0;
}
.sku-table thead td {
    line-height: 24px;
    font-size: 0.9rem;
    color: #666;
}
.sku-table tbody td {
    line-height: 18px;
    /* 垂直居中 */
    vertical-align: middle;
}
.sku-table .sku-img {
    width: 36px;
    height: 36px;
    border-radius: 18px;
}
.sku-table .product {
    margin-left: 8px;
}
.sku-table .product-name {
    margin-top: 2px;
    font-size: 0.85rem;
}
.sku-table .product-facevalue {
    font-size: 0.75rem;
    font-weight: bold;
}
.sku-table .product-facevalue span {
    font-weight: normal;
}
.sku-table .table-text {
    font-size: 0.9rem;
}
.sku-table .table-text i {
    font-size: 1rem;
}
.sku-table .btn-addtocart {
    width: 126px;
}
.sku-table .btn-addtocart i {
    font-size: 1rem;
}
.sku-table .input-group {
    min-width: 200px;
}
.form-label {
    font-size: 0.8rem;
}
.form-control-sm, .form-select-sm {
    font-size: 0.8rem;
    padding-top: 6.5px;
    padding-bottom: 6.5px;
}
table tbody td {
    font-size: 0.85rem;
}

/* Dashboard Styles */
.dashboard-container {
    margin-top: 28px;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.insights-card,
.orders-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.insights-card {
    min-height: 327px;
}

.orders-card {
    min-height: 327px;
    align-items: center;
}

.metrics-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.metric-item {
    flex: 1;
}

.metric-divider {
    width: 1px;
    height: 68px;
    background-color: #e5e7eb;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    margin-left: 15px;
}

.metric-value {
    font-weight: bold;
    color: #374151;
    margin-left: 15px;
}

.chart-placeholder,
.orders-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}
.chart-placeholder {
    height: 255px;
}
.chart-icon,
.orders-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.chart-message,
.orders-message {
    font-size: 1rem;
    font-weight: bold;
    color: #9ca3af;
    margin-bottom: 8px;
}

.chart-description,
.orders-description {
    font-size: 0.875rem;
    color: #9ca3af;
    max-width: 300px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.wallet-box {
    border: 1px solid #dc3545;
    border-radius: 5px;
    padding: 16px;
    display: flex;
    align-items: center;
}
.wallet-balance {
    font-size: 0.8rem;
}

.product-desc-title {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 10px 0;
}
.product-desc-content {
    padding-left: 20px;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
}

.giftcard-sub-container {
    display: grid;
    grid-template-columns: 1fr 4fr;
}

.sub-menu-item {
    display: block;
    line-height: 40px;
    font-size: 0.9rem;
    color: #666;
}
.sub-menu-item:hover {
    font-weight: bold;
}
.sub-menu-item.active {
    font-weight: bold;
    color:#dc3545;
}
.sub-content-box {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 0 5px #dee2e6;
    padding: 20px;
}
.sub-content-box-title {
    font-size: 1rem;
    font-weight: bold;
}
.sub-content-box-subtitle {
    font-size: 0.9rem;
    color: #888;
}
.sub-content-box-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-content-box-content-item label {
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.giftcard-description .giftcard-description-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.giftcard-description ul {
    list-style-type: decimal;
    padding-left: 35px;
}
.giftcard-description ul li {
    font-size: 0.9rem;
}
.cart-sku-img {
    width: 36px;
    height: 36px;
    border-radius: 18px;
}
