.nb-child-banner {
    height: 300px;
}

.nb-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nb-brand-card {
    border: 1px solid var(--theme-border-color, #eee);
    border-radius: var(--theme-border-radius-l, 4px);
    overflow: hidden;
    background: #fff;
}

.nb-brand-cover {
    display: block;
    position: relative;
    height: 150px;
    background: #f7f7f7;
    overflow: hidden;
}

.nb-brand-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-brand-logo {
    position: absolute;
    left: 16px;
    bottom: 12px;
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.nb-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-brand-content {
    padding: 16px;
}

.nb-brand-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
}

.nb-brand-content p {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.nb-card-meta {
    display: flex;
    gap: 12px;
    color: #999;
    font-size: 13px;
}

.nb-brand-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--theme-border-color, #eee);
    border-radius: var(--theme-border-radius-l, 4px);
    background: #fafafa;
}

.nb-brand-profile img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
}

.nb-brand-profile strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.nb-brand-profile p {
    margin: 0 0 6px;
    color: #666;
}

.nb-product-hero {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 24px;
    margin: 0 0 26px;
    padding: 20px;
    border: 1px solid var(--theme-border-color, #eee);
    border-radius: var(--theme-border-radius-l, 4px);
    background: #fff;
}

.nb-product-media,
.nb-product-summary {
    min-width: 0;
}

.nb-product-media-main {
    overflow: hidden;
    border-radius: var(--theme-border-radius-l, 4px);
}

.nb-product-media-main img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--theme-border-radius-l, 4px);
}

.nb-product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.nb-product-gallery-item {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s ease-out;
}

.nb-product-gallery-item img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.nb-product-gallery-item:hover {
    border-color: var(--theme-color, #2e9d3e);
    opacity: 0.9;
}

.nb-product-gallery-item.active {
    border-color: var(--theme-color, #2e9d3e);
}

.nb-product-subtitle {
    margin: 0 0 14px;
    color: #555;
    line-height: 1.8;
}

.nb-meta-table {
    border-top: 1px solid var(--theme-border-color, #eee);
}

.nb-meta-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-border-color, #eee);
    font-size: 14px;
}

.nb-meta-row span {
    color: #999;
}

.nb-meta-row strong {
    color: #333;
    font-weight: 500;
}

.nb-product-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.nb-qa-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--theme-border-color, #eee);
    list-style: none;
}

.nb-qa-categories li {
    margin: 0;
}

.nb-qa-categories a {
    color: #333;
}

.nb-qa-categories a:hover {
    color: var(--theme-color, #3f8f00);
}

.nb-qa-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nb-qa-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--theme-border-color, #eee);
}

.nb-qa-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.nb-qa-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
}

.nb-qa-meta,
.nb-qa-counts {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.nb-qa-counts {
    gap: 12px;
    white-space: nowrap;
}

.nb-widget-qa-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nb-widget-qa-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--theme-border-color, #eee);
}

.nb-widget-qa-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nb-widget-qa-list span {
    color: #999;
    font-size: 12px;
}

.nb-qa-stats ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nb-qa-stats li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--theme-border-color, #eee);
}

@media (max-width: 991px) {
    .nb-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nb-product-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .nb-brand-grid {
        grid-template-columns: 1fr;
    }

    .nb-qa-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .nb-qa-counts {
        grid-column: 2;
    }

    .nb-product-hero {
        padding: 14px;
    }
}

