@import "fonts.css";

:root {
  --txt-black: #707070;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--txt-black);
  text-decoration: none;
}

.active {
  text-decoration: underline;
}

.error {
  color: #ff0000;
  font-weight: bold;
}

.error-message {
  color: #ff0000;
  font-weight: bold;
  display: none;
}

#alert-container {
  max-width: 600px;
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}

.btn {
  --bs-border-radius-sm: 1rem;
  --bs-btn-border-radius: 1rem;
}

.card {
  --bs-card-border-width: 0;
  --bs-card-border-radius: 0;
  color: var(--txt-black);
}

.card-body > .text-primary {
  color: var(--txt-black) !important;
}

.nav-link {
  color: var(--txt-black);
}

/* Top bar */
.navbar-custom .container-fluid {
  padding: 0;
  margin: 0;
}

/* Content Container */
.content {
  display: flex;
  max-width: 80%;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.content-notification {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  align-items: center;
  justify-content: center;
  margin: 5rem auto;
}

.content-service {
  display: flex;
  max-width: 80%;
  height: 90vh;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.content-profile {
  display: flex;
  max-width: 80%;
  height: 80vh;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.content-store {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

/* Contêiner principal */
.content-product {
  display: flex;
  gap: 20px;
}

/* Filtro à esquerda */
.filter-form {
  width: 250px;
  flex-shrink: 0;
}

/* Listagem de produtos */
.product-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container dos produtos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  height: max-content;
}

/* Estilo dos cards */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: max-content;
  text-align: center;
}

/* Estilo das imagens */
.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Paginação no bottom */
.pagination-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}


.nav {
  width: 75%;
}

/* Login */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 50%;
  height: 100%;
  color: var(--txt-black);
  padding-top: 5rem;
}

.hero-profile {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  min-width: 50%;
  height: 100%;
  color: var(--txt-black);
  padding: 5rem 0;
}

.login-section {
  min-width: 50%;
  padding: 0 10rem;
  color: var(--txt-black);
}

.register-section {
  min-width: 50%;
  padding: 0 10rem;
  color: var(--txt-black);
}

.form-control {
  border: none;
  border-bottom: 1px solid var(--txt-black);
  border-radius: 0;
}

.help-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 50%;
  height: 100%;
  color: var(--txt-black);
  padding-top: 5rem;
}

.image-section {
  min-width: 50%;
  height: 100%;
  overflow: hidden;
}

.relative {
  position: relative;
}

.image-section > img {
  position: absolute;
  top: -2rem;
  right: -30rem;
  width: 75%;
  height: auto;
  z-index: -1;
}

.register-img {
  max-width: 90%;
  height: auto;
}

.filter-form {
  width: 100%;
  max-width: 300px;
  margin: 20px;
}

.filter-form > h5 {
  color: var(--txt-black);
}

.filter-form label {
  font-weight: bold;
  color: var(--txt-black);
}

.filter-form select {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  font-size: 1rem;
  color: var(--txt-black);
  padding-left: 1rem;
}

.filter-form select:focus {
  border-color: #333;
  box-shadow: none;
}

.notification-div {
  width: 8rem;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.remove-btn {
  color: #666;
  text-decoration: none;
}
.remove-btn:hover {
  color: #333;
}
.product-code {
  color: #666;
  font-size: 0.875rem;
}

.cart {
  --bs-card-border-width: 0;
}

.image-preview {
  position: relative;
  display: inline-block;
  width: 150px;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}
.form-container {
  background: #fff;
  padding: 20px;
  /* max-width: 900px; */
  width: 80%;
}

.page-item.active {
  text-decoration: none;
}