
/** PRODUCT HEADER **/

#product header {
    margin-bottom: 4rem;
}

#product header > .category {
    border-bottom: 1px solid #E9E9E9;
    display: flex;
    justify-content: center;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

#product header > .category > button {
    background-color: #F02004;
    border-radius: 5rem;
    color: #FFFFFF;
    padding: 1.3rem 2.5rem;
}

#product header > .articles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#product header > .articles > h4 {
    margin-bottom: 1rem;
    white-space: nowrap;
}

#product header > .articles > .directory {
    color: #A9A9A9;
}

#product header > .order {
    display: flex;
    margin-top: 2rem;
}

/** PRODUCT FOOTER **/

#product footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 5rem 8% 3rem 8%;
}

#product footer button {
    background-color: #E9E9E9;
    border-radius: 3rem;
    line-height: 5rem;
    flex-shrink: 0;
    text-align: center;
    height: 5rem;
    width: 5rem;
	-webkit-transition: background 0.25s ease;
	-moz-transition: background 0.25s ease;
	-o-transition: background 0.25s ease;
    transition: background 0.25s ease;
}

#product footer button:hover {
    background-color: #C9C9C9;
}

/** Product footer: pages **/

#product footer > .pages {
    display: flex;    
    flex-wrap: wrap;
    gap: 1rem;
    justify-content:space-evenly;
    overflow: hidden;
    max-height: 5rem;
    max-width: 35rem;
}

#product footer .page {
    background-color: #F02004;
    color: #FFFFFF;
}

#product footer .page:hover {
    background-color: #F02004;
}

/** Product footer: control **/

#product footer > .control {
    align-items: center;
    display: flex;
    justify-content: center;
}

#product footer > .control > svg {
    height: 30%;
    position: relative;
}

#product footer > .back_page > svg {
    right: 5%;
}

#product footer > .next_page > svg {
    left: 5%;
}

#product footer > .disable {
    opacity: 0.4;
    pointer-events: none;
}

/** PRODUCT CATEGORIES **/

#categories {
    max-width: 40rem;
    width: 100%;
}

#categories .title {
    font-size: 2.5rem;
    padding-bottom: 2rem;
    text-align: center;
}

#categories .close {
    margin: 3rem auto 0 auto;
}

#categories .collapsed {
    height: 0 !important;
    opacity: 0;
}

#categories .collapsible {
    display: flex;
    align-items: center;
}

#categories .collapsible > div {
    display: flex;
    align-items: center;
    width: 100%;
}

#categories .collapsible > .expand {
    background-image: url("../../svg/collapsed.svg");
    background-repeat: no-repeat;
    background-size: 30%;
    background-position: center;
    flex-shrink: 0;
    height: 2rem;
    width: 2rem;
}

#categories .collapsible > .expanded {
    background-image: url("../../svg/uncollapsed.svg");
    background-size: 53%;
}

#categories .collapsible h3 {
    display: block;
    font-weight: bold;
}

#categories .collapsible span {
    display: block;
    flex-shrink: 0;
    padding: 1.2rem 0.7rem 1.2rem 0;
}

#categories .collapsible span > div {
    background-color: #E9E9E9;
    border-radius: 1rem;
    vertical-align: middle;
    height: 1.8rem;
	width: 1.8rem;
    -webkit-transition: background 0.25s ease;
	-moz-transition: background 0.25s ease;
	-o-transition: background 0.25s ease;
	transition: background 0.25s ease;
}

#categories .collapsible span:hover > div {
    background-color: #C9C9C9;
}

#categories .collapsible .checked > div {
    background-color: #F02004;
    background-image: url("../../svg/checkbox.svg");
	background-position: center;
	background-size: 60% auto;
    -webkit-transition: none;
	-moz-transition: none;
	-o-transition: none;
	transition: none;
}

#categories .collapsible .checked:hover > div {
    background-color: #F02004;
}

#categories form > fieldset {
    border-bottom: 1px dashed #E9E9E9;
}

#categories form > fieldset > legend {
    border-top: 1px dashed #E9E9E9;
    cursor: pointer;
    width: 100%;
}

#categories form fieldset > fieldset {
    overflow: hidden;
    padding-left: 2rem;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

#categories form fieldset > fieldset > label {
    display: block;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

/** NO PRODUCTS **/

#product .no_products {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 0;
}

#product .no_products > img {
    opacity: 0.15;
    max-width: 20rem;
    width: 30%;
}

#product .no_products > p {
    font-size: 2.2rem;
    line-height: 2.8rem;
    margin-top: 3rem;
    opacity: 0.4;
    text-align: center;
}

/** RESPONSIVE **/

@media (max-width: 1250px) {

    body > main .max_width {
        max-width: none;
    }

    body > main .container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 850px) {
 
    body > main .container {
        padding: 4rem 2rem;
    }
}

@media (max-width: 550px) {

    #product header > .articles {
        align-items: center;
        flex-direction: column;
    }

    #product header > .order {
        justify-content: center;
    }

    #product header > .order .list {
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-user-transform: translateX(-50%);
	    -ms-user-transform: translateX(-50%);
	    -o-user-transform: translateX(-50%);
        transform: translateX(-50%);
    }

    #product .no_products {
        padding: 5rem 0;
    }
}