@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --font-main: 'Inter', sans-serif;
  --color-primary: #db4444;
  --color-dark-1: #000;
  --color-dark-2: #7d8184;
  --color-white-1: #fff;
  --color-white-2: #f5f5f5;
  --color-green: #00d656;
}

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

/* By Default 1rem = 16px
1rem = 10px;
*/

html {
  font-size: 62.5%;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 114rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Top Nav */
.top_nav {
  width: 100%;
  height: 4rem;
  background-color: var(--color-dark-1);
}

.top_nav_container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top_nav_wrapper {
  display: flex;
  gap: 3.2rem;
  color: var(--color-white-1);
}

.top_nav_p {
  font-size: 1.4rem;
  font-weight: 400;
}

.top_nav_link {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white-1);
}

/* NavBar */
.nav {
  width: 100%;
  height: 8rem;
  border-bottom: 1px solid var(--color-dark-2);
}

.nav_container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
}

.nav_logo {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark-1);
}

.nav_list {
  display: flex;
  gap: 3.2rem;
}

.nav_link {
  display: inline-block;
  padding: 0.6rem;
  color: var(--color-dark-1);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav_link:hover {
  color: var(--color-dark-2);
}

.nav_form {
  padding: 0.8rem;
  background-color: var(--color-white-2);
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
}

.nav_input {
  padding: 0.4rem;
  background-color: transparent;
  outline: none;
  border: none;
}

.nav_search,
.nav_heart {
  cursor: pointer;
}

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

.nav_item_hidden {
  display: none;
}

.nav_button {
  border: none;
  background: none;
  cursor: pointer;

  display: none;
}

.icon_mobile_nav {
  height: 4.8rem;
  width: 4.8rem;
}

.icon_mobile_nav[name='close-outline'] {
  display: none;
}

/* Header */
.header_container {
  width: 100%;
  display: flex;
  margin-top: 4rem;
}

.header_filter {
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.header_filter_link {
  color: var(--color-dark-1);
  transition: all 0.3s ease;
}

.header_filter_link:hover {
  color: var(--color-dark-2);
}

/* Section */
.section {
  margin-top: 10rem;
}

/* Flash Sale */
.section_category_p {
  border-left: 1.4rem solid var(--color-primary);
  padding-left: 1.6rem;
  margin-bottom: 1.6rem;
  color: var(--color-primary);
  font-size: 1.4rem;
}

.section_header {
  display: flex;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section_title {
  margin-right: 2rem;
  font-size: 2.6rem;
}

#demo {
  font-size: 1.8rem;
}

/* Swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  margin-bottom: 5rem;
}

.card_top {
  width: 100%;
  position: relative;
}

.card_img {
  width: 100%;
  height: 100%;
}

.card_tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  background-color: var(--color-primary);
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  color: var(--color-white-1);
  border-radius: 0.5rem;
}

.card_top_icons {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1rem;
}

.card_top_icon {
  width: 3.4rem;
  height: 3.4rem;
  padding: 1rem;
  background-color: var(--color-white-1);
  border-radius: 10rem;
  cursor: pointer;
}

.star {
  width: 2rem;
  height: 2rem;
  fill: #ef8c01;
  stroke: none;
}

.card_body {
  margin-top: 1rem;
  text-align: left;
}

.card_title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card_price {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card_ratings {
  display: flex;
  gap: 1rem;
}

.add_to_cart {
  background-color: var(--color-primary);
  padding: 1rem 2rem;
  color: var(--color-white-1);
  cursor: pointer;
  outline: none;
  border: none;
  margin-top: 2rem;
}

.container_btn {
  width: 100%;
  text-align: center;
  margin-top: 3.2rem;
}

.container_btn_a {
  background-color: var(--color-primary);
  color: var(--color-white-1);
  padding: 1.6rem 3.2rem;
  border-radius: 0.5rem;
  font-size: 1.8rem;
}

/* Categories */
.categories {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.category {
  text-align: center;
  padding: 3.2rem;
  border: 1px solid var(--color-white-2);
  cursor: pointer;
  transform: all 0.3s ease;
}

.category:hover {
  background-color: var(--color-primary);
}

.category_icon {
  width: 3.5rem;
}

/* Trending */
.trending {
  background-color: var(--color-dark-1);
  color: var(--color-white-1);
  padding: 8rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
  align-items: center;
}

.trending_img {
  width: 100%;
}

.trending_p {
  color: var(--color-green);
}

.trending_title {
  font-size: 4rem;
  margin-top: 1rem;
  margin-bottom: 3.2rem;
}

.trending_btn {
  background-color: var(--color-green);
  padding: 1.2rem 2.4rem;
  color: var(--color-white-1);
}

.products {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
}

/* Gallery */
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(8, 4vw);
  grid-gap: 1.6rem;
}

.gallery_item {
  width: 100%;
  position: relative;
}

.gallery_item_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery_item_content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 1;
  width: 70%;
  color: var(--color-white-1);
}

.gallery_item_title {
  font-size: 2.2rem;
}

.gallery_item_p {
  font-size: 1.4rem;
  margin: 1rem 0;
}

.gallery_item_link {
  color: var(--color-white-1);
  text-decoration: underline;
}

.gallery_item_1 {
  grid-column: 1 / 4;
  grid-row: 1 / 8;
}

.gallery_item_2 {
  grid-column: 4 / 8;
  grid-row: 1 / 4;
}

.gallery_item_3 {
  grid-column: 4 / 6;
  grid-row: 4 / 8;
}

.gallery_item_4 {
  grid-column: 6 / 8;
  grid-row: 4 / 8;
}

/* Services */
.services_container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 3rem;
}

.services {
  text-align: center;
}

.service_title {
  text-transform: uppercase;
  margin: 1.6rem 0;
}

/* Footer */
.footer {
  margin-top: 10rem;
  background-color: var(--color-dark-1);
}

.footer_container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  padding: 4.8rem 1.8rem;
  color: var(--color-white-1);
}

.footer_logo {
  font-size: 3rem;
  color: var(--color-white-1);
  font-weight: 700;
}

.footer_p {
  margin-top: 1.2rem;
}

.footer_item_title {
  margin-bottom: 1.2rem;
}

.footer_list_item {
  margin: 0.6rem 0;
}

.footer_list_link {
  color: var(--color-white-1);
  transition: all 0.2s ease;
}

.footer_list_link:hover {
  text-decoration: underline;
  color: var(--color-dark-2);
}

/* LOGIN PAGE */
.auth_container {
  width: 100%;
  display: flex;
  align-items: center;
  height: 90vh;
}

.auth_img_box {
  width: 50%;
  height: 100%;
}

.auth_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth_content {
  width: 50%;
  padding: 10rem;
}

.form_title {
  font-size: 3.2rem;
}

.auth_p {
  margin: 2rem 0;
}

.form_group {
  width: 100%;
}

.form_input {
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem 0.6rem;
  border: none;
  outline: none;
  border-bottom: 1px solid var(--color-dark-2);
}

.form_pass {
  margin-bottom: 1rem;
}

.form_btn {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--color-primary);
  border: none;
  outline: none;
  margin-bottom: 1.6rem;
  cursor: pointer;
}

.form_link {
  color: var(--color-white-1);
}

.form_group span {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form_auth_link {
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.2s;
}

.form_auth_link:hover {
  color: var(--color-dark-1);
}

/* CART PAGE */
.cart {
  width: 100%;
}

.cart_header {
  padding: 1.6rem;
  background-color: var(--color-white-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1px;
}

.cart_header p {
  font-weight: 600;
}

.cart_item {
  margin-top: 2rem;
  padding: 1.6rem;
  background-color: var(--color-white-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 1px;
}

.cart_img {
  width: 7%;
}

.cart_delete {
  font-size: 1.2rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cart_delete:hover {
  color: #777;
}

.cart_total_box {
  margin-top: 2rem;
}

.cart_total {
  font-size: 1.8rem;
  font-weight: 600;
}

.cart_empty {
  text-align: center;
  margin-top: 2.4rem;
  font-size: 3.2rem;
  font-weight: 600;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 66.9em) {
  .header_container {
    flex-direction: column;
  }

  .header_filter {
    display: none;
  }
}

@media only screen and (max-width: 56.25em) {
  .top_nav {
    display: none;
  }

  .nav_items {
    display: none;
  }

  .nav_item_hidden {
    display: block;
  }

  .nav_button {
    display: block;
  }

  .nav {
    position: relative;
    z-index: 50;
  }

  .nav_list {
    background-color: var(--color-white-1);
    position: absolute;
    z-index: 100;
    top: 8rem;
    left: 0;
    width: 30%;
    height: 100vh;
    transform: translateX(-100%);

    flex-direction: column;
    padding: 2.4rem 3.2rem;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease-in;
  }

  .header {
    position: relative;
    z-index: 10;
  }

  .header_img {
    position: relative;
    z-index: 1;
  }

  .nav_open .nav_list {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav_open .icon_mobile_nav[name='close-outline'] {
    display: block;
  }

  .nav_open .icon_mobile_nav[name='menu-outline'] {
    display: none;
  }

  .gallery {
    display: flex;
    flex-direction: column;
  }

  .auth_img_box {
    display: none;
  }

  .auth_content {
    width: 100%;
  }
}
