/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Syncopate:wght@400;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 5%);
  --black-color-light: hsl(0, 0%, 70%);
  --white-color: hsl(0, 0%, 100%);
  --title-color: hsl(0, 0%, 5%);
  --text-color: hsl(0, 2%, 40%);
  --body-color: hsl(0, 0%, 96%);
  --nav-color: hsla(0, 0%, 100%, .75);
  
  /*========== Tooltips color ==========*/
  --error-color: rgb(196, 28, 28);
  --error-color-soft: rgb(252, 228, 228, .3);
  --success-color: rgb(31, 122, 31);
  --success-color-soft: rgba(227, 251, 227, .3);
  --info-color: rgb(11, 107, 203);
  --info-color-soft: rgb(227, 239, 251, .3);
  --alert-color: rgb(154, 91, 19);
  --alert-color-soft: rgb(253, 240, 225, .3);

  /*========== GRIDS ==========*/

  /*========== SHADOW ==========*/
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Syncopate", sans-serif;
  --biggest-font-size: 2.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input {
  font-family: inherit;
  font-size: var(--normal-font-size);
}

button {
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

i {
  font-size: 1.25rem;
}

img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
  gap: .5rem;
}

.section {
  padding-block: 2.5rem 1rem;
}

.section_title {
  text-align: center;
  line-height: 1.25;
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-block: 0.5rem 1.25rem;
}

.section_description {
  color: var(--title-color);
}

/* PAGES */
.section_page {
  padding-block: 5rem 1rem;
}
.grid_page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  gap: 20px;
}

/* UI */
.button {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: #fff;
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer;
}
.button i {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: .4s;
}
.button:hover i {
  transform: translateX(.25rem);
}
.avatar {
  width: 3rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a9b9f, #2bb3b7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
}
.avatar-img-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--black-color);
  border: 2px solid var(--black-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.badge-icon {
  color: var(--text-color);
  font-size: 8px;
}
.stars_outher {
  position: relative;
  display: inline-block;
  color: var(--black-color-light);
  white-space: nowrap;
}
.stars_outher i {
  display: inline-block;
  vertical-align: middle;
}
.stars_inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  overflow: hidden;
  color: gold;
  white-space: nowrap;
  pointer-events: none;
}
.stars_inner i {
  display: inline-block;
  vertical-align: middle;
}

.main, .footer {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}
.header::after { /* for blur effect */
  content: '';
  background-color: transparent;
  backdrop-filter: none;
  transition: background .4s ease-in-out, box-shadow .4s ease-in-out;
}
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: .5rem;
}
.nav_logo {
  width: 4.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--title-color);
}
.nav_toggle, .nav_close {
  font-size: 1.5rem;
  padding: .5rem;
  cursor: pointer;
  color: var(--title-color);
  transition: color .4s;
}
.nav_link {
  position: relative;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav_link::after{
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -.3rem;
  width: 0;
  height: 2px;
  background-color: var(--title-color);
  transition: width .4s, background-color .4s;
}
.nav_link:hover::after {
  width: 75%
}

/* Navigation for mobile devices */
@media screen and (max-width: 1024px) {
  .nav_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 6rem 3rem;
    background-color: var(--nav-color);
    backdrop-filter: blur(24px);
    --webkit-backdrop-filter: blur(24px); /* For Safari support */
    box-shadow: -1px 0 16px hsla(0, 0%, 0%, .1);
    transition-property: right;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: .4s;
    z-index: var(--z-fixed);
  }
  .nav_list {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 1rem;
    row-gap: 2.5rem;
  }
  .nav_item {
    font-family: var(--second-font);
  }
  .nav_link {
    color: var(--title-color);
    transition: color .4s
  }
  .nav_toggle {
    color: var(--title-color);
    transition: color .4s;
  }
  .nav_close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--title-color);
  }
}

.header_form {
  position: relative;
}
.header_input {
  border-radius: 4rem;
  border: none;
  box-shadow: var(--shadow);
  padding: .35rem 1rem;
  max-width: 200px;
}
.header_button {
  position: absolute;
  top: 0;
  right: .25rem;
  padding: .25rem;
  display: inline-flex;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
}
.header_button i {
  color: var(--text-color);
  transition: transform .4s;
}
.header_button:hover i {
  transform: scale(1.2);
}

/*=============== HOME ===============*/
.home_container {
  position: relative;
  display: grid;
  row-gap: 2rem;
  padding-block: 8rem 4rem;
  max-height: 980px;
}
.home_subtitle,
.home_title,
.home_button {
  font-family: var(--second-font);
  color: var(--title-color);
}
.home_subtitle {
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}
.home_title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
  color: var(--text-color);
}
.home_title span {
  font-weight: var(--font-bold);
  color: var(--title-color);
}
.home_description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}
.home_button {
  display: inline-flex;
  background-color: var(--black-color);
  color: var(--white-color);
  /* width: 280px; */
  padding: .5rem 3rem;
  border-radius: 4rem;
  box-shadow: var(--shadow);
  justify-content: space-between;
  font-weight: var(--font-bold);
}
.home_button-circle {
  border: 1px solid white;
  border-radius: 50%;
  width: 30px;
  aspect-ratio: 1/1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home_button i {
  font-size: 1.5rem;
  font-weight: var(--font-regular);
}
.home_social {
  position: absolute;
  top: 10rem;
  right: 0;
  display: grid;
  row-gap: 1rem;
}
.home_social-link {
  display: inline-flex;
  font-size: 1.25rem;
  color: var(--title-color);
  transition: transform .4s;
}
.home_social-link:hover {
  transform: translateY(-.25rem);
}
.home_images {
  display: grid;
  position: relative;
}
.home_shoe {
  width: 300px;
  margin-inline: auto;
}
.home_circle {
  width: 250px;
  aspect-ratio: 1/1;
  background: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(0, 0%, 96%));
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
}
.home_bg {
  display: none;
  max-height: 980px;
}

/* Swiper class */
.swiper {
  margin-inline: initial;
}
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -2rem;
}
.swiper-pagination-bullet {
  width: 1rem;
  height: .25rem;
  border-radius: 1rem;
  background-color: var(--black-color-light);
  opacity: 1;
  transition: background-color .3s, width .3s;
}
.swiper-pagination-bullet-active {
  width: 1.25rem;
  background-color: var(--black-color);
}
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 2px;
}

/*=============== BRAND ===============*/
.brand_logo {
  display: grid;
  place-items: center;
}
.brand_img {
  height: 80px;
  /* object-fit: cover; */
}

/*=============== POPULAR & NEWS ===============*/
.popular_swiper, .news_swiper {
  padding: 1rem .25rem;
}

/* PRODUCT CARD */
.product_card {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
  box-shadow:var(--shadow);
  border-radius: 10px;
}
.product_card:hover {
  transform: translateY(-5px);
}
.product_img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--body-color);
  border-radius: 10px;
  margin-bottom: 20px;
}
.product_name {
  color: var(--title-color);
  height: 3.5rem;
  font-size: var(--small-font-size);
}
.product_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--title-color);
}
.cart_button {
  cursor: pointer;
  padding: .25rem;
  display: grid;
  place-content: center;
  border-radius: .25rem;
}
.cart_button.in-cart {
  background-color: var(--black-color);
  color: var(--white-color);
  transition: 0.2s ease;
}

/*=============== CART PAGE ===============*/
.cart_remove {
  cursor: pointer;
  padding: .25rem;
  display: grid;
  place-content: center;
  border-radius: .25rem;
  background-color: red;
  color: white;
}
.empty_cart-container {
  height: 50vh;
  grid-template-rows: max-content;
}
.empty_cart-msg {
  text-align: center;
}
.empty_cart-btn {
  background-color: var(--black-color);
  margin-inline: auto;
  align-self: center;
  border-radius: 4rem;
  padding: .5rem 3rem;
}
.empty_cart-btn:hover i {
  transform: translateX(-.5rem);
}

/*=============== PROMO ===============*/
.promo_container {
  grid-template-columns: 1fr;
  gap: 20px;
}
.promo_card-large {
  grid-row: span 1;
}
.promo_card {
  position: relative;
  overflow: hidden;
  height: 300px; /* (300px x 2 cards ) + (gap: 20px ) = 620px height*/
}
.promo_card-large .promo_card {
  height: 620px;
}

.promo_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo_btn {
  position: absolute;
  bottom: 30px;
  left: 1rem;
  background: var(--white-color);
  color: var(--black-color);
  padding: 1rem 3rem;
  border: none;
  cursor: pointer;
  transition: box-shadow .4s;
}
.promo_btn:hover {
  box-shadow: var(--shadow);
}
.promo_card-large .promo_btn {
  left: initial;
  right: 1rem;
}
.promo_btn.last-child {
  background: var(--black-color);
  color: var(--white-color);
}

/*=============== FOOTER ===============*/
.footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.footer_container {
  display: grid;
  gap: 1.5rem;
  row-gap: 4rem;
}
.footer_brand {
  display: flex;
  flex-direction: col;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.footer_logo-img {
  width: 105px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}
.footer_text {
  display: grid;
  gap: .25rem;
  font-weight: var(--font-semi-bold);
}
.footer_content {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
.footer_title {
  font-size: var(--normal-font-size);
  margin-bottom: 1rem;
}
.footer_social {
  display: flex;
  column-gap: 1rem;
}
.footer_social-link {
  cursor: pointer;
  transition: transform .4s, color .4s;
}
.footer_social-link:hover {
  color: var(--title-color);
  transform: translateY(-.25rem);
}
.footer_list {
  display: grid;
  row-gap: .75rem;
}
.footer_info {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-self: start;
  gap: .5rem;
  align-items: center;
  font-size: var(--small-font-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: .4s;
}
.footer_info:hover {  
  color: var(--title-color);
  transform: translateX(.25rem);
}
.footer_copyright-container {
  text-align: center;
}
.footer_copyright {
  font-size: var(--small-font-size);
  display: inline-block;
  margin-top: 6rem;
  padding: .5rem;
}
.footer_copyright a {
  color: var(--title-color);
}

/* Scrollup */
.scrollup {
  z-index: var(--z-fixed);
  display: grid;
  gap: 1rem;
  position: fixed;
  right: 1rem;
  bottom: 4rem;
}
.whatsapp_button {
  display: grid;
  position: relative;
  cursor: pointer;
  transition: transform .4s;
}
.whatsapp_button img {
  justify-self: center;
  width: 3rem;
  height: 3rem;
}
.whatsapp_button:hover {
  transform: translateY(-.25rem);
}
/* Cart button */
.main_cart-btn {
  position: relative;
  display: grid;
  place-content: center;
  padding: .75rem;
  background-color: var(--white-color);
  box-shadow: var(--shadow);
  color: var(--title-color);
  border-radius: .5rem;
}
/* Button tooltip */
.button_tooltip {
  position: absolute;
  top: -.5rem;
  right: -.5rem;
  display: grid;
  place-content: center;
}
.tooltip-active {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: red;
  color: var(--white-color);
  font-size: var(--small-font-size);
}

/*=============== MODIFIERS & UTILITIES ===============*/
/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur header */
.blur-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--nav-color);
  backdrop-filter: blur(24px);
  --webkit-backdrop-filter: blur(124px); /* For Safari support */
  z-index: -10;
  box-shadow: var(--shadow);
}
.blur-header .nav_toggle {
  color: var(--title-color);
}

/* Active link */
.active-link::after {
  width: 75%;
}

/* Show scroll up button */
.show-scroll {
  bottom: 4rem;
}

@keyframes ripples {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}
.animate-ripples {
  position: absolute;
  /* Se va determinar segun la posicion del click con js */
  /* top: 50%; */
  /* left: 50%; */
  background-color: hsla(0, 0%, 100%, .2);
  transform: translateX(-50%) translateY(-50%);
  border-radius: 999px;
  pointer-events: none;
  animation: ripples 0.6s linear infinite;
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  .grid_page {
    grid-template-columns: repeat(1, 250px);
  }
  .home_title {
    font-size: 2rem;
  }
  .home_circle {
    width: 220px;
  }
  .product_img {
    height: 200px;
  }
  .product_name {
    height: 1rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .grid_page {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav_menu {
    width: 60%;
  }
  .home_container {
    grid-template-columns: 350px;
    justify-content: center;
  }
  .home_data {
    text-align: center;
  }
  .product_img {
    height: 250px;
  }
  .product_name {
    height: 1.5rem;
    margin-bottom: 20px;
    font-size: var(--normal-font-size);
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .grid_page {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav_logo {
    width: 6.5rem;
  }
  .nav_menu {
    width: initial;
  }
  .nav_list {
    display: flex;
    flex-direction: row;
    column-gap: 4rem;
    top: 0;
  }
  .nav_link {
    color: var(--title-color);
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav_link::after {
    background-color: var(--title-color);
  }
  .blur-header .nav_link::after {
    background-color: var(--title-color);
  }
  .blur-header .nav_link {
    color: var(--title-color);
  }
  .nav_close, .nav_toggle {
    display: none;
  }
  .home {
    position: relative;
  }
  .home_container {
    height: 100vh;
    grid-template-columns: 600px 430px;
    place-items: center;
    column-gap: 0;
  }
  .home_data {
    text-align: initial;
    position: relative;
  }
  .home_title,
  .home_description,
  .home_subtitle {
    text-align: end;
  }
  .home_social {
    align-content: center;
    top: 0;
    bottom: 0;
  }
  .home_button {
    position: absolute;
    bottom: -50%;
    right: -50%;
    transform: translateX(-50%);
  }
  .home_images {
    display: none;
  }
  .home_bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: end;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
  }
  .home_bg-img {
    width: 400px;
    height: 100%;
    object-fit: cover;
  }
  .promo_container {
    grid-template-columns: 1fr 1fr;
  }
  .promo_card-large {
    grid-row: span 2;
  }
  .footer {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
  }
  .footer_brand {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
  }
  .footer_logo-img {
    width: 84px;
  }
  .footer_content {
    row-gap: 2rem;
    column-gap: 4rem;
    grid-template-columns: repeat(2, max-content);
  }
  .footer_data-contact {
    grid-column-start: 2;
  }
  .footer_data-support {
    grid-row-start: 2;
  }
  .footer_content {
    column-gap: 5rem;
    grid-template-columns: vrepeat(3, max-content);
  }
  .footer_data-useful {
    grid-row-start: 1;
    grid-column-start: 3;
  }
  .scrollup {
    right: 3rem;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
  .section {
    padding-block: 7rem 2rem;
  }
  .home_title {
    margin-bottom: 1.25rem;
  }
  .home_description {
    font-size: var(--normal-font-size);
    margin-bottom: 3rem;
  }
  .home_button {
    bottom: -3.5rem;
  }
  .home_shoe {
    width: 600px;
  }
  .home_circle {
    width: 500px;
  }
  .home_bg-img {
    width: 550px;
  }
  .footer_content {
    grid-template-columns: vrepeat(4, max-content);
  }
  .footer_title {
    margin-bottom: 1.5rem;
  }
  .footer_data-contact {
    grid-row-start: 1;
    grid-column-start: 3;
  }
  .footer_data-useful {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column: span 2 / span 2;
  }
  .footer_data-support {
    grid-row-start: 1;
    grid-column-start: 4;
  }
}

@media screen and (min-width: 1248px) {
  .home_container {
    column-gap: 2rem;
  }
  .home_social {
    right: -3rem;
    row-gap: 2rem;
  }
  .home_social-link {
    font-size: 1.5rem;
    color: var(--white-color);
  }
}

/* persosonalize scroll bar */
::-webkit-scrollbar {
  width: .5rem;
  border-radius: .5rem;
  background-color: hsl(0, 0%, 10%);
}
::-webkit-scrollbar-thumb {
  border-radius: .5rem;
  background-color: hsl(0, 0%, 20%);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}