* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  padding-top: 70px;
  background-color: #f9f9f9;
}

/* Start Header */

header {
  background-color: white;
  padding: 15px 65px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  z-index: 1000;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1.logoName {
  font-size: 30px;
  font-weight: bold;
  color: #708aff;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.logo span {
  color: #708aff;
  font-size: 12px;
  font-weight: bold;
  font-family: Georgia, "Times New Roman", Times, serif;
}
header .search input {
  margin-left: 5px;
  padding-left: 3;
  width: 170px;
  transition: width 0.3s;
  border: 1px solid #ccc;
  padding: 10px 30px;
  border-radius: 10px;
}
header .search {
  position: relative;
}
header .search::before {
  font-family: var(--fa-style-family-classic);
  content: "\f002";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--grey-color);
}
header .search input:focus {
  width: 200px;
  outline: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  align-items: center;
}

nav a {
  color: #708aff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  font-family: "IBM Plex Mono Regular";
}
nav a:hover {
  color: #5a7de0;
  border-bottom: 1px solid;
}
/* End Header */

/* shop  */
.container {
  display: flex;
  min-width: 100vh;
}

/* start filter */
 #filter {
 
  top: 15%;
  border-radius: 20px;
  background-color: #f9f9f9;
  padding: 20px;
  width: 240px;
  height: 100vh;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-right: 20px;
  margin-left: 5%;
  margin-top: 4%;
  margin-bottom: 80px;
  
} 

/* title of filter*/
#filter h3 {
  font-size: 16px;
  color: #4a6cf7;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* (checkbox + label) */
#filter input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

#filter label {
  font-size: 14px;
  margin-bottom: 6px;
  display: inline-block;
  color: #333;
  cursor: pointer;
}

/* search */
#filter input[type="search"] {
  width: 100%;
  padding: 6px 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* button of search*/
#filter input[type="button"] {
  width: 100%;
  background-color: #f76c1b;
  color: white;
  border: none;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#filter input[type="button"]:hover {
  background-color: #e65b0f;
}
/* end filter */

/* start cards */
.divofsections {
  width: 70%;
}
.books-section {
  margin: 50px 20px;
  scroll-margin-top: 100px;
  display: flex;
  width: 100%;
}
.sub-container {
  display: block;
  align-content: space-between;
}
.section-header,
.view-options {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.section-header h2 {
  display: inline;
}
.view-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background-color: white;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}
.view-btn.active,
.view-btn:hover {
  border: 2px solid #708aff;
  color: #708aff;
}
.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 40px;
}
.book-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 480px;
  width: 220px;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}
.book-card:hover {
  transform: translateY(-5px);
  box-sizing: 0 5px 35px rgba(0, 0, 0, 0.15);
}
.book-cover {
  width: 100%;
  height: 300px;
  object-fit: fill;
  background-color: #f7fafc;
}
.book-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}
.spacer {
  flex: 1;
}
.book-title {
  font-size: 13px;
  color: #708aff;
  margin-bottom: 5px;
  line-height: 1.4;
  overflow: hidden;
}
.book-author {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}
.add-cart {
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 10px;
  background-color: #f16921;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  
}
.add-cart:hover {
  background-color: #ec7f45;
}
.delete-cart{
 background-color: #d9534f;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;

}
.delete-cart:hover{
background-color: #ec7f45;
}
h3 {
  color: #708aff;
  margin: 5px 0;
}
h2 {
  color: #708aff;
  margin-left: 40px;
}

.disabled {
  background-color: #ccc; 
  color: #666; 
  cursor: not-allowed; 
  opacity: 0.7; 
  pointer-events: none; 
  transition: background-color 0.3s ease;
}
/* end cards */
/* Start Footer */
footer {
  background-color: #708aff;
  color: white;
  padding: 40px 40px 20px 40px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  font-size: 24px;
}
.footer-section p {
  color: #dddada;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: #dddada;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-left: 10px;
}
.footer-section ul li a:hover {
  color: white;
}
.social {
  display: flex;
  gap: 15px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #4a5568;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social a:hover {
  background-color: white;
  color: black;
  transform: translateY(-2px);
}
.email-input {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.email-input input {
  padding: 8px 12px;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  background-color: transparent;
  caret-color: #dddada;
}
.email-input input::placeholder {
  color: #dddada;
}
.email-input .subscribe {
  border: none;
  padding: 5px 50px;
  background-color: white;
  color: #708aff;
  font-weight: bold;
  border-radius: 5px;
  margin-left: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.email-input .subscribe:hover {
  background-color: #d8d8d8;
}
.bottom {
  border-top: 1px solid #dddada;
  padding-top: 15px;
  text-align: center;
  color: #dddada;
}
/* End Footer */
