* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.navbar-spacer{
    height: 65px;
}
/* ===== Fonts ===== */
:root {
  --body-font: "Raleway", sans-serif;
  --heading-font: "Prata", Georgia, serif;
  --secondary-font: "Playfair Display", Georgia, serif;
}

/* ===== Theme Colors ===== */
:root {
  --root-color: rgb(255, 251, 232);
  --ROOT2-color: rgb(247, 241, 207);
  --accent-color: #C5A992;
  --secondary-color: #C5A992;
  --dark-color: #2f2f2f;
  --light-color: #F3F2EC;
  --body-text-color: #757575;
  --light-text-color: #afafaf;
  --dark-text-color: #2f2f2f;
  --color1-color: #C5D1C1;
  --color2-color: #A3B098;
  --color3-color: #6D805D;
  --color5-color: yellowgreen;
  --color6-color: #5A7D65;
  --color7-color: #74642F;
  --color8-color: #ADCBD3;
  --color9-color: #3B6B82;
  --color10-color: rgb(54, 40, 142);
}

/* ===== Base ===== */
body {
  font-family: var(--body-font);
  background-color: rgb(255, 251, 232);
}

h1, h2, h3, h4, h5, h6,
.section-title, .footer-logo, .banner-title {
  font-family: var(--heading-font);
}
footer
.item-price, blockquote q, .author-name {
  font-family: var(--secondary-font);
}
/* ===== Navbar ===== */
.custom-navbar {
  background-color: rgb(255, 250, 228) !important;
  border-bottom: 1px solid #ede6d4;
}

.custom-navbar .nav-link {
  color: #2b2b2b !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: #8b5e34 !important;
}

.custom-navbar .header-icons a,
.custom-navbar .header-icons button {
  color: #2b2b2b !important;
  transition: color 0.3s ease;
}

.custom-navbar .header-icons a:hover,
.custom-navbar .header-icons button:hover {
  color: #8b5e34 !important;
}
#nav-auth-btn.sign-in-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

#nav-auth-btn.sign-in-btn:hover {
    background-color: #198754;
    border-color: #198754;
    color: white !important;
}
.navbar-nav .nav-link {
  text-decoration: none;
  transition: color 0.3s ease;
}
.header-icons a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
@media (min-width: 1450px) {
    .navbar-nav{
        margin-left: 275px !important;
    }
}

/* ===== Icon Button ===== */
.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.8rem;
  color: inherit;
  outline: none;
}

.icon-btn:hover {
  color: mediumblue;
}

/* ===== Section Title ===== */
.title {
  color: rgb(90, 125, 101);
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
}

/* ===== Product / Book Card ===== */
.product-item h3 a {
  color: inherit;
  text-decoration: none;
}

.product-item h3 a:hover {
  color: #3B6B82;
}

.book-card-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #f0f0f0;
}

.book-card-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(30, 41, 30, 0.15);
}

.book-card-wrapper .product-style {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.book-card-wrapper .product-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.book-card-wrapper:hover .product-image {
  transform: scale(1.04);
}

.book-card-wrapper figcaption {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-card-wrapper h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-card-wrapper h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.book-card-wrapper h3 a:hover {
  color: #1e291e;
}

.book-card-wrapper span.author-name {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 10px;
  display: block;
}

.book-card-wrapper .item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e291e;
  margin-bottom: 14px;
  margin-top: auto;
}

.add-to-cart-btn {
  width: 100%;
  background-color: #3B6B82;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(30, 41, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  background-color: #d4af37;
  color: #1e291e;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.custom-footer {
  background-color: #eff5e9 !important;
  color: #2d3a32 !important;
  border-top: 1px solid #e1ebda;
}

.custom-footer h5 {
  color: rgb(54, 40, 142) !important;
  font-weight: 700;
}

.custom-footer .footer-link {
  color: #1e291e !important;
  font-weight: 550;
  transition: color 0.3s ease;
}

.custom-footer .footer-link:hover {
  color: #382b67 !important;
  text-decoration: underline !important;
  font-size: large;
}

.custom-footer .text-muted {
  color: #4a5a4e !important;
  font-weight: 500;
}

.custom-footer .end {
  border-top: 1px solid #e1ebda;
  padding-top: 20px;
  margin-top: 20px;
  color: #2d3a32;
}

.custom-footer .end .logo-hover {
  color: #198754 !important;
  transition: color 0.3s ease;
  cursor: pointer;
}

.end a.fw-bolder:hover {
  color: mediumblue !important;
  font-size: large;
}

/* ===== Global Hidden Class ===== */
.hidden {
  display: none !important;
}

/* ===== Auth Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: all 0.3s ease;
}

.modal-overlay.hidden,
.auth-view.hidden {
  display: none !important;
}

/* ===== Modal Content ===== */
.modal-content {
  background-color: #ffffff;
  width: 90%;
  max-width: 480px;
  border-radius: 14px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  border: none;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Modal Typography ===== */
.modal-title {
  text-align: center;
  font-family: 'Georgia', serif;
  color: #2c3e50;
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.modal-subtitle {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* ===== Close Button ===== */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #777;
}

/* ===== Auth Form Inputs ===== */
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="text"],
.modal-content input[type="tel"] {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fcfcf9;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-content input:focus {
  border-color: #537361;
}

/* ===== Submit Button ===== */
.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #537361;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #425d4e;
}

/* ===== Profile Card ===== */
.profile-card i {
  width: 32px;
  text-align: center;
}

/* ===== Search Overlay ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
}

.search-box-container {
  background: #fff;
  width: 90%;
  max-width: 650px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}

.search-header input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 8px;
}

.close-search-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #777;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  margin-top: 15px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-bottom: 1px solid #f2f2f2;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  border-radius: 8px;
}

.search-item:hover {
  background-color: #f8f9fa;
}

.search-item img {
  width: 45px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.search-item-info h4 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: #111;
}

.search-item-info span {
  font-size: 0.85rem;
  color: #666;
}

.search-placeholder-text {
  text-align: center;
  color: #888;
  padding: 20px 0;
  margin: 0;
}