* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/************************(navbar)***********************/
nav {
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 0 10px #657eff;
  background-color: #fff;
  position: fixed;

  left: 0;
  z-index: 90;
}

section {
  width: 100%;
  height: 120vh;
  background-image: url("./../image/BG.jpeg");
  background-size: cover;
  background-position: center;
}

section nav .logo {
  width: 320px;
  margin: 5px 0;
  font-size: 24;
  color: 657EFF;
  text-align: center;
}

section nav .logo:hover {
  color: 657EFF;
}

section nav ul {
  list-style: none;
}

section nav li {
  display: inline-block;
  padding: 0 10px;
}

section nav li a {
  text-decoration: none;
  color: #000;
}

section nav li a:hover {
  color: #657eff;
}

section nav .icons i {
  margin: 0 5px;
  font-size: 18px;
}

section nav .icons i:hover {
  color: #657eff;
  cursor: pointer;
}

section nav .icons div {
  margin: 0 5px;
  font-size: 18px;
}

section nav .icons div:hover {
  color: #657eff;
  cursor: pointer;
}

/********************(||| علامة)********************/
#toggle-menu {
  display: inline-block;
  margin: 10px;
  padding: 10px;
  border: none;
  cursor: pointer;
  background-color: #f1f1f1;
}

#toggle-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

/********************(X علامة)********************/
#toggle-menu.active span:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

#toggle-menu.active span:nth-of-type(2) {
  opacity: 0;
}

#toggle-menu.active span:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav ul {
  display: none;
}

nav ul.show {
  display: block;
}

/********************(Home)********************/

section .fristsec {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 20%;
}

section .fristsec h1 {
  width: 350px;
  text-align: center;
  position: relative;
  font-size: 65px;
  top: 10px;
  left: 125px;
}

section .fristsec h1 span {
  color: #657eff;
}

/*************************(دايزاين الكتب )*********************/
:root {
  --blue: #657eff;
  --dark-color: #657eff;
  --black: #444;
  --light-color: #666;
  --border: 0.1rem solid rgba(0, 0, 0, 0.1);
  --outline: 0.1rem solid rgba(0, 0, 0, 0.1);
  --border-hover: 0.1rem solid var(--black);
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/***************************(slider in home)***********************/
section .fristsec .fristsec_img img {
  width: 700px;
  height: 600px;
  position: absolute;
  top: 0;
  left: 450;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

section .fristsec .fristsec_img img.active {
  opacity: 1;
}

.fristsec_img {
  width: 100%;
  height: 500px;
  display: flex;
  overflow: hidden;
  position: relative;
}

/************************(Login)**********************/
.login_form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  background-size: cover;
  position: fixed;
  top: 0;
  right: -105%;
  z-index: 10000;
  height: 100%;
  width: 100%;
}

.login_form.active {
  right: 0;
}

.btn {
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.9rem 3rem;
  border-radius: 0.7rem;
  color: #fff;
  background: #657eff;
  border-color: #657eff;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 200;
}

.btn:hover {
  background: #657eff;
}

.login_form form {
  background: #fff;
  border: var(--border);
  width: 35rem;
  padding: 2rem;
  box-shadow: 2.5px 2.5px 2.5px 2.5px #657eff;
  border-radius: 0.5rem;
  margin: 1rem;
  height: 29rem;
}

.login_form form h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
}

.login_form form span {
  display: block;
  font-size: 1.2rem;
  padding-top: 0.8rem;
}

.login_form form .box {
  width: 100%;
  margin: 0.5rem 0;
  font-size: 1rem;
  border: var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.2rem;
  color: var(--black);
  text-transform: none;
}

.login_form form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.login_form form .checkbox label {
  font-size: 0.8rem;
  color: var(--light-color);
  cursor: pointer;
}

.login_form form .btn {
  text-align: center;
  width: 100%;
  margin: 0.2rem 0;
}

.login_form form p {
  padding-top: 0.8rem;
  color: var(--light-color);
  font-size: 1rem;
}

.login_form form p a {
  color: #657eff;
  text-decoration: underline;
}

.login_form #close-login-btn {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 1.8rem;
  color: #000;
  cursor: pointer;
}

/************************(Cart)**************************/
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 360px;
  min-height: 100hv;
  padding: 20px;
  background: #fff;
  box-shadow: -2px 0 4px hsl(0 4% 15% / 10%);
  transition: 0.3s;
}

.cart.active {
  right: 0;
}

.cart-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  color: #000;
}

.cart-box {
  display: grid;
  grid-template-columns: 32% 50% 18%;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.cart-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  padding: 10px;
}

.detail-box {
  display: grid;
  row-gap: 0.5rem;
}

.cart-product-title {
  font-size: 1 rem;
  text-transform: uppercase;
  color: var(--black);
}

.cart-price {
  font-weight: 500;
  color: var(--black);
}

.cart-quantity {
  border: 1px solid var(--black);
  outline-color: var(--black);
  width: 2.4rem;
  text-align: center;
  font-size: 1rem;
}

#cart-remove {
  font-size: 15px;
  color: var(--black);
  cursor: pointer;
}

.total {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid var(--black);
}

.total-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.total-price {
  margin-left: 0.5rem;
  color: var(--black);
}

.btn-buy {
  display: flex;
  margin: 1rem auto 0 auto;
  padding: 8px 15px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-buy:hover {
  background: #fff;
  color: #000;
}

#close-cart {
  position: absolute;
  top: 1rem;
  right: 0.8rem;
  font-size: 1rem;
  color: var(--black);
  cursor: pointer;
}

/**********************(feature)******************/

.heading {
  text-align: center;
  padding: 2rem 0;
  padding-bottom: 3rem;
  font-size: 2rem;
  color: var(--black);
}

.heading span {
  background: #657eff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  clip-path: polygon(100% 0%, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.features .box_container {
  border: 0px solid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 2fr));
  gap: 1rem;
}

.features .box_container .box {
  border: 0px solid red;
  padding: 1.5rem 1rem;
  background: #fff;
  outline: var(--outline);
  outline-offset: -1rem;
  text-align: center;
  box-shadow: var(--box-shadow);
}

.features .box_container .box:hover {
  box-shadow: 1px 1px 10px 4px var(--blue);
}

.features .box_container .box img {
  margin: 0.2rem 0;
  height: 15rem;
}

.features .box_container .box h3 {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--black);
}

.features .box_container .box p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--light-color);
  padding-bottom: 0.5rem 0;
}

.features .box_container .box a {
  color: var(--black);
  font-size: 0.9rem;
  padding: 1rem 1rem;
  margin: 0.8rem 0;
  border-radius: 0.1rem;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--box-shadow);
}

.features .box_container .box a:hover {
  background: #fff;
  color: var(--black);
}

.features .box_container .box .price span {
  font-size: 1rem;
  color: var(--light-color);
  text-decoration: line-through;
}

.features .box_container .box.price {
  font-size: 2.2rem;
  color: var(--black);
  padding-top: 1rem;
}

/************************(offers)************************/

.deal {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 470px;
}

.dealh1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-size: 45px;
}

.dealh1 span {
  background: #657eff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  clip-path: polygon(100% 0%, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.deal .content {
  margin-top: 70px;
  margin-left: 35px;
  max-width: 650px;
  flex: 1 1 42rem;
  padding-right: 2rem;
}

.deal .content h3 {
  color: #657eff;
  font-size: 3.5rem;
  padding-bottom: 0.5rem;
}

.deal .content h1 {
  color: black;
  font-size: 4rem;
}

.deal .content p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1.5rem;
}

.deal .content .btn-d {
  display: inline-block;
  background-color: #657eff;
  color: #fff;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.2s ease-in-out;
}

.deal .content .btn-d:hover {
  background-color: #657eff;
}

.books-slider {
  max-width: 600px;
  flex: 1 1 42rem;
  text-align: center;
  margin-top: 2rem;
}

.books-slider a img {
  height: 15rem;
  margin-top: 110px;
}

.books-slider a:hover img {
  transform: scale(0.9);
}

.books-slider .stand {
  width: 100%;
  margin-top: -8rem;
  margin-bottom: 0;
}

/***************************(Arrivals)*********************/

.arr {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 670px;
}

.arrivals_books {
  width: 100%;
  height: 100vh;
  padding: 70px 0;
}

.arrivals_books h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-size: 45px;
}

.arrivals_books h1 span {
  background: #657eff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  display: inline-block;
  clip-path: polygon(100% 0%, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.arrivals_books .arrivals_book_box {
  width: 95%;

  height: 60vh;

  height: 70vh;

  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  overflow: hidden;
  overflow-x: scroll;
}

.arrivals_books .arrivals_book_box .arrivals_book_card {
  width: 250px;
  height: 420px;
  text-align: center;
  padding: 5px;
  border: 1px solid #919191;
  margin: auto 20px;
}

.arrivals_books .arrivals_book_box .arrivals_book_card:hover {
  box-shadow: 0 0 5px #657eff;
}

.arrivals_books .arrivals_book_box .arrivals_book_card .arrivals_book_img img {
  width: 150px;
}

.arrivals_books .arrivals_book_box .arrivals_book_card .arrivals_book_tag h2 {
  margin: 12px;
}

.arrivals_books
  .arrivals_book_box
  .arrivals_book_card
  .arrivals_book_tag
  .writer {
  color: #919191;
}

.arrivals_books
  .arrivals_book_box
  .arrivals_book_card
  .arrivals_book_tag
  .categories {
  color: #657eff;
  margin-top: 8px;
}

.arrivals_books
  .arrivals_book_box
  .arrivals_book_card
  .arrivals_book_tag
  .f_btn {
  padding: 8px 20px;
  border: 2px solid #657eff;
  text-decoration: none;
  color: #000;
  background-color: white;
  position: relative;
  top: 45px;
}

.arrivals_books
  .arrivals_book_box
  .arrivals_book_card
  .arrivals_book_tag
  .f_btn:hover {
  background-color: #657eff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: #657eff;
  border-radius: 10px;
}

/********************(ContactUs)*********************/

/* .ContactUs {
		background-color: #f3f3f3;
		display: flex; 
		flex-wrap: wrap; 
		height: 690px;
	  }
	  
	  .cont {
		display: flex; 
		width: 100%;
		margin: 0 auto; 
	  }
	  
	  .frm {
		width: 50%; 
		margin-right: 25px; 
	  }
	  
	  .map-container {
		width: 50%; 

	  }
	  
	  .Contact {
		width: 100%;
		height: 100vh;
		padding: 70px 0;
	  }
	   */
.ContactUs h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  margin-top: 50px;
  font-size: 45px;
}

.ContactUs h1 span {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #657eff;
  color: #fff;
  clip-path: polygon(100% 0%, 93% 50%, 100% 99%, 0% 100%, 7% 50%, 0% 0%);
}

.frm .field {
  margin-bottom: 20px;
  margin-left: 25px;
  margin-top: 40px;
}

.field label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"] {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #657eff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 25px;
}

input[type="submit"]:hover {
  background-color: white;
  color: #657eff;
}

.field input[type="text"] {
  width: 230px;
  height: 30px;
}

.field input[type="tel"] {
  width: 220px;
  height: 30px;
}

.fff {
  display: flex;
}

.ContactUs {
  background-color: #f3f3f3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 790px;
  padding: 70px 0;
}

.Contact {
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cont {
  display: flex;
  width: 100%;
  height: 100%;
}

.frm {
  width: 50%;
}

.map-container {
  width: 60%;
  height: 470px;
  margin-left: 250px;
  margin-bottom: 25px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 5%;
}

/********************(Footer)**************************/
.footer {
  background-color: #758cff;
  width: 100%;
  text-align: center;
  padding: 30px 0;
  color: #444;
}

.footer .footp2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #091631;
}

.name {
  color: #f7f7f7;
  font-size: 18px;
}

.na {
  color: #091631;
}
