@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Tema Light*/
:root {
    --cor-primaria: #1C2B32;
    --cor-secundaria: #F16660;
    --cor-secundaria-low-sat: #e6aaa6;
    --cor-secundaria-hover: #d06763;
    --cor-terciaria: #F7F4EF;
    --cor-background: #f0f0f0;
    --cor-background-header: #ffffff;
    --cor-texto: #000000;
    --cor-texto-secundario: #fff;
    --cor-texto-terciario: #fff;
    --cor-icones: #3a4951;
    --cor-search: #e0e0e0;
    --cor-search-hover: #d6d6d6;
    --cor-search-focus: #f3dedd;
    --cor-background-produto: #e4e4e4;
    --cor-sellection: #e0b6b3;
    --cor-descricao: #000000;
}

 /* Tema Dark*/
[theme="dark"] {
    --cor-primaria: #F7F4EF;
    --cor-secundaria: #F16660;
    --cor-secundaria-low-sat: #e6aaa6;
    --cor-secundaria-hover: #d06763;
    --cor-terciaria: #1C2B32;
    --cor-background: #121212;
    --cor-background-header: #1F1F1F;
    --cor-texto: #ffffff;
    --cor-texto-secundario: #000000; 
    --cor-texto-terciario: #000000;
    --cor-icones: #f3fbff;
    --cor-search: #2E2E2E;
    --cor-search-hover: rgb(84, 84, 84);
    --cor-search-focus: rgb(78, 57, 57);
    --cor-background-produto: #282828;
    --cor-sellection: #e0b6b3;
    --cor-descricao: #ffffff;
}

::selection {
    background-color: var(--cor-sellection);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: #c8c8c8;
    border-radius: 12px;
    border-width: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a6a9aa;
}

::-webkit-scrollbar-thumb:active {
    cursor: pointer;
    background-color: #a6a9aa;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background-color: var(--cor-background);
    transition: background-color 0.25s;
}

header {
    display: flex;
    align-items: center;
    color: var(--cor-texto);
    background-color: var(--cor-background-header);
    position: relative;
    justify-content: space-between;
    height: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.25s;
}

.logo {
    background-color: #cececea8;
    border-radius: 12px;
    width: 65px;
    position: absolute;
    left: 10px;
}

.tema {
    margin-right: 8px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: var(--cor-icones);
    background-color: #00000000;
    justify-content: center;
    border-radius: 6px;
    height: 30px;
    width: 40px;
    border: none;
    transition: transform 0.1s, color 0.15s ease-in;
}

.tema:hover {
    color: var(--cor-secundaria-hover);
}

.tema:active {
    transform: scale(0.9);
}

.carrinho {
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: var(--cor-icones);
    background-color: #00000000;
    justify-content: center;
    border-radius: 6px;
    height: 30px;
    width: 40px;
    border: none;
    transition: transform 0.1s, color 0.15s ease-in;
}

.carrinhoContainer {
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
}

.carrinhoIcone {
    transition: transform 0.1s, color 0.1s ease-in;
}

.carrinhoContainer .carrinhoIcone:hover .carrinho {
    color: var(--cor-secundaria-hover);
}

.carrinhoContainer .carrinhoIcone:active {
    transform: scale(0.9);
}

.numeroDeItens {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cor-secundaria-low-sat);
    position: absolute;
    right: -2px;
    transform: translateY(-18px);
    border-radius: 50%;
    height: 20px;
    width: 20px;
    font-size: 18px;
    color: var(--cor-icones);
    pointer-events: none;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search {
    color: var(--cor-texto);
    border-radius: 32px;
    padding: 10px 50px 10px 15px;
    outline: none;
    border: none;
    height: 22px;
    width: 250px;
    background-color: var(--cor-search);
    transition: box-shadow 0.2s ease-in-out, border-radius 0.2s ease-in-out, width 0.2s ease-in-out, background-color 0.2s; 
}

.search:hover {
    background-color: var(--cor-search-hover);
    border-radius: 14px;
}

.search:focus {
    border-radius: 14px;
    width: 300px;
    background-color: var(--cor-search-focus);
    box-shadow: 0 0 8px var(--cor-search-focus);
}

.iconSearch {
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: var(--cor-icones);
    pointer-events: none;
}

header > *:not(.logo):not(.carrinhoContainer):not(.iconSearch):not(tema) {
    margin: 0 auto;
}

/* Slider */
.slider {
    width: 700px;
    height: 325px;
    position: relative;
    transition: width 0.2s, height 0.2s;
    margin-top: 30px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.212);
}
  
.slider img {
    width: 700px;
    height: 325px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    object-fit: cover;
    transition: width 0.2s, height 0.2s;
}
  
.slider img:first-child {
    z-index: 0;
}
  
.slider img:nth-child(2) {
    z-index: 0;
}

.bar {
    position: absolute;
    background-color: #bf615e;
    width: 5.5px;
    border-radius: 5px;
    height: 27px;
    transform: translateX(-10px);
}

.topico {
    display: flex;
    align-items: center;
    color: var(--cor-primaria);
    font-size: 28px;
    margin-left: 45px;
}
  
/* Botões do slider */
.navigation-button {
    user-select: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
  
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin-left: 2px;
    background-color: #d7d7d7;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.2s;
}
  
.dot.active {
    background-color: var(--cor-secundaria-hover);
}

.dot:hover {
    background-color: #9d524f;
}

.produtos {
    height: 500px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    overflow: auto;
}

.produto {
    border-radius: 12px;
    padding: 15px;
    display: flex;
    width: 200px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: var(--cor-background-produto);
    margin: 15px;
    box-shadow: 4px 6px 8px rgba(0, 0, 0, 0.258);
    transition: transform 0.2s ease-in-out, background-color 0.25s;
}

.produto:hover {
    transform: scale(1.1);
}

.descricaoProduto {
    color: var(--cor-descricao);
    margin-top: 10px;   
    padding: 5px;
    border-radius: 8px;
}

.precoProduto {
    user-select: none;
    cursor: pointer;
    color: var(--cor-icones);
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.2s, transform 0.2s;
}

.precoProduto:hover {
    color: var(--cor-secundaria-hover);
}

.precoProduto:active {
    transform: scale(0.9);
}

.precoProduto:hover .adicionarProduto {
    color: var(--cor-secundaria-hover);
}

.adicionarProduto {
    cursor: pointer;
    color: var(--cor-icones);
    background-color: #00000000;
    font-weight: bold;
    border: none;
    transition: color 0.2s;
}

.imgProduto {
    border-radius: 10px;
    height: 270px;
    width: 180px;
    object-fit: cover;
}

footer {
    height: 100px;
}

.modal h1 {
    user-select: none;
}

.modal {
    z-index: 1000;
    background-color: #00000067;
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modalProduto .produtoTxt {
    padding-right: 15px;
    margin: 0 auto;
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--cor-texto);
    margin-left: 20px;
}

.modalProduto .produtoPreco {
    text-wrap: nowrap;
    margin-right: 30px;
    font-weight: bold;
    color: var(--cor-icones);
    margin-right: 10px;

}

.carrinhoModal {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    position: relative;
    padding-top: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
    width: 90vw;
    height: 90vh;
    max-width: 800px;
    max-height: 600px;
    background-color: var(--cor-background);
}

.carrinhoModal h1 {
    color: var(--cor-texto);
    margin-bottom: 30px;
}

.produtosCarrinho {
    overflow-y: auto;
    flex-direction: column;
    display: flex;
    align-items: center;
    width: 100%;
}

.modalProduto {
    justify-content: space-between;
    margin: 10px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 8px;
    background-color: var(--cor-background-produto);
    width: 80%;
}

.modalProduto img {
    object-fit: cover;
    border-radius: 8px;
    width: 50px;
    height: 50px;
}

.removerProduto {
    cursor: pointer;
    color: var(--cor-secundaria);
    font-size: 18px;
    margin-right: 10px;
}

.removerProduto:hover {
    color: var(--cor-secundaria-hover);
}

.closeModal {
    text-align: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: #a9a9a949;
    cursor: pointer;
    color: var(--cor-secundaria);
    top: 25px;
    right: 30px;
    font-size: 26px;
    position: absolute;
}

.closeModal:hover {
    color: var(--cor-secundaria-hover);
}

/* Estilos responsivos */
@media (max-width: 720px) {
    .tema, .carrinho {
        font-size: 22px;
    }

    .tema {
        margin-right: -3px;
    }

    .produtos {
        padding-left: 5px;
        height: 410px;
    }

    .produto {
        padding: 10px;
    }

    .topico {
        margin-left: 30px;
    }

    .search {
        width: 180px;
    }
    
    .search:hover {
        border-radius: 14px;
    }
    
    .search:focus {
        border-radius: 14px;
        width: 230px;
        background-color: var(--cor-search-focus);
        box-shadow: 0 0 8px var(--cor-search-focus);
    }

    .imgProduto {
        width: 120px;
        height: 180px;
    }

    .descricaoProduto {
        font-size: 14px;
    }

    .slider {
      width: 450px;
      height: 215px;
      margin-top: 30px;
      margin-bottom: 10px;
    }
  
    .slider img {
      width: 450px;
      height: 215px;
    }
    
    .dot {
      height: 7px;
      width: 7px;
    }
  }
  
  @media (max-width: 480px) {
    .search {
        width: 120px;
    }
    
    .search:hover {
        border-radius: 14px;
    }
    
    .search:focus {
        border-radius: 14px;
        width: 150px;
        background-color: var(--cor-search-focus);
        box-shadow: 0 0 8px var(--cor-search-focus);
    }
    .slider {
      width: 330px;
      height: 160px;
      margin-top: 30px;
      margin-bottom: 10px;
    }
  
    .slider img {
      width: 330px;
      height: 160px;
    }
  }
