/*=============== GOOGLE FONTS ===============*/@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --title-color: hsl(250, 8%, 15%);
  --text-color: hsl(250, 8%, 35%);
  --body-color: hsl(250, 60%, 98%);
  --container-color: #fff;
  --shadow: hsla(0, 0%, 15%, 0.1);
  --scroll-bar-color: hsl(250, 12%, 90%);
  --scroll-thumb-color: hsl(250, 12%, 80%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 4rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-bold: 600;

  /*========== Margenes Bottom ==========*/
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
}

button,
input {
  border: none;
  outline: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 7rem 0 2rem;
}

.section__title,
.breadcrumb__title {
  font-size: var(--h1-font-size);
}
.breadcrumb__subtitle span {
  color: var(--first-color);
}

.section__title,
.breadcrumb__subtitle {
  margin-bottom: var(--mb-3);
}

.section__title,
.breadcrumb__title,
.breadcrumb__subtitle {
  text-align: center;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
}

/*=============== HEADER SECTION ===============*/
.header {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: calc(var(--header-height) + 1.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 3rem;
}
.nav__close,
.login__toggle,
.nav__logo,
.nav__toggle,
.nav__shop {
  color: var(--title-color);
}
.nav__logo {
  text-transform: lowercase;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
}
.nav__logo-icon {
  font-size: 1.25rem;
}
.nav__btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-left: auto;
}
.nav__toggle,
.login__toggle,
.nav__shop {
  font-size: 1.25rem;
  cursor: pointer;
}
.nav__list {
  display: flex;
  /* justify-content: space-between; */
  column-gap: 2rem;
  align-items: center;
}
.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  transition: 0.3s;
}
.nav__link:hover {
  color: var(--first-color);
}
.nav__close {
  font-size: 2rem;
  position: absolute;
  top: 0.9rem;
  right: 1.25rem;
  cursor: pointer;
}
.nav__close,
.nav__toggle {
  display: none;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px var(--shadow);
}
/* Active link */
.active-link {
  position: relative;
}
.active-link::before {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 45%;
  width: 5px;
  height: 5px;
  background: var(--title-color);
  border-radius: 50%;
}

/*=============== MAIN ===============*/
/*========== HOME SECTION ==========*/
.home__content {
  padding: 9rem 0 2rem;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
}
.home__group {
  display: grid;
  position: relative;
  padding-top: 2rem;
}
.home__img {
  height: 420px;
  transform: translateY(-3rem);
  justify-self: center;
}
.home__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--title-color);
  position: absolute;
  bottom: 15%;
  left: 45%;
}
.home__indicator::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 75px;
  background: var(--title-color);
  top: 0;
  right: 45%;
}

.home__details-img {
  position: absolute;
  bottom: 0;
  right: 58%;
}
.home__details-title,
.home__details-subtitle {
  display: block;
  font-size: var(--small-font-size);
  text-align: right;
}
.home__details-subtitle {
  font-size: var(--h3-font-size);
  text-transform: uppercase;
  margin-bottom: var(--mb-1);
}
.home__title {
  font-size: var(--biggest-font-size);
  text-transform: uppercase;
  margin-bottom: var(--mb-1-5);
}
.home__description {
  margin-bottom: var(--mb-2-5);
  padding-right: 2rem;
}
.home__buttons {
  display: flex;
  justify-content: space-between;
}

/* Swiper Class */
.swiper-pagination {
  position: initial;
  margin-top: var(--mb-2-5);
}
.swiper-pagination-bullet {
  width: 5px;
  height: 5px;
  background: var(--title-color);
  opacity: 1;
}
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  margin: 0 0.5rem;
}
.swiper-pagination-bullet-active {
  width: 1.5rem;
  height: 5px;
  border-radius: 0.5rem;
}

/*=
============== BUTTONS ===============*/
/* todo: sign -up button */
.button {
  display: inline-block;
  background: var(--first-color);
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
  color: #fff;
}
.button:hover {
  background: var(--first-color-alt);
}
.button__icon {
  font-size: 1.25rem;
}
.button--link {
  color: var(--title-color);
}
.button--flex {
  display: inline-flex;
  justify-content: space-between;
  column-gap: 0.5rem;
}
/*========== DISCOUNT SECTION ==========*/
.discount__container {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  align-items: center;
  column-gap: 7rem;
  background: var(--container-color);
  padding: 3rem 0;
  border-radius: 3rem;
}
.discount__img {
  width: 200px;
}
.discount__data {
  padding-left: 6rem;
  text-align: center;
}
.discount__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2-5);
}

/*========== NEW ARRIVALS SECTION ==========*/
.new__container {
  padding-top: 1rem;
}
.new__img {
  width: 150px;
  margin-bottom: var(--mb-1);
  transition: 0.3s;
}
.new__content {
  position: relative;
  background-color: var(--container-color);
  width: 310px;
  padding: 2rem 0;
  border-radius: 1rem;
  /* align-items: center; */
  text-align: center;
  transition: 0.3s;
  overflow: hidden;
}
.new__tag {
  position: absolute;
  top: 8%;
  left: 8%;
  background: var(--first-color);
  color: white;
  font-size: var(--small-font-size);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.new__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  /* margin-bottom: var(--mb-1); */
}
.new__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}
.new__prices {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
}
.new__price {
  font-weight: var(--font-medium);
  color: var(--title-color);
}
.new__discount {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  text-decoration: line-through;
  font-weight: var(--font-medium);
}
.new__button {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.25rem 0.25rem 0.75rem 0.25rem;
  bottom: 0;
  right: -3rem;
  position: absolute;
}
.new__icon {
  font-size: 1.25rem;
}
.new__content:hover .new__img {
  transform: translateY(-0.5rem);
}

.new__content:hover .new__button {
  right: 0;
}

/*========== STEPS SECTION ==========*/
.steps__bg {
  background: var(--container-color);
  padding: 3.5rem 2.5rem;
}
.steps__container {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  padding-top: 1rem;
}
.steps__card {
  background: var(--body-color);
  padding: 2.5rem 3rem 2rem 1.5rem;
  border-radius: 1rem;
  transition: 0.5s;
}
.steps__card-number {
  display: inline-flex;
  background: var(--first-color);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  transition: 0.3s;
}
.steps__card-title {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-0-5);
}
.steps__card-description {
  font-size: var(--small-font-size);
}
.steps__card:hover {
  border: 2px solid var(--first-color);
  box-shadow: 10px lightgray;
}
.steps__card:hover .steps__card-number {
  transform: translateY(-0.25rem);
}

/*========== NEWSLETTER SECTION ==========*/
.newsletter__container {
  display: grid;
  grid-template-columns: 0.5fr;
  justify-content: center;
  /* background: var(--container-color); */
}
.newsletter__description {
  padding: 0 3rem;
  text-align: center;
  margin-bottom: var(--mb-1-5);
}
.newsletter__form {
  background: var(--container-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  border-radius: 0.75rem;
}

.newsletter__input {
  width: 70%;
  padding: 0 0.5rem;
  background: none;
  color: var(--text-color);
}
.newsletter__input::placeholder {
  color: var(--text-color);
}
.news__span {
  color: var(--first-color);
  margin-top: 10px;
  display: block;
}

/*=============== SHOP PAGE ===============*/
.shop__container {
  grid-template-columns: 1.7fr 3.3fr;
  column-gap: 1.8rem;
}

.sidebar {
  padding: 1rem;
  background-color: var(--container-color);
  border-radius: 1rem;
}
.filter__title {
  font-size: var(--h3-font-size);
  text-transform: uppercase;
}
.filter__subtitle {
  margin: 1.75rem 0 var(--mb-0-5);
  font-size: var(--normal-font-size);
}
.filter {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-0-5);
  color: var(--text-color);
  font-size: var(--small-font-size);
}
.filter p {
  flex: 1;
}
.filter input {
  margin-right: var(--mb-0-75);
  cursor: pointer;
}
.shop__items {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.shop__content {
  position: relative;
  background: var(--container-color);
  padding: 2rem 0;
  border-radius: 1rem;
  text-align: center;
  overflow: hidden;
}
.shop__img {
  width: 150px;
  margin-bottom: var(--mb-1);
  transition: 0.3s;
}
.shop__tag {
  position: absolute;
  top: 8%;
  left: 8%;
  background-color: var(--first-color);
  color: white;
  font-size: var(--small-font-size);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
.shop__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.shop__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}
.shop__prices {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
}
.shop__price {
  font-weight: var(--font-medium);
  color: var(--title-color);
}
.shop__discount {
  color: var(--first-color);
  text-decoration: line-through;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}
.shop__button {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.25rem 0.25rem 0.75rem 0.25rem;
  position: absolute;
  bottom: 0;
  right: -3rem;
  transition: 0.3s;
}
/* .shop__button:hover {
  right: 0;
} */
.shop__icon {
  font-size: 1.25rem;
}
.shop__content:hover .shop__img {
  transform: translateY(-0.5rem);
}
.shop__content:hover .shop__button {
  right: 0;
}

/*=============== PAGINATION ===============*/
.pagination {
  display: flex;
  align-items: center;
  justify-content: end;
  column-gap: 0.8rem;
  margin-top: var(--mb-2-5);
  font-size: var(--normal-font-size);
}
.pagination span {
  width: 2.2rem;
  height: 2.2rem;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
}
.pagination .current {
  background-color: var(--first-color);
  color: white;
}

.pagination__icon {
  font-size: var(--h2-font-size);
}

/*=============== DETAILS PAGE ===============*/
.details__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 3rem;
}
.product__images {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.product__img {
  background-color: var(--container-color);
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  position: relative;
  cursor: pointer;
}
.details__img-tag {
  position: absolute;
  top: 8%;

  left: 8%;
  background: var(--first-color);
  color: #fff;
  font-size: var(--small-font-size);
  padding: 0.16rem 0.5rem;
  border-radius: 0.25rem;
}
.product__img img {
  width: 150px;
}
.details__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-0-5);
}
.details__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.rating {
  display: flex;
  align-items: center;
  column-gap: 1.2rem;
  margin-bottom: var(--mb-1);
}
.rating span {
  font-size: var(--small-font-size);
}
.rating i {
  margin-right: 0.1rem;
}
.details__prices {
  display: inline-flex;
  align-items: center;
  column-gap: 0.8rem;
  margin-bottom: var(--mb-1-5);
}
.details__price {
  font-weight: var(--font-medium);
  color: var(--title-color);
  font-size: var(--h3-font-size);
}

.details__discount {
  color: var(--first-color);
  text-decoration: line-through;
  font-weight: var(--font-medium);
}
.discount__percentage {
  background: var(--title-color);
  padding: 0.25rem 0.4rem;
  color: white;
  font-size: var(--smaller-font-size);
}
.description__details {
  margin-bottom: var(--mb-2);
  font-size: var(--small-font-size);
}
.description__title {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-0-5);
}
.details .cart__amount {
  margin-bottom: var(--mb-2-5);
}

/*=
============== ABOUT PAGE ===============*/

.about__container {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 7rem;
}
.about__img {
  width: 380px;
  justify-content: center;
}
.about__title {
  margin-bottom: var(--mb-1);
  text-align: left;
}
.about__description {
  margin-bottom: var(--mb-2);
}
.about__details {
  display: grid;
  row-gap: 1rem;
}
.about__details-description {
  display: inline-flex;
  column-gap: 0.5rem;
  font-size: var(--small-font-size);
}
.about__details-icon {
  font-size: 1rem;
  color: var(--first-color);
  margin-top: 0.15rem;
}

/*=============== BLOG PAGE ===============*/
.blog__container {
  row-gap: 1.8rem;
}
.blog__post {
  grid-template-columns: 0.8fr 1.2fr;
  column-gap: 2rem;
  align-items: center;
  background: var(--container-color);
  border-radius: 1.2rem;
  padding: 1.4rem;
}
.blog__img {
  border-radius: 0.8rem;
}
.blog__details {
  font-size: var(--smaller-font-size);
  text-align: justify;
  margin-bottom: var(--mb-1);
}
.blog__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-5);
}
.blog__date {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-0-75);
}
.read__more {
  text-align: right;
}

/*=============== CART PAGE ===============*/

/*=============== FAQ PAGE ===============*/
.question__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  /* padding: 1rem 0 4rem;
  background: #fff; */
}
.question__group {
  display: grid;
  row-gap: 2rem;
}
.question__item {
  background: var(--container-color);
  border-radius: 0.25rem;
}
.question__item-title {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.question__icon {
  font-size: 1.25rem;
  color: var(--title-color);
}
.question__description {
  font-size: var(--smaller-font-size);
  padding: 0 3.5rem 2.25rem 2.75rem;
}
.question__header {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  padding: 1rem;
  cursor: pointer;
}
.question__content {
  overflow: hidden;
  height: 0;
}
.question__item,
.question__header,
.question__item-title,
.question__icon,
.question__description,
.question__content {
  transition: 0.3s;
}

/*Rotate icon, change color of titles and background*/

.accordian-open .question__header,
.accordian-open .question__content {
  background-color: var(--first-color);
}
.accordian-open .question__item-title,
.accordian-open .question__description,
.accordian-open .question__icon {
  color: white;
}
.accordian-open .question__icon {
  transform: rotate(45deg);
}

/*=============== REGISTRATION PAGE ===============*/

/*=============== CONTACT PAGE ===============*/
.contact__container {
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 1.5rem;
}
.contact__information {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2);
}
.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}
.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}
.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color);
}
.contact__form {
  row-gap: 1.5rem;
}
.contact__content {
  background: var(--container-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}
.contact__label {
  font-size: var(--small-font-size);
  color: var(--title-color);
}
.contact__input {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
}
.contact__inputs {
  width: 100%;
  background: var(--container-color);
  color: var(--text-color);
  text-decoration-style: var(--normal-font-size);
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
  resize: none;
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  overflow: hidden;
}
.footer__container {
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  column-gap: 1rem;
}
.footer__logo {
  color: var(--title-color);
  text-transform: lowercase;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-icon {
  font-size: 1.25rem;
}
.footer__description {
  margin-bottom: var(--mb-2-5);
}
.footer__social {
  display: flex;
  column-gap: 0.75rem;
}
.footer__social-link {
  display: inline-flex;
  background: var(--container-color);
  padding: 0.75rem;
  border-radius: 0.25rem;
  color: var(--title-color);
  font-size: 1rem;
}
.footer__social-link:hover {
  background: var(--first-color);
  color: white;
}
.footer__title {
  /* font-weight: var(--font-bold); */
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}
.footer__links {
  display: grid;
  row-gap: 0.35rem;
}
.footer__link {
  font-size: var(--small-font-size);
  color: var(--text-color);
  transition: 0.3s;
}
.footer__link:hover {
  color: var(--title-color);
}
.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-top: 0.6rem;
}

/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  bottom: -30%;
  right: 1rem;
  background: var(--first-color);
  border-radius: 0.4rem;
  display: inline-flex;
  padding: 0.25rem;
  z-index: var(--z-tooltip);
  opacity: 0.8;

  transition: 0.4s;
}
.scrollup:hover {
  opacity: 1;
}
.scroll__icon {
  font-size: 1.5rem;
  color: white;
}
/* Show Scroll Up*/

.show-scroll {
  bottom: 3rem;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background: var(--scroll-bar-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

/*=============== LOGIN ===============*/
.login {
  position: fixed;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  width: 420px;
  box-shadow: -2px 0 4px var(--shadow);
  height: 100%;
  top: 0;
  right: -100%;
  padding: 1.5rem 2rem;
  transform: 0.4s;
}
.login__title-center {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: var(--mb-3);
}

.login__close {
  font-size: 2rem;
  color: var(--title-color);
  position: absolute;
  top: 1.5rem;
  right: 0.9rem;
  cursor: pointer;
}
.login__form {
  row-gap: 1.5rem;
}
.login__content {
  background: var(--container-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}
.login__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.login__input {
  width: 100%;
  background: var(--container-color);
  color: var(--text-color);
  font-size: var(--normal-font-size);
  padding: 0.25rem 0.5rem 0.5rem 0;
}

.signup {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}
.signup a {
  color: var(--first-color);
}
/* todo: signup button is designed by button section ^^ */

/* Show login */
.show-login {
  right: 0;
}
/*=============== CART ===============*/
.cart {
  position: fixed;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  width: 420px;
  box-shadow: -2px 0 4px var(--shadow);
  height: 100%;
  top: 0;
  right: -100%;
  padding: 1.5rem 2rem;
  transform: 0.4s;
}
.cart__title-center {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: var(--mb-3);
}

.cart__close {
  font-size: 2rem;
  color: var(--title-color);
  position: absolute;
  top: 1.5rem;
  right: 0.9rem;
  cursor: pointer;
}
.cart__container {
  display: grid;
  row-gap: 1.5rem;
}
.cart__card {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}
.cart__box {
  background-color: var(--container-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
}
.cart__img {
  width: 85px;
}
.cart__title {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-0-5);
}
.cart__price {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-1-5);
}
.cart__amount,
.cart__amount-content {
  display: flex;
  align-items: center;
}

.cart__amount {
  column-gap: 3rem;
}
.cart__amount-content {
  column-gap: 1rem;
}
.cart__amount-box {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--container-color);
  cursor: pointer;
}
.cart__amount-trash {
  font-size: 1.15rem;
  color: var(--first-color);
  cursor: pointer;
}
.cart__prices {
  margin-top: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart__prices-item,
.cart__prices-total {
  color: var(--title-color);
}

.cart__prices-item {
  font-size: var(--smaller-font-size);
}
.cart__prices-total {
  font-weight: var(--font-medium);
  font-size: var(--h3-font-size);
}

/* Show cart */
.show-cart {
  right: 0;
}

/*=============== LIGHTBOX ===============*/

.lightbox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: var(--z-fixed);
  /* display: flex;  ==============>>>>>>    js  */
  display: none;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  padding: 1.8rem;
}
.lightbox__img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 450px;
  cursor: pointer;
  background: var(--container-color);
  display: block;
  padding: 0.6rem;
}
.lightbox__container {
  position: relative;
}
.lightbox__close {
  position: absolute;
  height: 40px;
  width: 40px;
  top: -2.6rem;
  right: 0;
  font-size: 2rem;
  color: #fff;
  text-align: right;
  line-height: 40px;
  cursor: pointer;
}
.lightbox__caption {
  position: absolute;
  left: 0;
  bottom: -2.2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: var(--normal-font-size);
  color: white;
  font-family: var(--font-medium);
  /* z-index: var(--z-fixed)\\; */
  z-index: -1;
}
.lightbox__controls .prev__item,
.lightbox__controls .next__item {
  position: absolute;
  height: 40px;
  width: 40px;
  background: var(--body-color);
  color: var(--title-color);
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  top: 50%;
  margin-top: -20px;
  z-index: 110;
  transition: all 0.3s ease;
}
.lightbox__controls .prev__item:hover,
.lightbox__controls .next__item:hover {
  transform: scale(1.1);
}
.lightbox__controls .prev__item:active,
.lightbox__controls .next__item:active {
  transform: scale(1);
}

.lightbox__controls .prev__item {
  left: 1.8rem;
}
.lightbox__controls .next__item {
  right: 1.8rem;
}
.lightbox__controls .next__item .bx,
.lightbox__controls .prev__item .bx {
  font-size: 2rem;
  line-height: 40px;
}

/* lightbox open */
.lightbox.open {
  display: flex;
}
/* lightbox open animation */
.lightbox.open .lightbox__content {
  animation: lightboximage 0.5s ease;
}

@keyframes lightboximages {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}
/*=============== STYLE SWITCHER ===============*/

.style__switcher {
  position: fixed;
  right: 0;
  top: 26%;
  width: 200px;
  z-index: var(--z-tooltip);
  background: var(--container-color);
  padding: 1rem;
  box-shadow: -0.5px 0.5px 4px var(--shadow);
  border-radius: 0.2rem;
  transform: translateX(100%);
}

.style__switcher .s__icon {
  position: absolute;
  height: 40px;
  width: 40px;
  text-align: center;
  font-size: 1.25rem;
  color: var(--title-color);
  background-color: var(--container-color);
  right: 100%;
  cursor: pointer;
  margin-right: 1.8rem;
  border-radius: 50%;
  line-height: 45px;
  top: 0;
}

.style__switcher h4 {
  margin-bottom: var(--mb-1);
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-bold);
  text-transform: capitalize;
}
.style__switcher .theme__colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.style__switcher .theme__colors button {
  height: 30px;
  width: 30px;
  position: relative;
  border-radius: 50%;
  vertical-align: middle;
}

.style__switcher .theme__colors button i {
  color: #fff;
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.style__switcher .color-1 {
  background-color: hsl(0, 88%, 61%);
}
.style__switcher .color-2 {
  background-color: hsl(260, 88%, 61%);
}
.style__switcher .color-3 {
  background-color: hsl(336, 88%, 61%);
}
.style__switcher .color-4 {
  background-color: hsl(284, 88%, 61%);
}
.style__switcher .color-5 {
  background-color: hsl(375, 88%, 61%);
}
/* Style switcher open */
.style__switcher.open {
  transform: translateX(-10px);
}
/* Active theme color */
.style__switcher .theme__colors button.active i {
  display: block;
}
/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1200px) {
  .home__img {
    height: 400px;
  }
  .swiper-pagination {
    margin-top: var(--mb-2);
  }
}

@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  .section__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-2);
  }
  .home__content {
    padding: 8rem 0 2rem;
  }
  .home__img {
    height: 300px;
  }
  .home__indicator {
    bottom: initial;
    left: initial;
    top: 7rem;
    right: 2rem;
  }
  .home__indicator::after {
    top: -3rem;
    height: 48px;
  }
  .home__details-img {
    right: 0.5rem;
    bottom: initial;
  }
  .home__description {
    padding-right: 0;
  }

  .swiper-pagination {
    margin-top: var(--mb-2);
  }
  .discount__container {
    column-gap: 3rem;
  }
  .new__content {
    width: 242px;
    padding: 2rem 0 1.5rem 0;
  }
  .new__img {
    width: 120px;
  }
  .new__img,
  .new__subtitle {
    margin-bottom: var(--mb-0-5);
  }
  .new__title {
    font-size: var(--normal-font-size);
  }
  .steps__bg {
    padding: 3rem 3rem 2rem;
  }
  .steps__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .shop__container {
    grid-template-columns: 1.6fr 3.4fr;
  }
  .shop__title {
    font-size: var(--normal-font-size);
  }
  .blog__post {
    column-gap: 1.6rem;
  }
  .blog__title {
    font-size: var(--normal-font-size);
  }
  .question__header {
    padding: 0.75rem 0.5rem;
  }
  .question__description {
    padding: 0 1.25rem 1.25rem 2rem;
  }
  .question__group {
    row-gap: 1.5rem;
  }
  .contact__inputs {
    grid-template-columns: 1fr;
  }
  .about__container {
    column-gap: 4rem;
  }
  .about__img {
    width: 280px;
  }
  .details__container {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .product__images {
    gap: 1.4rem;
  }
  .details__title {
    margin-bottom: var(--mb-0-5);
  }
}

/* For medium devices */
@media screen and (max-width: 767px) {
  .home__content {
    padding: 0;
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
  body {
    margin: var(--header-height) 0 0 0;
  }
  .section {
    padding: 4.5rem 0 2rem;
  }
  .nav {
    height: var(--header-height);
  }
  .nav__menu {
    position: fixed;
    background: var(--body-color);
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    padding: 6rem 2rem 3.5rem;
    transition: 0.3s;
  }
  .nav__list {
    flex-direction: column;
    row-gap: 2rem;
  }
  .nav__toggle,
  .nav__close {
    display: block;
  }
  /* show menu */
  .show-menu {
    right: 0;
  }
  .home__img {
    height: 250px;
  }
  .home__title {
    margin-bottom: var(--mb-1);
  }
  .home__description {
    margin-bottom: var(--mb-1-5);
  }
  .swiper-pagination {
    margin-top: var(--mb-1-5);
  }
  .discount__container {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
    padding: 2.5rem 0 1.5rem;
    border-radius: 1rem;
  }
  .discount__img {
    justify-self: center;
    order: 1;
  }
  .discount__data {
    padding-left: 0;
  }
  .newsletter__container {
    grid-template-columns: 0.7fr;
  }
  .pagination {
    justify-content: center;
  }
  .footer__container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    justify-items: start;
  }
  .footer__copy {
    margin-top: 4.5rem;
  }
  .blog__post {
    grid-template-columns: repeat(2, 1fr);
  }
  .question__container {
    grid-template-columns: 1fr;
  }
  .about__container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .details__container {
    grid-template-columns: 0.8fr;
    justify-content: center;
    row-gap: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .steps__container {
    grid-template-columns: 1fr;
  }
  .steps__bg {
    padding: 3rem 2rem 2rem;
  }
  .newsletter__container {
    grid-template-columns: 1fr;
  }
  .login,
  .cart {
    width: 100%;
  }
  .pagination span {
    height: 1.8rem;
    width: 1.8rem;
    line-height: 30px;
  }
  .pagination {
    column-gap: 0.4rem;
  }
  .blog__post {
    grid-template-columns: 1fr;
    row-gap: 0.8rem;
  }
  .contact__container {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .details__container {
    grid-template-columns: 1fr;
  }
}

/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .nav {
    column-gap: 0;
  }
  .home__img {
    height: 220px;
  }
  .home__buttons {
    flex-direction: column;
    width: max-content;
    row-gap: 1rem;
  }
  .steps__bg {
    padding: 2rem 1rem;
  }
  .steps__card {
    padding: 1.5rem;
  }
  .shop__container {
    grid-template-columns: 1fr;
  }

  .pagination span {
    font-size: var(--small-font-size);
  }

  .blog__post {
    padding: 0.8rem;
  }
  .product__images {
    grid-template-columns: 1fr;
  }
}

/* ===================regies=========== */
