/**
 * @desc Correct full-bleed Shop/Hobby backgrounds and semantic main content gutters.
 * @scope Shop archive and Hobby landing page only.
 * @note Use existing --ct-page-gutter breakpoints; avoid modifying other templates.
 */
.ct-shop-archive-main,
.ct-hobby-landing-main,
.ct-shop-archive-content,
.ct-hobby-landing-main > .ct-hobby-page-content {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-block-start: 0;
}
.ct-shop-archive-main,
.ct-hobby-landing-main,
.ct-shop-archive-content,
.ct-hobby-landing-main > .ct-hobby-page-content {
    background-color: var(--wp--preset--color--base, #f4f4f4);
}
.ct-shop-archive-main > .wp-block-cover,
.ct-hobby-landing-main > .wp-block-cover {
    width: 100%;
    max-width: none;
    margin-block-start: 0;
}
/* Override the old 150px wrapper gutter so grey backgrounds reach the edges. */
.ct-hobby-landing-main > .ct-hobby-page-content.ct-standard-page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Content sections own their horizontal gutters, while their backgrounds remain full-width. */
.ct-shop-archive-content .ct-registration-page,
.ct-shop-archive-content .ct-shop-category-heading,
.ct-shop-archive-content .ct-main-shop-categories,
.ct-hobby-landing-main .ct-hobby-categories,
.ct-hobby-landing-main .ct-hobby-featured,
.ct-hobby-landing-main .ct-hobby-benefits-section {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-left: var(--ct-page-gutter, 150px) !important;
    padding-right: var(--ct-page-gutter, 150px) !important;
}
.ct-shop-archive-content .ct-registration-page,
.ct-shop-archive-content .ct-shop-category-heading,
.ct-shop-archive-content .ct-main-shop-categories,
.ct-hobby-landing-main .ct-hobby-categories,
.ct-hobby-landing-main .ct-hobby-benefits-section {
    background-color: var(--wp--preset--color--base, #f4f4f4) !important;
}

/*
 * @desc Prevent the featured Hobby card from exceeding its container.
 * @note Its original CSS supplies horizontal margins; 100% width plus margins
 *       exceeded the viewport. Retain its white card and internal gutters.
 */
.ct-hobby-landing-main .ct-hobby-featured {
    width: auto;
    max-width: none;
    margin-left: var(--ct-page-gutter, 150px);
    margin-right: var(--ct-page-gutter, 150px);
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/*
 * @desc Add space below the dynamic Shop category grid inside the grey section.
 * @note Padding on the wrapper preserves the full-width grey background.
 */
.ct-shop-archive-content .ct-main-shop-categories-wrapper {
    padding-bottom: 70px;
    background-color: var(--wp--preset--color--base, #f4f4f4);
}
