/* Product list sidebar & cards */

/* 一级产品列表 */
#product-tabs a.product-tab,
#product-tabs a.product-tab:link,
#product-tabs a.product-tab:visited,
.product-tab {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#product-tabs a.product-tab:hover,
.product-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

#product-tabs a.product-tab.is-current,
.product-tab.is-current {
    color: #001f46;
    background: #fff;
    border-color: #fff;
}

.products-shell {
    background: linear-gradient(180deg, #f9f9ff 0%, #f1f3ff 40%, #f9f9ff 100%);
}

.filter-aside-products {
    background: linear-gradient(165deg, #ffffff 0%, #f1f3ff 100%);
    border: 1px solid rgba(0, 31, 70, 0.12);
    box-shadow: 0 4px 24px -8px rgba(0, 31, 70, 0.1);
}

.category-details > summary::-webkit-details-marker {
    display: none;
}

.category-details > summary::marker {
    content: "";
}

.category-details[open] .category-arrow,
.category-toggle[data-open="true"] .category-arrow {
    transform: rotate(90deg);
}

.category-toggle--link {
    text-decoration: none;
}

.category-panel {
    overflow: hidden;
}

.cat-filter-link[data-active="true"],
.cat-filter-link.is-current,
.category-toggle.is-current {
    color: #001f46;
    font-weight: 600;
    background: rgba(0, 31, 70, 0.06);
}

.cat-filter-link:hover {
    color: #001f46;
}

.cat-sub-list .cat-filter-link[data-active="true"] {
    font-weight: 600;
    color: #001f46;
    background: transparent;
}

.cat-sub-link.is-current {
    color: #001f46;
    font-weight: 600;
}

.screen-chip {
    border: 1px solid rgba(0, 31, 70, 0.12);
    color: #4b5b71;
    background: rgba(255, 255, 255, 0.92);
    transition: all 0.2s ease;
}

.screen-chip:hover,
.screen-chip.is-current {
    color: #001f46;
    border-color: rgba(0, 31, 70, 0.22);
    background: rgba(0, 31, 70, 0.06);
}

.product-card[hidden] {
    display: none !important;
}

#product-empty {
    display: none;
}

#product-empty.is-visible {
    display: block;
}

.empty-state-config {
    border-color: rgba(0, 31, 70, 0.22);
    background: linear-gradient(180deg, rgba(0, 31, 70, 0.04), #ffffff);
}

.product-card__excerpt {
    min-height: 5.25rem;
}

.product-breadcrumb {
    color: #4b5b71;
    font-size: 0.95rem;
    line-height: 1.7;
}

.product-breadcrumb a {
    color: #001f46;
    transition: opacity 0.2s ease;
}

.product-breadcrumb a:hover {
    opacity: 0.78;
}

.product-detail-card {
    background: linear-gradient(165deg, #ffffff 0%, #f7f9ff 100%);
}

.product-gallery__thumb {
    display: block;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 31, 70, 0.12);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-gallery__thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 31, 70, 0.22);
    box-shadow: 0 12px 24px -18px rgba(0, 31, 70, 0.35);
}

.product-content {
    color: #334155;
    line-height: 1.9;
    font-size: 1rem;
}

.product-content > *:first-child {
    margin-top: 0;
}

.product-content > *:last-child {
    margin-bottom: 0;
}

.product-content h1,
.product-content h2,
.product-content h3,
.product-content h4,
.product-content h5,
.product-content h6 {
    color: #001f46;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
}

.product-content p,
.product-content ul,
.product-content ol,
.product-content table,
.product-content blockquote,
.product-content img {
    margin-bottom: 1rem;
}

.product-content ul,
.product-content ol {
    padding-left: 1.35rem;
}

.product-content ul {
    list-style: disc;
}

.product-content ol {
    list-style: decimal;
}

.product-content a {
    color: #001f46;
    text-decoration: underline;
}

.product-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.product-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1rem;
}

.product-content table th,
.product-content table td {
    border: 1px solid rgba(0, 31, 70, 0.12);
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.product-content table th {
    background: rgba(0, 31, 70, 0.05);
    color: #001f46;
}

.is-hidden {
    display: none !important;
}

/* Mobile — product list & detail */
@media (max-width: 767px) {
    .product-breadcrumb {
        font-size: 0.8125rem;
        line-height: 1.6;
        word-break: break-word;
    }

    .product-detail-card,
    .rounded-2xl.border.p-8.lg\:p-10 {
        padding: 1.25rem !important;
    }
}

@media (max-width: 639px) {
    .product-breadcrumb {
        font-size: 0.75rem;
    }
}
