*{
  margin: 0;
  padding: 0;
  box-sizing: 0;
}

:root{
  --main-color:#6f42c1;
  --bg_color:#fdfdfd;
  --nav_color:#a29ab17e;
  --wtext_color:#fff;
  --btext_color:#000;
  --logo_color:#1e1e60;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
}



.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background-color: var(--nav_color);
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--logo_color);
}

.logo .purple {
  color: var(--main-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: #1e1e60;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color:var(--main-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}


.menu {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #1e1e60;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color:var(--wtext_color);
    width: 200px;
    padding: 15px;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .menu {
    display: block;
  }
}


.search-bar {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 25px 0 0 25px;
}

.search-bar button {
  background-color: var(--main-color);
  border: none;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: var(--main-color);
}
.cart {
  position: relative;
  font-size: 18px;
  color: #1e1e60;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--main-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

.bbtn{
  width: 100px;
  height: 40px;
  background-color: #7b1fa2;
  border: none;
  border-radius:7px ;
  color: white;
}
.bbtn a{
  list-style: none;
  text-decoration: none;
  color: white;
}
.bbtn:hover{
  background-color: #6f42c1;
}

.hero {
  margin-left: 5px;
    background: url("../img/179d02785838008acf55da2dbfed54e7.jpg") center/cover no-repeat;
    width: 100%;
    height: 70vh;
    border-radius: 7px;
    color: white;
    text-align: center;
    padding: 100px 20px;
  
}

.hero h1 {
    font-size: 70px;
    margin-top: 20px;
    margin-left: 10px;
    color: #f5f2f6;
  
}
.hero p {
    font-size: 40px;
    margin-top: 20px;
    margin-left: 10px;
    color: #d9d7da;
  
}
.hero button {
    background:#fdfdfe;
    color: rgb(62, 32, 92);
    padding: 10px 20px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 12px;
}

.hero button a{
  list-style: none;
  text-decoration: none;
}
.hero button:hover{

 background-color: #7b1fa2;

}


.section1 {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 140px;
}
.section1 h2 {
    margin-bottom: 5px;
    color: #7b1fa2;
}
.section1 p {
    color:#7b1fa2;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.card, .deal, .blog {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 200px;
}
.card img, .deal img, .blog img {
    width: 100%;
    border-radius: 5px;
}
 .section1 button {
    background:#7b1fa2;
    color: white;
    border: 1px;
    padding: 8px 12px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 15px;
}

.section1 button:hover{

 background-color:#6f42c1;

}


.section2{
  margin-top: 110px;
  width: 1100px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  position: relative;
  margin-bottom: 120px;
  border: #2d1b4e 2px solid;
  border-radius: 8px;
  margin-left: 200px;
}
.section1 .left {
  width: 200px;
  height: 200px;
  position:absolute ;
  left: 15px;
  border-radius: 8px;
  
}

.section2 .right h3{
  color: #7b1fa2;
}
.left img{
  border-radius: 8px;
}
  

 h2 {
        color:#7b1fa2;
        text-align: center;
        margin: 30px 0;
    }
    .book-card {
        background: #fff;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 70px;
    }
    .book-card img {
        width: 100%;
        border-radius: 8px;
        height: 200px;
        object-fit: cover;
    }
    .book-title {
        font-weight: bold;
        margin-top: 10px;
        color:#7b1fa2;
    }
    .book-author {
        color:#2d1b4e;
        font-size: 14px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
    background-color: purple; 
    border-radius: 50%; 
    background-size: 50% 50%; 
}


.footer {
  background-color: #6f42c1;
  padding: 60px 40px 20px;
  font-family: 'Arial', sans-serif;
  color: #fff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 220px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  color: #fff;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.socials a:hover {
  background-color: #fff;
  color: #6f42c1;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #2d1b4e;
}



.newsletter input[type="email"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
}

.newsletter button {
  background-color: #9c27b0;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: 0.3s;
}

.newsletter button:hover {
  background-color: #7b1fa2;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
}


