@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;700;800;900&display=swap');

@font-face {
    font-family: LemonMilk;
    font-weight: bold;
    src: url("fonts/LEMONMILK-Bold.otf") format("opentype");
}
@font-face {
    font-family: LemonMilk;
    font-weight: normal;
    src: url("fonts/LEMONMILK-Regular.otf") format("opentype");
}

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-y: clip;
    overflow-x: clip;
}

h1.page-title {
    margin: 35px 50px 0;
    color: #005072;
    /* text-shadow: 1px 1px 1px #00000091; */
    font-size: 40px;
}

h2.product-title {
    color: #333;
    font-size: 20px;
    text-transform: capitalize;
}

h2#price {
    /* text-align: right; */
    font-size: 29px;
    color: #187097;
    margin: 10px 0;
}

button#add-to-cart {
    width: 100%;
    padding: 12px 0;
    background: #F0AB00;
    border: 2px solid #00000002;
    font-weight: bold;
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: 'Inter';
    font-size: 15px;
    border-radius: 7px;
    cursor: pointer;
    margin-bottom: 4px;
}

button a{
    color: inherit;
    text-decoration: none;
}

#viewer-area {
    position: absolute;
    top: 0;
    left: -60%;
    right: -30%;
    bottom: 0;
}

#customize.gradient {
    background: rgb(197,197,197);
    background: linear-gradient(142deg, rgba(197,197,197,1) 10%, rgba(221,221,221,1) 50%, rgba(221,221,221,0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

a#powered {
    display: block;
    position: absolute;
    right: 20px;
    bottom: -26px;
    margin: 30px;
    /* width: 200px; */
    font-size: 10px;
    font-style: italic;
    color: #ccc;
    white-space: break-spaces;
    text-align: right;
    text-decoration: none;
}

#powered img {
    width: 47px;
    margin-top: 5px;
    /* filter: grayscale(0.5); */
}

#viewer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#ar-container {
    position: absolute;
    left: 0;
    bottom: 0;
    /* width: 60px; */
    max-width: 273.5px;
    margin: 15px;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #d0d0d0;
    background: rgb(225 249 255 / 50%);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    transition: all 400ms ease;
    box-shadow: 0px 1px 8px -3px rgb(0 0 0 / 50%);
}

#ar-container #ar-button {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    line-height: 40px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

/* #ar-container #ar-button span {
    width: 0;
    overflow: hidden;
    display: block;
} */

#ar-container:hover {
    /* width: 273.5px; */
    box-shadow: 0px 1px 8px -1px rgb(40 140 255 / 90%);
}

/* #ar-container:hover #ar-button span {
    width: auto;
} */

#ar-container #ar-button img {
    width: 40px;
    height: 40px;
    float: left;
    margin-right: 10px;
}

#ar-container #comment-ar {
    font-size: 12px;
    color: #666;
    max-width: 100%;
    white-space: normal;
}

#ar-container #comment-ar.error {
    font-weight: bold;
    color: rgb(141, 0, 0);
}

#ar-container #QR {
    height: 150px;
    width: 150px;
    text-align: center;
}

#ar-container #loading-ar {
    /* display: none; */
    height: 150px;
    width: 50px;
    object-fit: contain;
    object-position: center;
}

img.loading {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    box-sizing: border-box;
    padding: 50px;
}

#options {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 20%;
    min-width: 150px;
    background: rgb(255 255 255 / 87%);
    border: 1px solid #d0d0d0;
    box-shadow: -1px 3px 7px -5px #666;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.level {
    margin: 20px 0 0;
}

.level .level {
    padding: 10px;
    /* border: 1px solid #ccc;
    margin: 5px 0; */
    border-radius: 5px;
    width: -webkit-fill-available;
}

.level .level {
    display: none;
}

.level .level.active {
    display: block;
}

#options h3 {
    text-transform: capitalize;
    border-bottom: 1px solid #cbcbcb;
    font-size: 16px;
    color: #4a4a4a;
}

#options .menu {
    padding: 10px 0;
    /* margin: 0 0 15px; */
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

#options .menu[data-slot='PPBASE'] {
    display: none;
}

#options .menu[data-slot='PPBASE'] h3 {
    display: none;
}
  
#options .menu button {
    height: 32px;
    padding: 5px;
    width: calc(50% - 10px);
    cursor: pointer;
    border: 1px solid #e5e5e5;
    color: #4d6271;
    border-radius: 5px;
    transform: scale(1.0);
    transition: all ease 200ms;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: bold;
}

#options .menu button.model-button:hover {
    background: #009de17c;
    border: 2px solid #0c425655;
    transform: scale(1.1);
    z-index: 3;
    overflow: visible;
}

#options .menu button.model-button.selected {
    background: #009DE1;
    font-weight: bold;
    color: #ffffff;
    border: 3px solid #009DE1;
    box-shadow: 0px 0px 6px 2px #009de1;
    transform: scale(1.0);
}

#options .menu button.material-button {
    width: 32px;
    color: transparent;
}

#options .menu button.material-button:hover {
    border: 2px solid #0c425655;
    transform: scale(1.1);
    z-index: 3;
    overflow: visible;
}

#options .menu button.material-button.selected {
    /*background: #3287a6; */
    font-weight: bold;
    border: 3px solid #009DE1;
    box-shadow: 0px 0px 6px 2px #009de1;
    transform: scale(1.0);
}

/* #options .menu button span { */
#options .menu button::after {
    /* content: attr(data-name); */
    text-align: center;
    position: absolute;
    top: 20px;
    left: -47%;
    right: -47%;
    padding: 3px 5px;
    display: inline-block;
    background: #4a4a4a;
    color: #ffffff;
    font-size: 7px;
    border-radius: 5px;
    opacity: 0;
    transition: all ease 200ms;
}

#viewer a[href="https://r2u.io"] {
    display: none;
}

*.dn {
    display: none !important;
}


@media (orientation: landscape) {
    #viewer-area {
        position: absolute;
        top: 0;
        left: -60%;
        right: -30%;
        bottom: 0;
    }

    #ar-container {
        position: fixed;
        left: 30%;
    }
    
    a#powered {
        position: fixed;
        right: 20px;
        bottom: 0px;
        z-index: 5;
    }
  
    #options {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        width: 30%;
        max-height: 100vh;
        min-width: 150px;
        margin: 30px;
    }

    #customize.hide-options #viewer-area{
        right: 0;
    }

    #customize.hide-options #options{
        display: none;
    }
}
  
@media (orientation: portrait) {
    h1.page-title {
        margin: 15px;
        font-size: 21px;
    }

    h2.product-title {
        font-size: 16px;
    }

    h2#price {
        font-size: 23px;
        text-align: right;
    }

    button#add-to-cart {
        width: 100%;
        padding: 12px 0;
        font-size: 12px;
    }

    #ar-container #ar-button {
        font-size: 14px;
        font-weight: bold;
        color: #000000;
        line-height: 20px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    #ar-container #ar-button img {
        width: 20px;
        height: 20px;
        float: left;
        margin-right: 10px;
    }

    #viewer-area {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 30vh;
        overflow-y: clip;
    }
  
    #options {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30vh;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #customize.hide-options #viewer-area{
        bottom: 0;
    }

    #customize.hide-options #options{
        display: none;
    }
}


/* Color ------ */

.menu .material-button[data-name='AMARELO'] {
    background: #C8961D;
}

.menu .material-button[data-name='AZUL'] {
    background: #3C82CE;
    display: none;
}

.menu .material-button[data-name='AZULBIC'] {
    background: #152C69;
    display: none;
}

.menu .material-button[data-name='AZULCLARO'] {
    background: #91BDD4;
}

.menu .material-button[data-name='AZULPETROLEO'] {
    background: #02474C;
    display: none;
}   

.menu .material-button[data-name='BRANCO'] {
    background: #FFFFFF;
}

.menu .material-button[data-name='CINZA'] {
    background: #bcbebe;
}

.menu .material-button[data-name='FENDI'] {
    background: #B0A98C;
}

.menu .material-button[data-name='FUME'] {
    background: #9F9F9F;
}

.menu .material-button[data-name='INCOLOR'] {
    background: #CECECE;
}

.menu .material-button[data-name='LARANJA'] {
    background: #C14D26;
    /* display: none; */
}

.menu .material-button[data-name='LIMAOSICILIANO'] {
    background: #DDD098;
}

.menu .material-button[data-name='MARROM'] {
    background: #1B1008;
    display: none;
}

.menu .material-button[data-name='MELAO'] {
    background: #D78471;
}

.menu .material-button[data-name='OPALAROSA'] {
    background: #B2524A;
}

.menu .material-button[data-name='PRETO'] {
    background: #070707;
}

.menu .material-button[data-name='ROSA'] {
    background: #CD9D9F;
    /* display: none; */
}

.menu .material-button[data-name='ROXA'] {
    background: #804A83;
    display: none;
}

.menu .material-button[data-name='TERRACOTA'] {
    background:#D66D44;
}

.menu .material-button[data-name='VERDE'] {
    background: #92CA64;
    /* display: none; */
}

.menu .material-button[data-name='VERDEMILITAR'] {
    background: #5B6057;
}

.menu .material-button[data-name='VERDETIFFANY'] {
    background: #4EC79B;
}

.menu .material-button[data-name='VERMELHA'] {
    background: #D41C2D;
    display: none;
}

.menu .material-button[data-name='COBRE'] {
    background: #ffba6c;
}

.menu .material-button[data-name='CROMADO'] {
    background: #d9dadb;
}

.menu .material-button[data-name='PRETOMETAL'] {
    background: #38393a;
}

.menu .material-button[data-name='AREIA'] {
    background: #c5c197;
}

.menu .material-button[data-name='AZULESCURO'] {
    background: #1e2831;
}

.menu .material-button[data-name='CINZAESCURO'] {
    background: #5d6063;
}

.menu .material-button[data-name='LARANJA'] {
    background: #ad6e43;
}

.menu .material-button[data-name='ROSA'] {
    background: #d8b4bf;
}

.menu .material-button[data-name='VERDE'] {
    background: #233d2e;
}

.menu .material-button[data-name='BEGE'] {
    background: #c5a64b;
}

.menu .material-button[data-name='CASTANHO'] {
    background: #51300e;
}

