/*-----------------------------------------------------------------------------*/
/* 1. Font definitions                                                    	*/
/*-----------------------------------------------------------------------------*/
@font-face {
  font-family: 'Roman';
  src: url('fonts/Roman.ttf') format('truetype');
}
@font-face {
  font-family: 'Augustus';
  src: url('fonts/Augustus.ttf') format('truetype');
}

/*-----------------------------------------------------------------------------*/
/* 2. Global reset & base                                                 	*/
/*-----------------------------------------------------------------------------*/
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* smooth anchor scrolling */
}
body {
  margin: 0;
  padding: 0;
  background: #f6f3e8;
  font-family: 'Augustus', serif;
  color: #222;
  overflow-x: hidden;
}

/*-----------------------------------------------------------------------------*/
/* 3. Hide Google Translate UI                                             	*/
/*-----------------------------------------------------------------------------*/
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-logo-link,
.goog-te-combo {
  display: none !important;
}

/*-----------------------------------------------------------------------------*/
/* 4. Custom Translate dropdown                                           	*/
/*-----------------------------------------------------------------------------*/
#translate-container {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 4px;
  font-family: sans-serif;
  z-index: 1500;
}
#translate-container select {
  margin-left: 5px;
  padding: 2px 4px;
}
.translate-warning {
  font-family: sans-serif;
  font-size: 0.9rem;
  color: #a00;
  text-align: center;
  margin-top: 0.5em;
}

/*-----------------------------------------------------------------------------*/
/* 5. Header                                                              	*/
/*-----------------------------------------------------------------------------*/
.site-header {
  background: #f6f3e8;
  padding: 1rem 0;
  text-align: center;
}
.site-title {
  font-size: 2rem;
  margin: 0;
}
.visit-count {
  font-family: 'Roman', serif;
  margin: 0.3em 0 0;
}

/*-----------------------------------------------------------------------------*/
/* 6. Sidebar toggle button                                               	*/
/*-----------------------------------------------------------------------------*/
#sidebar-toggle {
  position: fixed;
  top: 56px;
  left: 16px;
  z-index: 1501;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 24px;
}

/*-----------------------------------------------------------------------------*/
/* 7. Sidebar                                                             	*/
/*-----------------------------------------------------------------------------*/
#sidebar {
  position: fixed;
  top: 0;
  left: -265px;
  width: 265px;
  height: 100%;
  background: #f6f3e8;
  padding: 20px 20px 20px 105px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
}
#sidebar.open {
  left: 0;
}

/* 7.1 Sidebar headings */
#sidebar h2 {
  font-family: 'Roman', serif;
  margin: 0 0 0.5em;
  border-bottom: 2px solid #b1a56d;
  padding-bottom: 0.3em;
}

/* 7.2 Sidebar list */
#sidebar ul {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}
#sidebar li {
  margin: 0.8em 0;
}

/* 7.3 Sidebar links (use Augustus.ttf!) */
#sidebar .sidebar-link {
  display: block;
  font-family: 'Augustus', serif;
  font-size: 16px;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
#sidebar .sidebar-link:hover {
  text-decoration: underline;
}

/* 7.4 Return-to-Top link inside sidebar */
#sidebar .return-top {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #b1a56d;
}

/*-----------------------------------------------------------------------------*/
/* 8. Main content shift when sidebar open                                	*/
/*-----------------------------------------------------------------------------*/
#main-content {
  margin: 0;
  padding: 0 20px 20px 60px;
  transition: margin-left 0.3s ease;
}
#sidebar.open ~ #main-content {
  margin-left: 265px;
}

/*-----------------------------------------------------------------------------*/
/* 9. Carousel                                                            	*/
/*-----------------------------------------------------------------------------*/
.carousel {
  max-width: 1200px;
  margin: 2em auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  align-items: center;
  overflow-x: scroll;	/* ensure Firefox scrolls */
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track img {
  flex: 0 0 auto;
  width: 300px;
  height: 400px;
  object-fit: cover;
  margin-right: 20px;
  border: 4px solid #b1a56d;
  border-radius: 8px;
}
.carousel-track img:last-child {
  margin-right: 0;
}
/* 9.1 Controls */
.carousel-controls {
  text-align: center;
  margin: 1em 0;
}
.carousel-controls button {
  background: #b1a56d;
  color: #fff;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0.5em;
}
.carousel-controls button:hover {
  opacity: 0.9;
}

/*-----------------------------------------------------------------------------*/
/* 10. Book info sections                                                  	*/
/*-----------------------------------------------------------------------------*/
.info-page {
  display: flex;
  align-items: flex-start;
  padding: 60px 0;
  background: #f6f3e8;
  border-top: 10px solid #b1a56d;
  gap: 40px;
}
.info-page img {
  max-width: 200px;
  border: 4px solid #b1a56d;
  border-radius: 8px;
}
.info-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.info-title {
  font-family: 'Roman', serif;
  font-size: 32px;
  font-style: italic;
  margin: 0;
}
.info-author {
  font-family: 'Roman', serif;
  font-size: 26px;
  margin: 0;
}
.info-desc {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0.5em 0;
}
.info-price {
  font-family: 'Roman', serif;
  font-size: 20px;
  font-weight: bold;
}
.add-to-cart {
  font-family: 'Roman', serif;
  font-size: 1rem;
  background: #b1a56d;
  color: #fff;
  padding: 0.8em 1.2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
}
.add-to-cart:hover {
  opacity: 0.9;
}

/*-----------------------------------------------------------------------------*/
/* 11. Ratings                                                            	*/
/*-----------------------------------------------------------------------------*/
.rating {
  display: inline-block;
  font-size: 1.5rem;
  margin-top: 0.5em;
}
.rating .star {
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}
.rating .star.filled {
  color: #f5a623;
}

/*-----------------------------------------------------------------------------*/
/* 12. Return-to-Top button                                                	*/
/*-----------------------------------------------------------------------------*/
.return-top-bottom {
  text-align: center;
  padding: 40px 0;
}
.return-top-btn {
  font-family: 'Roman', serif;
  font-size: 18px;
  background: #b1a56d;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.return-top-btn:hover {
  opacity: 0.9;
}

/*-----------------------------------------------------------------------------*/
/* 13. Cart                                                               	*/
/*-----------------------------------------------------------------------------*/
#cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
#cart-items li {
  margin-bottom: 1em;
}
.cart-item-content {
  padding-left: 1em;
  border-left: 3px solid #b1a56d;
}
.cart-title {
  font-family: 'Roman', serif;
  font-size: 0.8rem;
  font-weight: bold;
}
.cart-price {
  font-size: 1rem;
  color: #555;
  margin-top: 0.25em;
}
.cart-qty {
  font-family: 'Roman', serif;
  margin: 0.5em 0;
}
.remove-item {
  display: block;
  margin-top: 0.5em;
  background: #f8d7da;
  color: #842029;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  cursor: pointer;
  font-size: 0.95rem;
}
.remove-item:hover {
  background: #f5c2c7;
}
#cart-total {
  font-weight: bold;
  margin: 1em 0;
}
#clear-cart {
  width: 100%;
  background: #b1a56d;
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Roman', serif;
}
#clear-cart:hover {
  background: #9a8f56;
}

/*-----------------------------------------------------------------------------*/
/* 14. Contact Form                                                       	*/
/*-----------------------------------------------------------------------------*/
#contact-form label {
  display: block;
  margin: 1em 0;
  font-family: 'Roman', serif;
}
#contact-form input,
#contact-form textarea,
#contact-form button {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  border: 2px solid #b1a56d;
  border-radius: 4px;
  font-family: sans-serif;
}
#contact-form button {
  background: #b1a56d;
  color: #fff;
  cursor: pointer;
  margin-top: 1em;
}
#contact-form button:hover {
  opacity: 0.9;
}

/*-----------------------------------------------------------------------------*/
/* 15. Responsive tweaks                                                   	*/
/*-----------------------------------------------------------------------------*/
@media (max-width: 768px) {
  .info-page {
	flex-direction: column;
	text-align: center;
	padding: 30px 0;
  }
  .carousel-controls {
	margin: 0.5em 0;
  }
  .carousel-track img {
	width: 200px;
	height: 250px;
  }
  #sidebar-toggle {
	font-size: 20px;
	padding: 8px;
  }
  #sidebar {
	padding-left: 85px;
  }
}



