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

html {
  font-size: 62.5%;
  font-family: "Kumbh Sans", sans-serif;
}

body {
  position: relative;
  height: 100dvh;
  width: 100dvw;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
}

/* ---------------------------------------------
------------------NAVIGATION---------------
------------------------------------------------ */

.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.4rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid hsl(223, 64%, 98%);

  position: sticky;
  top: 0;
  left: 0;
  background-color: hsl(0, 0%, 100%);

  z-index: 99;
}

.logo img {
  height: 2rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.menu-list {
  display: none;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  font-size: 1.6rem;
  height: 100%;
}

.nav-link {
  text-decoration: none;
  color: hsl(219, 9%, 45%);

  padding-bottom: 2.4rem;
}

.nav-link:hover {
  color: hsl(220, 13%, 13%);
  border-bottom: 3px solid hsl(26, 100%, 55%);
}

.nav-cta,
.delete {
  display: flex;
  align-items: center;
  gap: 2.4rem;

  position: relative;
  cursor: pointer;
}

.nav-cta .icon-cart,
.delete .icon-delete path {
  height: 2rem;
  width: 3.2rem;
  fill: hsl(219, 9%, 45%);
}

.nav-cta .icon-cart:hover,
.delete .icon-delete:hover path {
  fill: hsl(220, 13%, 13%);
}

.nav-cta .icon-cart {
  position: relative;
}

.indicator {
  position: absolute;
  top: 10%;
  right: 60%;
  color: hsl(0, 0%, 100%);

  font-size: 1rem;
  padding: 1px 10px;
  border-radius: 50px;
}

.nav-cta .avatar {
  height: 4.8rem;
  width: auto;
  border-radius: 50%;
  border: 2px solid hsl(0, 0%, 100%);
}

.nav-cta .avatar:hover {
  border-color: hsl(26, 100%, 55%);
  cursor: pointer;
}

/* ---------------------------------------------
--------------MOBILE NAVIGATION-------------
------------------------------------------------ */

.btn-nav {
  justify-self: center;
  align-self: center;
}

.btn-menu {
  border: none;
  background: none;
  padding: 1.2rem;
  cursor: pointer;
}

.btn-menu svg {
  fill: hsl(220, 13%, 13%);
  width: 2.8rem;
  aspect-ratio: 1;
}

.btn-menu:hover svg {
  fill: hsl(26, 100%, 55%);
}

.mobile-nav {
  background-color: hsl(0, 0%, 100%);
  height: 100%;
  width: 75%;

  padding: 2.4rem;
}

.nav-close {
  background-color: transparent;
  border: none;
  margin-bottom: 6.4rem;
  cursor: pointer;
}

.nav-close .close {
  fill: hsl(219, 9%, 45%);
}

.mobile-nav-menu {
  list-style: none;
  font-size: 2.4rem;
  font-weight: 700;
}

.mobile-nav-items .nav-link {
  display: block;
  width: max-content;
  margin-top: 1.6rem;
  color: hsla(0, 0%, 0%);
}

.mobile-nav-items .nav-link:hover {
  border: none;
  color: hsl(26, 100%, 55%);
}

.mobile-nav-overlay {
  background-color: transparent;
  transform: translateX(-100%);
  transition: background-color 250ms ease-out, transform 250ms ease-in-out 250ms;
}

.menu-show {
  transform: translateX(0);
  background-color: hsla(0, 0%, 0%, 0.75);
  transition: transform 250ms ease-in-out, background-color 250ms 250ms;
}

/* ---------------------------------------------
------------------SHOPPING CART---------------
------------------------------------------------ */

.cart {
  position: absolute;
  top: 100%;
  right: 5%;
  width: 35rem;
  background-color: hsl(0, 0%, 100%);

  display: flex;
  flex-direction: column;

  border-radius: 12px;
  box-shadow: 0 0 20px -3px hsl(220, 13%, 13%);

  transform: scale(0);
  transform-origin: top right;
  transition: transform 200ms;
}

.cart-title {
  font-size: 1.8rem;
  padding: 1.8rem;
  border-bottom: 2px solid hsl(223, 64%, 98%);
}

.cart-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 15rem;
}

.cart-empty {
  font-size: 1.8rem;
  font-weight: 700;
  color: hsl(219, 9%, 45%);
}

.cart-items {
  padding: 1.8rem;
  font-size: 1.5rem;
  color: hsl(220, 14%, 75%);
  font-weight: 700;

  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.item-img img {
  width: 4rem;
  height: auto;
  border-radius: 5px;
}

.item-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 1.2rem;
}

.item-name {
  font-size: 1.6rem;
  color: hsl(219, 9%, 45%);
}

.item-price {
  display: flex;
}

.base-price {
  font-size: 1.6rem;
  color: hsl(219, 9%, 45%);
}

.total-price {
  padding-left: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(220, 13%, 13%);
}
.delete {
  background-color: transparent;
  border: none;
}

.icon-delete {
  width: 2rem;
  height: 2rem;
}

.checkout {
  width: 100%;
  padding: 1.8rem;
  padding-top: 0;
}

.checkout button {
  width: 100%;
}

.show-cart {
  transform: scale(1);
}

/* ---------------------------------------------
------------------MAIN SECTION---------------
------------------------------------------------ */

/* ---------------------------------------------
------------------SHOWCASE---------------
------------------------------------------------ */

.main {
  margin: 9.6rem 1.2rem;
  display: grid;
  gap: 4.8rem;
}

.main-showcase {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  padding: 0 4.8rem;

  align-self: center;
}

.main-showcase img {
  border-radius: 12px;
  width: 100%;
}
.main-showcase img:hover {
  cursor: pointer;
}

.showcase-thumbnails {
  display: flex;
  gap: 2.4rem;
  justify-content: space-between;
}

[class^="thumbnail-"] {
  border-radius: 12px;
  background-color: hsl(0, 0%, 100%);
  overflow: hidden;
}

[class^="thumbnail-"] img {
  display: block;
}

[class^="thumbnail-"] img:hover {
  opacity: 0.5;
}

/* ---------------------------------------------
-------TO SHOW WHICH IMAGE IS SHOWCASING--------
------------------------------------------------ */

.active {
  border: 2px solid hsl(26, 100%, 55%);
}
.active img {
  opacity: 0.5;
}

/* ---------------------------------------------
------------------DESCRIPTION---------------
------------------------------------------------ */

.main-text {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.company-name {
  color: hsl(26, 100%, 55%);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.title {
  font-size: 3.6rem;
  margin-bottom: 1.2rem;
}

.text {
  font-size: 1.8rem;
  color: hsl(219, 9%, 45%);
  line-height: 1.8;
}

.current-price {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 700;
}

.discount {
  font-size: 1.8rem;
  color: hsl(26, 100%, 55%);
  padding: 0.3rem 1rem;
  background-color: hsl(25, 100%, 94%);
  border-radius: 6px;
}

.discounted-price {
  font-size: 3.2rem;
}

.original-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: hsl(220, 14%, 75%);
  margin-bottom: 1.2rem;
  /* text-decoration: line-through; */
  width: max-content;
  position: relative;
}

.original-price::after {
  content: "";
  width: 100%;
  background-color: hsl(220, 14%, 75%);
  position: absolute;
  top: 50%;
  bottom: 40%;
  left: 0;
  right: 0;
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
  width: 100%;
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;

  font-size: 1.8rem;
  font-weight: 700;
  background-color: hsl(223, 64%, 98%);
  padding: 1.2rem 2.4rem;
  border-radius: 6px;
}

.number {
  width: 1.8rem;
}

.quantity img:hover {
  opacity: 0.6;
  cursor: pointer;
}

.btn {
  background-color: hsl(26, 100%, 55%);
  border: none;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 1.2rem 2.4rem;
  border-radius: 10px;
  color: hsl(223, 64%, 98%);

  flex-grow: 1;
}

.btn > .icon-cart {
  fill: hsl(223, 64%, 98%);
  height: 2rem;
  width: 3.2rem;
}

.btn:hover {
  opacity: 0.6;
  cursor: pointer;
}
/* ---------------------------------------------
--------------LIGHTHOUSE OVERLAY-------------
------------------------------------------------ */

.lighthouse-overlay,
.mobile-nav-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.lighthouse-overlay {
  transform: scale(0);
  background-color: hsla(0, 0%, 0%, 0.75);
  transition: transform 150ms ease-in;
}

.lighthouse-overlay .main-showcase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  height: auto;
}

.lighthouse-overlay .showcase-img {
  position: relative;
  display: grid;
  grid-template-rows: max-content;
}

.btn-close {
  justify-self: right;
}
.close {
  fill: hsl(0, 0%, 100%);
  height: 2.4rem;
  width: 2.4rem;
  cursor: pointer;
}

.close:hover {
  fill: hsl(26, 100%, 55%);
}

.btn-lighthouse {
  background-color: hsl(0, 0%, 100%);
  border-radius: 50%;
  height: 4.8rem;
  width: 4.8rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-lighthouse svg {
  width: 3.2rem;
}

.lighthouse-overlay .btn-lighthouse.left {
  left: 0;
}

.lighthouse-overlay .btn-lighthouse.right {
  left: 100%;
}

.previous,
.next {
  fill: hsl(220, 13%, 13%);
  cursor: pointer;
}

.btn-lighthouse:hover .previous,
.btn-lighthouse:hover .next {
  fill: hsl(26, 100%, 55%);
}

.hidden {
  display: none;
}
