/*  mobile first design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: "Kumbh Sans", sans-serif;
}

:root {
  /* Primary */
  --primary-dark-color: hsl(26, 100%, 55%);
  --primary-pale-color: hsl(25, 100%, 94%);
  /* Neutral */

  --light-blue: hsl(220, 14%, 75%);
  --very-dark-blue: hsl(220, 13%, 13%);
  --dark-greyish-blue: hsl(219, 9%, 45%);
  --white: hsl(0, 0%, 100%);
  /* Black (with 75% opacity for lightbox background) */
  --black-reduced-opacity: rgba(0, 0, 0, 0.5);
  --black-slighthly-opacity: rgba(0, 0, 0, 0.8);

  /* weights */
  --small-font-weight: 400;
  --large-font-weight: 700;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --light-greyish-blue: hsl(223, 64%, 98%);
  --text-dark-color: hsl(0, 0%, 0%);
}
body {
  max-width: 1140px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
ul {
  list-style: none;
}
img {
  cursor: pointer;
}
/* styling header */
.header {
  display: flex;
  background: var(--white);
  padding: 0rem 1rem 0rem;
  width: 100%;
  justify-content: space-between;
  border-bottom: 0.1px solid var(--dark-greyish-blue);
  padding: 0.8rem 1rem 1rem;
}
/* left header styling */
.left-header {
  display: flex;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-weight: var(--large-font-weight);
  font-size: 1.5rem;
}
.open img {
  width: 1.4rem;
}

/* end of left header styling */
/* menu styling */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--black-reduced-opacity);
  height: 100vh;
  width: 100%;
  display: none;
  z-index: 101;
}
.menu.open {
  display: block;
}
.menu .inner-menu {
  padding: 1.3rem;
  width: 70%;
  background: var(--white);
  height: inherit;
}
.menu img {
  margin-bottom: 2rem;
}
.menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.menu ul li {
  font-weight: var(--large-font-weight);
  color: var(--very-dark-blue);
  cursor: pointer;
}
/* end of menu styling */
/* right header styling */

.right-header {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.right-header .cart {
  width: 30px;
  height: 30px;
}
.right-header .cart img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.right-header .cart-icon {
  position: relative;
}
.right-header .cart-icon.full .count-amount {
  background: var(--primary-dark-color);
  height: 1.2rem;
  width: 1.4rem;
  padding: 0.6rem;
  position: absolute;
  top: -40%;
  right: -30%;
  border-radius: 100vmax;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  user-select: none;
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.right-header .cart-icon .count-amount {
  display: none;
}
/* .right-header .cart-icon .number {
  text-align: center;
} */
.right-header .avatar {
  width: 30px;
  height: 30px;
}
.right-header .avatar img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}
/* end of right header styling */
/* end of header styling */

/*  cart display styling */
.cart-display {
  width: 95%;
  margin: 1rem auto;
  background-color: var(--white);
  border-radius: 0.4rem;
  z-index: 101;
  display: none;
}
.cart-display.show {
  display: block;
  /* z-index: 100; */
}
.cart-display .cart {
  width: 100%;
  border-bottom: 0.6px solid var(--light-blue);
  padding: 1rem;
  padding-bottom: 1.5rem;
  font-weight: var(--large-font-weight);
}
/* detailed gives the inner padding  */
.detailed {
  padding: 1rem;
}
/* empty cart lettering */
.empty-cart {
  color: var(--dark-greyish-blue);
  text-align: center;
}
.cart-display {
  position: absolute;
  top: 53px;
  /* z-index: 999; */
  /* margin-inline: auto; */
}
.cart-display .content {
  display: flex;
  padding: 1.3rem 0;
  align-items: center;
  justify-content: space-between;
}
.cart-display .content section {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.cart-display .content section .description {
  color: var(--dark-greyish-blue);
  font-weight: var(--small-font-weight);
}
.cart-display .content section .description .total {
  color: black;
  font-weight: var(--large-font-weight);
}
/* use :not() pseudo selector */
.cart-display .content .thumbnail {
  height: 50px;
  width: 50px;
}
/* thumbnail img */
.cart-display .content .thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 0.3rem;
}

/* checkout button */
.pay-btn {
  width: 100%;
  padding: 0.8rem;
  color: var(--white);
  background-color: var(--primary-dark-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
  border-radius: 0.6rem;
  outline: none;
  border: none;
}

.product-page .slider {
  /* display: flex; */
  overflow: hidden;
  display: flex;
}
.product-page .slider .p-img {
  /* width: 100%; */
  max-width: 100%;
  height: auto;
}
.thumbnail-images {
  display: none;
}

/* modal closing button */
.modal-close {
  display: none;
  /* display: block; */
}

/* positioning the navigators */
.nav {
  background-color: var(--light-greyish-blue);
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
}
/* T */
.previous {
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: 90;
}
.next {
  position: absolute;
  top: 50%;
  right: 5%;
  z-index: 90;
}

/*  styling details of product page */
.details {
  background-color: var(--white);
  padding: 1rem;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
}
.details .heading {
  text-transform: uppercase;
}
.details h2 {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.details .info {
  color: var(--dark-greyish-blue);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.product .price-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product .price-details .price {
  font-weight: var(--large-font-weight);
  font-size: 1.5rem;
}
/*  discount */
.product .price-details .discount {
  padding: 0.1rem 0.4rem;
  background-color: var(--primary-pale-color);
  color: var(--primary-dark-color);
  font-weight: var(--large-font-weight);
  border-radius: 0.4rem;
}

.price-details .original-price {
  text-decoration: line-through;
  color: var(--dark-greyish-blue);
}
/*  */

/*  quantity increament  */
.quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  background-color: var(--light-greyish-blue);
  padding: 1rem;
  border-radius: 0.4rem;
}
/* add to cart */
.add-to-cart {
  display: flex;
  width: inherit;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}
.add-to-cart .add-btn {
  background-color: var(--primary-dark-color);
  padding: 1rem;
  width: 100%;
  border-radius: 0.4rem;
  outline: none;
  border: none;
  color: var(--white);
  box-shadow: 0 0.8rem 1.2rem var(--primary-pale-color);
  gap: 1rem;
}
.add-to-cart .add-btn img {
  color: white;
}

/* working on hover Effects and general colors  */
.decrease:hover,
.increase:hover,
.add-to-cart:hover {
  opacity: 0.6;
}
/*  workng on general color styling */
.primary-color {
  color: var(--primary-dark-color);
}
