/* ─────────────────────────────────────────────
 * The Keepers – WC Product Collection Group by Brand
 * Front-end styles
 *
 * Only the brand grouping wrapper and headers are styled here.
 * Product items inside each group retain their original markup,
 * classes, and styles from WooCommerce / the active theme.
 * ───────────────────────────────────────────── */
.tkpcgb-grouped-products {
    width: 100%;
}
/* ── Brand group ── */
.tkpcgb-brand-group {
    margin-bottom: 5rem;
}
.tkpcgb-brand-group:last-child {
    margin-bottom: 0;
}
/* ── Brand header ── */
.tkpcgb-brand-header {
    margin-bottom: 1.75rem;
}
.tkpcgb-brand-name {
    margin: 0 0 0.75rem;
    font-family: var(--wp--preset--font-family--domaine-display);
    font-size: var(--wp--preset--font-size--heading-h-2);
}
/* Brand name link: invisible styling (inherits color, no underline) */
.tkpcgb-brand-name-link {
    color: inherit;
    text-decoration: none;
}
.tkpcgb-brand-name-link:hover,
.tkpcgb-brand-name-link:focus {
    color: inherit;
    text-decoration: none;
}
/* ── Brand meta line ── */
.tkpcgb-brand-meta {
    margin: 0 0 0.75rem;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    letter-spacing: 2px;
}
.tkpcgb-brand-description {
    margin: 0;
    color: var(--wp--preset--color--custom-primary-80);
    
    @media (min-width: 992px) {
    	max-width: 66.66%;
    }
}
/* ── Read more link ── */
.tkpcgb-brand-readmore {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    text-decoration: none;
    
    &:hover {
	    text-decoration: underline;
    }
}
/* ── Inline variant: brand info as first grid item ── */
.tkpcgb-brand-info-item {
    list-style: none;
    display: flex;
    align-items: flex-start;
    padding: 0;
    
    @media (max-width: 991px) {
	    grid-column: 1 / -1 !important;
	}
}
.tkpcgb-brand-info-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.tkpcgb-brand-info-item .tkpcgb-brand-name {
    margin: 0 0 0.75rem;
}
.tkpcgb-brand-info-item .tkpcgb-brand-name,
.tkpcgb-brand-info-item .tkpcgb-brand-name a {
    font-family: var(--wp--preset--font-family--domaine-display);
    font-size: var(--wp--preset--font-size--heading-h-2);
}
.tkpcgb-brand-info-item .tkpcgb-brand-description {
    margin: 0;
    max-width: 100%;
}
/* ── Brand image as grid item ── */
.tkpcgb-brand-image-item {
    list-style: none;
    padding: 0;
    overflow: hidden;
    
    @media (max-width: 991px) {
	    grid-column: 1 / -1 !important;
	}
}
.tkpcgb-brand-image-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.tkpcgb-brand-image-item .tkpcgb-brand-image {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
/* Image caption overlay with gradient */
.tkpcgb-brand-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-size: 0.8125em;
    line-height: 1.4;
}
