/*bookview*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

.book-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: row; /* Ensures columns are side by side */
  align-items: flex-start; /* Align items to the start of the container */
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.book-cover {
  flex: 1; /* Takes up 1 part of the available space */
  min-width: 200px;
  max-width: 400px;
  margin-right: 20px;
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.book-info {
  flex: 2; /* Takes up 2 parts of the available space */
}

.book-genre {
  color: #FCB900;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: 'Roboto Condensed', sans-serif;
}

.book-description {
    font-size: 22px; /* Increased font size for better readability */
    line-height: 1.8; /* Improved spacing between lines */
    text-align: justify; /* Aligns text to both left and right */
    color: #333; /* Consistent dark text color */
    margin-top: 15px; /* Adds space above the text */
    margin-bottom: 20px; /* Adds space below the text */
}

.book-details {
    font-size: 20px; /* Larger size for details text */
    color: #555; /* Softer color for details */
    line-height: 1.6; /* Add consistent spacing between lines */
    text-align: justify; /* Justify text for alignment */
    margin-top: 15px;
}

.book-title {
    font-size: 32px; /* Larger font size for the book title */
    font-weight: bold;
    margin-bottom: 15px;
    color: #333; /* Dark text color *//
}

.book-genre {
  color: #FCB900;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-family: 'Roboto Condensed', sans-serif;
}

.book-price {
  font-size: 22px;
  font-weight: bold;
  color: #FCB900;
  margin-bottom: 20px;
}

.book-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.book-details {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
}

.book-view {
  margin-top:2%;
  margin-bottom:5%;
}

/* BACK BUTTON */

.back-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important; /* Removes the underline */
  color: #333; /* Dark yellow color */
}

.back-button:hover {
  color: #a4a4a4; /* Keep text color dark yellow on hover */
  transition: 0.5s;
}

.back-button i {
  margin-right: 8px;
}

/* book-buttons.css */

/* Edit Button to ayaw mag rename pag nirename ko di nag aaplly css sorry */
.book-buttons {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 10px; /* Space between rows */
    margin-top: 20px;
}

/* Button Row */
.button-row {
    display: flex;
    gap: 15px; /* Space between the buttons */
}

/* Purchase Button */
.btn-purchase {
    background: linear-gradient(to bottom, #FCB900, #FFA500);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none !important;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-purchase:hover {
    background-color: #E0A800;
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* Add to Cart Button */
.btn-add-to-cart {
    background: linear-gradient(to bottom, #A9A9A9, #808080);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none !important;
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #004085;
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* Quantity Wrapper */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and input */
    margin-top: 10px;
}

.quantity-label {
    font-size: 14px;
    color: #555;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
}

.quantity-input {
    width: 70px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    border-color: #FCB900;
    outline: none;
}




/*===================================================== Admin Buttons *======================================================*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Goudy Old Style', serif;
}

/* Edit Button */
.edit-btn {
    background-color: #FFCC33;
    color: black;
    margin-right: 10px;
}

.edit-btn:hover {
    background-color: #e6b800;
}

/* Delete Button */
.delete-btn {
    background-color: #ff6666;
    color: white;
}

.delete-btn:hover {
    background-color: #e60000;
}


/* Media query for screens smaller than 768px (mobile devices) */
@media (max-width: 768px) {
 .book-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Escaped if needed: align\\-items: flex\\-start; */
}


  .book-cover {
    margin-bottom: 20px; /* Add margin between cover and info */
    margin-right: 0; /* Remove the right margin on smaller screens */
    max-width: 80%; /* Adjust the size of the book cover on smaller screens */
  }

  .book-info {
    text-align: center; /* Center the book info on small screens */
    max-width: 100%; /* Make sure the content spans the full width */
  }

  .book-title {
    font-size: 24px; /* Adjust title size for smaller screens */
  }

  .book-genre, .book-author, .book-price, .book-description, .book-details {
    font-size: 16px; /* Adjust font sizes for readability */
  }
}

