/* =-=-=-=-=-=-= BODY =-=-=-=-=-=-= */
.c-catalogo {
    background-color: var(--black3);
    height: 100vh;
    overflow: hidden;
}
/* =-=-=-=-=-=-= BODY =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= POPUP AVISO IDADE =-=-=-=-=-=-= */
body {
    margin: 0;
    overflow: hidden; /* Impede a rolagem enquanto o pop-up está aberto */
  }

#overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
}

#popup {
    position: fixed;
    background-color: var(--black3);
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 30px;
    z-index: 1000;
    width: 350px;
    text-align: center;
}

#popup h2 {
    color: red;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#popup p {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 20px;
    border-top: 2px solid;
    border-bottom: 2px solid;
    padding: 10px 0;
}

#popup input {
    margin: 10px 0;
    padding: 8px;
    width: 80%;
    font-size: 16px;
}

#popup button {
    padding: 12px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    border-radius: 5px;
}

#popup button:first-child {
    background-color: green;
    color: white;
}

#popup button:last-child {
    background-color: red;
    color: white;
}


/* =-=-=-=-=-=-= POPUP AVISO IDADE =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= MAIN =-=-=-=-=-=-= */
.main {
    max-width: 1200px;
    background-color: var(--black3);
    margin: 0 auto;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.500);
}
/* =-=-=-=-=-=-= MAIN =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= HEADER =-=-=-=-=-=-= */
.c-catalogo__header--btns {
    display: flex;
    gap: 40px;
}

.c-catalogo__header--btns .triangle {
    font-size: 4rem;
    position: absolute;
    right: 10px;
    top: -20px;
    color: var(--black1);
}

.icon-header {
    display: none;
}

.icon-header i {
    font-size: 20px;
}

.c-catalogo__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--details);
    background-color: var(--black3);
    padding: 15px;
    position: relative;
    z-index: 16;
}
#icon-nav{
    display: none;
}

.c-catalogo__logo img {
    display: none;
}

.c-catalogo--title {
    font-size: 2.4rem;
    color: var(--white);
    font-weight: 600;
}
.c-home--title {
    font-size: 1.8rem;
}
.c-catalogo__pesquisa {
    display: flex;
    gap: 14px;
    align-items: center;
}

.c-catalogo__auth a, .minha-conta a {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 3px solid var(--details);
    padding: 5px;
}

.c-catalogo__auth span, .minha-conta div span:first-child  {
    font-size: 1.4rem;
    font-weight: bold;
}
/* =-=-=-=-=-=-= BTNS =-=-=-=-=-=-= */
.btn-login, .btn-register {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
}

.btn-login {
    border: 2px solid white;
    margin-right: 8px;
}
.btn-register, .btn-catalogo{
    background-color: var(--details);
    color: var(--white);
}
.btn-catalogo, .btn--logout {
    border: 2px solid var(--details);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.6rem;
}
.btn-catalogo a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-catalogo i, .btn--logout i {
    font-size: 2.2rem;
}
.btn-catalogo i, .btn--logout i {
    margin-right: 4px;
}
.btn--logout {
    border: 2px solid white;
}

/* =-=-=-=-=-=-= BTNS =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= PESQUISA =-=-=-=-=-=-= */
.c-pesquisa--form {
    display: flex;
    align-items: center;
    width: 400px;
}
#c-catalogo__pesquisa--input {
    display: flex;
    align-items: center;
    padding-left: 20px;
    background-color: var(--black2);
    border-radius: 50px 0 0 50px;
    border-right: 2px solid var(--white);
    width: 100%;
}
#c-catalogo__pesquisa--input input {
    height: 50px;
    width: 100%;
    background-color: var(--black2);
    color: var(--white);
    font-size: 1.6rem;
}
#btn--pesquisa {
    border: none;
    background-color: var(--black2);
    height: 50px;
    min-width: 50px;
    border-radius: 0 50px 50px 0;
    padding-right: 5px;
    cursor: pointer;
}
.ai-text-align-justified, .ai-search{
    color: var(--white);
    font-size: 2.4rem;
}
.btn-pesquisa {
    cursor: pointer;
    display: none;
    border-radius: 50%;
    height: 50px;
    width: 50px;
}

/* =-=-=-=-=-=-= PESQUISA =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= HEADER =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= SECTION =-=-=-=-=-=-= */
.c-catalogo__produtos {
    display: flex;
    justify-content: space-around;
    gap: 32px;
    height: calc(100vh - 130px);
    padding: 0 15px 30px 15px;
    margin-top: 32px;
    transition: 300ms linear;
}

/* =-=-=-=-=-=-= CATEGORIAS =-=-=-=-=-=-= */
.c-produtos__categorias {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    background-color: var(--black3);
    border-radius: 15px;
}
.c-categorias {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.c-categorias--item {
    width: 100%;
    padding: 8px;
    font-size: 1.6rem;
    cursor: pointer;
}
/* =-=-=-=-=-=-= CATEGORIAS =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= PRODUTOS =-=-=-=-=-=-= */
.c-prdutos__lista {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--black3);  
    gap: 15px;  
    border-radius: 15px;
}
.c-proutos__titulo  {
    display: flex;
    align-items: center;
    padding-left: 15px;
    width: 100%;
    min-height: 50px;
    background-color: var(--details);
    border-radius: 15px 15px 0 0;
}
.c-produtos__title--nome{
    font-size: 2rem;
}
.c-produtos__itens {
    display: flex;
    overflow-y: scroll;
    flex-wrap: wrap;
    padding: 0 15px;
    gap: 17px;
}
.c-produtos__item {
    width: 100%;
    max-width: 210px;
    flex-grow: 1;
    height: 350px;
    background-color: var(--black1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    gap: 8px;
}
.c-produto__item--img {
    background-color: white;
    width: 100%;
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 10px;
}
.c-produto__item--descp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.c-produto__item--nome {
    font-size: 1.6rem; /* Aumenta a visibilidade */
    font-weight: bold; /* Destaca o nome com mais ênfase */
    height: 48px; /* Ajuste para suportar até duas linhas */
    line-height: 1.4; /* Melhora a legibilidade */
    overflow: hidden; /* Garante que textos longos fiquem contidos */
    white-space: normal; /* Permite a quebra do texto em múltiplas linhas */
    text-overflow: ellipsis; /* Adiciona "..." caso o texto exceda o espaço disponível */
    margin-bottom: 8px; /* Adiciona espaço entre o nome e o próximo elemento */
}


.c-produto__item--preco {
    font-size: 1.8rem;
    font-weight: bold;
    /* color: var(--details); */
}
/* =-=-=-=-=-=-= PRODUTOS =-=-=-=-=-=-= */
/* =-=-=-=-=-=-= SECTION =-=-=-=-=-=-= */


/* =-=-=-=-=-=-= CARRINHO =-=-=-=-=-=-= */

.carrinho__produtos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: var(--black3);
    border-radius: 15px;
}

.carrinho__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--black2);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.carrinho__item--img {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
}

.carrinho__item--details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 15px;
    color: var(--white);
}

.carrinho__item--nome {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
}

.carrinho__item--preco {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--details);
}

.carrinho__item--quantidade {
    font-size: 1.2rem;
    color: var(--details);
}

.carrinho__item--actions {
    display: flex;
    align-items: center;
}

.btn-remover {
    padding: 8px 16px;
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.btn-remover:hover {
    background-color: var(--dark-red);
}

/* =-=-=-=-=-=-= TOTAL DO CARRINHO =-=-=-=-=-=-= */
.carrinho__total {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--black2);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.carrinho__total h3 {
    font-size: 1.8rem;
    color: var(--white);
}

.btn-finalizar {
    padding: 10px 20px;
    background-color: var(--details);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background-color 0.3s ease;
}

.btn-finalizar:hover {
    background-color: var(--details-dark);
}

.btn-voltar {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--black2);
    color: var(--white);
    border-radius: 5px;
    text-align: center;
    font-size: 1.4rem;
    text-decoration: none;
}

.btn-voltar:hover {
    background-color: var(--black1);
}

/* =-=-=-=-=-=-= CARRINHO VAZIO =-=-=-=-=-=-= */
.carrinho__vazio {
    text-align: center;
    font-size: 1.6rem;
    color: var(--white);
}

.quantidade-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--details);
    border-radius: 5px;
    font-size: 1.4rem;
    background-color: var(--black2);
    color: var(--white);
}