@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Karla:ital,wght@0,200..800;1,200..800&family=Kumbh+Sans:wght@100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&family=Overpass:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap");

:root {
  --Orange: hsl(26, 100%, 55%);
  --Pale-orange: hsl(25, 100%, 94%);
  --Very-dark-blue: hsl(220, 13%, 13%);
  --Dark-grayish-blue: hsl(219, 9%, 45%);
  --Grayish-blue: hsl(220, 14%, 75%);
  --Light-grayish-blue: hsl(223, 64%, 98%);
  --White: hsl(0, 0%, 100%);
  --Black: hsl(0, 0%, 0%);
}
* {
  margin: 0;
  padding: 0;
  font-family: "Kumbh Sans", sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  padding: 2rem 10rem;
}

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0 2rem;
  width: 100%;
}

.logo-information {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.menu {
  display: none;
}
.buttons-section {
  display: flex;
  gap: 1.5rem;
}
.page-button {
  color: var(--Dark-grayish-blue);
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
}
.page-button:hover {
  color: var(--Very-dark-blue);
}

.page-button:hover::after {
  content: "";
  position: absolute;
  background: var(--Orange);
  bottom: -58px;
  left: 0;
  width: 100%;
  height: 3px;
}
.cart-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  position: relative;
}
.cart-counter {
  position: absolute;
  top: -5px;
  left: 12px;
  background: var(--Orange);
  color: var(--White);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.8rem;
  display: none;
}
.avatar {
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.avatar:hover {
  border: 1.5px solid var(--Orange);
  border-radius: 50%;
}
.main-body-hr {
  margin-bottom: 5rem;
  border: 0.1rem solid var(--Light-grayish-blue);
}
main {
  display: flex;
  padding: 0 4.2rem;
  gap: 9rem;
}
.images {
  flex: 1;
  width: 500px;
}
.main-shoes {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 2rem;
  cursor: pointer;
}
.small-images {
  display: flex;
  gap: 1.5rem;
}
.small-img {
  width: 107px;
  cursor: pointer;
  border-radius: 8px;
}
.small-img.active {
  border: 2px solid var(--Orange);
  opacity: 0.6;
}
.small-img.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
}
.information-side {
  flex: 1;
  max-width: 450px;
  padding: 5rem 0;
}
.name-company {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--Dark-grayish-blue);
  font-weight: 700;
}

.title-product {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.product-description {
  color: var(--Dark-grayish-blue);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.main-price-section {
  align-items: center;
  margin-bottom: 0.8rem;
}
.pricing {
  margin-bottom: 3rem;
}
.main-price-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.main-price {
  font-size: 1.8rem;
  font-weight: 700;
}
.discount {
  background: var(--Black);
  padding: 0.3rem 0.7rem;
  color: var(--White);
  font-weight: 700;
  border-radius: 5px;
}
.previous-price {
  color: var(--Grayish-blue);
  font-weight: 700;
  text-decoration: line-through;
}
.add-cart {
  display: flex;
  gap: 1rem;
  height: 3.5rem;
}

.plus-minus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 11rem;
  height: 3.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--Light-grayish-blue);
}
.add {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.2rem 3.3rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  background: var(--Orange);
  color: var(--Black);
  cursor: pointer;
  transition: 0.3s ease;
}
.zero {
  font-weight: 700;
  font-size: 1.1rem;
}
.minus,
.plus {
  cursor: pointer;
  padding: 0.5rem;
}
.add:hover {
  opacity: 0.7;
}
.add-img {
  width: 20px;
  height: 20px;
  fill: black;
}

.purchased-info {
  box-shadow: 0px 3px 7px;
  width: 350px;
  height: 220px;
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 1rem 0;
  top: 90px;
  right: 300px;
  display: none;
}
.purchased-name {
  margin-bottom: 1.5rem;
  font-weight: 700;
  margin-left: 1rem;
}
.display-or-not {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  display: none;
}
.image-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.purchased-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}
.name-of-shoes {
  font-size: 1rem;
  color: var(--Dark-grayish-blue);
}
.info {
  line-height: 1.6;
}
.delete {
  cursor: pointer;
}
.checkout {
  padding: 1rem;
  border-radius: 8px;
  border: none;
  background: var(--Orange);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.purchased-price {
  display: flex;
  gap: 0.3rem;
  color: var(--Dark-grayish-blue);
}
.total {
  color: var(--Black);
  font-weight: 700;
}
.empty-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--Dark-grayish-blue);
}
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 550px;
  margin: 5% auto;
  border-radius: 15px;
}

.lightbox-main-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 2rem;
  cursor: default;
}

.lightbox-thumbnails {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.lightbox-thumb {
  width: 80px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-thumb.active {
  border: 2px solid var(--Orange);
  opacity: 0.7;
}

.close-lightbox {
  position: absolute;
  top: -30px;
  right: 0;
  filter: brightness(0) invert(1);
  cursor: pointer;
  width: 20px;
}
.next {
  position: absolute;
  top: 250px;
  right: -25px;
  padding: 1.4rem;
  border-radius: 100%;
  cursor: pointer;
  background: var(--White);
}
.previous {
  position: absolute;
  top: 250px;
  left: -25px;
  padding: 1.4rem;
  border-radius: 100%;
  cursor: pointer;
  background: var(--White);
}
.mobile-carousel-controls {
  display: none;
}

.menu-mobile {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background: white;
  overflow-x: hidden;
  transition: 0.3s;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  display: none;
}
.menu-mobile.active {
  width: 250px;
}

.nav-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top:  6rem;
}

.nav-link {
  color: var(--Dark-grayish-blue);
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--Black);
  font-weight: 700;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--Soft-orange);
}

.close-menu {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  cursor: pointer;
}
.overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}
.overlay.active {
  display: block;
}
@media (max-width: 765px) {
  body {
    padding: 0;
    overflow-x: hidden;
  }
  .container {
    max-width: 100%;
    width: 100%;
  }
  header {
    width: 100%;
    padding: 1rem 1rem;
    position: relative;
    margin-bottom: 0;
  }
  .logo {
    display: flex;
    gap: 0.9rem;
    align-items: center;
  }
  .logo-img {
    width: 120px;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .main-body-hr {
    display: none;
  }
  .menu {
    cursor: pointer;
    display: inline;
    width: 20px;
    height: 20px;
  }
  .buttons-section {
    display: none;
  }
  main {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 0;
  }
  .images {
    width: 100%;
    position: relative;
  }
  .main-shoes {
    width: 100%;
    height: 300px;
    border-radius: 0;
    margin-bottom: 0;
    object-position: center 25%;
  }
  .small-images {
    display: none;
  }
  .information-side {
    padding: 1.5rem;
    max-width: 100%;
  }
  .name-company {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .title-product {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .product-description {
    margin-bottom: 1.5rem;
  }
  .purchased-info {
    top: 3.8rem;
    right: 0.8rem;
    display: none;
    z-index: 1000;
  }
  .purchased-info.visible {
    display: block;
  }
  .add-cart {
    align-items: center;
    justify-content: center;
  }
  .mobile-carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 45%;
    width: 95%;
    left: 3%;
    transform: translateY(-50%);
  }
  .carousel-arrow {
    background: var(--White);
    padding: 0.8rem 1rem;
    border-radius: 50%;
  }
  @media (max-width: 375px) {
    .pricing {
      display: flex;
      align-items: center;
      margin-bottom: 2rem;
      justify-content: space-between;
    }
    .add-cart {
      flex-direction: column;
      gap: 1rem;
      height: auto;
    }
    .plus-minus {
      width: 100%;
    }
    .add {
      width: 100%;
    }
    .menu-mobile{
      width: 70%;
    }
  }
}
