@keyframes cartEvent
{
    from
    {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);

        color: white;
    }
    25%
    {
        transform: translate(-50%, -50%) scale(2) rotate(-10deg);
    }
    50%
    {
        transform: translate(-50%, -50%) scale(3) rotate(0deg);

        color: var(--red);
    }
    75%
    {
        transform: translate(-50%, -50%) scale(2) rotate(10deg);
    }
    to
    {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);

        color: white;
    }
}

#heagerMargin
{
    display: flex;
    flex-direction: column;

    height: -webkit-fill-available;
    padding-top: var(--topWidth);

    transition: 200ms;

    align-items: center;
}

#loadPanel {
    position: fixed;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 1;
    transition: opacity 300ms;
    z-index: 9999999;
}
#loadPanel img {
    width: 100px;
}

#globalMessage {
    display: flex;
    flex-direction: row;
    position: fixed;
    background-color: var(--black);
    /*top: calc(var(--topWidth) + 1px);*/
    top: 0;
    z-index: 100000;
    padding: 5px;
    font-size: 20px;
    transform: translateX(calc(35px - 100%));
    transition: top 200ms, transform 300ms;
    /*border-top: solid 1px white;*/
    opacity: 0.7;
}
#globalMessage:hover {
    transform: translateX(0px);
}
#globalMessage > * {
    display: flex;
    justify-content: center;
    align-items: center;
}
#globalMessage .globalMessage-text {
    color: white;
}
#globalMessage .globalMessage-ico {
    color: gold;
    width: 30px;
    height: 30px;
    font-size: 26px;
    margin-left: 5px;
}

header
{
    position: fixed;
    z-index: 99999;
    top: 0;

    overflow: hidden;

    width: 100%;
    height: var(--topWidth);

    transition: height 200ms;
    text-align: -webkit-center;
    white-space: nowrap;

    background: var(--black);
}
header .box
{
    display: flex;

    height: 100%;
    margin: 0 30px;

    text-align: -webkit-left;

    color: #fff;

    justify-content: space-between;
    align-items: center;
}

header .box .logo
{
    /*width: 300px;*/
    height: 166%;

    object-fit: contain;
    object-position: 0 8px;
}



#topPC .item
{
    font-size: 15px;
    font-weight: bold;

    position: relative;

    margin-left: 34px;

    transition: 200ms;
    letter-spacing: 2px;
}

#topPC .item .selector
{
    position: absolute;
    bottom: 15px;
    left: 0;

    display: inline-block;

    width: 100%;
    height: 1px;

    transition: height 300ms, bottom 300ms, opacity 200ms cubic-bezier(0, 0, .3, 1);

    opacity: 0;
    background: var(--red);
}
#topPC .item:hover .selector,
#topPC .item .selected
{
    bottom: -3px;

    height: 3px;

    opacity: 1;
}

#topPC .item .title
{
    margin: 13px 6px;
}



#topPH .tbutton
{
    display: flex;

    height: var(--topWidth);

    cursor: pointer;

    justify-content: center;
    align-items: center;
}
#topPH .tbutton i
{
    padding: 10px 30px;

    color: var(--red);
    background: white;
}
#topPH .list
{
    position: fixed;
    z-index: 999999;
    top: var(--topWidth);
    left: 0;

    display: flex;
    overflow: hidden;
    flex-direction: column;

    width: 100%;
    height: 0;

    transition: height 500ms;

    background: white;
}
#topPH .list .item
{
    font-size: 20px;
    font-weight: bold;

    position: relative;

    padding: 20px 0;

    transition: color 300ms;
    text-align: center;
    letter-spacing: 2px;

    color: var(--black);
    border-bottom: solid 1px var(--gray);
}
#topPH .list .item:last-child
{
    border-bottom: none;
}
#topPH .list .item:hover,
#topPH .list .selected
{
    color: var(--red);
}


#headerRight
{
    position: fixed;
    z-index: 99998;
    top: var(--topWidth);
    right: 0;
    bottom: 0;

    transition: top 200ms;
    text-align: -webkit-right;
}
#headerRight:before
{
    position: fixed;
    top: var(--topWidth);
    right: 0;
    bottom: 0;

    display: none;

    width: 100%;

    content: '';
    transition: 300ms, top 200ms;

    opacity: 0;
    background-color: #404040aa;
}

#headerRight > .box
{
    position: relative;

    display: flex;
    overflow: visible;

    width: 40px;
    height: 100%;

    transition: 300ms;

    align-items: stretch;
    justify-content: space-between;
}
#headerRight > .box .buttons
{
    display: flex;
    flex-direction: column;

    transition: 300ms;
}
#headerRight > .box .buttons div
{
    font-size: 20px;

    position: relative;

    display: flex;

    width: 40px;
    height: 40px;

    cursor: pointer;
    transition: 300ms;

    color: white;

    justify-content: center;
    align-items: center;
}

#headerRight > .box .buttons .selected,
#headerRight > .box .buttons div:hover
{
    color: var(--red);
}

#headerRight > .box .buttons .selected i:before
{
    font-size: 26px;

    content: '\f00d';
}

#headerRight > .box .buttons div i
{
    /*opacity: 0.5;*/
    /*color: var(--red) !important;*/
    /*z-index: 100001;*/
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) scale(1) rotate(0deg);

    text-shadow: var(--textOutline);
}

#headerRightContent
{
    top: var(--topWidth);
    right: 0;
    bottom: 0;

    display: inline-block;
    overflow-x: hidden;

    padding: 20px;

    transition: 300ms;
    text-align: -webkit-center;

    background-color: white;

    flex-grow: 1;
}
#headerRightContent .page
{
    display: none;
}

#headerRightContent .cart .item
{
    display: flex;
}
#headerRightContent .cart .item *
{
    text-align: -webkit-left;
}


#headerRightContent .cart .item .left,
#headerRightContent .cart .item .right
{
    display: flex;
    flex-direction: column;

    width: 50%;
}
#headerRightContent .cart .item .left > .box
{
    display: flex;
}
#headerRightContent .cart .item .left > .box:first-child
{
    flex-direction: column;
}
#headerRightContent .cart .item .right > .box
{
    display: flex;
    flex-direction: column;
}



#headerRight,
#headerRight *
{
    pointer-events: none;
}
#headerRightContent,
#headerRightContent *,
#headerRight > .box .buttons *,
#headerRight:before
{
    pointer-events: initial;
}
