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

/* Products */

.card-products {
  position: relative;
  max-width: 230px;
  width: 100%;
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.card-products .card-products-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 170px;
  background-color: var(--color-white);
  overflow: hidden;
}

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

.card-products .card-products-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

.card-products .card-products-info p {
  font-family: Roboto, "Barlow", sans-serif;
}

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

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

.card-products:hover .product-action {
  opacity: 1;
  visibility: visible;
}

.action-btn:hover {
  color: var(--color-primary);
  background-color: var(--color-tertiary);
}

/* Variations Product */

.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;
  max-width: 350px;
  background: var(--color-card-principle);
  border: 2px solid var(--color-card-principle);
  border-radius: 20px;
  overflow: hidden;
}

#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-white);
  font-size: clamp(1.2rem, 5vw, 35px);
  font-family: Roboto, "Overlock", sans-serif;
  font-weight: 900;
}

#card-principle .card .card-body .sub-title-principles {
  color: var(--color-white);
  font-size: clamp(1rem, 1vw, 28px);
  font-weight: 700;
}

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

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

/* Differences */

#card-differences {
  position: relative;
  max-width: 320px;
  min-height: 320px;
  width: 100%;
}

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

#card-differences .bg-card-principle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#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 {
  text-align: center;
  min-height: 100px;
  background: none !important;
}

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

#card-differences .card .card-body .container-title,
#card-differences .card .card-body .container-title p {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  color: var(--color-white);
  font-family: Roboto, "Overlock", sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 22px);
}

/* 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: -7px 9px 8px #00000040 !important;
}

#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(16px, 2vw, 22px) !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: 2px solid var(--color-tertiary);
  background: var(--color-white);
}

#testimonial .card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border-radius: 12px;
  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;
  border-radius: 15px;
  background: var(--color-white);
  box-shadow: -7px 9px 8px #00000040 !important;
}

#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.3s;
}

#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.3s;
}

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

/* Category */

.card-category {
  position: relative;
  width: 230px;
  height: 230px;
  background: var(--color-white);
  border-radius: 10px;
  border: none;
  overflow: hidden;
}

.card-category .card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.card-category .card-body .card-body-text {
  height: 40px;
}

.card-category .card-body .card-body-text h2 {
  font-family: Roboto, "Overlock", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.card-body-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
}

.card-body-image img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.card-shutters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120%;
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.35s;
  pointer-events: none;
}

.shutter-right .shutter-content {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  gap: 0.2rem;
  position: absolute;
  bottom: 40px;
  right: 90px;
}

.shutter-right .plus {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.shutter-left {
  left: -30%;
  background: rgba(0255, 4, 34, 0.8);
  transform-origin: left center;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 80% 0, 50% 100%, 0 100%);
}

.shutter-right {
  right: -30%;
  background: rgba(0, 0, 41, 0.8);
  transform-origin: right center;
  transform: translateX(50%);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 20% 100%);
}

.card-category:hover .shutter {
  opacity: 1;
  transform: translateX(0);
}

.shutter-left .text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.card-category .shutter-left,
.card-category .shutter-right {
  border-radius: 10px;
}

/* Call */

.cta-card-small {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  display: block;
  text-decoration: none;
  max-height: 300px;
  min-height: 200px;
  box-shadow: -7px 9px 8px #00000040 !important;
}

.cta-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  align-content: center;
  color: var(--color-white);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-family: Roboto, "Overlock", sans-serif;
  font-weight: 800;
  text-align: center;
}

.cta-card-large {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 100%;
  min-height: 400px;
  min-height: 400px;
  box-shadow: -7px 9px 8px #00000040 !important;
}

.cta-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-overlay {
  max-width: 500px;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  align-content: center;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cta-large-title {
  color: var(--color-white);
  font-size: clamp(1.9rem, 4vw, 3.4rem) !important;
  font-family: Roboto, "Overlock", sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.cta-btn {
  display: inline-block;
  background-color: var(--color-tertiary);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 50%;
  text-decoration: none;
}

.cta-btn:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
}
