:root {
    --xq-product-image-ratio: 533 / 300;
    --xq-product-thumb-pc-width: 110px;
    --xq-product-thumb-pc-width-md: 96px;
    --xq-product-thumb-mobile-width: 96px;
    --xq-product-thumb-mobile-width-sm: 88px;
    --xq-product-thumb-radius: 8px;
    --xq-product-thumb-bg: #f8f9fa;
}

.classic-category-page {
    margin-top: 16px;
}

.classic-category-page .group-section--single {
    display: block;
    margin-bottom: 0;
}

.classic-category-page .classic-category-info-row {
    margin-bottom: 0;
}

.classic-category-page .classic-category-info-row + .group-section--single {
    margin-top: 16px;
}

.classic-category-page .xq-classic-category-group {
    margin: 0;
}

.classic-category-page .xq-classic-category-head,
.classic-category-page .xq-classic-category-body {
    width: 100%;
}

.classic-category-page .xq-classic-category-title {
    display: inline-block;
    width: 100%;
    border-radius: .5rem .5rem 0 0;
    padding: 10px 0;
    margin: 0;
    background-color: #4f7a7a;
    border-color: #4f7a7a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: none;
}

.classic-category-page .xq-classic-category-body {
    background: #fff;
}

.classic-category-page .xq-classic-category-table {
    margin-bottom: 0 !important;
    border-collapse: collapse;
}

.classic-category-page .xq-classic-category-table thead th {
    height: 48px;
    border-top: 0 !important;
}

.classic-category-page .xq-classic-category-row:hover {
    background-color: #b0acac;
    transition: background-color .2s ease;
}

.classic-category-page .xq-classic-table-user {
    min-width: 0;
}

.classic-category-page .xq-classic-table-user > a,
.classic-category-page .xq-classic-table-user > span {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.classic-category-page .xq-classic-table-user a:hover {
    text-decoration: none;
}

.classic-category-page .xq-classic-table-thumb {
    display: block;
    flex: 0 0 var(--xq-product-thumb-pc-width);
    width: var(--xq-product-thumb-pc-width) !important;
    max-width: var(--xq-product-thumb-pc-width) !important;
    height: auto !important;
    aspect-ratio: var(--xq-product-image-ratio);
    object-fit: contain;
    object-position: center center;
    border-radius: 6px;
    background: var(--xq-product-thumb-bg);
    margin-right: 0 !important;
}

.classic-category-page .xq-classic-stock-badge {
    background: none;
    color: #000000;
}

.classic-category-page .xq-classic-inline-disabled {
    color: #6c757d;
}

.classic-category-page .classic-category-info-card {
    margin-top: 16px;
    margin-bottom: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

.classic-category-page .classic-category-info-card--seo {
    margin-top: 0;
}

.classic-category-page .classic-category-seo-head {
    padding: 16px;
}

.classic-category-page .classic-category-seo-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 800;
    color: #111827;
}

.classic-category-page .classic-category-seo-summary {
    margin-top: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
}

.classic-category-page .classic-category-section-head {
    margin: 0;
    padding: 16px 16px 10px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
}

.classic-category-page .classic-category-copy {
    padding: 0 16px 16px;
    color: #222;
    font-size: 14px;
    line-height: 1.9;
}

.classic-category-page .classic-category-copy p {
    margin: 0 0 12px;
}

.classic-category-page .classic-category-copy p:last-child {
    margin-bottom: 0;
}

.classic-category-page .classic-category-article-list {
    padding: 0 16px 16px;
}

.classic-category-page .classic-category-article-item {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fff;
    padding: 12px 14px;
}

.classic-category-page .classic-category-article-item + .classic-category-article-item {
    margin-top: 10px;
}

.classic-category-page .classic-category-article-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
}

.classic-category-page .classic-category-article-title a {
    color: #3b82f6;
    text-decoration: none;
}

.classic-category-page .classic-category-article-title a:hover {
    color: #2563eb;
    text-decoration: none;
}

.classic-category-page .classic-category-article-summary {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
}

.classic-category-page .classic-category-article-summary:hover {
    color: #4b5563;
    text-decoration: none;
}

.classic-category-page .classic-category-empty {
    padding: 0 16px 16px;
    font-size: 14px;
    color: #6b7280;
}

@media (min-width: 768px) {
    .classic-category-page .xq-classic-category-body {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        overflow: hidden;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .classic-category-page .xq-classic-table-thumb {
        flex-basis: var(--xq-product-thumb-pc-width-md);
        width: var(--xq-product-thumb-pc-width-md) !important;
        max-width: var(--xq-product-thumb-pc-width-md) !important;
    }
}

@media (max-width: 767.98px) {
    .classic-category-page {
        margin-top: 10px;
    }

    .classic-category-page .group-section--single {
        margin-left: 0;
        margin-right: 0;
    }

    .classic-category-page .xq-classic-category-group {
        padding: 0 2px;
    }

    .classic-category-page .classic-category-info-row + .group-section--single {
        margin-top: 12px;
    }

    .classic-category-page .classic-category-info-card {
        margin-top: 12px;
        border-radius: 5px;
        margin-left: 2px;
        margin-right: 2px;
    }

    .classic-category-page .xq-classic-category-title {
        font-size: 1rem;
    }

    .classic-category-page .xq-classic-category-body {
        padding: 10px 1px 10px 1px !important;
    }

    .classic-category-page .classic-category-seo-head {
        padding: 14px;
    }

    .classic-category-page .classic-category-seo-title {
        font-size: 17px;
        line-height: 1.4;
    }

    .classic-category-page .classic-category-seo-summary {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.75;
    }

    .classic-category-page .classic-category-section-head {
        padding: 12px 14px 8px;
        font-size: 15px;
    }

    .classic-category-page .classic-category-copy,
    .classic-category-page .classic-category-article-list,
    .classic-category-page .classic-category-empty {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 14px;
    }

    .classic-category-page .classic-category-article-item {
        padding: 11px 12px;
    }

    .classic-category-page .xq-classic-mobile-card {
        border: 1px solid #e9ecef;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
        margin: 0 0 10px;
        background: #fff;
    }

    .classic-category-page .xq-classic-mobile-link {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 5px 5px;
    }

    .classic-category-page .xq-classic-mobile-link--disabled {
        cursor: not-allowed;
        color: #6c757d;
    }

    .classic-category-page .xq-classic-mobile-thumb {
        flex: 0 0 var(--xq-product-thumb-mobile-width);
        width: var(--xq-product-thumb-mobile-width);
        max-width: var(--xq-product-thumb-mobile-width);
        display: block;
        overflow: hidden;
        line-height: 0;
        border-radius: var(--xq-product-thumb-radius);
        background: var(--xq-product-thumb-bg);
    }

    .classic-category-page .xq-classic-mobile-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var(--xq-product-image-ratio);
        object-fit: contain;
        object-position: center center;
        border-radius: var(--xq-product-thumb-radius);
        background: var(--xq-product-thumb-bg);
    }

    .classic-category-page .xq-classic-mobile-main {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .classic-category-page .xq-classic-mobile-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #212529;
        font-size: 15px;
        line-height: 1.35;
        word-break: break-word;
        min-height: 40px;
    }

    .classic-category-page .xq-classic-mobile-badges {
        display: grid;
        grid-template-columns:
            var(--classic-mobile-badge-type-width, 1fr)
            var(--classic-mobile-badge-price-width, 1fr)
            var(--classic-mobile-badge-stock-width, 1fr)
            var(--classic-mobile-badge-promo-width, 1fr);
        gap: 6px;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .classic-category-page .xq-classic-mobile-badge-slot {
        min-width: 0;
    }

    .classic-category-page .xq-classic-mobile-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 24px;
        padding: 0 6px;
        border-radius: 4px;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        box-sizing: border-box;
    }

    .classic-category-page .xq-classic-mobile-badge--auto { background: #34c38f; }
    .classic-category-page .xq-classic-mobile-badge--manual { background: #f59e0b; }
    .classic-category-page .xq-classic-mobile-badge--price { background: #ff6b6b; }
    .classic-category-page .xq-classic-mobile-badge--stock { background: #3b82f6; }
    .classic-category-page .xq-classic-mobile-badge--stock-empty { background: #94a3b8; }
    .classic-category-page .xq-classic-mobile-badge--promo { background: #f4b400; }
    .classic-category-page .xq-classic-mobile-badge--placeholder { visibility: hidden; }
}

@media (max-width: 575.98px) {
    .classic-category-page .xq-classic-mobile-thumb {
        flex-basis: var(--xq-product-thumb-mobile-width-sm);
        width: var(--xq-product-thumb-mobile-width-sm);
        max-width: var(--xq-product-thumb-mobile-width-sm);
    }
}
