/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --first-color: hsl(38, 78%, 58%);
  --button-color: hsl(210, 18%, 12%);
  --button-color-alt: hsl(210, 18%, 18%);
  --title-color: hsl(210, 18%, 12%);
  --text-color: hsl(214, 10%, 34%);
  --text-color-light: hsl(214, 9%, 55%);
  --body-color: hsl(40, 25%, 97%);
  --container-color: #fff;
  --border-color: hsl(37, 21%, 88%);
  --whatsapp-color: #25D366;
  --whatsapp-color-alt: #1DA851;
  --soft-shadow: 0 18px 45px hsla(214, 24%, 20%, .10);

  /*========== Font and typography ==========*/
  --body-font: 'Tajawal', sans-serif;
  --biggest-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-bold: 700;

  /*========== Margenes Bottom ==========*/
  --mb-0-5: .5rem;
  --mb-0-75: .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;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  margin: 0;
  background-color: var(--body-color);
  background-image: linear-gradient(180deg, hsla(38, 78%, 58%, .09), transparent 34rem);
  color: var(--text-color);
  direction: rtl;
  text-align: right;
  /*For animation dark mode*/
  transition: .4s;
}

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;
}

.nav__logo,
.nav__list,
.nav__btns,
.home__btns,
.testimonial__perfil,
.footer__social {
  direction: rtl;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color: hsl(38, 78%, 62%);
  --button-color: hsl(38, 78%, 58%);
  --button-color-alt: hsl(38, 78%, 52%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(38, 12%, 78%);
  --body-color: hsl(210, 18%, 10%);
  --container-color: hsl(210, 16%, 14%);
  --border-color: hsl(210, 12%, 23%);
  --soft-shadow: 0 18px 45px hsla(0, 0%, 0%, .28);
}

/*========== Button Dark/Light ==========*/
.change-theme {
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
}

/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/
.dark-theme .change-theme,
.dark-theme .nav__toggle,
.dark-theme .button--gray {
  color: var(--title-color);
}

.dark-theme .scroll-header {
  background-color: hsla(210, 18%, 10%, .92);
  box-shadow: 0 1px 18px hsla(0, 0%, 0%, .3);
}

.dark-theme .button--gray {
  background-color: hsl(210, 12%, 22%);
}

.dark-theme .newsletter__input {
  background-color: hsl(0, 0%, 96%);
}

.scroll-header .change-theme,
.scroll-header .nav__toggle {
  color: var(--title-color);
}

.dark-theme::-webkit-scrollbar {
  background: hsl(0, 0%, 30%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

.main {
  overflow: hidden;
}

.section {
  padding: 6.5rem 0 1rem;
}

.section__title {
  position: relative;
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.section__subtitle {
  max-width: 520px;
  margin: -2rem auto var(--mb-3);
  text-align: center;
  color: var(--text-color-light);
  line-height: 1.8;
}

.section__title::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 67px;
  height: 1px;
  background-color: var(--first-color);
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  background-color: hsla(40, 25%, 97%, .88);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  /*For animation dark mode*/
  transition: .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo, 
.nav__toggle, 
.nav__close {
  color: var(--title-color);
}

.nav__logo {
  text-transform: uppercase;
  font-weight: var(--font-bold);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  padding: .15rem 0;
}

.nav__logo-icon {
  font-size: 1.25rem;
}

.nav__logo-img {
  width: 58px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.nav__btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--body-color);
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    padding: 6rem 2rem 3.5rem;
    transition: .3s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  font-size: var(--h2-font-size);
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  font-size: 2rem;
  position: absolute;
  top: .9rem;
  right: 1.25rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.scroll-header {
  background-color: hsla(40, 25%, 97%, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 18px hsla(214, 24%, 20%, .08);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 2.5rem;
}

.home__img {
  width: 240px;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: .5rem;
  box-shadow: var(--soft-shadow);
}

.home__img-bg {
  background: linear-gradient(160deg, hsl(38, 78%, 58%), hsl(32, 90%, 72%));
  width: 258px;
  height: 430px;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  justify-self: flex-end;
  transform: translateX(1.5rem);
  border-radius: 0 0 .5rem .5rem;
}

.home__social {
  position: absolute;
  top: 35%;
  left: -5rem;
  transform: rotate(-90deg);
  display: flex;
  column-gap: 1rem;
}

.home__social-link {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  transition: .3s;
}

.home__social-link:hover {
  color: var(--title-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  line-height: 1.35;
}

.home__description {
  margin-bottom: var(--mb-1-5);
}

.home__price {
  display: inline-block;
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: var(--mb-3);
}

.home__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--mb-1);
  padding: .45rem .85rem;
  background-color: hsla(38, 78%, 58%, .14);
  color: var(--title-color);
  border: 1px solid hsla(38, 78%, 58%, .32);
  border-radius: 999px;
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  direction: ltr;
}

.home__btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.home__button {
  box-shadow: 0 12px 24px hsla(0, 0%, 10%, .2);
}

.home__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: var(--mb-2);
}

.home__trust span {
  display: inline-flex;
  align-items: center;
  column-gap: .35rem;
  padding: .55rem .8rem;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--title-color);
  font-size: var(--small-font-size);
  box-shadow: 0 8px 20px hsla(214, 24%, 20%, .06);
}

.home__trust i {
  color: var(--first-color);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--button-color);
  color: #FFF;
  padding: 1.25rem 2rem;
  font-weight: var(--font-medium);
  transition: .3s;
  border-radius: .3rem;
}

.button:hover {
  background-color: var(--button-color-alt);
}

.button--gray {
  background-color: hsl(0, 0%, 75%);
  color: var(--title-color);
}

.button--gray:hover {
  background-color: hsl(0, 0%, 63%);
}

.button--small {
  padding: 1rem 1.5rem;
}

.whatsapp__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .35rem;
  background-color: var(--whatsapp-color);
  color: #fff;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  line-height: 1;
  border-radius: .3rem;
  transition: .3s;
}

.whatsapp__button:hover {
  background-color: var(--whatsapp-color-alt);
}

.whatsapp__button i {
  font-size: 1.15rem;
}

.whatsapp__button--compact {
  width: calc(100% - 2rem);
  min-height: 2.35rem;
  margin-top: var(--mb-1);
  padding: .75rem 1rem;
}

/*=============== FEATURED ===============*/
.featured__container {
  row-gap: 2.5rem;
}

.featured__card {
  position: relative;
  text-align: center;
  background-color: var(--container-color);
  padding: 2rem 0 2rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  overflow-y: hidden;
  transition: .3s;
}

.featured__tag {
  background-color: var(--first-color);
  padding: .5rem 1rem;
  color: #fff;
  text-transform: uppercase;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  position: absolute;
  transform: rotate(-90deg);
  left: auto;
  right: -1rem;
  top: 3rem;
}

.featured__img {
  width: 82%;
  height: 214px;
  object-fit: cover;
  object-position: center;
  border-radius: .45rem;
  margin-bottom: var(--mb-1);
}

.featured__title, 
.featured__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
}

.featured__title {
  text-transform: uppercase;
  margin-bottom: var(--mb-0-75);
}

.featured__price {
  display: block;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
  transition: .3s;
}

.product__note {
  display: block;
  margin-bottom: var(--mb-1);
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.featured__button {
  min-height: 2.75rem;
  padding: .9rem 1.25rem;
  transform: translateY(0);
  opacity: 1;
}

.featured__card:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-.25rem);
  padding: 2rem 0 2rem;
}

.featured__card:hover .featured__button {
  transform: translateY(0);
  opacity: 1;
}

.featured__card:hover .featured__price {
  margin-bottom: var(--mb-1);
}

/*=============== STORY ===============*/
.story__container {
  row-gap: 7.5rem;
}

.story__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
}

.story__description {
  margin-bottom: var(--mb-2-5);
}

.story__images {
  position: relative;
}

.story__img, 
.story__square {
  width: 250px;
}

.story__square {
  height: 250px;
  background: linear-gradient(160deg, hsl(38, 78%, 58%), hsl(32, 90%, 72%));
  border-radius: .5rem;
}

.story__img {
  position: absolute;
  left: 3rem;
  top: -3rem;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: .5rem;
  box-shadow: var(--soft-shadow);
}

/*=============== PRODUCTS ===============*/
.products__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.products__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.25rem 1rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  text-align: center;
  transition: .3s;
}

.products__img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  object-position: center;
  border-radius: .45rem;
  margin-bottom: var(--mb-1);
}

.products__title, 
.products__price {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.products__title {
  text-transform: uppercase;
  margin-bottom: var(--mb-0-5);
}

.products__price {
  color: var(--first-color);
}

.products__card:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-.25rem);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__container {
  row-gap: 4rem;
}

.testimonial__quote {
  display: inline-flex;
  background-color: var(--container-color);
  padding: .5rem .75rem;
  font-size: 1.5rem;
  color: var(--first-color);
  box-shadow: 0 4px 12px hsla(0, 0%, 20%, .1);
  border-radius: .35rem;
  margin-bottom: var(--mb-2);
}

.testimonial__description {
  margin-bottom: var(--mb-1);
}

.testimonial__date {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-2);
}

.testimonial__perfil {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 7rem;
}

.testimonial__perfil-img {
  width: 60px;
  height: 60px;
  border-radius: 3rem;
}

.testimonial__perfil-data {
  display: flex;
  flex-direction: column;
  row-gap: .5rem;
}

.testimonial__perfil-name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.testimonial__perfil-detail {
  font-size: var(--small-font-size);
}

.testimonial__images {
  position: relative;
}

.testimonial__img, 
.testimonial__square {
  width: 250px;
}

.testimonial__square {
  height: 250px;
  background: linear-gradient(160deg, hsl(38, 78%, 58%), hsl(32, 90%, 72%));
  margin-left: auto;
  border-radius: .5rem;
}

.testimonial__img {
  position: absolute;
  right: 2rem;
  top: 3rem;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: .5rem;
  box-shadow: var(--soft-shadow);
}

.testimonial-swiper {
  margin-left: initial;
  margin-right: initial;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  content: '';
}

/* Swiper class */
.swiper-button-next,
.swiper-button-prev {
  top: initial;
  bottom: 5%;
  width: initial;
  height: initial;
  background-color: var(--container-color);
  box-shadow: 0 4px 12px hsla(0, 0%, 20%, .1);
  padding: .25rem;
  font-size: 1.5rem;
  color: var(--first-color);
}

.swiper-button-next {
  right: initial;
  left: 4rem;
}

/*=============== NEW ===============*/
.new__card {
  position: relative;
  text-align: center;
  background-color: var(--container-color);
  padding: 2rem 0 2rem;
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  overflow-y: hidden;
  transition: .3s;
}

.new__tag {
  background-color: var(--first-color);
  padding: .5rem 1rem;
  color: #fff;
  text-transform: uppercase;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  position: absolute;
  top: 1rem;
  right: auto;
  left: 1rem;
  transition: .3s;
}

.new__img {
  width: 82%;
  height: 215px;
  object-fit: cover;
  object-position: center;
  border-radius: .5rem;
  margin-bottom: var(--mb-1);
}

.new__title, 
.new__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
}

.new__title {
  text-transform: uppercase;
  margin-bottom: var(--mb-0-75);
}

.new__price {
  display: block;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
  transition: .3s;
}

.new__button {
  min-height: 2.75rem;
  padding: .9rem 1.25rem;
  transform: translateY(0);
  opacity: 1;
}

.new__card:hover {
  background-color: hsl(38, 82%, 64%);
  box-shadow: var(--soft-shadow);
  transform: translateY(-.25rem);
  padding: 2rem 0 2rem;
}

.new__card:hover .new__tag {
  background-color: var(--button-color);
}

.new__card:hover .new__button {
  transform: translateY(0);
  opacity: 1;
}

.new__card:hover .new__title {
  color: hsl(0, 0%, 15%);
}

.new__card:hover .new__price {
  color: hsl(0, 0%, 15%);
  margin-bottom: var(--mb-1);
}

/*=============== NEWSLETTER ===============*/
.newsletter__bg {
  background: linear-gradient(135deg, hsl(210, 18%, 12%), hsl(38, 78%, 58%));
  padding: 3rem 1.5rem;
  text-align: center;
  row-gap: 2.5rem;
  border-radius: .5rem;
}

.newsletter__title {
  font-size: var(--h1-font-size);
  color: #fff;
  margin-bottom: var(--mb-1-5);
}

.newsletter__description {
  color: hsla(0, 0%, 100%, .82);
}

.newsletter__subscribe {
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.newsletter__input {
  border: none;
  outline: none;
  background-color: hsl(0, 0%, 94%);
  padding: 1.25rem 1rem;
  color: hsl(0, 0%, 15%);
  text-align: right;
}

/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 3rem;
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1-5);
}

.footer__logo {
  width: 116px;
  height: auto;
  display: block;
  margin-bottom: var(--mb-1);
  padding: .5rem;
  background-color: hsl(210, 18%, 12%);
  border-radius: .5rem;
}

.footer__list, 
.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.footer__link {
  color: var(--text-color);
}

.footer__link:hover {
  color: var(--title-color);
}

.footer__phone {
  color: var(--text-color);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.footer__phone:hover {
  color: var(--title-color);
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--text-color);
}

.footer__social-link:hover {
  color: var(--title-color);
}

.footer__copy {
  display: block;
  margin: 3.5rem 0 1rem 0;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.whatsapp-float {
  position: fixed;
  left: 1rem;
  bottom: 3rem;
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--whatsapp-color);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px hsla(142, 70%, 34%, .28);
  font-size: 1.65rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-color-alt);
  transform: translateY(-.2rem);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--container-color);
  box-shadow: 0 4px 12px hsla(0, 0%, 20%, .1);
  display: inline-flex;
  padding: .25rem;
  z-index: var(--z-tooltip);
  opacity: .8;
  transition: .4s;
}

.scrollup:hover {
  opacity: 1;
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background: hsl(0, 0%, 74%);
}

::-webkit-scrollbar-thumb {
  background: hsl(0, 0%, 17%);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (max-width: 575px) {
  .nav__logo {
    padding: .1rem 0;
  }

  .nav__logo-img {
    width: 52px;
    height: 38px;
  }

  .home__container {
    row-gap: 1.5rem;
  }

  .home__img-bg {
    width: 246px;
    height: 350px;
    transform: translateX(.75rem);
  }

  .home__img {
    width: 220px;
    height: 315px;
  }

  .home__social {
    display: none;
  }

  .home__price {
    margin-bottom: var(--mb-1-5);
  }

  .home__btns .button {
    flex: 1 1 10rem;
    text-align: center;
  }

  .products__container {
    grid-template-columns: minmax(0, 260px);
    justify-content: center;
  }

  .products__img {
    height: 170px;
  }
}

/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .home__img-bg {
    width: 220px;
  }
  .home__img {
    width: 200px;
    height: 330px;
  }
  .home__title {
    font-size: var(--h1-font-size);
  }
  .home__button {
    font-size: var(--smaller-font-size);
  }

  .story__square,
  .story__img,
  .testimonial__square,
  .testimonial__img {
    width: 180px;
  }

  .story__square,
  .testimonial__square {
    height: 180px;
  }

  .story__img,
  .testimonial__img {
    height: 180px;
  }

  .products__container {
    grid-template-columns: repeat(1, 180px);
    justify-content: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__img-bg {
    width: 340px;
  }
  .home__img {
    width: 300px;
    height: 380px;
  }

  .featured__container {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 767px) {
  .section {
    padding: 8rem 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    justify-content: initial;
    column-gap: 3rem;
  }
  .nav__toggle, 
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 2.5rem;
  }
  .nav__link {
    text-transform: initial;
    font-size: var(--normal-font-size);
  }
  .nav__btns {
    margin-left: auto;
  }

  .home__container {
    padding-top: 6rem;
    grid-template-columns: 1fr max-content;
    align-items: center;
  }
  .home__img-bg {
    order: 1;
    transform: translate(1.5rem, -6rem);
  }
  .home__data {
    padding: 0 0 3rem 6rem;
  }
  .home__social {
    top: 47%;
    column-gap: 2rem;
  }

  .featured__title,
  .featured__price,
  .new__title,
  .new__price {
    font-size: var(--normal-font-size);
  }

  .story__container,
  .testimonial__container,
  .newsletter__bg {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .story__section-title {
    text-align: initial;
  }
  .story__section-title::before {
    margin: initial;
  }
  .story__images {
    order: -1;
  }

  .products__container {
    grid-template-columns: repeat(3, 200px);
    justify-content: center;
    gap: 2.5rem;
  }
  .products__card {
    padding: 2rem 1rem 1.5rem;
  }
  .products__img {
    height: 155px;
  }

  .newsletter__bg {
    text-align: initial;
    column-gap: 2rem;
    padding: 4.5rem;
  }
  .newsletter__subscribe {
    flex-direction: row;
  }
  .newsletter__input {
    width: 100%;
  }

  .footer__container {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }
  .footer__title {
    font-size: var(--h3-font-size);
  }
}

@media screen and (min-width: 992px) {
  .section__title {
    font-size: var(--h2-font-size);
  }

  .home__container {
    column-gap: 2rem;
  }
  .home__img-bg {
    width: 480px;
    height: 680px;
  }
  .home__img {
    width: 420px;
    height: 620px;
  }
  .home__social {
    left: -6rem;
  }
  .home__data {
    padding: 0 0 8rem 6rem;
  }

  .featured__container {
    grid-template-columns: repeat(3, 312px);
    padding-top: 2rem;
  }
  
  .story__container,
  .testimonial__container {
    column-gap: 8rem;
  }

  .story__square,
  .story__img,
  .testimonial__square,
  .testimonial__img {
    width: 450px;
  }

  .story__square,
  .testimonial__square {
    height: 450px;
  }

  .story__img,
  .testimonial__img {
    height: 450px;
  }

  .products__container,
  .new__container {
    padding-top: 2rem;
  }

  .testimonial__container {
    padding-bottom: 4rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .story__container,
  .testimonial__container {
    column-gap: 13rem;
  }

  .story__container {
    padding-top: 3rem;
  }
  .story__img {
    left: 5rem;
    top: -5rem;
  }

  .testimonial__img {
    right: 5rem;
    top: 5rem;
  }

  .scrollup {
    right: 3rem;
  }
}
