@import "variaveis.css";

body {
    background-color: rgb(247, 247, 247);
}

main#main {
    padding: 30px;
    background-color: rgb(247, 247, 247);
}
main#main .container > .row:first-child {
    margin-bottom: 25px !important;
}
main#main .container > .row:last-child {
    justify-content: space-between;
    width: 100%;
}
main#main .container > .row > .col-md-7 {
    width: 64% !important;
}


/* 
*   FLOATER
*/
.floater {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    transition: all 0.3s;
}
.floater.closed {
    top: -100%;
    opacity: 0;
    transition: all 0.3s;
}
.floater .container {
    display: flex;
    flex-direction: column;
    align-items: end;
}
.floater .container span {
    width: fit-content;
    font-size: 25pt;
    color: #fff;
    cursor: pointer;
}

/* 
*   HEADER
*/
header#header-cart {
    position: relative;
    padding: 20px 0px 30px;
    background-color: #000;
}
header#header-cart::after {
    position: absolute;
    content: '';
    display: block;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: #B68846;
}
header#header-cart a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
header#header-cart form {
    position: relative;
}
header#header-cart form .form-select {
    border-radius: 0.375rem 0px 0px 0.375rem;
}
header#header-cart form .form-control {
    border-radius: 0px 0.375rem 0.375rem 0px;
    padding: 0.675rem 0.75rem;
    box-shadow: none;
}
header#header-cart form button.btn-busca {
    position: absolute;
    border: none;
    outline: none;
    background: var(--main-gradient);
    color: #fff;
    right: 0;
    height: 100%;
    padding: 0 10px;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* 
*   COLUMN PRODUTOS
*/
main#main .col-img img {
    max-width: 150px;
    height: 150px;
    width: auto;
    object-fit: contain;
}

/*//////////////*/
main#main section.produtos {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
main#main section.produtos .row-card {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px;
}
main#main section.produtos .row-card > div:nth-child(1) {
    margin-right: 20px;
}
main#main section.produtos .row-card > div {
    width: auto;
}
main#main section.produtos .row-card h3 {
    font-size: 22px;
    font-weight: 600;
}
main#main section.produtos .row-card :is(h3, p) {
    margin-bottom: 4px;
}

main#main section.produtos .row-card .col-infoProd {
    width: 100%;
}
main#main section.produtos .row-card .col-infoProd p {
    font-size: 15px;
    color: #747474;
}
main#main section.produtos .row-card .col-infoProd > div {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

main#main section.produtos .row-card .col-infoProd > div .btn-refresh {
    width: 45px;
    height: 40px;
    padding: 0 !important;
    font-size: 15px;
}

main#main section.produtos .row-card .col-infoProd .unidades {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}
main#main section.produtos .row-card .col-infoProd .unidades form {
    display: flex;
    justify-content: space-between;
    width: 120px;
    border: 1px solid #747474;
    border-radius: var(--border-radius);
    padding: 4px;
}
main#main section.produtos .row-card .col-infoProd .unidades form input#quantidade {
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    width: 1ch;
    padding: 0px;

    -moz-appearance: textfield;
    appearance: textfield;
}
main#main section.produtos .row-card .col-infoProd .unidades form input#quantidade::-webkit-inner-spin-button { 
    -webkit-appearance: none;
}

main#main section.produtos .row-card .col-infoProd .unidades form button {
    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    outline: none;
    height: 30px;
    width: 30px;
    padding: 8px;
    border-radius: var(--border-radius);
    background-color: transparent;

    transition: all 0.3s;
}
main#main section.produtos .row-card .col-infoProd .unidades form button:hover {
    background-color: #747474;
}

/*//////////////*/
main#main section.produtos .row-card  .col-infoProd .delete {
    margin-top: -30px;
    font-size: 15pt;
}
main#main section.produtos .row-card  .col-infoProd .delete .btn-delete {
    color: #004ABE;
    border: none;
    background-color: transparent;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

/*//////////////*/
main#main section.produtos .row-card  .col-priceProd {
    min-width: 150px;
    text-align: right;
}
main#main section.produtos .row-card  .col-priceProd p,
main#main aside.informacoes :is(.subTotal .price-subTotal p, .total .price-total p:first-child, .info-cupom p:last-child, .info-frete p:nth-child(3)) {
    font-size: 28px;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1;
}
main#main section.produtos .row-card  .col-priceProd :is(p:nth-child(2), p:nth-child(1) span) {
    margin: 0 !important;
    color: #000;
}
main#main section.produtos .row-card  .col-priceProd p span {
    font-size: 13px;
    margin-top: 8px;
    color: #747474;
}


/* 
*   COLUMN INFORMAÇÕES
*/
main#main aside.informacoes > .row:first-child {
    background-color: #fff;
    padding: 20px;
}
main#main aside.informacoes > .row:first-child button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    height: 40px;
    width: 100%;
}
main#main aside.informacoes .info-frete .whatsapp_cep {
    width: 30px;
}
main#main aside.informacoes :is(.subTotal, .info-frete, .total, .info-cupom) {
    display: flex;
    justify-content: space-between;
}
main#main aside.informacoes :is(.subTotal, .info-frete, .total, .info-cupom) > p:first-child {
    font-size: 20px;
}

main#main aside.informacoes .subTotal .price-subTotal {
    display: flex;
    gap: 15px;
}
main#main aside.informacoes .subTotal .price-subTotal p:first-child {
    color: #2AA843;
}
main#main aside.informacoes :is(.subTotal .price-subTotal p, .total .price-total p:first-child, .info-cupom p) {
    font-size: 20px;
}
main#main aside.informacoes :is(.subTotal .price-subTotal p, .total .price-total p:first-child, .info-cupom p, .info-frete p) span {
    font-size: 11px;
}

main#main aside.informacoes .total .price-total {
    text-align: right;
}
main#main aside.informacoes .total .price-total > p {
    margin: 0 !important;
}

/*/////////////////////////////*/
main#main aside.informacoes > .row:last-child {
    margin-top: 25px;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) {
    padding: 0;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) .accordion-collapse {
    transition: 0.3s;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) .accordion-button {
    box-shadow: none !important;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) .accordion-item {
    background-color: #fff !important;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) form {
    display: flex;
    gap: 10px;
}
main#main aside.informacoes > .row:last-child :is(.frete, .cupom) form input {
    box-shadow: none;
}

main#main aside.informacoes > .row:last-child .frete .content-frete a {
    display: block;
    margin-top: 8px;
}

main#main aside.informacoes > .row:last-child .cupom {
    margin-top: 25px;
}

/* 
*   STATUS DO PEDIDO
*/
.state-car {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.state-car > div {
    background: #adadad;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
}
.state-car > div.active {
    background: var(--main-gradient);
}
.state-car > span.line {
    display: block;
    height: 1px;
    width: 20%;
    background: #adadad;
}
.state-car > span.line.active {
    background: var(--main-gradient);
}
.state-car > div i {
    font-size: 20px;
}
.state-car > div:last-child i {
    font-size: 28px;
}

/*
 *  ENDEREÇOS
*/
main#main section.produtos .row-end {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    background-color: #fff;
    padding: 20px;
}
main#main section.produtos .row-end > div:first-child .content {
    display: grid;
    grid-template-areas:
    "icon p-first"
    "icon p-last";
    gap: 0px 15px;
}
main#main section.produtos .row-end > div:first-child .content p:nth-child(1) {
    grid-area: icon;
    
    display: flex;
    justify-content: center;
    font-size: 20pt;
}
main#main section.produtos .row-end > div:first-child .content p:nth-child(1) i {
    color: #B68846;
}
main#main section.produtos .row-end > div:first-child .content p:nth-child(2) {grid-area: p-first;}
main#main section.produtos .row-end > div:first-child .content p:nth-child(3) {grid-area: p-last;}
main#main section.produtos .row-end > div:last-child {
    display: flex;
    align-items: center;
}

/* 
* MODAL ENDDEREÇO
*/
.content-endModal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0px 10px;
}
div#modalEntrega .card-end {
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 15px;
    flex: 1 0 260px;
}
div#modalEntrega .card-end p {
    font-size: 15px;
}
div#modalEntrega .card-end .buttons {
    display: flex;
    gap: 5px;
}

div#modalEntrega .card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
}
div#modalEntrega .card-footer.justify-content-start {
    justify-content: start;
}
div#modalEntrega .card-footer button {
    border: none;
    outline: none;
    background-color: transparent;
    font-weight: 500;
    padding: 0;
}
div#modalEntrega .card-footer p.text-entrega {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #676767;
    border-radius: 50%;
}
div#modalEntrega .card-footer p.text-entrega.active::after {
    content: '';
    display: block;
    position: absolute;
    inset: 1px;
    background-color: #055160;
    border-radius: 50%;
}

/* ******************************************************************** */
.content-frete.nofrete h3:last-child {
    font-size: 15pt;
    gap: 5rem !important;
    line-height: normal;
}

/* ******************************************************************** */
.accordion-body {
    position: relative;
}