@import url("./colors.css");

/* Lançamentos */

.card {
  border-radius: 0 !important;
}

.card-releases {
  max-width: 290px;
  width: 100%;
  height: 320px;
  background-color: var(--color-white);
  border: none;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease;
}

.card-releases-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  width: 100%;
}

.card-releases-img {
  padding: 5px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-releases-img img {
  max-height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.card-releases-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-releases-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-secondary);
}

.card-releases-info .fw-bold {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}

.card-releases-info .text-secondary:not(.fw-bold) {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Highlight */

.card-products {
  position: relative;
  max-width: 280px;
  min-width: 280px;
  width: 100%;
  border-radius: 15px;
  border: none;
  background: var(--color-white);
  box-shadow: -4px 8px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-products .card-products-img {
  overflow: hidden;
}

.card-products .card-products-img img {
  text-align: center;
  max-height: 250px;
  min-height: 250px;
}

.card-products .card-products-body {
  border: 2px solid var(--color-primary-light);
}

.card-products .card-products-body .card-products-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem;
  background: var(--color-primary-light) !important;
}

.card-products .product-action {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  top: 40%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.4s ease-in-out;
}

.card-products .product-action .action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 5px !important;
  cursor: pointer;
  transition: all 0.4s;
}

.card-products .product-action .action-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-secondary);
  transition: all 0.4s;
}

.card-products:hover .product-action {
  opacity: 1;
  visibility: visible;
  transition: all 0.4s ease-in-out;
}

/* Variations Prodcut */

.card-variation {
  max-width: 150px;
  max-height: 190px;
  border: none;
  background: var(--color-white) !important;
}

.card-variation .card-body .card-title {
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.card-variation .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-variation .card-body img {
  max-height: 100px;
}

/* Principles */

#card-principle {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--color-primary);
}

#card-principle .card {
  background: none;
  border: none;
}

#card-principle .card .card-body {
  background: transparent;
}

#card-principle .card .card-body .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 130px;
}

#card-principle .card .card-body .title-principles {
  color: var(--color-primary);
  font-size: clamp(1.2rem, 2vw, 24px);
  font-weight: bold;
}

#card-principle .card .card-body .sub-title-principles {
  font-size: clamp(1rem, 2vw, 20px);
  font-weight: bold;
}

#card-principle .card .card-body p {
  text-align: justify;
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
  color: var(--color-black);
  font-size: initial;
}

#card-principle .card .card-icon img {
  max-height: 100px;
}

/* Differences */

#card-differences .card {
  background: none;
  border: none;
}

#card-differences .card-body .card-text {
  margin: 0;
}

#card-differences .card .card-body {
  text-align: center;
  min-height: 100px;
  background: none !important;
}

#card-differences .card .card-body p {
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
  font-size: initial !important;
}

#card-differences .card .card-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

#card-differences .card img {
  max-height: 70px;
}

/* Cards Blog */

#blog .card {
  min-height: 250px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 5px 5px 16px -4px rgba(0, 0, 0, 0.397);
}

#blog .card .card-image {
  width: 100%;
  min-width: 300px;
  max-width: 300px;
}

#blog .card .card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: content !important;
  align-items: flex-start;
}

#blog .card .card-body {
  width: 100%;
  flex: content !important;
}

#blog .card .card-body .title p {
  font-size: clamp(18px, 2vw, 18px) !important;
  color: var(--color-primary);
}

#blog .card .date {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 15px;
  color: var(--color-white);
}

#blog .card .card-body .desc p {
  text-align: justify;
  color: var(--color-black);
  font-size: 16px !important;
}

/* Testimonial */

#testimonial .card {
  border: none;
  background: var(--color-white);
}

#testimonial .card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border-radius: 100%;
  border: 2px solid var(--color-primary);
  background: var(--color-bg-grey-light);
  overflow: hidden;
}

#testimonial .card p {
  color: var(--color-secondary);
  text-align: justify !important;
}

/* Cards suppliers */

#card-supplier {
  overflow: hidden;
  cursor: pointer;
  border: none;
  background-color: var(--color-white);
}

#card-supplier .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

#card-supplier .card-body {
  padding: 0.8rem;
}

#card-supplier .card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

#card-supplier p {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.no-suppliers-message {
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 400px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #555;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 500;
}

/* Marcas */

#card-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 120px;
  max-height: 120px;
  overflow: hidden;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#card-brands img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Represented */

#represented {
  border: 2px solid var(--color-primary);
  background: var(--color-bg-grey);
}

#represented .card {
  max-width: 289px;
  min-width: 289px;
  min-height: 180px;
  max-height: 180px;
  border: 2px solid transparent;
  transition: all 0.4s;
}

#represented .card .client-image-container {
  max-width: 289px;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#represented .card .client-image-container img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transform: scale(1);
  transition: all 0.4s;
}

#represented .card:hover .client-image-container img {
  filter: grayscale(0%);
}
