.navbar-acg {
    border-bottom: 1px solid rgba(227, 233, 243, 0.96);
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    box-shadow: 0 12px 28px rgba(108, 131, 166, 0.1);
}

.navbar-acg .navbar-brand {
    font-size: 1.38rem;
}

.navbar-acg .nav-link {
    color: #717b8f;
    font-size: 1.08rem;
    font-weight: 600;
}

.navbar-acg .nav-link.active {
    color: #5d9bde;
}

.navbar-acg .nav-link .nav-icon,
.navbar-acg .btn .nav-icon {
    margin-right: .35rem;
}

.navbar-acg .btn {
    border-radius: 999px;
}

.brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.search-input {
    max-width: 360px;
}

.search-input .input-group-text {
    border: 1px solid rgba(133, 143, 161, 0.24);
    border-right: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #788197;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
}

.search-input .form-control {
    border: 1px solid rgba(133, 143, 161, 0.24);
    border-left: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #616b81;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: none;
}

.search-input .form-control:focus {
    border-color: rgba(133, 143, 161, 0.24);
    border-left: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
}

.storefront-shell-v2 {
    position: relative;
}

.storefront-shell-v2 .notice-panel,
.storefront-shell-v2 .category-panel {
    position: relative;
    border: 1px solid rgba(231, 236, 245, 0.96);
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(108, 131, 166, 0.1);
}

.storefront-shell-v2 .notice-panel::before,
.storefront-shell-v2 .category-panel::before {
    display: none;
}

.storefront-shell-v2 .notice-panel {
    margin-bottom: 18px;
}

.storefront-shell-v2 .panel-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding: 22px 28px 0;
    gap: 8px;
    box-shadow: none;
    background: transparent;
}

.storefront-shell-v2 .panel-header .icon {
    color: #71798d;
}

.storefront-shell-v2 .panel-title {
    color: #657084;
    font-size: 1.22rem;
    font-weight: 700;
}

.storefront-shell-v2 .notice-panel-body {
    position: relative;
    z-index: 1;
    padding: 10px 28px 24px;
    color: #5e687c;
    font-size: 14px;
    line-height: 1.9;
}

.storefront-shell-v2 .notice-panel-body h1,
.storefront-shell-v2 .notice-panel-body h2,
.storefront-shell-v2 .notice-panel-body h3,
.storefront-shell-v2 .notice-panel-body h4,
.storefront-shell-v2 .notice-panel-body h5,
.storefront-shell-v2 .notice-panel-body h6,
.storefront-shell-v2 .notice-panel-body p {
    margin: 0 0 10px;
    color: inherit;
    line-height: inherit;
    font-size: inherit;
    font-weight: 600;
}

.storefront-shell-v2 .category-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.storefront-shell-v2 .category-panel {
    scroll-margin-top: 92px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.storefront-shell-v2 .category-panel.is-highlighted {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 52px rgba(101, 126, 168, 0.22);
}

.storefront-shell-v2 .category-panel-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px 12px;
}

.storefront-shell-v2 .category-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.storefront-shell-v2 .category-icon-shell {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 8px 18px rgba(120, 136, 172, 0.12);
}

.storefront-shell-v2 .category-chip-icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
    border-radius: 999px;
    display: block;
}

.storefront-shell-v2 .category-heading-copy {
    min-width: 0;
}

.storefront-shell-v2 .category-heading-copy .panel-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.storefront-shell-v2 .category-summary {
    margin: 0;
    color: #8d95a8;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.storefront-shell-v2 .category-panel-body {
    position: relative;
    z-index: 1;
    padding: 8px 28px 12px;
}

.storefront-shell-v2 .category-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 88px 94px;
    gap: 12px;
    align-items: center;
    padding: 0 4px 8px;
    color: #798296;
    font-size: 13px;
    font-weight: 700;
}

.storefront-shell-v2 .category-table-head i {
    margin-right: 6px;
    color: #727b8f;
}

.storefront-shell-v2 .category-table-head-price,
.storefront-shell-v2 .category-table-head-stock,
.storefront-shell-v2 .category-table-head-action {
    text-align: center;
}

.storefront-shell-v2 .category-item-list {
    display: flex;
    flex-direction: column;
}

.storefront-shell-v2 .commodity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 88px 94px;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    color: #606a7f;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.storefront-shell-v2 .commodity-row:first-of-type {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.storefront-shell-v2 .commodity-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.storefront-shell-v2 .commodity-row-cover {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 5px 14px rgba(120, 136, 172, 0.12);
}

.storefront-shell-v2 .commodity-row-copy {
    min-width: 0;
}

.storefront-shell-v2 .commodity-row-title {
    margin: 0;
    color: #657084;
    font-size: 1.03rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storefront-shell-v2 .commodity-row-side {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.storefront-shell-v2 .commodity-row-price {
    color: #ff31c7;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.1;
}

.storefront-shell-v2 .commodity-row-price .unit {
    font-size: .9rem;
    font-weight: 600;
}

.storefront-shell-v2 .commodity-row-stock-value {
    color: #22c55e;
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.1;
}

.storefront-shell-v2 .commodity-row-action-wrap {
    display: flex;
    justify-content: flex-end;
}

.storefront-shell-v2 .commodity-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 74px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(247, 201, 227, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: #8c7b8d;
    font-size: .92rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.storefront-shell-v2 .commodity-row-action i {
    font-size: .78rem;
}

.storefront-shell-v2 .commodity-row.is-soldout {
    opacity: .72;
}

.storefront-shell-v2 .commodity-row.is-soldout .commodity-row-action {
    border-color: rgba(204, 210, 222, 0.9);
    color: #9aa3b3;
}

.storefront-shell-v2 .category-empty-message {
    padding: 30px 0 8px;
    color: #7d8698;
}

.storefront-shell-v2 .item-message {
    color: #7d8698;
}

@media (hover: hover) and (pointer: fine) {
    .storefront-shell-v2 .commodity-row:hover {
        background: rgba(255, 255, 255, 0.16);
        border-top-color: rgba(244, 190, 224, 0.56);
    }
}

@media (max-width: 991.98px) {
    .storefront-shell-v2 .category-panel-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .storefront-shell-v2 .category-table-head {
        display: none;
    }

    .storefront-shell-v2 .commodity-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main action"
            "price stock";
        row-gap: 8px;
    }

    .storefront-shell-v2 .commodity-row-main {
        grid-area: main;
    }

    .storefront-shell-v2 .commodity-row-price-block,
    .storefront-shell-v2 .commodity-row-stock-block {
        flex-direction: column;
        gap: 2px;
    }

    .storefront-shell-v2 .commodity-row-price-block {
        grid-area: price;
        align-items: flex-start;
    }

    .storefront-shell-v2 .commodity-row-stock-block {
        grid-area: stock;
        align-items: flex-end;
    }

    .storefront-shell-v2 .commodity-row-price-block::before,
    .storefront-shell-v2 .commodity-row-stock-block::before {
        font-size: 12px;
        color: #8d95a8;
        line-height: 1;
    }

    .storefront-shell-v2 .commodity-row-price-block::before {
        content: "批发价";
    }

    .storefront-shell-v2 .commodity-row-stock-block::before {
        content: "库存";
    }

    .storefront-shell-v2 .commodity-row-action-wrap {
        grid-area: action;
        align-self: start;
    }
}

@media (max-width: 575.98px) {
    .storefront-shell-v2 .notice-panel,
    .storefront-shell-v2 .category-panel {
        border-radius: 24px;
    }

    .storefront-shell-v2 .panel-header {
        padding: 18px 16px 0;
    }

    .storefront-shell-v2 .notice-panel-body,
    .storefront-shell-v2 .category-panel-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .storefront-shell-v2 .notice-panel-body {
        padding-bottom: 16px;
    }

    .storefront-shell-v2 .category-panel-topbar {
        padding: 16px 16px 10px;
    }

    .storefront-shell-v2 .panel-title {
        font-size: 1.06rem;
    }

    .storefront-shell-v2 .category-icon-shell {
        width: 28px;
        height: 28px;
    }

    .storefront-shell-v2 .category-chip-icon {
        width: 18px;
        height: 18px;
    }

    .storefront-shell-v2 .commodity-row {
        padding: 10px 0;
        column-gap: 10px;
    }

    .storefront-shell-v2 .commodity-row-cover {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .storefront-shell-v2 .commodity-row-title {
        font-size: .95rem;
    }

    .storefront-shell-v2 .commodity-row-price {
        font-size: 1.1rem;
    }

    .storefront-shell-v2 .commodity-row-stock-value {
        font-size: 1.04rem;
    }

    .storefront-shell-v2 .commodity-row-action {
        min-width: 68px;
        height: 32px;
        padding: 0 10px;
        font-size: .88rem;
    }
}

/* 首页 v3：参考 pic2 的分类胶囊 + 卡片货架 */
.storefront-shell-v2 .purchase-panel {
    position: relative;
    border: 1px solid rgba(229, 235, 244, 0.98);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(108, 131, 166, 0.12);
}

.storefront-shell-v2 .purchase-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(186, 143, 252, 0.08), transparent 30%),
        linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(210, 183, 214, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.storefront-shell-v2 .purchase-panel .panel-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px 12px;
    margin-bottom: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(237, 241, 247, 0.96);
    box-shadow: none;
}

.storefront-shell-v2 .purchase-panel .panel-header .icon {
    color: #657084;
}

.storefront-shell-v2 .purchase-panel .panel-title {
    color: #5f697d;
    font-size: 1.2rem;
    font-weight: 700;
}

.storefront-shell-v2 .purchase-panel-body {
    position: relative;
    z-index: 1;
    padding: 18px 16px 18px;
}

.storefront-shell-v2 .storefront-toolbar {
    margin-bottom: 14px;
}

.storefront-shell-v2 .storefront-chip-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.storefront-shell-v2 .storefront-chip {
    appearance: none;
    border: 1px solid rgba(225, 231, 241, 0.98);
    background: #ffffff;
    color: #6d7588;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 16px 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(125, 138, 165, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease;
}

.storefront-shell-v2 .storefront-chip-icon-shell {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    box-shadow: inset 0 0 0 1px rgba(237, 241, 247, 0.95);
}

.storefront-shell-v2 .storefront-chip-icon {
    width: 14px;
    height: 14px;
    display: block;
    border-radius: 999px;
}

.storefront-shell-v2 .storefront-chip.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #8a79ff, #6ea4ff);
    box-shadow: 0 12px 24px rgba(123, 133, 255, 0.22);
}

.storefront-shell-v2 .storefront-summary {
    margin: 0;
    color: #8a92a5;
    font-size: 13px;
    font-weight: 600;
}

.storefront-shell-v2 .storefront-summary .divider {
    margin: 0 8px;
    opacity: .55;
}

.storefront-shell-v2 .storefront-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.storefront-shell-v2 .storefront-grid .item-message {
    grid-column: 1 / -1;
    padding: 18px 0 10px;
}

.storefront-shell-v2 .storefront-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(236, 240, 247, 0.98);
    box-shadow: 0 12px 24px rgba(106, 124, 158, 0.1);
    color: #5d677b;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.storefront-shell-v2 .storefront-card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #eef3f8;
}

.storefront-shell-v2 .storefront-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 12px 10px;
}

.storefront-shell-v2 .storefront-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 8px;
}

.storefront-shell-v2 .storefront-card-badges .badge-soft {
    font-size: 11px;
    font-weight: 600;
    padding: .18rem .48rem;
}

.storefront-shell-v2 .storefront-card-title {
    margin: 0;
    color: #4f596d;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.storefront-shell-v2 .storefront-card-price {
    margin-top: 12px;
    color: #ff6a8d;
    font-size: 1.78rem;
    font-weight: 800;
    line-height: 1;
}

.storefront-shell-v2 .storefront-card-price .unit {
    font-size: 1rem;
    margin-right: 1px;
    font-weight: 700;
}

.storefront-shell-v2 .storefront-card-meta {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #8a92a5;
    font-size: 13px;
    font-weight: 600;
}

.storefront-shell-v2 .storefront-card.is-soldout {
    filter: grayscale(.18) saturate(.86);
    opacity: .88;
}

@media (hover: hover) and (pointer: fine) {
    .storefront-shell-v2 .storefront-chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 22px rgba(125, 138, 165, 0.12);
    }

    .storefront-shell-v2 .storefront-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px rgba(106, 124, 158, 0.18);
    }
}

@media (max-width: 991.98px) {
    .storefront-shell-v2 .storefront-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .storefront-shell-v2 .purchase-panel {
        border-radius: 24px;
    }

    .storefront-shell-v2 .purchase-panel .panel-header {
        padding: 16px 16px 10px;
    }

    .storefront-shell-v2 .purchase-panel-body {
        padding: 14px 12px 16px;
    }

    .storefront-shell-v2 .storefront-chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-right: -4px;
    }

    .storefront-shell-v2 .storefront-chip-list::-webkit-scrollbar {
        display: none;
    }

    .storefront-shell-v2 .storefront-chip {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px 0 8px;
        font-size: .92rem;
    }

    .storefront-shell-v2 .storefront-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .storefront-shell-v2 .storefront-card-body {
        padding: 11px;
    }

    .storefront-shell-v2 .storefront-card-title {
        font-size: .96rem;
    }

    .storefront-shell-v2 .storefront-card-price {
        font-size: 1.48rem;
    }

    .storefront-shell-v2 .storefront-card-meta {
        font-size: 12px;
    }
}
