html {
  box-sizing: border-box;
}
body {
  box-sizing: inherit;
  /* background-color: #f0f0f0; */
  background-color: #e9e9e9;
  /* background-color: #ffffff; */
  font-family: "Josefin Sans", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
ul {
  padding: 0;
  margin: 0;
}
button {
  border: none;
  cursor: pointer;
}
p,
li,
a {
  font-family: "plus Jakarta sans", sans-serif;
}
/* utilities */
img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
}
.text-center {
  text-align: center;
}
.flex-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container {
  /* max-width: 1320px; */
  padding-right: 5px;
  /* margin: 0 auto; */
}
.product__container {
  display: flex;
  max-height: 100vh;
  width: 100%;
  /* justify-content: space-between; */
  gap: 2rem;
}
.product-image {
  margin: auto;
}
.product-media {
  flex-basis: 55%;
  display: flex;
  align-items: center;
  /* height: 35rem; */
  height: 100vh;
  background-color: #e9e9e9;
}
.product-info {
  width: 100%;
  padding: 30px 30px;
  padding-bottom: 50px;
  border-bottom-left-radius: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row dense;
  grid-auto-rows: min-content;
  /* grid-template-columns: ; */
  align-items: start;
  gap: 2.25rem;
  flex: 1;
  text-align: left;
  overflow-y: scroll;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
  background-color: #ffffff;
}
.product-info::-webkit-scrollbar {
  display: none; /* Hide scrollbars */
}

.badge {
  width: max-content;
  padding: 3px 10px;
  background-color: orange;
  text-align: center;
  border-radius: 6px;
}
.title-wrapper {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 0.75rem;
}
.product__info-title {
  font-size: 1.5rem;
  font-family: "josefin sans";
}
.product__info-price {
  font-size: 1.9rem;
  justify-self: end;
}
.product__info-description {
  grid-column: 1/-1;
  align-self: start;
  font-family: "plus Jakarta sans", sans-serif;
  text-transform: initial;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: #333;
  letter-spacing: 1.5px;
  max-width: 50ch;
}
.product-info__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-column: 1/-1;
}
/* color swatches */
.color-swatches {
  align-self: center;
  max-width: 14rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.color-swatches__button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgb(159, 73, 159);
  cursor: pointer;
  position: relative;
}
.color-swatches__button-1 {
  background-color: rgb(144, 233, 174);
}
.color-swatches__button-2 {
  background-color: rgb(116, 108, 222);
}
.color-swatches__button-1 {
  background-color: rgb(233, 144, 160);
}
.color-swatches__button.color-swatches__button--active .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0.5em;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cta {
  grid-column: 2/-1;
  justify-self: end;
  width: max-content;
  padding: 10px 35px;
  border-radius: 20px;
  background-color: aqua;
  font-size: 1.2rem;
  font-family: "josefin sans", sans-serif;
}
/* accordion section */
.accordion {
  grid-column: 1/-1;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background-color: #e9e9e9;
  border-radius: 20px;
}
.tech-details {
  margin-top: 6rem;
}
.accordion__heading {
  grid-column: 1/-1;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
}

.plus-icon {
  justify-self: end;
  background-color: #fff;

  padding: 10px;
  border-radius: 50%;
}

.accordion-content__wrapper {
  grid-column: 1/-1;
}
.accordion-item,
.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 16px 20px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #fff;
}
.tech-wrapper {
  background-color: #fff;
  border-radius: 15px;
  padding: 20px 12px;
}
.row {
  padding: 5px 0;
  align-items: start;
  border-radius: 15px;
  overflow: hidden;
  background-color: transparent;
}
.included.row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}
.included img {
  width: 100%;
  height: 100%;
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  /* margin: 0 auto; */
}
.row :nth-child(2) {
  grid-column: 2/-1;
}
.row:not(:last-child) {
  border-radius: 0;
  border-bottom: 1px solid #dddbda;
}
.accordion-toggle,
.accordion-heading-toggle {
  display: none;
  width: 100%;
}

.accordion-question {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  /* color: #333; */
  transition: background-color 0.3s ease;
  font-family: "plus Jakarta sans", sans-serif;

  font-size: 0.85rem;
  font-weight: 500;
}
.description {
  font-size: 0.85rem;
  font-weight: 300;
  font-family: "plus Jakarta sans", sans-serif;
  max-width: 30ch;
}
.accordion-answer,
.accordion-content__wrapper,
.tech-wrapper {
  font-family: "plus Jakarta sans", sans-serif;

  grid-column: 1/-1;
  font-size: 1rem;
  display: none;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-answer {
  font-size: 0.85rem;
}
.accordion-toggle:checked + .accordion-question + .accordion-answer,
.accordion-heading-toggle:checked
  + .accordion__heading
  + .accordion-content__wrapper,
.accordion-heading-toggle:checked + .accordion__heading + .tech-wrapper {
  max-height: min-content; /* Adjust height to fit your content */
  margin-top: 16px;
  display: block;
}

.accordion-heading-toggle:checked + .accordion__heading .plus-icon,
.accordion-toggle:checked + .accordion-question .plus-icon {
  transform: rotate(45deg);
}

/* image with text */
.container h1 {
  text-align: center;
  margin: 6rem 0;

  font-family: "Plus Jakarta Sans";
}

.image-text-highlight {
  color: #fff;
  max-width: 1200px;
  height: 400px;
  margin: 0 auto;
  margin-top: 6rem;
  background-image: url("./night light.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.9;
  padding: 4rem 3rem;
  border-top-left-radius: 35px;
  border-top-right-radius: 35px;
  display: flex;
  flex-direction: column;
  align-items: start;
  /* justify-content: space-between; */
  gap: 4rem;
}
.image-text-highlight h1,
.image-text h1 {
  margin: 0;
  text-align: left;
  font-size: 128px;
}
.image-text .image-text__content h1 {
  font-size: 60px !important;
}
.image-text-highlight p,
.image-text p {
  font-size: 1.5rem;
  text-align: left;
  margin: 0;
  margin-top: 0.75rem;
  max-width: 40ch;
  font-family: "plus Jakarta sans", sans-serif;
}

.image-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background-color: #fff;
  color: #000;
  max-width: 1200px;
  height: 300px;
  margin: 0 auto;
  padding: 4rem 3rem;
  position: relative;
  border-bottom: 2px solid #5b5b5b;
}
.image-text__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-basis: 20%;
  align-self: flex-end !important;
  /* border-right: 2px solid #000; */
  padding-right: 50px;
  height: 100%;
}
.image-text__content--1::after {
  content: "";
  width: 2px;
  height: 100%;
  background-color: #5b5b5b;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 37%;
  border-bottom: 2px solid #5b5b5b;
}

.image-text__content--2::before {
  content: "";
  width: 2px;
  height: 100%;
  background-color: #5b5b5b;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 37%;
  border-bottom: 2px solid #5b5b5b;
}

.image-text h1 {
  font-size: 80px;
}
.image-text p {
  font-size: 1rem;
}

.image-text--3 {
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  border-bottom: none;
}

.whats-included {
  margin-top: 0;
}

/* features */
.container.image-text-list {
  max-width: 1320px;
  padding: 6rem 30px;
}
.image-text-list {
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  background-color: #000;
  color: white;
}
.image-text-list__heading {
  font-size: 4.5rem;
}
.image-text-list__description {
  max-width: 40ch;
  font-size: 1.2rem;
}
.image-text-list__media {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.features-list {
  text-decoration: none;
  list-style: none;
}
.features-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 20px 0;
}

.features-list__item h4 {
  font-weight: normal;
  font-size: larger;
  flex-basis: 30%;
}
.features-list__item p {
  font-family: "plus Jakarta sans", sans-serif;
}
.features-list__item:not(:last-child) {
  border-bottom: 1px solid white;
}
.footer {
  margin-top: 4rem;
  text-align: center;
}
