/* Product list specific styles */ .product-grid .image > .product-badge {
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: calc(100% + 10px);
    padding: 0;
    pointer-events: none;
}
.product-grid .image > .product-badge .text {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: none;
}
@media (max-width: 360px) {
    .product-grid .image > .product-badge {
        top: -10px;
        left: 0;
    }
    .product-grid .image > .product-badge .text {
        padding: 2px 6px;
        font-size: 12px;
    }
}
/* Brand-filtered product list */ #product-category .product-brand-heading {
    display: flex;
    gap: 14px;
    min-height: 76px;
    margin: 0 0 18px;
    padding: 10px 14px;
    align-items: center;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
}
#product-category .product-brand-heading img {
    width: 100px;
    height: 55px;
    object-fit: contain;
}
#product-category .product-brand-heading div {
    display: flex;
    flex: 1;
    flex-direction: column;
}
#product-category .product-brand-heading span {
    color: #888;
    font-size: 12px;
}
#product-category .product-brand-heading strong {
    color: #333;
    font-size: 18px;
}
#product-category .product-brand-heading > a {
    color: #d4a30f;
    white-space: nowrap;
}
#product-category .product-brand-empty {
    margin: 12px 0 30px;
    padding: 54px 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #777;
    text-align: center;
}
#product-category .product-brand-empty .fa {
    margin-bottom: 8px;
    color: #bbb;
    font-size: 18px;
}
#product-category .product-brand-empty h3 {
    margin: 6px 0;
    color: #444;
    font-size: 18px;
}
#product-category .product-brand-empty p {
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    #product-category .product-brand-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    #product-category .product-brand-heading img {
        width: 80px;
        height: 44px;
    }
    #product-category .product-brand-heading > a {
        width: 100%;
        padding-left: 94px;
    }
}
/* Related brands */ #product-category .related-brands {
    margin: 8px 0 24px;
}
#product-category .related-brands, #product-category .related-brands * {
    box-sizing: border-box;
}
#product-category .related-brands__header {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
}
#product-category .related-brands__header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
#product-category .related-brands__header > a {
    color: #d4a30f;
    font-size: 14px;
    text-decoration: none;
}
#product-category .related-brands__header > a:hover {
    text-decoration: underline;
}
#product-category .related-brands__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
#product-category .related-brand-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
#product-category .related-brand-card:hover, #product-category .related-brand-card:focus {
    border-color: #d4a30f;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
    color: #d4a30f;
    text-decoration: none;
    transform: translateY(-2px);
}
#product-category .related-brand-card__image {
    display: flex;
    width: 100%;
    aspect-ratio: 212 / 116;
    padding: 10px;
    align-items: center;
    justify-content: center;
    background: #fff;
}
#product-category .related-brand-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#product-category .related-brand-card__name {
    display: flex;
    min-height: 38px;
    padding: 8px 6px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
@media (max-width: 1199px) {
    #product-category .related-brands__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 991px) {
    #product-category .related-brands__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    #product-category .related-brands {
        margin-bottom: 20px;
    }
    #product-category .related-brands__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    #product-category .related-brand-card__image {
        padding: 8px;
    }
    #product-category .related-brand-card__name {
        min-height: 34px;
        padding: 6px 4px;
        font-size: 12px;
        line-height: 18px;
    }
}
@media (max-width: 480px) {
    #product-category .related-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Recursive WooCommerce category tree shown above product archives. */ #product-category .catalog-descendants {
    margin: 0 0 22px;
}
#product-category .catalog-descendants__header {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
}
#product-category .catalog-descendants__header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
#product-category .catalog-descendants .child-categories {
    align-items: stretch;
}
#product-category .catalog-descendants .child-categories__cell {
    display: flex;
}
#product-category .catalog-descendants .catalog-section {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}
#product-category .catalog-descendants .catalog-section__caption {
    flex: 1 0 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 8px;
}
#product-category .catalog-descendants .catalog-section__meta {
    display: flex;
    width: 100%;
    min-height: 28px;
    padding: 5px 8px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #e8e8e8;
    background: #fff;
    color: #999;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}
#product-category .catalog-descendants .catalog-section__meta span {
    flex: 0 0 auto;
    color: #d4a30f;
    font-weight: 600;
}
#product-category .catalog-descendants .catalog-section__meta small {
    min-width: 0;
    overflow: hidden;
    color: #888;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Level-4 cards remain full-size but get a subtle visual distinction. */ #product-category .catalog-descendants .catalog-section--level-4 {
    background: #fafafa;
}
#product-category .catalog-descendants .catalog-section--level-4 .catalog-section__caption {
    font-weight: 500;
}
@media (max-width: 767px) {
    #product-category .catalog-descendants {
        margin-bottom: 18px;
    }
    #product-category .catalog-descendants__header h3 {
        font-size: 16px;
    }
    #product-category .catalog-descendants .catalog-section__caption {
        font-size: 13px;
        font-weight: 500;
        margin-top: 6px;
    }
    #product-category .catalog-descendants .catalog-section__meta {
        display: block;
        min-height: 0;
        padding: 4px 5px;
        line-height: 16px;
    }
    #product-category .catalog-descendants .catalog-section__meta small {
        display: block;
    }
}
