@import url("https://fonts.googleapis.com/css?family=Poppins:400,500&display=swap");

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

: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%);
  --black-with-opacity: hsla(0, 0%, 0%, 0.75);
}

html {
  font-family: "Poppins", sans-serif;
}

a {
  text-decoration: none;
  color: var(--dark-grayish-blue);
}

body {
  min-height: 100vh;
  min-width: 100vw;
  position: relative;
  background-color: azure;
}

main {
  max-width: 1120px;
  min-height: 100vh;
  padding: 0 5px;
  margin: auto;
}

/* navigation */
.inner-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px;
  border-bottom: 1px solid var(--grayish-blue);
}

.logo {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
}

.inner-wrap .logo h1 {
  margin-top: 12%;
  font-weight: 900;
}

.filter-grid {
  margin-top: -2%;
  background-color: var(--pale-orange);
}

.filter-grid .head h3 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 900;
  font-family: fantasy;
  font-style: italic;
  text-align: center;
  text-decoration: underline;
}

/* course */

#course {
  padding: 8vw 8vw 8vw 8vw;
  text-align: center;
  margin-top: -10%;
}
#course .course-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 2rem;
  margin-top: 50px;
}
#course .courses {
  text-align: start;
  background: #f9f9ff;
  height: 100%;
  position: relative;

  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
#course .courses img {
  width: 100%;
  height: 60%;
  background-size: cover;
  background-position: center;
}
#course .courses .details {
  padding: 15px 15px 0 15px;
}
#course .courses .details i {
  color: #fdc93b;
  font-size: 0.9rem;
}
#course .courses .cost {
  background-color: rgb(74, 74, 136);
  color: #fff;
  line-height: 70px;
  width: 70px;
  height: 70px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  bottom: 100px;
}
#course .courses:hover {
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
}

/* Cart */

.cart {
  position: relative;
}

.cart i {
  cursor: pointer;
}

.cart-container {
  position: absolute;
  background: var(--white);
  right: -95px;
  top: 50px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  width: 360px;
  min-height: 260px;
  display: none;
}

.cart-container.active {
  display: flex;
  flex-direction: column;
}

.cart-title {
  padding: 25px 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--grayish-blue);
}
.cart .cart-items {
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.cart .cart-items.empty {
  align-items: center;
  justify-content: center;
  height: 185px;
  font-weight: 700;
}
.cart .cart-items .cart-empty {
  display: none;
}
.cart .cart-items.empty .cart-empty {
  color: var(--grayish-blue);
  display: inline-block;
}
/* .checkout {
  height: 56px;
  margin: 27px 23px;
  border: none;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
} */
.checkout:hover {
  cursor: pointer;
}

.checkout.empty {
  display: none;
}


#checkout-form {
  display: flex;
  flex-direction: column;
}

#checkout-form label {
  margin-top: 0.5rem;
}

#checkout-form input {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#checkout-form button {
  height: 56px;
  margin: 27px 23px;
  border: none;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
}

.cart-count {
  cursor: pointer;
  position: absolute;
  top: -8px;
  margin-top: 4.5%;
  margin-right: 14%;
  right: -10px;
  background-color: var(--orange);
  color: var(--white);
  min-height: 17px;
  min-width: 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.cart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--dark-grayish-blue);
}

.cart-item img {
  height: 90px;
  border-radius: 5px;
}

.cart-item .total-price {
  color: var(--black);
  font-weight: 700;
}

.delete-item {
  border: none;
  background: none;
  cursor: pointer;
}

.details {
  font-weight: bold;
  cursor: pointer;
}

/* main */
.main2 {
  display: flex;
  gap: 125px;
  min-height: 570px;
  align-items: center;
  padding: 0 50px;
}

.home {
  margin-top: 5%;
  margin-bottom: -5%;
  margin-left: 5%;

  color: var(--white);
  background-color: var(--orange);
  border: none;
  height: 25px;
  width: 10%;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  padding: 0 5px;
}

/* image gallery */

.gallery .main-img img.active {
  display: inline-block;
  max-width: 445px;
  max-height: 445px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  cursor: pointer;

  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.gallery .main-img img.active:hover {
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
}

/* Content */
.content {
  flex: 1;
}

.content h3 {
  font-size: 16px;
  color: var(--orange);
}

.content h2 {
  font-size: 37px;
  margin: 20px 0 40px 0;
}

.content p {
  font-size: 16px;
  color: var(--dark-grayish-blue);
  margin-bottom: 30px;
}

.price {
  display: flex;
  align-items: center;
  gap: 15px;
}

.current-price {
  font-weight: 700;
  font-size: 25px;
}

.discount {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 10%;
  height: 25px;
  background-color: var(--pale-orange);
  font: 700;
  color: var(--orange);
}

.prev-price {
  margin: 10px 0 35px 0;
  font-size: 18px;
  color: var(--grayish-blue);
  font-weight: 700;
  text-decoration: line-through;
}

.add-to-cart-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px;
  width: 150px;
  height: 55px;
  background-color: var(--light-grayish-blue);
}

.counter button {
  width: 50px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.counter .count {
  font-weight: 700;
}

.add-to-cart {
  color: var(--white);
  background-color: var(--orange);
  border: none;
  height: 55px;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  padding: 0 5px;
}

.add-to-cart i {
  fill: var(--white);
}

/* Footer */
.credit {
  background: #fff;
  padding: 12px;
  font-size: 9pt;
  text-align: center;
  color: #333;
  margin-top: 40px;
}
.credit span:before {
  font-family: FontAwesome;
  color: #e41b17;
  content: "\f004";
}
.credit a {
  color: #333;
  text-decoration: none;
}
.credit a:hover {
  color: #1dbf73;
}
.credit a:hover:after {
  font-family: FontAwesome;
  content: "\f08e";
  font-size: 9pt;
  position: absolute;
  margin: 3px;
}
img {
  border-radius: 10px;
}

/* iPad */
@media (max-width: 820px) {
  .form-control {
    display:none;
}

#course {
  padding: 8vw 4vw 0 4vw;
}
.main2 {
  display: flex;
  gap: 50px;
  min-height: 470px;
  align-items: center;
  padding: 0 50px;
}
h2, .h2 {
  font-weight: bold;
}
.cart-count {
  cursor: pointer;
  position: absolute;
  /* top: -8px; */
  margin-top: 8%;
  margin-right: 180%;
  right: -80px;
  
}



}

/* mobile */

@media (max-width: 755px) {
  .inner-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 26px;
    border-bottom: 1px solid var(--grayish-blue);
}

  .main2 {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin-top: 10%;
  }

  .main .default {
    display: none;
  }

  .gallery .main-img img.active {
    max-width: none;
    max-height: none;
    width: 100vw;
    height: auto;
    border-radius: 1;
  }

  .content {
    padding: 0 20px;
  }

  .content h3 {
    margin: 10px 0;
    font-size: 30px;
  }

  .price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }

  .prev-price {
    margin: 0;
  }

  .add-to-cart-container {
    flex-direction: column;
  }

  .counter {
    width: 100%;
  }

  .counter button {
    width: 40%;
  }

  .cart-container {
    z-index: 20;
    right: -85px;
    top: 40px;
  }

  .cart-count {
    cursor: pointer;
   /*  position: absolute; */
    /* top: 96px; */
    margin-top: 8%;
    margin-right: 14%;
    right: 1px;
}
}
