@import "../../reset.css";

.body-wrapper {
  /* display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; */
  /* padding: 1rem; */
  display: grid;
  grid-template-rows: 20.1rem minmax(calc(100vh - 26.1rem), 1fr) 6rem;
  grid-template-areas: "header" "main" "footer";
}

header {
  grid-area: header;
  /* width: 35rem; */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.header-logo img.logo {
  width: 100%;
  padding: 0.5rem;
}

.header-nav {
  padding: 1rem;
}

.header-nav nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: black;
}

.header-nav nav ul li:hover {
  color: rgb(147, 27, 52);
}

main {
  grid-area: main;
  /* width: 35rem; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

h1 {
  padding: 2rem 2rem 1rem;
  border-bottom: 5px solid rgb(255, 194, 199);
  font-size: 24px;
  color: black;
  font-weight: 700;
  text-transform: uppercase;
}

section.products {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
  gap: 2rem;
  /* padding: 2rem; */
}

article.product {
  box-shadow: 2px 1px 6px 0 rgba(0, 0, 0, 0.3);
  max-width: 350px;
  min-height: 570px;
  /* width: 35rem; */
}

.carousel {
  display: flex;
  flex-direction: column;
}
.carousel-images {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35rem;
  height: 35rem;
  z-index: 99;
}

/* .next-btn {
  position: absolute;
  right: 50%;
  top: 50%;
  z-index: 99;
  border:1px solid blue;
  width: 100%;
  height: 100%;

}

.next-btn img{

  border:1px solid red;
} */

figure {
  width: 100%;
  height: 100%;
  display: none;
  /* position: relative; */
}

/* figure:nth-child(n + 2) {
  display: none;
} */

figure > img {
  width: 100%;
  cursor: pointer;
}

/* figure > img.next-btn {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 48px;
} */

figcaption {
  width: 100%;
  background-color: rgb(173, 170, 170);
  color: rgb(147, 27, 52);
  padding: 7px 20px;
  text-align: center;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 700;
  height: 38px;
}

figcaption.active {
  background-color: rgb(255, 194, 199);
}

article.product h3 {
  font-size: 20px;
  font-weight: 700;
}

.info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 2rem;
}

.next-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 13px;
}

.info-wrapper {
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
}

/* .info-wrapper > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
} */

.info-wrapper > div > span:first-child {
  font-weight: 500;
}

section.categories {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

div.data-block {
  font-size: 1.8rem;
  font-family: "Poppins", sans-serif;
  background-color: var(--accent-100);
  color: var(--text-100);
  width: 35rem;
  text-align: center;
  font-weight: 500;
}

div.data-block a:hover {
  background-color: var(--accent-200);
  color: var(--bg-100);
}

div.data-block a {
  width: 100%;
  display: inline-block;
  padding: 1rem;
}

footer {
  grid-area: footer;
  background-color: rgb(147, 27, 52);
  width: 100%;
}

.footer-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: white;
}

.footer-wrapper ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  font-size: 1.4rem; 
  line-height: 2.1rem;
}

.text-content{
  width: 80%;

  text-align: justify;
	text-justify: inter-word;
}

@media only screen and (min-width: 768px) {
  /* main {
    width: 100%;
  } */

  .products {
    /* max-width: 120rem; */
  }

  header {
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
  }
}
