$colorshtml {
    font-size: var(--rbstheme--typography-base-font-size);
}
@media (max-width: 576px) {
    html {
        font-size: var(--rbstheme--typography-base-font-size-xs);
    }
}

body {
    font-family: var(--rbstheme--typography-base-font-family);
    font-size: 1rem;
    line-height: var(--rbstheme--typography-base-line-height);
    letter-spacing: var(--rbstheme--typography-base-letter-spacing);
    font-weight: var(--rbstheme--typography-base-font-weight);
    background-color: var(--rbstheme--color-background);
    color: var(--rbstheme--color-foreground);
    margin: 0;
    padding: 0;
}

;



main {
    /*    padding: var(--rbstheme--layout-content-padding);*/
}


.REMOVE__main {
    background-color: var(--rbstheme--color-background);
    overflow: auto;
    padding: 0;
}


.REMOVE__main .rbstheme--heading-title {
    width: 100%;
    max-width: var(--rbstheme--unit-boxed-container-width);
    margin: var(--rbstheme--layout-container-margin);
/*    padding: var(--rbstheme--layout-container-padding); */
    box-sizing: border-box;
    padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left);
}

main p {
    margin: 0 0 var(--rbstheme--typography-paragraph-margin-bottom) 0;
    max-width: var(--rbstheme--typography-paragraph-max-width);
}
main > .wp-block-image {
    margin: 0 0 var(--rbstheme--typography-paragraph-margin-bottom) 0;
}
main .wp-block-group p {
    margin: unset;
    max-width: unset;
}

p {
    color: var(--rbstheme--color-foreground);
    margin: 0;
}
/*
main p {
    margin: 0 0 var(--rbstheme--typography-paragraph-margin-bottom) 0;
    max-width: var(--rbstheme--typography-paragraph-max-width);
}
*/

/*
h1, h2, h3, h4, h5, h6 {
    background-color: var(--rbstheme--color-secondary);
}
*/

h1 {
    font-family: var(--rbstheme--typography-heading-font-family);
    font-size: var(--rbstheme--typography-heading1-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-dark);
    margin: 0 0 var(--rbstheme--typography-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
h2 {
    font-family: var(--rbstheme--typography-subheading-font-family);
    font-size: var(--rbstheme--typography-heading2-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-dark);
    margin: 0 0 var(--rbstheme--typography-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
h3 {
    font-family: var(--rbstheme--typography-subheading-font-family);
    font-size: var(--rbstheme--typography-heading3-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-tertiary);
    margin: 0 0 var(--rbstheme--typography-base-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
h4 {
    font-family: var(--rbstheme--typography-subheading-font-family);
    font-size: var(--rbstheme--typography-heading4-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-tertiary);
    margin: 0 0 var(--rbstheme--typography-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
h5 {
    font-family: var(--rbstheme--typography-subheading-font-family);
    font-size: var(--rbstheme--typography-heading5-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-muted);
    margin: 0 0 var(--rbstheme--typography-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
h6 {
    font-family: var(--rbstheme--typography-subheading-font-family);
    font-size: var(--rbstheme--typography-heading6-font-size);
    line-height: var(--rbstheme--typography-heading-line-height);
    color: var(--rbstheme--color-muted);
    margin: 0 0 var(--rbstheme--typography-heading-margin-bottom) 0;
    max-width: var(--rbstheme--typography-heading-max-width);
}
a {
    color: var(--rbstheme--color-tertiary);
}
a:hover {
    color: var(--rbstheme--color-accent);
}


.rbstheme--wrapper,
.rbstheme--section,
.rbstheme--component {
    position: relative;
    box-sizing: border-box;
}

.rbstheme--container {
    box-sizing: border-box;
}
.rbstheme--container-full {
    width: 100%;
}
.rbstheme--container-boxed {
    width: 100%;
    max-width: var(--rbstheme--unit-boxed-container-width);
    margin: var(--rbstheme--layout-container-margin);
/*  padding: var(--rbstheme--layout-container-padding); */
}



.rbstheme--inner-section:not(:has(.rbstheme--inner-section)),
.rbstheme--inner-section:has(.rbstheme--inner-section) > .rbstheme--inner-section:first-child {
	display: flex;
	width: 100%;
	padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left);
    box-sizing: border-box;
}

/*
.rbstheme--container .rbstheme--section {
    padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left);
}
.rbstheme--container .rbstheme--container .rbstheme--section {}
.rbstheme--container .rbstheme--container .rbstheme--container .rbstheme--section{
    padding: 0;
}
*/

.rbstheme--section {
    box-sizing: border-box;
    margin: var(--rbstheme--layout-section-margin);
/*    padding: var(--rbstheme--layout-section-padding); */
    display: flex;
/*    align-items: center;*/
    gap: 1rem;
}

.rbstheme--section.rbstheme--no-padding > .rbstheme--inner-section {
    padding: 0;
}
.rbstheme--section.rbstheme--no-margin > .rbstheme--inner-section {
    margin: 0;
}
.rbstheme--section .rbstheme--section {}



.rbstheme--component {
/*
    display: flex;
    flex-direction: column;
    */
}
.rbstheme--component-flex-1 {
    flex: 1;
}


.rbstheme--component,
.rbstheme--component input,
.rbstheme--component textarea,
.rbstheme--component select {
    max-width: 100%;
    box-sizing: border-box;
}



/** (Main) Menu: **/
/* --- Menu Base --- */
.rbstheme--menu-wrapper {
    justify-content: end;
    display: flex;
}
.rbstheme--menu-container {
    background-color: var(--rbstheme--color-transparent);
}
.rbstheme--menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.rbstheme--menu li {
    position: relative;
}
.rbstheme--menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--rbstheme--color-foreground);;
    background-color: var(--rbstheme--color-secondary);;
    text-decoration: none;
    transition: background 0.3s;
    font-size: var(--rbstheme--typography-main-nav-root-font-size);
}
.rbstheme--menu li a:hover {
    color: var(--rbstheme--color-dark);
    background-color: var(--rbstheme--color-accent);
}

.rbstheme--menu .current-menu-item > a,
.rbstheme--menu .current_page_item > a {
    color: var(--rbstheme--color-light);
    background-color: var(--rbstheme--color-primary);
}
/* --- Submenus --- */
.rbstheme--menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--rbstheme--color-highlight);
    min-width: 200px;
    z-index: 10;
}
.rbstheme--menu li:hover > ul {
    display: block;
}
.rbstheme--menu li ul li a {
    color: var(--rbstheme--color-primary);
    background-color: var(--rbstheme--color-transparent);
    padding: 10px;
    font-size: var(--rbstheme--typography-main-nav-sub-font-size);
}
.rbstheme--menu li ul li a:hover {
    color: var(--rbstheme--color-transparent);
    background-color: var(--rbstheme--color-transparent);;
}
.rbstheme--menu li ul .current-menu-item > a,
.rbstheme--menu li ul .current_page_item > a {
    color: var(--rbstheme--color-light);
    background-color: var(--rbstheme--color-highlight);
}
/* --- Nested Submenus (Depth 3) --- */
.rbstheme--menu li ul li ul {
    top: 0;
    left: 100%;
}
/* --- Menu Toggle --- */
.rbstheme--menu-toggle {
    display: none;
    background: var(--rbstheme--color-primary);
    color: var(--rbstheme--color-dark);
    padding: 5px 8px;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}
.rbstheme--menu-toggle:hover {
    background: var(--rbstheme--color-accent);
    color: var(--rbstheme--color-dark);
}
@media (max-width: 1000px) {
    .rbstheme--menu-wrapper {
        position: relative; /* anchor the dropdown */
    }
    .rbstheme--menu-container {
        position: relative;
    }
    .rbstheme--menu {
        display: none; /* hidden by default */
        flex-direction: column;
        background-color: var(--rbstheme--color-transparent);
        position: absolute;
        top: 100%;   /* below the toggle button */
        right: 0;    /* align to right edge */
        left: auto;  /* prevent stretching from left */
        width: auto; /* shrink to content width */
        min-width: 200px; /* optional minimum width */
        z-index: 999;
    }
    .rbstheme--menu-toggle {
        display: block;
        margin-left: auto; /* push button to the right */
    }
    .rbstheme--menu.show {
        display: flex;
    }
}



/** TEST STYLING, for extra 'div' (still need further implmentation and fineetuning) **/
/**
.rbstheme--section-container {
    box-sizing: border-box;
}
.rbstheme--section-container-full {
    width: 100%;
}
.rbstheme--section-container-boxed {
    width: 100%;
    max-width: var(--rbstheme--layout-container-max-width);
    margin: var(--rbstheme--layout-container-margin);
}
*/





.rbstheme--dev-layout-label {
    position: absolute;
    font-size: 12px;
    padding: 3px;
    background: #fff;
    z-index: 10;
    border: 1px solid #000;
    top: 0;
    left: 0;
    line-height: 1;
    font-family: monospace;
}
.rbstheme--dev-layout-label span {
    font-size: 10px;
}
.rbstheme--dev-layout-label-layout {}
.rbstheme--dev-layout-label-wrapper {}
.rbstheme--dev-layout-label-section {}
.rbstheme--dev-layout-label-component {}






#rbstheme--direct-layout-edit {
    position: fixed;
    background: rgba(255,255,255,0.7);
    color: red;
    padding: 8px;
    border: 2px solid #ff0000;
    z-index: 1000;
    transform: translate(5px, 5px);
    border-radius: 10px;
}
#rbstheme--direct-layout-edit a {
    font-size: 12px;
    color: red;
    display: flex;
    gap: 5px;
    text-decoration: none;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ff0000;   
}
#rbstheme--direct-layout-edit a:hover {
    background-color: #ff0000;
    color: #ffffff;
}

/* Wrapper	#e0f7fa (light cyan)	#00acc1 (cyan)
Section	#f1f8e9 (light green)	#7cb342 (green)
Component	#fff3e0 (light orange)	#fb8c00 (orange)
Child Section	#fce4ec (light pink)	#d81b60 (pink) */





/*** AANPASSEN, en alleen "toevoegen" als (section) width NIET op 'boxed' staat >> dus alleen bij full width ***/
.wp-block-group {
    width: 100%;
    max-width: var(--rbstheme--unit-boxed-container-width);
    margin: var(--rbstheme--layout-container-margin);    
    /* padding: var(--rbstheme--layout-container-padding); */
   	/* padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left); */
    padding: 0;
    box-sizing: border-box;
    margin-bottom: var(--rbstheme--default-stack-space);
}


.wp-block-group.alignwide {
    width: 100%;
    max-width: var(--rbstheme--unit-wide-container-width);
}
.wp-block-group.alignfull {
    width: 100%;
    max-width: 100%;
    margin: 0;
/*    padding: 0;*/
    margin-bottom: var(--rbstheme--default-stack-space);
}


.REMOVE__wp-block-group.alignwide .wp-block-group__inner-container,
.REMOVE__wp-block-group.alignfull .wp-block-group__inner-container {
    width: 100%;
    max-width: var(--rbstheme--unit-boxed-container-width);
    margin: var(--rbstheme--layout-container-margin);
/*    padding: var(--rbstheme--layout-container-padding); */
    box-sizing: border-box;
}


.REMOVE__wp-block-group .wp-block-group__inner-container {
    padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left);
}




/*** Search Results: ***/
.rbstheme--search-results.rbstheme--search-result-show-thumbnail .rbstheme--search-result {
    display: flex;
    gap: 1rem;
}
.rbstheme--search-result-thumbnail {
    /*width: 25%;*/
    width: 150px;
    background-color: #fefefe;
}
.rbstheme--search-result-thumbnail img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}
.rbstheme--search-result-content {
    flex: 1;
}
.rbstheme--search-result {
    padding: var(--rbstheme--layout-section-padding-top) var(--rbstheme--layout-section-padding-right) var(--rbstheme--layout-section-padding-bottom) var(--rbstheme--layout-section-padding-left);
    margin-bottom: var(--rbstheme--unit-);
}
.rbstheme--search-result:nth-child(even) {
    background-color: var(--rbstheme--color-transparent);
}
.rbstheme--search-result:nth-child(odd) {
    background-color: var(--rbstheme--color-transparent);
}


.rbstheme--search-footer {
    text-align: center;
}
.rbstheme--search-footer .rbstheme--search-num-of-results p {
    margin: 0;
}
.rbstheme--search-pagination .nav-links {
    font-size: 1.5rem;      /* create typography setting */
}



.rbstheme--back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: ;
    color: var(--rbstheme--color-foreground);
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.rbstheme--back-to-top:hover {
    opacity: 1;
}

.rbstheme--image {
    max-width: 100%;
}



/** Button: **/
.wp-element-button,
.wp-block-button__link,
.wp-block-button a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.add_to_cart_button,
.woocommerce .add_to_cart_button {
    padding: var(--rbstheme--default-button-padding);
    margin: var(--rbstheme--default-button-margin);
    min-width: var(--rbstheme--default-button-min-width);
    min-height: var(--rbstheme--default-button-min-height);
    font-size: var(--rbstheme--default-button-font-size);
    color: var(--rbstheme--color-dark);
    background: var(--rbstheme--color-primary);
    text-decoration: none;
    transition: 0.6s;
    border: none;
    cursor: pointer;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-button a:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.button:hover,
.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.add_to_cart_button:hover,
.woocommerce .add_to_cart_button:hover {
    color: var(--rbstheme--color-dark);
    background: var(--rbstheme--color-accent);
    text-decoration: none;
}
