:root {
  /* Primary Colors */
  --orange: hsl(26, 100%, 55%);
  --pale-orange: hsl(25, 100%, 94%);

  /* Neutral Colors */
  --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-lightbox: hsla(0, 0%, 0%, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kumbh Sans", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
}

.cart-person-container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
}
.cart-person-container .cart {
  cursor: pointer;
}

.person {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.person:hover {
  border: 2px solid var(--orange);
}
.person img {
  width: 100%;
  height: 100%;
}

.nav-logo-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-logo-container a {
  padding-left: 2rem;
  font-size: 14px;
  color: var(--dark-grayish-blue);
  position: relative;
}
.nav-logo-container a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 4px;
  background-color: var(--orange);
  bottom: -2.9rem;
  display: block;
  left: 31px;
  transition: width 0.3s;
}

.nav-logo-container a:hover {
  color: hsl(0deg 0% 0%);
  font-weight: 500;
}
.nav-logo-container a:hover::after {
  width: 70%;
}
.header-hr {
  max-width: 1170px;
  margin-inline: auto;
}
.cart-container {
  width: 340px;
  height: 230px;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 8px;
  position: absolute;
  right: 0px;
  top: 150%;
  padding: 1.4rem;
  z-index: 4;
  display: none;
}
.cart-container.active {
  display: block;
}

.image-gallery {
  margin-top: -4rem;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height:calc(100vh + 4rem);
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--black-lightbox);
  z-index: 3;
}

.image-gallery .gallery-img {
  width: 400px;
  height: 300px;
  position: relative;
}

.gallery-img .gallery-slider-btns {
  position: absolute;
  top: 60%;
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 112%;
  left: -23px;
}

.gallery-img .gallery-slider-btns div {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-img .gallery-slider-btns div img {
  width: 12px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-gallery .gallery-img img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.close-gallery {
  position: absolute;
  right: 0;
  top: -30px;
  cursor: pointer;
}

.cart-divider {
  width: calc(100% + 2.8rem);
  height: 1px;
  background-color: var(--grayish-blue);
  border: none;
  margin-top: 0.8rem;
  position: relative;
  left: -1.4rem;
}

.empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: var(--dark-grayish-blue);
  text-align: center;
  font-weight: bold;
}

.close-icon {
  display: none;
}
.menu-icon {
  display: none;
}

.product-section {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  padding: 5rem 4rem;
  gap: 10%;
  align-items: center;
}

.product-section .product-image {
  width: 40%;
  position: relative;
}

.product-slider-btns {
  position: absolute;
  top: 43%;
  left: 0;
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
  display: none;
}
.product-slider-btns div {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-slider-btns div img {
  width: 12px;
}

.product-section .product-details {
  width: 50%;
}
.product-image img {
  width: 100%;
  border-radius: 16px;
  cursor: pointer;
}

.thumbnail-container img.active {
  outline: 2px solid var(--orange);
}
.thumbnail-container img:hover {
  opacity: 0.6;
}

.product-section .product-details > p:first-child {
  text-transform: uppercase;
  color: var(--dark-grayish-blue);
  font-weight: 700;
  letter-spacing: 2.3px;
}

.product-details h2 {
  font-size: 42px;
  width: 70%;
  margin: 1rem 0 3rem 0;
}

.product-details .description {
  line-height: 1.7;
  color: var(--dark-grayish-blue);
}
.rate-discount-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.rate {
  font-size: 28px;
  font-weight: bold;
}

.discount {
  padding: 6px 1rem;
  border-radius: 6px;
  background-color: black;
  color: white;
  font-weight: 600;
}
.actual-price {
  color: var(--dark-grayish-blue);
  margin-top: 1rem;
  font-weight: 600;
}

.btn-product-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}
.btn-product-container .left {
  display: flex;
  width: 130px;
  background-color: var(--light-grayish-blue);
  padding: 12px 0;
  border-radius: 6px;
}

button {
  cursor: pointer;
}

.btn-product-container .left > * {
  flex: 1;
  text-align: center;
  border: none;
  outline: none;
  background-color: transparent;
}

.btn-product-container .right button {
  border: none;
  outline: none;
  background-color: var(--orange);
  padding: 12px 3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-product-container .right button:hover {
  opacity: 0.6;
}

.thumbnail-container {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  display: none;
}
.cart-item + button {
  display: none;
}

.cart-item > img:first-child {
  width: 45px;
  border-radius: 6px;
}

.cart-item .item-rate {
  display: inline-block;
}

.cart-item .title,
.cart-item .item-rate {
  color: var(--dark-grayish-blue);
}

.total-item-price {
  font-weight: bold;
  padding-left: 8px;
}

.cart-container button {
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--orange);
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: bold;
}

.cart {
  position: relative;
}
.cart-total {
  position: absolute;
  top: -12px;
  right: -13px;
  background-color: var(--orange);
  padding: 0px 7px;
  border-radius: 8px;
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.delete-item {
  cursor: pointer;
}

.main-img {
  display: none;
}

#show-img {
  display: block;
}

.next-btn,.prev-btn{
  cursor: pointer;
}

.thumbnail-container img{
  cursor: pointer;
}







@media (max-width: 768px) {
  nav {
    transform: translateX(-45vw);
    position: fixed;
    left: 0;
    top: 0;
    background-color: white;
    transition: transform 0.3s;

    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    height: 100vh;
    width: 45vw;
    flex-direction: column;
    gap: 1rem;
    padding-top: 3rem;
    z-index: 99;
  }
  .nav-logo-container a {
    font-weight: bold;
    color: var(--black-lightbox);
    font-size: 16px;
  }
  .nav-logo-container a::after {
    display: none;
  }
  .close-icon {
    display: block;
    cursor: pointer;
    padding-left: 1rem;
  }
  .menu-icon {
    display: block;
    cursor: pointer;
    padding-left: 1rem;
  }
  nav.active {
    transform: translateX(0);
  }

  .product-section {
    flex-direction: column;
  }
  .product-section .product-image,
  .product-section .product-details {
    width: 100%;
  }
  .thumbnail-container {
    display: none;
  }
  .product-section {
    padding: 0;
  }
  .product-image img {
    border-radius: 0;
  }
  .product-details {
    padding: 2rem;
  }

  .product-slider-btns {
    display: flex;
  }
  .btn-product-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .btn-product-container .left {
    width: 100%;
    max-width: 300px;
  }

  .btn-product-container .right {
    width: 100%;
    max-width: 300px;
  }
  .btn-product-container .right button {
    justify-content: center;
    width: 100%;
  }
  .product-details h2 {
    font-size: 22px;
    width: 100%;
    margin: 1rem 0 1rem 0;
  }

  .cart-person-container {
    gap: 1rem;
  }

  .rate-discount-container {
    display: inline-flex;
  }
  .actual-price {
    display: inline-block;
  }
  .rate-discount-container {
    width: 80%;
  }

  .cart-container {
    width: 340px;
    right: -8px;
    top: 170%;
  }
  .image-gallery{
    display: none !important;
  }
}

@media (pointer: coarse) {
  .nav-logo-container a:not(:first-child):hover {
    pointer-events: none;
  }
  .btn-product-container .right button:hover {
    opacity: 1;
  }
}


@media (max-width: 350px) {
  .cart-container {
      width: 320px;
  }
}