@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap");

:root {
  --color-dim-gray: #464646;
  --color-dark-gray: #a2a2a2;
  --color-silver: #c8c8c8;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-red: red;
  --color-blue: #2a7ae4;
  --color-alice-blue: #eaf2fd;
  --font-primary: "Raleway", sans-serif;
}

* {
  font-family: var(--font-primary);
}

html,
body {
  height: 100%;
}

body {
  line-height: 1;
  font-family: var(--font-primary);
  font-size: 1rem;
  height: min-content;
}

main {
  display: block;
  background-color: var(--color-light-gray);
}

/* Header */
.header-container {
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 6rem;
  padding: 0 8rem 0 8rem;
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.left-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 55%;
  gap: 2rem;
}

.header-left-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 2.3rem;
}

.header-left-container .logo-container {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-container .logo-image-container {
  width: 2.3rem;
  height: 2.3rem;
}

.logo-container .logo-image-container .header-logo {
  height: 100%;
  width: 100%;
}

.logo-container .page-title {
  font-weight: 700;
  color: var(--color-blue);
  font-size: 1.5rem;
}

.logo-container .page-title strong {
  color: var(--color-dim-gray);
}

.header-container .right-header {
  width: 20%;
}

.left-header .searsh-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 24.5625rem;
  height: 2.6rem;
  background: var(--color-light-gray);
  border: none;
  border-radius: 1.25rem;
  padding: 0 1rem 0 1rem;
}

.searsh-container .header-caixa-input {
  box-sizing: border-box;
  width: 90%;
  text-align: left;
  height: 1.5rem;
  background: var(--color-light-gray);
  border: none;
  color: var(--color-dark-gray);
  font-weight: 400;
  font-size: 0.875rem;
  outline: none;
}

.search-container .header-caixa-input {
  outline: none;
}

.searsh-container .search-button {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-light-gray);
  cursor: pointer;
  background: url(../imagens/lupa.svg) no-repeat center;
  border: none;
}

.login-button-container {
  width: 11.375rem;
}

.login-button-container .header-button {
  height: 2.8rem;
  width: 100%;
  background-color: var(--color-white);
  border: var(--color-blue) solid 1px;
  cursor: pointer;
  color: var(--color-blue);
  font-weight: 400;
}

.searsh-container-right-header {
  display: none;
}

.search-button-right-header {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-light-gray);
  cursor: pointer;
  background: url(../imagens/lupa.svg) no-repeat center;
  border: none;
}

/* banner */
.banner-conteiner {
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  padding: 1rem 8rem;
  width: 100%;
  height: 22rem;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(0, 0, 0, 0.6) 80%
    ),
    url("../imagens/banner-principal.svg") no-repeat center/cover;
  background-blend-mode: color;
}

.banner-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 44rem;
  height: 12rem;
}

.banner-title {
  font-size: 3.3rem;
  font-weight: bold;
  color: var(--color-white);
}

.banner-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-white);
}

.banner-button {
  height: 3.18rem;
  width: 8.12rem;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

/* Produtos */
.products-section-home {
  padding: 4rem 8rem;
}

.find-home-products {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.products-container {
  background: var(--color-light-gray);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  gap: 1rem;
  height: fit-content;
}

.products-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 1rem 0;
}

.products-showcase-section .informacoes-produtos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.produtos-link {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: bold;
}

.products-bottom {
  /* width: 44rem; */
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.produtos-itens {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  flex: 1 1 calc(15% - 16px);
  min-width: 150px;
}

.produtos-imagem-todos {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.produtos-nome,
.produtos-preço {
  color: var(--color-dim-gray);
}

.produtos-nome {
  font-size: 0.9rem;
  font-weight: 500;
  margin-block-start: 0;
  margin-block-end: 0;
}

.produtos-preço {
  font-weight: bold;
  margin-block-start: 0;
  margin-block-end: 0;
}

.products-title {
  font-weight: bold;
  font-size: 2rem;
  color: var(--color-dim-gray);
}

.produtos-vitrine {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.produtos-codigo {
  margin-block-start: 0;
  margin-block-end: 0;
  color: var(--color-dim-gray);
  font-size: 14px;
}

.produtos-preço {
  font-weight: bold;
}

.produtos-mais {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.produtos-seta {
  height: 0.875rem;
  width: 0.875rem;
  flex-shrink: 0;
}

/* Rodapé */
.rodape-conteiner {
  box-sizing: border-box;
  background: var(--color-alice-blue);
  min-height: 24rem;
}

.rodape-content {
  display: grid;
  grid-template-columns: 2fr 2fr;
  padding: 4rem 8rem;
}

.rodape-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rodape-nav .logo-container {
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
  gap: 0.25rem;
}

.rodape-nav-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

ol,
ul {
  list-style: none;
}

.rodape-nav-lista-item-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-dim-gray);
}

.rodape-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.rodape-form-titulo {
  color: var(--color-dim-gray);
  font-weight: bold;
}

.rodape-form-field {
  padding: 0.5rem 0.75rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-white);
  border-radius: 0.25rem;
  border-bottom: solid 1px var(--color-silver);
}

.rodape-form-label {
  color: var(--color-dark-gray);
  font-size: 0.75rem;
  line-height: 1rem;
}

.rodape-form-field-texto {
  border: none;
  line-height: 1.25rem;
}

.error-message {
  padding: 0.15rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.65rem;
  color: var(--color-red);
}

.rodape-form-field-mensagem {
  height: 5rem;
}

.rodape-form-label-mensagem {
  line-height: 1.25rem;
}

.rodape-form-field-texto-mensagem {
  resize: none;
}

.footer__form-field-text {
  border: none;
  line-height: 1.25rem;
}

/* Mensagem de erro */
.erro-mensagem {
  padding: 0.15rem;
  margin: 0.5rem 0 0 0;
  font-size: 0.65rem;
  color: var(--color-red);
  display: none;
}

input:invalid + .erro-mensagem,
textarea:invalid + .erro-mensagem {
    display: block;
}

.rodape-form-field:invalid {
  margin-bottom: 1rem; 
}

/* Estilização do placeholder */
.rodape-form-field-texto,
.rodape-form-field-texto-mensagem {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dim-gray);
  line-height: 1.25rem;
}

.rodape-form-field-texto::placeholder,
.rodape-form-field-texto-mensagem::placeholder {
  color: var(--color-dark-gray);
  border: none;
}

/* Remove a borda no foco e durante a digitação */
.rodape-form-field-texto:focus,
.rodape-form-field-texto-mensagem:focus {
  outline: none;
}

textarea::placeholder {
  color: var(--color-dark-gray); 
  font-size: 1rem; 
  opacity: 1; 
}

/* Placeholder invisível ao focar */
.rodape-form-field-texto:focus::placeholder,
.rodape-form-field-texto-mensagem:focus::placeholder {
  color: transparent;
}

.rodape-form-button {
  width: 9.8rem;
  font-size: 0.9rem;
  font-weight: 200;
  height: 3rem;
  border: none;
  cursor: pointer;
  background: var(--color-blue);
  color: var(--color-white);
}

.rodape-developer-conteiner {
  height: 4.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  flex-direction: column;
  gap: 0.4rem;
}

.rodape-developer-texto {
  text-align: center;
  font-weight: 500;
  color: var(--color-dim-gray);
}

/* Tela de login */
.container-login {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-div-login {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-body {
  margin: 0;
}

.login-main {
  background: var(--color-light-gray);
  padding: 4rem 0 5rem 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 26.4375rem;
  max-height: 18.1875rem;
  width: 90%;
  gap: 1rem;
}

.login-form-field,
.senha-form-field {
  border: none;
}

.login-form-titulo {
  color: var(--color-dim-gray);
  font-weight: bold;
  font-size: 1.125rem;
  text-align: center;
}

.login-form-field,
.senha-form-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-white);
  border-radius: 0.25rem;
  border-bottom: solid 1px var(--color-silver);
  padding-inline: 0;
}

.input[type="email" i],
.input[type="password" i] {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dim-gray);
  line-height: 1.25rem;
  max-width: 100%;
  height: inherit;
}

input:-ms-input-placeholder {
  font-size: 16px;
}

input::-webkit-input-placeholder {
  font-size: 16px;
}

input:-moz-placeholder {
  font-size: 16px;
}

/* firefox 19+ */
input::-moz-placeholder {
  font-size: 16px;
}

.email-input,
.password-input {
  border: none;
  outline: none;
  height: inherit;
  padding-left: 0.7rem;
}

.container-login-form-button {
  width: 100%;
}

.login-form-button {
  width: 100%;
  font-size: 0.9rem;
  font-weight: 200;
  height: 3.5rem;
  border: none;
  cursor: pointer;
  background: var(--color-blue);
  color: var(--color-white);
}

/* Tela de produtos */
.products-showcase-section {
  background: var(--color-light-gray);
  padding: 4rem 8rem 4rem 8rem;
}

.products-add-button {
  text-decoration: none;
  padding: 1rem 1rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 300;
  font-size: 1rem;
}

.images-container {
  position: relative;
}

.container-icones-produtos {
  display: flex;
  justify-content: end;
  gap: 0.8rem;
  top: 0;
  right: 0;
  position: absolute;
  padding: 0.5rem;
}

.icones-produtos {
  font-size: 1.5rem;
  color: var(--color-white);
}

/* Tela add */
.add-main {
  background: var(--color-light-gray);
  position: relative;
  padding: 8rem 0 9rem 0;
}

.container-add {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-div-add {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26.4375rem;
  max-height: 18.1875rem;
  width: 90%;
  gap: 1rem;
}

.add-form-titulo {
  color: var(--color-dim-gray);
  font-weight: bold;
  font-size: 1.5rem;
  text-align: start;
}

.url-form-field,
.categoria-form-field,
.nome-produto-form-field,
.preco-produto-form-field,
.descricao-form-field {
  border: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-white);
  border-radius: 0.25rem;
  border-bottom: solid 1px var(--color-silver);
  padding-inline: 0;
}

.descricao-form-texto {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dim-gray);
  line-height: 1.25rem;
  border: none;
  resize: none;
  padding: 0;
  outline: none;
}

.url-input,
.categoria-input,
.nome-input,
.preco-input {
  border: none;
  outline: none;
  height: inherit;
  padding-left: 0.7rem;
}

.container-add-form-button {
  width: 100%;
}

.add-form-button {
  width: 100%;
  font-size: 0.9rem;
  font-weight: 200;
  height: 3.5rem;
  border: none;
  cursor: pointer;
  background: var(--color-blue);
  color: var(--color-white);
}

/* Detalhes de produtos */
.details-body .products-showcase-section .products-box {
  display: flex;
  gap: 3rem;
  flex-direction: column;
}

.details-body .products-showcase-section .products-box .products-box-top {
  display: flex;
  gap: 0.8rem;
}

.details-body .products-showcase-section .products-box .products-box-top > div {
  flex: 1;
}

.details-body .products-showcase-section .products-box .products-box-top #productImage {
  width: 560px;
  height: 403px;
  object-fit: cover; 
}

.details-body .products-showcase-section .products-box .products-box-top .information-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

#titleProduct {
  font-size: 52px;
  font-family: Raleway;
  color: var(--color-dim-gray);
  font-weight: 500;
}

.information-container .priceProduct,
#priceProduct {
  font-size: 1rem;
  font-family: Raleway;
  color: var(--color-dim-gray);
  font-weight: 700;
}

#descricaoProduct {
  font-size: 1rem;
  font-family: Raleway;
  color: var(--color-dim-gray);
  font-weight: 400;
  line-height: 18.78px;
}

/* Responsividade para tablets */
@media (max-width: 1024px) {
  .header-container {
    height: 4rem;
  }
  .logo-container .logo-image-container {
    width: 1.8rem;
    height: 1.8rem;
  }
  .logo-container .page-title {
    font-size: 1rem;
  }
  .left-header .searsh-container {
    height: 2.4rem;
  }
  .login-button-container .header-button {
    height: 2.4rem;
    font-weight: 600;
    font-size: 0.875rem;
  }

  .container-add {
    padding: 1.5rem 0 1.5rem 0;
  }

  .container-div-add {
    width: 100%;
  }

  .add-form {
    width: 100%;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: unset;
  }

  .add-form-titulo {
    margin-block-start: 0;
    margin-block-end: 0;
  }

  .add-form-button {
    height: 3rem;
  }

  .rodape-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .rodape-nav {
    display: flex;
  }
  .rodape-form-button {
    height: 2.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .header-container {
    padding: 0 1.5rem 0 1.5rem;
  }
  .header-container
    .left-header
    .header-left-container
    .searsh-container
    .header-caixa-input {
    width: 17rem;
  }
  .banner-conteiner {
    padding: 0rem 1.5rem 0rem 1.5rem;
  }
  .products-section-home,
  .products-showcase-section {
    padding: 1rem 1.5rem 1rem 1.5rem;
  }

  .rodape-content {
    gap: 1rem;
    padding: 2rem 1.5rem;
    grid-template-columns: 1fr 2fr;
  }
}

/* Responsividade para celulares */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem 0 1rem;
    min-width: unset;
  }
  .left-header {
    flex: 1;
  }
  .banner-conteiner {
    padding: 0rem 1rem 0rem 1rem;
  }
  .banner-box {
    min-width: unset;
  }
  .banner-title {
    font-size: 1.375rem;
  }
  .banner-text,
  .banner-button {
    font-size: 0.875rem;
  }
  .banner-button {
    height: 2.5rem;
    width: 7.4375rem;
  }
  .products-section-home,
  .products-showcase-section {
    padding: 1rem 1rem 1rem 1rem;
  }
  .container-add {
    padding: 0 1rem;
  }
  .tablet-produtos-itens {
    display: none;
  }
  .products-title {
    font-size: 1.375rem;
    margin-block-start: 0.5em;
  }
  .produtos-link {
    font-size: 1rem;
  }
  .rodape-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .rodape-nav {
    align-items: center;
    text-align: center;
  }
  .container-login-form-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-form-button {
    width: 50%;
  }

  .login-form-field,
  .senha-form-field {
    height: 2rem;
  }

  .container-login-form-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-form-button {
    width: 50%;
    height: 3rem;
  }

  .products-add-button {
    padding: 0.8rem;
    font-size: 0.8rem;
  }

  .products-box {
    gap: 1rem;
    display: flex;
    flex-direction: column;
  }

  .products-section-home .products-top {
    align-items: center;
    gap: 1rem;
    flex-direction: row;
  }

  .products-top {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }

  .add-body .header-container .right-header {
    min-width: 9rem;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .left-header .searsh-container {
    display: none;
  }
  .searsh-container-right-header {
    display: block;
  }
  .left-header {
    flex: none;
    width: unset;
  }
  .login-form-field,
  .senha-form-field {
    height: 1.8rem;
  }
  .login-form-button {
    height: 2.5rem;
  }
}
