/**
 * Dynamic Brand Shortcode Styles
 *
 * Brand index grid (/brand/) and brand banner (/brand/<slug>/).
 * Product table styling is inherited from dynamic-subfamily.css.
 */

/* === BRAND INDEX (LOGO CLOUD) === */
.brand-index-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px 56px;
    padding: 56px 24px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (min-width: 1520px) {
    .brand-index-grid {
        max-width: 1600px;
    }
}

.brand-index-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-index-grid:hover .brand-index-card:not(:hover) {
    opacity: 0.45;
}

.brand-index-card:hover {
    transform: scale(1.06);
}

.brand-index-card-logo {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-index-card-fallback {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #555;
    padding: 12px 4px;
    line-height: 1.2;
}

/* === BRAND BANNER (single brand page) === */
.dynamic-subfamily-banner.brand-banner {
    gap: 28px;
}

.brand-banner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 90px;
}

.brand-banner-logo img {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* === BREADCRUMB SPACING === */
.wc-block-breadcrumbs {
    padding-top: 18px;
    padding-bottom: 4px;
}

.brand-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .brand-index-grid {
        gap: 28px 32px;
        padding: 32px 16px;
    }

    .brand-index-card-logo {
        max-height: 48px;
        max-width: 130px;
    }

    .brand-index-card-fallback {
        font-size: 12px;
    }

    .dynamic-subfamily-banner.brand-banner {
        padding: 20px 16px;
    }

    .brand-banner-logo img {
        max-height: 70px;
        max-width: 220px;
    }
}
