.bgs-category-collection,
.bgs-category-collection * {
    box-sizing: border-box;
}

.bgs-category-collection {
    background: var(--bgs-category-section-bg, #fff);
    color: var(--bgs-category-content-text, #1a1a1a);
    padding-block: var(--bgs-category-section-padding, 40px);
}

.bgs-category-collection__inner {
    width: min(calc(100% - 32px), var(--bgs-category-max, 1200px));
    margin-inline: auto;
}

.bgs-category-collection__header {
    min-height: var(--bgs-category-header-height, 230px);
    padding: 34px var(--bgs-category-header-padding, 60px);
    border-radius: var(--bgs-category-header-radius, 12px);
    background: var(--bgs-category-header-bg, #f8cfe0);
    color: var(--bgs-category-header-text, #fff);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.bgs-category-collection__brand h2,
.bgs-category-collection__section-head h2,
.bgs-category-collection__product h3 {
    letter-spacing: 0;
    margin: 0;
}

.bgs-category-collection__brand h2 {
    color: inherit;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: .86;
}

.bgs-category-collection__brand span {
    display: block;
    margin-top: 8px;
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-size: .8rem;
    font-weight: 600;
}

.bgs-category-collection__message {
    text-align: right;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 400;
    line-height: 1.2;
}

.bgs-category-collection__message strong {
    display: block;
    color: inherit;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
}

.bgs-category-collection__message > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 24px;
    border-radius: 6px;
    background: var(--bgs-category-button-bg, #fff);
    color: var(--bgs-category-button-text, #1a1a1a);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bgs-category-collection__message > a:hover {
    color: var(--bgs-category-button-text, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.bgs-category-collection__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 38px 0 22px;
}

.bgs-category-collection__section-head h2 {
    color: var(--bgs-category-content-text, #1a1a1a);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 750;
}

.bgs-category-collection__section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 20px;
    border: 1px solid var(--bgs-category-shop-border, #1a1a1a);
    border-radius: 4px;
    color: var(--bgs-category-content-text, #1a1a1a);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.bgs-category-collection__section-head a:hover {
    background: var(--bgs-category-content-text, #1a1a1a);
    color: var(--bgs-category-section-bg, #fff);
}

.bgs-category-collection__grid {
    display: grid;
    grid-template-columns: repeat(var(--bgs-category-columns, 5), minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.bgs-category-collection__product {
    min-width: 0;
    text-align: center;
    transition: transform .2s ease;
}

.bgs-category-collection__product:hover {
    transform: translateY(-4px);
}

.bgs-category-collection__product-media {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.bgs-category-collection__product-media > a {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.bgs-category-collection__product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--bgs-category-product-image-radius, 12px 12px 0 0);
    display: block;
}

.bgs-category-collection__product-media .bgs-card__wishlist {
    top: 6px;
    right: 6px;
}

.bgs-category-collection__product h3 {
    min-height: 42px;
    color: var(--bgs-category-content-text, #1a1a1a);
    font-size: .85rem;
    font-weight: 550;
    line-height: 1.35;
}

.bgs-category-collection__product h3 a {
    color: inherit;
    text-decoration: none;
}

.bgs-category-collection__price {
    margin-top: 5px;
    color: var(--bgs-category-content-text, #1a1a1a);
    font-size: .9rem;
    font-weight: 700;
}

.bgs-category-collection__price del {
    opacity: .55;
    font-weight: 500;
}

.bgs-category-collection__price ins {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .bgs-category-collection__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bgs-category-collection__inner {
        width: min(calc(100% - 24px), var(--bgs-category-max, 1200px));
    }

    .bgs-category-collection__header {
        min-height: 0;
        padding: 28px 24px;
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .bgs-category-collection__message {
        text-align: center;
    }

    .bgs-category-collection__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .bgs-category-collection {
        padding-block: max(24px, calc(var(--bgs-category-section-padding, 40px) * .75));
    }

    .bgs-category-collection__brand h2 {
        font-size: 2.6rem;
    }

    .bgs-category-collection__message {
        font-size: 1.05rem;
    }

    .bgs-category-collection__message strong {
        font-size: 1.85rem;
    }

    .bgs-category-collection__section-head {
        margin-top: 28px;
    }

    .bgs-category-collection__product h3 {
        min-height: 38px;
        font-size: .78rem;
    }
}
