/* 首页商品列表紧凑版：降低视觉密度，保留左侧分类布局 */
.shop-page {
    padding-top: 18px;
}

.shop-page .catalog-toolbar {
    margin-bottom: 12px;
}

.shop-page .catalog-title {
    font-size: 24px;
}

.shop-page .catalog-search .input-group-text,
.shop-page .catalog-search .form-control,
.shop-page .catalog-search .btn {
    min-height: 36px;
}

.shop-page .catalog-head,
.shop-page .catalog-row {
    grid-template-columns: minmax(0, 1fr) 118px 86px 104px;
}

.shop-page .catalog-head {
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
}

.shop-page .catalog-row {
    min-height: 70px;
    padding: 10px 20px;
}

.shop-page .catalog-product {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
}

.shop-page .catalog-thumb {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    background: #fff;
}

.shop-page .catalog-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-page .catalog-tags {
    gap: 5px;
    margin-top: 4px;
}

.shop-page .catalog-tags .badge-soft {
    padding: 1px 6px;
    font-size: 11px;
}

.shop-page .catalog-price {
    font-size: 16px;
}

.shop-page .catalog-stock {
    font-size: 15px;
}

.shop-page .catalog-buy {
    gap: 5px;
    min-width: 78px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}

@media (max-width: 991.98px) {
    .shop-page .catalog-row {
        padding: 10px 12px;
        gap: 8px;
    }

    .shop-page .catalog-product {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .shop-page .catalog-thumb {
        width: 42px;
        height: 42px;
    }

    .shop-page .catalog-name {
        font-size: 14px;
    }

    .shop-page .catalog-price,
    .shop-page .catalog-stock {
        font-size: 14px;
    }
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(17, 24, 39, .34);
}

.notice-modal.is-open {
    display: flex;
}

.notice-modal__dialog {
    width: min(760px, calc(100vw - 36px));
    max-height: min(78vh, 680px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, .95);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .22);
}

.notice-modal__header {
    padding: 18px 24px 14px;
    border-bottom: 1px solid #dbeafe;
}

.notice-modal__kicker {
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.notice-modal__header h2 {
    margin: 0;
    color: #050505;
    font-size: 24px;
    font-weight: 900;
}

.notice-modal__body {
    overflow: auto;
    padding: 16px 24px 8px;
}

.notice-modal__content {
    padding: 10px 14px;
    color: #122235;
    background: #afd5fb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

.notice-modal__content p {
    margin: 0 0 8px;
}

.notice-modal__content p:last-child {
    margin-bottom: 0;
}

.notice-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 24px 18px;
}

.notice-modal__button {
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.notice-modal__button--ghost {
    border: 1px solid #bfdbfe;
    color: #111827;
    background: #fff;
}

.notice-modal__button--primary {
    border: 1px solid #000;
    color: #fff;
    background: #000;
}

.notice-modal__hint {
    flex-basis: 100%;
    text-align: right;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.item-detail .panel-body {
    overflow: hidden;
    padding: 4px 18px 18px;
    font-size: 14px;
    line-height: 1.75;
}

.item-detail .panel-body img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: 420px;
    margin: 10px auto;
    border-radius: 8px;
    object-fit: contain;
}

.item-detail .panel-body table {
    width: 100% !important;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .notice-modal {
        padding: 12px;
    }

    .notice-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 72px);
        border-radius: 14px;
    }

    .notice-modal__header,
    .notice-modal__body,
    .notice-modal__footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .notice-modal__header h2 {
        font-size: 22px;
    }

    .notice-modal__content {
        font-size: 13px;
    }

    .notice-modal__button {
        flex: 1 1 auto;
        padding: 0 14px;
    }

    .notice-modal__hint {
        text-align: center;
    }

    .item-detail .panel-body img {
        max-height: 280px;
    }
}
