
/** HEADER **/

body > header {
    position: fixed;
    width: 100%;
    z-index: 3;
}

body > header .max_width {
    align-items: flex-end;
    display: flex;
    padding: 2rem;
}

body > header #extended {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body > header .fold {
    display: none;
}

/** Header: Background **/

body > header > #header {
    background-color: #FFFFFF;
}

body > header > .border {
    background-image: url(../../svg/borde_ondulado_h.svg);
    background-position-x: center;
    background-repeat: repeat-x;
    background-size: 10rem;
    height: 3rem;
    position: relative;
    top: -2px;
    width: 100%;
    z-index: -1;
}

body > header > .list_items {
    display: none;
}

/** Header: Logo **/

body > header .v_logo {
    flex-shrink: 0;
    height: 11rem;
}

body > header .h_logo {
    flex-shrink: 0;
    height: 6rem;
}

/** Header: Searcher **/

body > header .searcher > .input div {
    position: relative;
}

body > header .searcher > .input > input {
    margin-right: 1.1rem;
}

body > header .searcher > .input input[type=submit] {
    background-color: unset;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/** Header: Menu **/

body > header .pages > a {
    font-weight: 500;
    font-size: 1.6rem;
    padding: 1.5rem 0;
}

body > header .pages > .active {
    color: #F02004;
}

/** Header: Button icon **/

body > header #menu > .icon {
    padding: 1rem;
    position: relative;
}

body > header #menu > .icon svg  {
    fill: #F0200400;
    height: 3rem;
    transition: all 0.5s;
}

body > header #menu > .icon:hover svg, body > header .visible svg {
    color: #F02004;
    fill: #F0200415;
}

body > header #menu > .button {
    position: relative;
}

body > header #menu > .button .value {
    background-color: #F02004;
    border-radius: 1rem;
    bottom: 0;
    color: #FFFFFF;
    font-size: 1.3rem;
    height: 1.7rem;
    line-height: 1.7rem;
    min-width: 1.7rem;
    padding: 0 0.5rem;
    position: absolute;
    right: 0;
    text-align: center;
}

body > header #menu > .button .void_value {
    display: none;
}

/** RESUME BOX **/

body > header .resume_box {
    background-color: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: 2rem;
    box-shadow: 0.1rem 0.1rem 0.4rem 0.05rem rgba(0,0,0,0.05);
    min-height: 15rem;
    padding: 2rem;
    width: 30rem;
}

/** Resume box: Login **/

body > header .account_box > h3 {
    border-bottom: 1px dashed #E9E9E9;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 2rem 0 1.5rem 0;
    text-align: center;
}

body > header .account_box > .login {
    margin-top: 1.5rem;
}

body > header .account_box .pass > div {
    padding: 1.3rem 0 1.3rem 1.5rem;
}

body > header .account_box .submit {
    margin: 2.5rem auto;
}

body > header .account_box > a {
    font-size: 1.3rem;
    padding: 0.5rem 0;
    text-align: center;
}

body > header .account_box > a:hover {
    color: #F02004;
}

/** Resume box: Account **/

body > header .invoices {
    font-size: 1.3rem;
    line-height: 1.6rem;
    padding: 0.75rem 0;
}

body > header .invoices .order {
    align-items: center;
    border-radius: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 0.75rem;
}

body > header .invoices .order:hover {
    background-color: #F9F9F9;
}

body > header .invoices .order > div:last-child {
    text-align: end;
}

body > header .invoices .number {
    font-weight: bold;
}

body > header .invoices .total {
    color: #A9A9A9;
}

/** Resume box: Account > Status **/

body > header .invoices .status_0 {
    color: #A9A9A9;
}

body > header .invoices .status_1 {
    color: #F0B104;
}

body > header .invoices .status_2 {
    color: #04ADF0;
}

body > header .invoices .status_3 {
    color: #7204F0;
}

body > header .invoices .status_4 {
    color: #F02004;
}

body > header .invoices .status_5 {
    color: #24B600;
}

/** Resume box: Account > Footer **/

body > header .account_box > footer {
    border-top: 1px dashed #E9E9E9;
    text-align: center;
}

body > header .account_box > footer > .submit {
    display: inline-block;
    margin: 3rem auto 1.5rem auto;
}

body > header .account_box > footer > .close_session {
    font-size: 1.3rem;
    margin: 0 auto 0.5rem auto;
    padding: 1rem;
}

body > header .account_box > footer > .close_session:hover {
    color: #F02004;
}

/** Resume box: Account > No invoices **/

body > header .invoices .no_invoices {
    margin: 2.5rem 1rem;
}

body > header .invoices .no_invoices > img {
    opacity: 0.15;
    margin: auto;
    width: 8rem;
}

body > header .invoices .no_invoices > p {
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-top: 1rem;
    opacity: 0.4;
    text-align: center;
}

/** Resume box: List **/

body > header .list_box > h3 {
    border-bottom: 1px dashed #E9E9E9;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 2rem 0 1.5rem 0;
    text-align: center;
}

/** Resume box: List > Products **/

body > header .list_box > .products {
    padding: 0.75rem 0;
}

body > header .list_box .product {
    align-items: center;
    border-radius: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
}

body > header .list_box .product:hover {
    background-color: #F9F9F9;
}

body > header .list_box .image {
    background-color: #F7F7F7;
    border-radius: 2.5rem;
    flex-shrink: 0;
    width: 5rem;
}

body > header .list_box .tag {
    font-size: 1.3rem;
    line-height: 1.6rem;
    width: 100%;
}

body > header .list_box .category {
    font-weight: bold;
}

body > header .list_box .code {
    color: #F02004;
}

body > header .list_box .quantity {
    color: #A9A9A9;
}

body > header .list_box .unlist {
    border-radius:1rem;
    flex-shrink: 0;
	height: 5rem;
    width: 2.5rem;
}

body > header .list_box .unlist > div {
    background-color: #C9C9C9;
	background-image: url("../../svg/cancel.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 50%;
    border-radius:1rem;
    float: right;
	-webkit-transition: background 0.25s ease;
	-moz-transition: background 0.25s ease;
	-o-transition: background 0.25s ease;
    transition: background 0.25s ease;
	height: 1.9rem;
    width: 1.9rem;
}

body > header .list_box .unlist:hover > div {
    background-color: #F02004;
}

/** Resume box: List > Footer **/

body > header .list_box > footer {
    border-top: 1px dashed #E9E9E9;
    text-align: center;
}

body > header .list_box > footer > .total {
    font-weight: 500;
    margin-top: 1.5rem;
}

body > header .list_box > footer > .submit {
    display: inline-block;
    margin: 3rem auto 1.5rem auto;
}

/** Resume box: List > No products **/

body > header .list_box .no_products {
    margin: 2.5rem 1rem;
}

body > header .list_box .no_products > img {
    opacity: 0.15;
    margin: auto;
    width: 8rem;
}

body > header .list_box .no_products > p {
    line-height: 1.8rem;
    margin-top: 1rem;
    opacity: 0.4;
    text-align: center;
}

/** EXTENDED CONTENT **/

/** Extended content: Searcher **/

body > header #extended > .searcher {
    max-width: 35rem;
    width: 100%;
}

body > header #extended > .searcher > .input {
    margin: 0.5rem 0 1.5rem 0;
}

 /** Extended content: Menu **/

body > header #menu {
    display: flex;
}

body > header #menu > .pages {
    display: flex;
}

body > header #menu > .pages > a > span {
    border-bottom: 0.5rem solid transparent;
    padding: 0 1.3rem 3rem 1.3rem;
    pointer-events: none;
    transition: border 0.5s, padding 0.5s;
    transition-timing-function: cubic-bezier(0.25,0.2,0.45,2.5);
}

body > header #menu > .pages > a:hover > span {
    border-bottom-color: #F02004;
    padding-bottom: 1.5rem;
}

/** Extended content: Resume box **/

@keyframes resume_box {
    0%      { padding-top: 8rem; opacity: 0;    }
    70%     { padding-top: 1rem; opacity: 0.7;  }
    100%    { padding-top: 2rem; opacity: 1;    }
}

body > header #menu > .button > section {
    animation: resume_box 0.5s;
    display: none;
    padding-top: 2rem;
    position: absolute;
    right: 0;
}

body > header #menu > .button:hover > section,
body > header #menu > .button > section:focus-within  {
    display: block;
}

/** COLLAPSED CONTENT **/

/** Collapsed content: Lock screen **/

body > #lock_screen {
    background-color: #000000;
    display: none;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.5s;
    width: 100%;
    z-index: -1;
}

body > .screen {
    z-index: 2 !important;
}

body > .locked {
    opacity: 0.25 !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

/** Collapsed content: Folding **/

body > header #folding {
    overflow: hidden;
    padding: 0rem 2rem;
    transition: height 0.5s;
    transition-timing-function: cubic-bezier(0.25,0.2,0.25,1.75);
}

body > header #folding > section {
    border-top: 1px dashed #E9E9E9;
    display: none;
    margin-top: 0.5rem;
    padding: 1rem 0;
}

/** Collapsed content: Folding > Menu **/

body > header #folding > .pages {
    flex-direction: column;
    padding: 2rem 0 2.5rem 0;
}

body > header #folding > .pages > a {
    border-radius: 4.2rem;
    padding: 1.3rem 2.1rem;
    transition: all 0.5s ease;
}

body > header #folding > .pages > a:hover {
    background-color: #F9F9F9;
    padding-left: 3.1rem;
}

/** Collapsed content: Folding > Searcher **/

body > header #folding .searcher {
    margin: 3.2rem 0 0.7rem 0;
    width: 100%;
}

/** Collapsed content: Folding > Box **/

body > header #folding .folding_box {
    margin: auto;
    max-width: 40rem;
    width: 100%;
}

body > header #folding .account_box {
    padding-bottom: 2.5rem;
}

body > header #folding .list_box {
    padding-bottom: 1.5rem;
}

/** RESPONSIVE **/

@media (max-width: 900px) {

    body > header .max_width {
        padding: 1rem 2rem;
    }

    body > header .fold {
        display: block !important;
    }

    body > header .extend {
        display: none !important;
    }

    body > header #menu > .button:hover > section {
        display: none;
    }

    body > #lock_screen {
        display: block;
    }
}

@media (max-width: 530px) {

    body > header .max_width {
        flex-direction: column;
        align-items: center;
    }

    body > header #menu {
        justify-content: space-evenly;
        width: 100%;
    }

    body > header .v_logo {
        display: block !important;
        height: 13rem;
        margin: 1.5rem 0;
    }

    body > header .h_logo {
        display: none !important;
    }
}