:root {
    --acg-page-bg: #f6f8fb;
    --acg-surface: #ffffff;
    --acg-surface-muted: #f1f5f9;
    --acg-primary: #2563eb;
    --acg-primary-hover: #1d4ed8;
    --acg-secondary: #0f766e;
    --acg-success: #15803d;
    --acg-danger: #dc2626;
    --acg-warning: #b45309;
    --acg-text-strong: #111827;
    --acg-text: #334155;
    --acg-text-muted: #64748b;
    --acg-border: #d8e2ee;
    --acg-border-strong: #c3d0df;
    --acg-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    --acg-radius: 8px;
}

html {
    font-size: 13px;
}

body {
    min-height: 100vh;
    color: var(--acg-text);
    background-color: var(--acg-page-bg);
    background-image: url("/assets/user/images/brand/app-bg.svg");
    background-repeat: repeat;
    background-size: 720px 450px;
}

a {
    color: inherit;
    text-decoration: none;
}

#pjax-container {
    min-height: calc(100vh - 72px);
}

.store-shell {
    max-width: 1180px;
}

.navbar-acg {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--acg-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.navbar-acg .navbar-brand {
    color: var(--acg-text-strong);
    font-size: 1.25rem;
    font-weight: 800;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: var(--acg-radius);
}

.navbar-acg .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--acg-text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--acg-radius);
}

.navbar-acg .nav-link.active,
.navbar-acg .nav-link:hover {
    color: var(--acg-primary);
    background: #eff6ff;
}

.nav-icon {
    font-size: 1rem;
}

.search-input {
    width: 320px;
}

.search-input .input-group-text,
.search-input .form-control,
.mobile-search .form-control {
    height: 38px;
    border-color: var(--acg-border);
    background: var(--acg-surface);
}

.search-input .input-group-text {
    color: var(--acg-text-muted);
    border-right: 0;
    border-radius: var(--acg-radius) 0 0 var(--acg-radius);
}

.search-input .form-control {
    border-left: 0;
    border-radius: 0 var(--acg-radius) var(--acg-radius) 0;
}

.form-control,
.form-select {
    border-color: var(--acg-border);
    border-radius: var(--acg-radius);
    color: var(--acg-text-strong);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn {
    border-radius: var(--acg-radius);
    font-weight: 700;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--acg-primary-hover);
    border-color: var(--acg-primary-hover);
}

.btn-outline-secondary {
    color: var(--acg-text);
    border-color: var(--acg-border-strong);
    background: var(--acg-surface);
}

.btn-outline-secondary:hover {
    color: var(--acg-text-strong);
    background: var(--acg-surface-muted);
    border-color: var(--acg-border-strong);
}

.user-login-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
}

#userDropdown {
    padding: 4px 8px;
    color: var(--acg-text-strong);
}

#username {
    font-size: 14px;
    line-height: 1.2;
}

#user-balance {
    font-size: 12px;
    line-height: 1.2;
}

.dropdown-menu {
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    box-shadow: var(--acg-shadow);
}

.dropdown-item {
    padding: 8px 14px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--acg-surface-muted);
}

.storefront-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 22px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--acg-radius);
    box-shadow: var(--acg-shadow);
}

.storefront-copy {
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.storefront-head h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.storefront-head p {
    max-width: 560px;
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.storefront-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 10px;
    align-self: center;
}

.storefront-metrics div {
    padding: 12px;
    background: #111827;
    border: 1px solid #334155;
    border-radius: var(--acg-radius);
}

.storefront-metrics strong,
.storefront-metrics span {
    display: block;
}

.storefront-metrics strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
}

.storefront-metrics span {
    margin-top: 4px;
    color: #94a3b8;
    white-space: nowrap;
}

.panel {
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    box-shadow: var(--acg-shadow);
}

.panel + .panel,
.order-results,
.no-results,
.loading-state {
    margin-top: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--acg-border);
}

.catalog-header {
    justify-content: space-between;
    gap: 12px;
}

.panel-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.panel-header .icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    color: var(--acg-primary);
    background: #eff6ff;
    border-radius: var(--acg-radius);
}

.panel-title {
    margin: 0;
    color: var(--acg-text-strong);
    font-size: 1.08rem;
    font-weight: 800;
}

.panel-body {
    padding: 16px;
}

.notice {
    color: var(--acg-text);
    line-height: 1.75;
}

.notice p {
    margin-bottom: 0;
}

.chip-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--acg-text);
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
    color: var(--acg-primary);
    border-color: #93c5fd;
}

.chip.is-primary {
    color: #ffffff;
    background: var(--acg-primary);
    border-color: var(--acg-primary);
}

.chip .chip-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 4px;
}

.item-message {
    width: 100%;
    padding: 24px;
    color: var(--acg-text-muted);
    text-align: center;
}

.item-list > a {
    color: inherit;
}

.acg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.acg-thumb {
    height: 154px;
    background-color: var(--acg-surface-muted);
    border-bottom: 1px solid var(--acg-border);
}

.acg-card > .p-3 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.goods-title {
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--acg-text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.price {
    color: var(--acg-danger);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.price .unit {
    margin-right: 2px;
    color: var(--acg-danger);
    font-size: 15px;
    font-weight: 800;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--acg-text-muted);
    font-size: 13px;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.badge-soft-primary {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.badge-soft-success {
    color: var(--acg-success);
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.badge-soft-danger {
    color: var(--acg-danger);
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.badge-soft-muted {
    color: var(--acg-text-muted);
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
}

.badge-soft-warning {
    color: var(--acg-warning);
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.badge-soft-info {
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.soldout {
    opacity: 0.72;
}

.soldout-ribbon {
    position: absolute;
    top: 14px;
    left: -34px;
    width: 132px;
    padding: 4px 0;
    color: #ffffff;
    background: var(--acg-danger);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    transform: rotate(-45deg);
}

.product-panel {
    margin-top: 0;
}

.product-panel .panel-body {
    padding: 18px;
}

.product-media {
    width: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.item-cover {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.product-summary {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.product-title-row h4 {
    margin: 0;
    color: var(--acg-text-strong);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.25;
}

.icon-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--acg-text);
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.shared-button {
    cursor: pointer;
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.sku,
.optional-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--acg-text);
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sku.is-primary,
.optional-card.is-primary {
    color: #ffffff;
    background: var(--acg-primary);
    border-color: var(--acg-primary);
}

.sku .badge-money,
.sku .badge-moeny {
    margin-left: 6px;
    padding: 2px 5px;
    color: var(--acg-warning);
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.sku.is-primary .badge-money,
.sku.is-primary .badge-moeny {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

.vstack label {
    color: var(--acg-text-strong);
    font-size: 14px;
    font-weight: 800;
}

.vstack .form-control {
    height: 42px;
    font-size: 14px;
    background: var(--acg-surface);
}

.qty-group {
    width: 150px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.qty-group > button {
    width: 40px;
    border: 0;
    color: var(--acg-text-strong);
    background: var(--acg-surface-muted);
    font-weight: 900;
}

.qty-group > input[type="number"] {
    min-width: 0;
    border: 0;
    text-align: center;
    font-weight: 800;
    box-shadow: none;
}

.qty-group > input[type="number"]::-webkit-outer-spin-button,
.qty-group > input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.qty-group > input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.captcha-group {
    width: 260px;
}

.captcha-input {
    border-right: 0;
    border-radius: var(--acg-radius) 0 0 var(--acg-radius);
}

.captcha-img {
    height: 42px;
    padding: 0;
    cursor: pointer;
    background: var(--acg-surface);
    border-color: var(--acg-border);
    border-left: 0;
    border-radius: 0 var(--acg-radius) var(--acg-radius) 0;
}

.cash-pay {
    padding: 14px;
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.cash-pay .form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--acg-text-strong);
    font-size: 15px;
    font-weight: 900;
}

.cash-pay .form-label i {
    color: var(--acg-primary);
}

.pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--acg-text);
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
    cursor: pointer;
    user-select: none;
}

.pay-list .pay img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pay-list .pay span {
    color: var(--acg-text-strong);
    font-size: 14px;
    font-weight: 800;
}

.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected,
.pay-list .pay:hover {
    color: #ffffff;
    background: var(--acg-primary);
    border-color: var(--acg-primary);
}

.pay-list .pay.is-primary span,
.pay-list .pay.active span,
.pay-list .pay.selected span,
.pay-list .pay:hover span {
    color: #ffffff;
}

.item-detail .panel-body {
    line-height: 1.8;
}

.item-detail .panel-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--acg-radius);
}

.item-detail .panel-body h1,
.item-detail .panel-body h2,
.item-detail .panel-body h3,
.item-detail .panel-body h4 {
    color: var(--acg-text-strong);
}

.wholesale-table {
    max-width: 240px;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--acg-border);
}

.query-controls {
    display: flex;
    gap: 10px;
    max-width: 560px;
}

.query-controls .form-control {
    height: 44px;
}

.query-controls .btn {
    width: 108px;
    height: 44px;
    flex: 0 0 auto;
}

.empty-state {
    padding: 32px 16px;
}

.empty-state > i {
    margin-bottom: 12px;
    color: var(--acg-text-muted);
    font-size: 34px;
}

.order-item {
    position: relative;
    margin-bottom: 16px;
    padding: 18px;
    background: var(--acg-surface);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.order-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--acg-primary);
}

.order-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--acg-border);
}

.order-left {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.order-basic {
    min-width: 0;
}

.order-no {
    margin-bottom: 6px;
    color: var(--acg-text-strong);
    font-size: 17px;
    font-weight: 900;
    word-break: break-all;
}

.order-time,
.payment-time,
.payment-dst {
    margin-bottom: 4px;
    color: var(--acg-text-muted);
    font-size: 13px;
}

.order-right {
    min-width: 120px;
    text-align: right;
}

.amount-label {
    display: block;
    color: var(--acg-text-muted);
    font-size: 12px;
}

.amount-value {
    display: block;
    margin-top: 4px;
    color: var(--acg-danger);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.status-pending {
    color: var(--acg-warning);
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.status-paid,
.status-shipped,
.status-waiting-shipment {
    color: var(--acg-success);
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.shipment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.shipment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.shipment-waiting {
    color: var(--acg-warning);
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.shipment-paid,
.shipment-shipped {
    color: var(--acg-success);
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.goods-section {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.goods-thumb {
    flex: 0 0 auto;
}

.goods-image {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--acg-radius);
    border: 1px solid var(--acg-border);
    background: var(--acg-surface);
}

.goods-details {
    min-width: 0;
    flex: 1;
}

.goods-name {
    margin: 0 0 8px;
    color: var(--acg-text-strong);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.goods-sku,
.a-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.a-badge-primary {
    color: #1d4ed8;
    background: #dbeafe;
}

.a-badge-success {
    color: var(--acg-success);
    background: #dcfce7;
}

.a-badge-warning {
    color: var(--acg-warning);
    background: #fef3c7;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.payment-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.payment-name {
    color: var(--acg-text-strong);
    font-weight: 800;
}

.card-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--acg-border);
}

.card-header {
    padding: 0;
    margin-bottom: 12px;
    background: transparent;
    border: 0;
}

.card-title {
    margin: 0;
    color: var(--acg-text-strong);
    font-size: 15px;
    font-weight: 900;
}

.password-form .input-group {
    max-width: 520px;
}

.card-password-input {
    height: 42px;
    border-right: 0;
    border-radius: var(--acg-radius) 0 0 var(--acg-radius);
}

.view-card-btn {
    height: 42px;
    border-radius: 0 var(--acg-radius) var(--acg-radius) 0;
}

.card-content,
.card-content-no-password,
.card-display-content {
    margin-top: 12px;
    padding: 14px;
    background: var(--acg-surface-muted);
    border: 1px solid var(--acg-border);
    border-radius: var(--acg-radius);
}

.card-display,
.card-text,
.card-value {
    color: var(--acg-text-strong);
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: all;
}

.card-loading {
    padding: 18px;
    color: var(--acg-text-muted);
    text-align: center;
}

.card-loading .icon-spin,
.loading-state .icon-spin {
    color: var(--acg-primary);
    animation: spin 1s linear infinite;
}

.layui-layer {
    overflow: hidden;
    border-radius: var(--acg-radius) !important;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22) !important;
}

.layui-layer-title {
    height: 48px !important;
    color: var(--acg-text-strong) !important;
    background: var(--acg-surface) !important;
    border-bottom: 1px solid var(--acg-border) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 48px !important;
}

.layui-layer-content .treasure-secret {
    width: 100%;
    height: 100%;
    min-height: 210px;
    padding: 18px;
    color: var(--acg-text-strong);
    background: var(--acg-surface-muted);
    border: 0;
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.7;
    resize: none;
}

.layui-layer-btn {
    padding: 12px 16px 16px !important;
    border-top: 1px solid var(--acg-border);
    background: var(--acg-surface);
}

.layui-layer-btn .layui-layer-btn0 {
    height: 34px;
    padding: 0 14px;
    color: #ffffff !important;
    background: var(--acg-primary) !important;
    border: 1px solid var(--acg-primary) !important;
    border-radius: var(--acg-radius) !important;
    font-weight: 800;
    line-height: 34px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

footer {
    padding: 20px 0;
    color: var(--acg-text-muted);
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .acg-card:hover {
        transform: translateY(-2px);
        border-color: #93c5fd;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    }

    .sku:hover,
    .optional-card:hover,
    .icon-button:hover {
        color: var(--acg-primary);
        border-color: #93c5fd;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-acg .container {
        position: relative;
    }

    .navbar-acg .navbar-brand {
        order: 1;
    }

    .user-login-box,
    .user-info-box {
        order: 2;
        margin-left: auto;
        margin-right: 8px;
    }

    .navbar-acg .navbar-toggler {
        order: 3;
        border-color: var(--acg-border);
        border-radius: var(--acg-radius);
    }

    .navbar-acg .navbar-collapse {
        order: 4;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .storefront-head {
        grid-template-columns: 1fr;
    }

    .storefront-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-media,
    .item-cover {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .navbar-acg {
        padding: 8px 0;
    }

    .navbar-acg .navbar-brand {
        max-width: 168px;
        font-size: 1.1rem;
    }

    .navbar-acg .navbar-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-login-box .btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .storefront-head {
        padding: 18px;
    }

    .storefront-metrics {
        grid-template-columns: 1fr;
    }

    .catalog-header {
        display: block;
    }

    .mobile-search {
        margin-top: 12px;
    }

    .acg-thumb {
        height: 132px;
    }

    .goods-title {
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-media,
    .item-cover {
        min-height: 220px;
    }

    .product-title-row h4 {
        font-size: 21px;
    }

    .query-controls {
        display: block;
    }

    .query-controls .btn {
        width: 100%;
        margin-top: 10px;
    }

    .order-header,
    .order-left,
    .goods-section {
        flex-direction: column;
    }

    .order-right {
        min-width: 0;
        text-align: left;
    }

    .goods-image {
        width: 100%;
        height: 140px;
    }

    .payment-dst {
        align-items: flex-start;
    }

    .password-form .input-group {
        display: block;
    }

    .card-password-input,
    .view-card-btn {
        width: 100%;
        border-radius: var(--acg-radius);
    }

    .view-card-btn {
        margin-top: 8px;
    }
}

@media (max-width: 420px) {
    .brand-logo {
        width: 24px;
        height: 24px;
    }

    .user-login-box {
        gap: 4px;
    }

    .user-login-box .btn .nav-icon {
        margin-right: 0;
    }

    .user-login-box .btn {
        width: 34px;
        height: 32px;
        padding: 0;
        overflow: hidden;
        font-size: 0;
    }

    .user-login-box .btn i {
        margin-right: 0;
        font-size: 14px;
    }
}
