@import url("https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght,YOPQ@100..900,40..300&display=swap");
:root {
  --Orange: rgb(255, 125, 26);
  --Pale-orange: hsl(25, 100%, 94%);
  --Very-dark-blue: hsl(220, 13%, 13%);
  --Dark-grayish-blue: hsl(219, 9%, 45%);
  --Grayish-blue: rgb(182, 188, 200);
  --Light-grayish-blue: hsl(223, 64%, 98%);
  --White: hsl(0, 0%, 100%);
  --Black: hsl(0, 0%, 0%);
}
html {
  font-size: 16px;
}
body {
  font-family: "Kumbh Sans", serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70%;
  margin-inline: auto;
  padding-bottom: 2rem;
  padding-top: 1.5rem;
  border-bottom: 1px solid var(--Grayish-blue);
}
nav ul,
.navwithlogo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  color: var(--Dark-grayish-blue);
  list-style-type: none;
  font-size: 0.9rem;
}

.menu_icon {
  display: none;
}
nav ul li:hover {
  color: black;
  cursor: pointer;
}
.close {
  display: none;
}
nav ul li {
  position: relative;
}
nav ul li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2.8rem;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: center;
  border-bottom: 3.5px solid var(--Orange);
  transition: transform 0.3s ease-in-out;
}
nav ul li:hover::after {
  transform: scaleX(1);
}
.profilAndCart {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.avatar img {
  width: 2.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.showcart img {
  width: 1.5rem;
}
.showcart img:hover,
.avatar img:hover {
  cursor: pointer;
}

.avatar img:hover {
  border: 3px solid var(--Orange);
}
main {
  display: flex;
  margin-top: 2rem;
  width: 70%;
  margin-inline: auto;
}
.images {
  display: grid;
  grid-template-areas:
    "product1 product1 product1 product1"
    "product1t product2t product3t product4t";
  gap: 1rem;
  place-items: center;
}
.images img {
  border-radius: 0.5rem;
  /* display: inline-block; */
}
.images .prod1 {
  grid-area: product1;
  width: 90%;
}
.prod1 {
  position: relative;
}
.images .prod1 img:nth-child(4) {
  width: 100%;
  object-fit: cover;
}
.images .active {
  border: 3px solid var(--Orange);
  border-radius: 0.7rem;
  position: relative;
}
.prod3::before,
.prod4::before,
.prod5::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  pointer-events: auto;
}
.active::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  background: rgba(225, 225, 225, 0.8);
}

.active::before,
.prod3:hover::before,
.prod4:hover::before,
.prod5:hover::before {
  background: rgba(225, 225, 225, 0.8);
}

.images .prod2 {
  grid-area: product1t;
  width: 60%;
}
.images .prod3 {
  grid-area: product2t;
  position: relative;
}
.images .prod4 {
  grid-area: product3t;
  position: relative;
}
.images .prod5 {
  grid-area: product4t;
  position: relative;
}
.images .prod2 img,
.images .prod3 img,
.images .prod4 img,
.images .prod5 img {
  display: block;
  width: 100%;
  height: auto;
}
.images .prod2,
.images .prod3,
.images .prod4,
.images .prod5 {
  width: 70%;
}
.rightContent {
  margin-top: 6%;
  padding-left: 7%;
}
.rightContent p:first-of-type {
  color: var(--Dark-grayish-blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
}
.rightContent p:nth-child(2) {
  padding-top: 1rem;
  color: var(--Very-dark-blue);
  font-size: 2.5rem;
  font-weight: 700;
}
.rightContent p:nth-child(3) {
  padding-top: 2rem;
  width: 80%;
  font-size: 0.9rem;
  line-height: 1.3rem;
  color: var(--Dark-grayish-blue);
  text-align: left;
}

.rightContent p:nth-child(4) {
  color: var(--Black);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
}
.percentage {
  margin-left: 1rem;
  font-size: 0.8rem;
  background: var(--Black);
  color: var(--White);
  padding: 0.3rem;
  padding-inline: 0.6rem;
  border-radius: 0.5rem;
}
.rightContent p:nth-child(5) {
  color: var(--Dark-grayish-blue);
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-top: 0.6rem;
}
.allbutton {
  margin-top: 2rem;
  display: flex;
  /* place-items: center; */
  gap: 1rem;
}
.minusAndPlus {
  display: flex;
  gap: 2rem;
  background: var(--Grayish-blue);
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  width: 40%;
  padding: 1rem;
}
.minusAndPlus button {
  border: none;
  background-color: inherit;
}
.minusAndPlus button:hover {
  cursor: pointer;
}
.value {
  font-size: 1rem !important;
  padding-top: 0 !important;
}
.addtocart {
  border: none;
  background: var(--Orange);
  padding: 1rem;
  color: var(--Black);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 0.5rem;
  padding-inline: 4rem;
  display: flex;
  place-items: center;
  gap: 1.5rem;
}
.addtocart:hover {
  background: rgba(255, 125, 26, 0.6);
  cursor: pointer;
}
.isShow {
  opacity: 0;
  /* width: 21rem; */
  width: 25%;
  height: 15rem;
  background: white;
  position: absolute;
  top: 8%;
  right: 10%;
  z-index: -1000;
  border-radius: 0.5rem;
  box-shadow: 1px 10px 15px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease-in-out;
}

.isShow .cart-header {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--Black);
  border-bottom: 1px solid rgba(182, 188, 200, 0.4);
}
.pannier {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%;
}
.pannier img:first-of-type {
  width: 3rem;
  border-radius: 0.5rem;
  object-fit: cover;
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1rem;
  font-size: 0.9rem;
}
.detail p {
  color: var(--Dark-grayish-blue);
  font-weight: 500;
}
.detail p .price {
  color: var(--Black);
  font-weight: 700;
}
.cart .addtocart {
  margin-inline: auto;
  margin-top: 4%;
  width: 90%;
  text-align: center;
  justify-content: center;
}
.pannier img:last-of-type {
  width: 1rem;
  cursor: pointer;
  margin-left: 1.5rem;
}
.showcart {
  position: relative;
}
.numberOfCart {
  opacity: 0;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--Orange);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 700;
  color: var(--White);
  transition: all 0.3s ease;
}
.empty {
  display: none;
  text-align: center;
  color: var(--Grayish-blue);
  margin-top: 20%;
  font-weight: 600;
  /* margin-top: 50%; */
}
.notification_To_Check {
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
}
.modal .images .prod1 .next_modal,
.modal .images .prod1 .prev_modal {
  display: block;
}

.modal .images {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30rem;
  padding: 20px;
  border-radius: 10px;
}

.close_modal {
  display: none;
  position: absolute;
  top: -3.5rem;
  right: 0;
  background: var(--White);
  border-radius: 10%;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.close_modal:hover {
  background: var(--Orange);
}
.prev_modal,
.next_modal {
  cursor: pointer;
  padding: 0.7rem;
  background: var(--White);
  border-radius: 50%;
  transition: background 0.3s ease;
}
.prev_modal:hover,
.next_modal:hover {
  background: var(--Orange);
}
.next_modal {
  display: none;
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 100;
}
.prev_modal {
  display: none;
  position: absolute;
  top: 50%;
  left: -17px;
  z-index: 100;
}

@media only screen and (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  header {
    width: 100%;
    padding-inline: 2rem;
  }
  .addtocart,
  .minusAndPlus {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  .addtocart {
    box-shadow: 0px 5px 1rem var(--Orange);
  }
}

@media only screen and (max-width: 770px) {
  .addtocart,
  .minusAndPlus {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  main {
    width: 100%;
  }
  .isShow {
    width: 55%;
    right: 5%;
    margin-inline: 1rem;
  }
  .cart .addtocart {
    width: 80%;
  }
}
@media only screen and (max-width: 599px) {
  html {
    font-size: 14px;
  }
  .menu_icon {
    display: block;
    cursor: pointer;
  }
  .pannier img:first-of-type {
    width: 5rem;
  }
  /* .images .prod1 img {
  
    width: 100%;
  } */
  nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -400px;
    background: var(--White);
    width: 40%;
    height: 100vh;
    padding-top: 2rem;
    align-items: start;
    padding-left: 2rem;
    z-index: 10000000;
    font-weight: 700;
    color: var(--Black);
    transition: left 1s ease;
  }
  .isShow {
    width: 95%;
    right: 0%;
    margin-inline: 1rem;
  }
  nav ul li::after {
    display: none;
  }
  nav ul li:hover {
    color: var(--Dark-grayish-blue);
  }
  .dark-overlay {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100rem;
    height: 100rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
  }
  header {
    padding-bottom: 0;
    border-bottom: 0;
  }
  main {
    margin-top: 0;
    padding-top: 0;
    flex-direction: column;
  }
  .images {
    grid-template-areas: "product1";
  }

  .prod2,
  .prod3,
  .prod4,
  .prod5 {
    display: none;
  }
  .images .prod1 {
    width: 100%;
    /* height: 50%; */
  }
  .close {
    display: block;
  }
  .images .prod1 img:nth-child(4) {
    border-radius: 0;
    height: 26rem;
    transition: opacity 0.3s ease;
  }
  .images .prod1 img:nth-child(4).hidden {
    opacity: 0.7;
  }
  .minusAndPlus,
  .allbutton div:nth-child(2) {
    width: 90%;
  }
  .allbutton {
    flex-direction: column;
  }
  .addtocart {
    width: 100%;
    justify-content: center;
  }
  .minusAndPlus {
    justify-content: space-around;
  }
  .next_modal,
  .prev_modal {
    display: block;
  }
  .next_modal {
    right: 1rem;
  }
  .prev_modal {
    left: 1rem;
  }
}
