/* --- Modern, beautiful cart styles --- */
.cart-page {
  margin: 60px auto 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0002;
  padding: 32px 24px 24px 24px;
  max-width: 900px;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-info img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
}
.cart-info p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #222;
}
.cart-info small {
  color: #888;
  font-size: 14px;
}
.cart-info a {
  color: #ff523b;
  font-size: 13px;
  margin-top: 6px;
  display: inline-block;
  transition: color 0.2s;
}
.cart-info a:hover {
  color: #e04328;
}

table#cart-table {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px #0001;
}
table#cart-table th {
  background: linear-gradient(90deg, #ff523b 60%, #ff7e5f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  padding: 14px 8px;
}
table#cart-table td {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  padding: 16px 8px;
  vertical-align: middle;
}
table#cart-table tr:last-child td {
  border-bottom: none;
}
td input[type="number"] {
  width: 60px;
  height: 36px;
  border: 1px solid #ff523b;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  margin: 0 8px;
  transition: border 0.2s;
}
td input[type="number"]:focus {
  outline: none;
  border: 2px solid #ff523b;
}

.total-price {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.total-price table {
  background: #fff7f5;
  border-radius: 10px;
  box-shadow: 0 2px 8px #ff523b22;
  border-top: 3px solid #ff523b;
  width: 100%;
  max-width: 400px;
  font-size: 17px;
}
.total-price td {
  padding: 12px 10px;
  color: #333;
}
.total-price tr:last-child td {
  font-weight: bold;
  color: #ff523b;
  font-size: 20px;
}
.checkout-btn {
  margin-top: 24px;
  text-align: right;
}
.checkout-btn .btn {
  background: linear-gradient(90deg, #ff523b 60%, #ff7e5f 100%);
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 8px #ff523b22;
  transition: background 0.3s, box-shadow 0.3s;
}
.checkout-btn .btn:hover {
  background: #e04328;
  box-shadow: 0 4px 16px #ff523b33;
}
.cart-empty {
  text-align: center;
  padding: 60px 0 40px 0;
  color: #555;
  background: #fff7f5;
  border-radius: 12px;
  box-shadow: 0 2px 8px #ff523b22;
  margin-bottom: 30px;
}
.cart-empty h2 {
  margin-bottom: 18px;
  color: #ff523b;
  font-size: 2.2em;
}
.cart-empty p {
  margin-bottom: 24px;
  font-size: 1.1em;
}
.cart-badge {
  position: absolute;
  top: 10px;
  right: -8px;
  background: #ff523b;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 8px #ff523b33;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
}
.navbar {
  display: flex;
  align-items: center;
  padding: 20px;
}
nav {
  flex: 1;
  text-align: right;
}
nav ul {
  display: inline-block;
  list-style-type: none;
}
nav ul li {
  display: inline-block;
  margin: 20px;
}
a {
  text-decoration: none;
  color: #555;
}
p {
  color: #555;
}
.container {
  max-width: 1300px;
  margin: auto;
  padding-left: 25px;
  padding-right: 25px;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
}
.col-2 {
  flex-basis: 50%;
  min-width: 300px;
}
.col-2 img {
  max-width: 100%;
  padding: 50px 0;
}
.col-2 h1 {
  font-size: 50px;
  line-height: 60px;
  margin: 25px 0;
}
.btn {
  display: inline-block;
  background: #ff523b;
  color: #fff;
  padding: 8px 30px;
  margin: 30px 0;
  border-radius: 30px;
  transition: 0.5s;
}
.header {
  background: radial-gradient(#fff, #ffd6d6);
}
.header .row {
  margin-top: 0px;
}
.btn:hover {
  background: #563434;
}
.categories {
  margin: 70px 0;
}
.col-3 {
  flex-basis: 30%;
  min-width: 250px;
  margin-bottom: 30px;
  max-width: 280px;
  height: 400px;
}
.col-3 img {
  width: 100%;
}
.small-container {
  max-width: 1080px;
  margin: auto;
  padding-left: 25px;
  padding-right: 25px;
}
.col-4 {
  flex-basis: 25%;
  padding: 10px;
  min-width: 200px;
  margin-bottom: 50px;
  transition: transform 0.5s;
}
.col-4 img {
  width: 100%;
}
.title {
  text-align: center;
  margin: 0 auto 80px;
  position: relative;
  line-height: 60px;
  color: #555;
}
.title::after {
  content: "";
  background: #ff523b;
  width: 80px;
  height: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
h4 {
  color: #555;
  font-weight: normal;
}
.col-4 p {
  font-size: 14px;
}
.rating .fa {
  color: #ff523b;
}
.col-4:hover {
  transform: translateY(-5px);
}
/* --------------offer-------------- */
.offer {
  background: radial-gradient(#fff, #ffd6d6);
  margin-top: 80px;
  padding: 30px 0;
}
.col-2 .offer-img {
  padding: 50px;
}
small {
  color: #555;
}
/* ------------------testimonial----------------- */
.testimonial {
  padding-top: 100px;
}
.testimonial .col-3 {
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.5s;
}
.testimonial .col-3 img {
  width: 50px;
  margin-top: 20px;
  border-radius: 50%;
}
.testimonial .col-3:hover {
  transform: translateY(-10px);
}
.fa.fa-quote-left {
  font-size: 34px;
  color: #ff523b;
}
.col-3 p {
  font-size: 12px;
  margin: 12px 0;
  color: #777;
}
.testimonial .col-3 h3 {
  font-weight: 600;
  color: #555;
  font-size: 16px;
}

/* ------------------------publishers---------------------- */
.publishers {
  margin: 100px auto;
}
.col-5 {
  width: 160px;
}
.col-5 img {
  width: 75%;
  cursor: pointer;
  filter: grayscale(100%);
}
.col-5 img:hover {
  filter: grayscale(0);
}

/* ---------------footer---------------- */
.footer {
  background: #000;
  color: #8a8a8a;
  font-size: 14px;
  padding: 60px 0 20px;
}
.footer p {
  color: #8a8a8a;
}
.footer h3 {
  color: #fff;
  margin-bottom: 20px;
}
.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
  min-width: 250px;
  margin-bottom: 20px;
}
.footer-col-1 {
  flex-basis: 30%;
}
.footer-col-2 {
  flex: 1;
  text-align: center;
}
.footer-col-2 img {
  width: 180px;
  margin-bottom: 20px;
}
.footer-col-3,
.footer-col-4 {
  flex-basis: 12%;
  text-align: center;
}
ul {
  list-style-type: none;
}
.app-logo {
  margin-top: 20px;
}
.app-logo img {
  width: 140px;
}
.footer hr {
  border: none;
  background: #b5b5b5;
  height: 1px;
  margin: 20px 0;
}
.copyright {
  text-align: center;
}
.menu-icon {
  width: 28px;
  margin-left: 30px;
  margin-top: 15px;
  display: none;
}

/* ----------------media query for menu---------------- */
@media only screen and (max-width: 800px) {
  nav ul {
    position: absolute;
    top: 110px;
    left: 0;
    background: #333;
    width: 100%;
    overflow: hidden;
    transition: 0.5s;
  }
  nav ul li {
    display: block;
    margin-right: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  nav ul li a {
    color: white;
  }
  .menu-icon {
    display: block;
    cursor: pointer;
  }
}
/* -------------------All Ebooks--------------------------- */
.row-2 {
  justify-content: space-between;
  margin: 100px auto 50px;
}
select {
  border: 1px solid #ff523b;
  border-radius: 3px;
  padding: 5px;
}
select:focus {
  outline: none;
}
.page-btn {
  margin: 0 auto 80px;
}
.page-btn span {
  display: inline-block;
  border: 1px solid #ff523b;
  margin-left: 10px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
}
.page-btn span:hover {
  background: #ff523b;
  color: #fff;
}
/* ----------------single book details----------- */
.single-product {
  margin-top: 80px;
  margin-bottom: 20px;
}
.single-product .col-2 img {
  padding: 0;
}
.single-product .col-2 {
  padding: 20px;
}
.single-product h4 {
  margin: 20px 0;
  font-size: 22px;
  font-weight: bold;
}
.single-product input {
  width: 50px;
  height: 35px;
  font-size: 20px;
  margin-right: 20px;
  border: 1px solid #ff523b;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}
.single-product input:focus {
  outline: none;
}
.single-product .fa {
  color: #ff523b;
  margin-left: 10px;
}

/* ---------- cart items details------------- */
.cart-page {
  margin: 80px auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
.cart-info {
  display: flex;
  flex-wrap: wrap;
}
th {
  text-align: left;
  padding: 5px;
  color: #fff;
  background: #ff523b;
  font-weight: normal;
}
td {
  padding: 10px 5px;
}
td input {
  width: 40px;
  height: 30px;
  padding: 5px;
}
td a {
  color: #ff523b;
  font-size: 12px;
}
td img {
  width: 80px;
  height: 110px;
  margin-right: 10px;
}
.total-price {
  display: flex;
  justify-content: flex-end;
}
.total-price table {
  border-top: 3px solid #ff523b;
  width: 100%;
  max-width: 400px;
}
td:last-child {
  text-align: right;
}
th:last-child {
  text-align: right;
}

/* ---------- Additional cart styles ------------- */
.cart-empty {
  text-align: center;
  padding: 50px;
  color: #555;
}

.cart-empty h2 {
  margin-bottom: 20px;
  color: #ff523b;
}

.cart-empty p {
  margin-bottom: 30px;
  font-size: 16px;
}

.checkout-btn {
  margin-top: 20px;
  text-align: right;
}

.checkout-btn .btn {
  background: #ff523b;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.checkout-btn .btn:hover {
  background: #e04328;
}

.cart-badge {
  position: absolute;
  top: 10px;
  right: -8px;
  background: #ff523b;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

/* Remove button styling */
.cart-info a {
  color: #ff523b;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.cart-info a:hover {
  color: #e04328;
  text-decoration: underline;
}

/* Quantity input styling */
td input[type="number"] {
  width: 60px;
  height: 35px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-align: center;
}

td input[type="number"]:focus {
  outline: none;
  border-color: #ff523b;
}
/* -------------------account-paage------------------ */
.account-page {
  padding: 50px 0;
  background: radial-gradient(#fff, #ffd6d6);
}
.form-container {
  background: #fff;
  width: 300px;
  height: 400px;
  position: relative;
  text-align: center;
  padding: 20px;
  margin: auto;
  box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.form-container span {
  font-weight: bold;
  padding: 0 10px;
  color: #555;
  cursor: pointer;
  width: 100px;
  display: inline-block;
}
.form-btn {
  display: inline-block;
}
.form-container form {
  max-width: 300px;
  padding: 0 20px;
  position: absolute;
  top: 130px;
  transition: 1s;
}
form input {
  width: 100%;
  height: 30px;
  margin: 10px 0;
  padding: 0 10px;
  border: 1px solid #ccc;
}

form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin: 10px 0;
}
form .btn:focus {
  outline: none;
}
#signInForm {
  left: -300px;
}
#signUpForm {
  left: 0px;
}
form a {
  font-size: 12px;
}
#indicator {
  width: 100px;
  border: none;
  background: #ff523b;
  height: 3px;
  margin-top: 8px;
  transform: translateX(100px);
  transition: 1s;
}
/* ---------------------Youtube Video------------------- */
.youtube-container {
  max-width: 1300px;
  margin: auto;
  padding-left: 25px;
  padding-right: 25px;
}
.youtube-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
}
#youtubevideo {
  width: 100;
  border: 1px solid black;
}
/* ----------------media query for Less than 600 screen size---------------- */
@media only screen and (max-width: 600px) {
  .row {
    text-align: center;
  }
  .col-2,
  .col-3,
  .col-4 {
    flex-basis: 100%;
  }
  .single-product .row {
    text-align: left;
  }
  .single-product .col-2 {
    padding: 20px 0;
  }
  .single-product .col-2 img {
    padding: 0;
    margin-left: 45px;
  }
  .single-product h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .cart-info p {
    display: none;
  }
  .youtube-row h2 {
    font-size: 20px;
    line-height: 20px;
  }
  #youtubevideo {
    width: 300px;
    height: 150px;
  }
}

/* --------------------------The End----------------------- */
/* Book Reviews & Ratings Styles */
#reviews-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
  padding: 2em 1.5em 1.5em 1.5em;
  margin: 2em auto 2em auto;
  max-width: 650px;
}
#reviews-section h2 {
  color: #ff523b;
  margin-bottom: 1em;
}
#reviews-list .review-item {
  background: #faf9f9;
  border-radius: 7px;
  padding: 1em 1.2em;
  margin-bottom: 1.2em;
  box-shadow: 0 1px 4px #0001;
}
#review-form-container {
  margin-top: 2em;
  background: #f8f8f8;
  border-radius: 7px;
  padding: 1.2em 1em 1em 1em;
  box-shadow: 0 1px 4px #0001;
}
#star-rating i {
  font-size: 1.3em;
  color: #ff523b;
  cursor: pointer;
  margin-right: 2px;
  transition: color 0.15s;
}
#star-rating i.fa-star-o {
  color: #bbb;
}
#review-form textarea {
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  width: 100%;
  resize: vertical;
}
#review-form .btn {
  background: #ff523b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#review-form .btn:hover {
  background: #d63b1c;
}
#review-message {
  font-size: 1em;
}
/* End Book Reviews Styles */
/* Book Extra Details Styles */
#book-extra-details h3 {
  color: #ff523b;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
#book-extra-details p {
  color: #444;
  font-size: 1.05em;
  margin-bottom: 0.7em;
}
#book-extra-details img {
  border: 2px solid #f3f3f3;
  transition: box-shadow 0.2s, border 0.2s;
}
#book-extra-details img:hover {
  box-shadow: 0 4px 16px #ff523b22;
  border: 2px solid #ff523b44;
}
/* End Book Extra Details Styles */
/* Advanced Search/Filter Styles */
#advanced-filters {
  margin-bottom: 1.5em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  padding: 1em 1.5em 1em 1.5em;
  max-width: 900px;
}
#filter-form label {
  margin-right: 0.4em;
  color: #222;
}
#filter-form select, #filter-form input[type="text"], #filter-form input[type="number"] {
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 4px 10px;
  font-size: 1em;
  margin-right: 0.5em;
}
#filter-form select:focus, #filter-form input[type="text"]:focus, #filter-form input[type="number"]:focus {
  outline: 2px solid #ff523b;
  border-color: #ff523b;
}
#filter-form .btn {
  background: #ff523b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#filter-form .btn:hover {
  background: #d63b1c;
}
/* End Advanced Search/Filter Styles */

@media (max-width: 700px) {
    max-width: 98vw !important;
    padding: 1em 0.5em 1em 0.5em !important;
  }
    flex-direction: column;
    align-items: flex-start;
  }
    margin-bottom: 1em;
    margin-right: 0;
  }
  #filter-form {
    flex-direction: column;
    gap: 0.7em;
    align-items: stretch;
  }
}

/* Visually Hidden Class for Accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Admin Analytics Styles */
.admin-title { font-size: 1.3em; color: #ff523b; margin-bottom: 0.7em; }
.admin-table { margin-bottom: 1.5em; }
#export-csv-btn {
  background: #ff523b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#export-csv-btn:hover { background: #d63b1c; }
/* End Admin Analytics Styles */

/* Password Strength Meter & Security Flows */
#pw-strength { margin-bottom: 8px; }
#pw-strength-bar { height: 100%; border-radius: 4px; }
#pw-strength-msg { margin-bottom: 8px; }
#emailVerifyForm, #twoFAForm {
  background: #f8f8f8;
  border-radius: 7px;
  padding: 1.2em 1em 1em 1em;
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 1em;
  margin-top: 1em;
}
#emailVerifyForm input, #twoFAForm input {
  width: 100%;
  margin-bottom: 0.7em;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 1em;
}
#emailVerifyForm .btn, #twoFAForm .btn {
  background: #ff523b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#emailVerifyForm .btn:hover, #twoFAForm .btn:hover {
  background: #d63b1c;
}
#email-verify-msg, #twofa-msg {
  color: #ff523b;
}

/* Newsletter Signup Styles */
.newsletter {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
  padding: 2em 1.5em 1.5em 1.5em;
  max-width: 650px;
  margin: 2em auto 2em auto;
  text-align: center;
}
#newsletter-form input[type="email"] {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 1em;
  min-width: 220px;
}
#newsletter-form .btn {
  background: #ff523b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 22px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
#newsletter-form .btn:hover {
  background: #d63b1c;
}
#newsletter-msg {
  margin-top: 10px;
  font-size: 1em;
}
/* End Newsletter Styles */
/* FAQ/Help Center Styles */
.faq-item {
  margin-bottom: 1.5em;
  background: #faf9f9;
  border-radius: 7px;
  padding: 1.2em 1em;
  box-shadow: 0 1px 4px #0001;
}
.faq-item h3 {
  color: #ff523b;
  margin-bottom: 0.4em;
}
.faq-item p {
  color: #444;
  font-size: 1.05em;
}
/* End FAQ Styles */
