/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 4rem;

  /*========== Colors ==========*/
  /* Color mode HSL(hue, saturation, lightness) */
  --first-color: #4285F4;
  --first-color-alt: #f4b400;
  --second-color: hsl(350, 100%, 50%);
  --title-color: hsl(0, 0%, 13%);
  --text-color: hsl(154, 13%, 32%);
  --text-color-light: hsl(60, 1%, 56%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 93%);
  --border-color: hsl(129, 36%, 85%);
  --border-color-alt: hsl(113, 15%, 90%);
  --error-color: #d3af37;
  --success-color: #079d58;
  --buy-color: #9c27b0;

  /*========== Font and typography ==========*/
  /* .5rem = 8px | 1rem = 16px ... */
  --body-font: "Josefin Sans", sans-serif;
  --second-font: "Poppins", sans-serif;
  --big-font-size: 3rem;
  --h1-font-size: 2.3rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.375rem;
  --large-font-size: 1.125rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.6875rem;

  /*========== Font weight ==========*/
  --weight-400: 400;
  --weight-500: 500;
  --weight-600: 600;
  --weight-700: 700;

  /*========== Transition ==========*/
  --transition: cubic-bezier(0, 0, 0.05, 1);
}

/* Responsive typography */
@media screen and (max-width: 1200px) {
  :root {
    --big-font-size: 2.25rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.375rem;
    --h3-font-size: 1.25rem;
    --h4-font-size: 1.125rem;
    --large-font-size: 1rem;
    --normal-font-size: 0.9375rem;
    --small-font-size: 0.8125rem;
    --smaller-font-size: 0.6875rem;
    --tiny-font-size: 0.625rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --big-font-size: 2rem;
    --h1-font-size: 1.7rem;
    --h2-font-size: 1.275rem;
    --h3-font-size: 1.125rem;
    --h4-font-size: 1rem;
    --large-font-size: .95rem;
    --normal-font-size: 0.9rem;
    --small-font-size: 0.7525rem;
    --smaller-font-size: 0.6rem;
    --tiny-font-size: 0.5rem;
  }
}


/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

input,
textarea,
body,
.form__input {
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-400);
}

body {
  background-color: var(--body-color);
  overflow-x: hidden !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--second-font);
  color: var(--title-color);
  font-weight: var(--weight-600);
}

ul {
  list-style: none;
}

a {
  text-decoration: none !important; /* Ensures no underline */
  cursor: pointer; /* Keeps it clickable */
  color: inherit;
}

p {
  line-height: 1.4rem;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  background-color: transparent;
  border: none;
  outline: none;
  font-family: var(--body-font);
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  cursor: pointer;
  font-size: var(--normal-font-size);
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: var(--weight-600);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--second-color);
  color: white;
}

.btn-secondary {
  background-color: var(--second-color);
  color: white;
}

.btn-tertiary{
  border: 1px solid var(--first-color);
  color: var(--first-color);
  background-color: var(--body-color);
}

.btn-full {
  width: 100%;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.notification {
  position: fixed; /* Fixed position to center it on the screen */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust position to truly center */
  background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
  color: var(--body-color); /* Text color */
  padding: 15px 30px; /* Padding around the text */
  border-radius: 5px; /* Rounded corners */
  z-index: 10000; /* Ensure it appears above other content */
  display: none; /* Initially hidden */
  font-size: 18px; /* Font size */
  text-align: center; /* Center text */
  max-width: 300px; /* Set a maximum width */
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflow text */
  text-overflow: ellipsis; /* Add ellipsis for overflow text */
}

.fa-trash {
  color: var(--second-color);
}
.bottom-nav ion-icon {
  font-size: 26px;
}
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.logo-title{
  color: var(--first-color);
}

.form__input,
.form__input option,
.form__input option:disabled {
  border: 1px solid var(--border-color-alt);
  padding-inline: 1rem;
  height: 45px;
  border-radius: 0.25rem;
  font-size: var(--small-font-size);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex{
    display: flex;
    gap: 1.5rem;
}

.section {
  padding-block: 2rem;
}

.section--lg {
  padding-block: 2rem;
}

.section__title {
  font-size: var(--h4-font-size);
  margin-bottom: 1.5rem;
}

.section__title span {
  color: var(--first-color);
}

.new__price {
  color: var(--first-color);
  font-weight: var(--weight-600);
}

.old__price {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-decoration: line-through;
}

.form {
  row-gap: 1rem;
}

.form__group {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.textarea {
  height: 200px;
  padding-block: 1rem;
  resize: none;
}

ion-icon{
  font-size: 22px;
}

/* Hide Google Translate widget - we'll use our own dropdown */
#google_translate_element {
  display: none;
}

/* Remove Google translate top bar that appears */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Fix for any Google translate CSS modifications */
.skiptranslate {
  display: none !important;
}

  /* Language Selector Styles */
  #language-selector {
    display: flex;
    align-items: center;
    gap: .8rem;
}

#language-selector label {
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

#language-selector .form-select {
    appearance: none; /* Remove default styling */
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem .8rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 102px;
    font-family: var(--body-font);
}

#language-selector .form-select:hover {
    border-color: var(--first-color); /* Change border color on hover */
}

#language-selector .form-select:focus {
    outline: none; /* Remove default outline */
    border-color: var(--first-color); /* Change border color on focus */
}




/*=============== HEADER ===============*/
.top-banner {
  background-color: #f9eee2;
  padding: 0.65rem 0;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
}
.top-banner .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-banner a {
  color: var(--first-color);
  text-decoration: underline !important;
}

.flag-icon {
  width: 22px;
  height: 18px;
  object-fit: contain;
  margin-left: 10px;
}




.header {
  background-color: var(--body-color);
  padding: 1.2rem 0 .8rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: .6rem;
}
.header .container .header-content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-actions{
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.header-hidden {
  transform: translateY(-100%); /* Move the header out of view */
  transition: transform 0.3s ease; /* Smooth transition */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 150px;
  height: auto;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background-color: var(--container-color);
  width: 100%;
  max-width: 400px;
  margin-left: 1rem;
}

.search-input {
  flex: 1;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: transparent;
  border: none;
  outline: none;
  margin-right: 0.5rem;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #4a5568;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--small-font-size);
  position: relative;
  gap: 1.6em;
  
}

.nav-links a {
  margin: 0 0.7rem;
  color: #4a5568;
  transition: color 0.2s ease;
  font-weight: var(--weight-500);
  font-size: var(--normal-font-size);
}

.nav-links a:hover {
  color: var(--first-color);
}

.choose-store {
  color: var(--first-color) !important;
  font-weight: var(--weight-600) !important;
}

.sign-in {
  margin-left: 0.5rem;
  color: var(--first-color);
}

.cart-icon {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  color: #4a5568;
}

.fundraising-bar {
  text-align: center;
  padding: 0.8rem 0;
  font-size: var(--small-font-size);
  color: var(--title-color);
  border-bottom: 1px solid #e2e8f0;
}

.fundraising-bar span {
  color: var(--first-color);
  font-weight: var(--weight-600);
}

.nav-links a {
  margin: 0 !important;
  color: #4a5568;
  transition: color 0.2s ease;
  font-weight: var(--weight-500);
  font-size: var(--normal-font-size);
  padding: 0.5rem 0;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--first-color);
}

/* Dropdown menu styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 2rem;
  width: max-content;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  z-index: 100;
}

.nav-item a,
.dropdown-column a {
  position: relative;
}

.nav-item a::after,
.dropdown-column a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--first-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.nav-item a:hover::after,
.dropdown-column a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-items a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-items a ion-icon {
  font-size: 15px;
  padding-bottom: 3px;
  transition: transform 0.2s ease;
  padding-left: 1.5px;
}

.nav-items a:hover ion-icon {
  transform: rotate(90deg);
}

.nav-item:hover .dropdown-menu {
  display: grid;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dropdown-menu a {
  margin: 0;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: color 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--first-color);
}

.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-item:hover ~ .page-overlay {
  display: block;
  opacity: 1;
}

.header__action-btn{
  position: relative;
}

.header__action-btn .count{
  position: absolute;
  top: -0.625rem;
  right: -0.625rem;
  background-color: var(--first-color);
  color: var(--body-color);
  height: 19px;
  width: 19px;
  border-radius: 50%;
  line-height: 20px;
  text-align: center;
  font-size: var(--smaller-font-size);
}

/*-----------------------------------*\
  # BREADCRUMBS
\*-----------------------------------*/

.breadcrumb{
  background-color: var(--container-color);
  padding-block: 1.5rem;
}

.breadcrumb__list{
  column-gap: 0.75rem;
}

.breadcrumb__link{
  color: var(--text-color);
  font-size: var(--small-font-size);
}

/*=============== HERO BANNER ===============*/
.hero-banner {
  background-color: #f0f8ff;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 340px;
}

.slider-container {
  position: relative;
  max-width: 1320px;
  margin: auto;
  height: 100%;
  overflow: inherit;
}

.slider {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 33.333%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 5rem;
}

.slide-content {
  width: 50%;
  padding-right: 2rem;
}

.slide-image {
  width: 50%;
  display: flex;
  justify-content: center;
}

.slide-image-container {
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide h2 {
  font-size: var(--h1-font-size);
  line-height: 4.2rem;
  margin-bottom: 1rem;
}

.slide p {
  margin-bottom: 1.5rem;
}

.slider-btn {
  background-color: var(--first-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: var(--weight-600);
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background-color: hsl(176, 88%, 22%);
}

.slider-navigation {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding-inline: 1rem;
  z-index: 2;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-btn:hover {
  background-color: var(--first-color);
  color: var(--body-color);
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: var(--first-color);
}

/************* Best Sellers Section ************/
.bestsellers {
  padding: 3rem 0;
}

.bestsellers__title {
  font-size: var(--h2-font-size);
  text-align: center;
  color: var(--title-color);
}

.bestsellers__container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.bestsellers__slider {
  display: flex;
  transition: transform 0.5s var(--transition);
}

.bestsellers__card {
  flex: 0 0 calc(100% / 6);
  min-width: calc(100% / 6);
  padding: 0 0.5rem;
}

.bestsellers__img-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  height: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

.bestsellers__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--transition);
}

.bestsellers__card:hover .bestsellers__img {
  transform: scale(1.05);
}

.bestsellers__title-book {
  font-size: var(--normal-font-size);
  font-weight: var(--weight-600);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bestsellers__author {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 0.25rem;
}

.bestsellers__nav {
  position: absolute;
  top: 36%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--body-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bestsellers__nav:hover {
  background-color: var(--first-color);
  color: var(--body-color);
}

.bestsellers__nav--prev {
  left: 1rem;
}

.bestsellers__nav--next {
  right: 1rem;
}

/* Interactive Scrollbar */
.bestsellers__scrollbar-container {
  position: relative;
  width: 30%;
  height: 7px;
  margin: 2rem auto 0;
  background-color: var(--border-color-alt);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.bestsellers__scrollbar-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.bestsellers__scrollbar-thumb {
  position: absolute;
  height: 100%;
  width: 20%;
  min-width: 40px;
  background-color: var(--first-color);
  border-radius: 3px;
  cursor: grab;
  transition: background-color 0.3s;
  transition: left 0.5s var(--transition);
}

.bestsellers__scrollbar-thumb:hover {
  background-color: hsl(176, 88%, 32%);
}

.bestsellers__scrollbar-thumb:active {
  cursor: grabbing;
  background-color: hsl(176, 88%, 37%);
}

/*============== NEW ARRIVALS SECTION STYLES ===============*/

/* NEW ARRIVALS SECTION STYLES */
.new-arrivals .section__title,
.deals .section__title{
  text-align: center; 
  font-size: var(--h2-font-size); 
}

/* Category filter buttons */
.category-filter {
  flex-wrap: wrap;
}

.category-btn {
  background-color: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--first-font);
  font-weight: var(--weight-600);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-btn.active {
  background-color: var(--first-color);
  color: white;
}

.category-btn:hover:not(.active) {
  background-color: var(--border-color-alt);
}

.new-arrivals .category-filter{
  display: flex; 
  justify-content: center; 
  margin-bottom: 2rem; 
  gap: 0.5rem;
}

/* Books container and tabs */
.books-container {
  position: relative;
  margin-top: 2rem;
}

.books-tab {
  display: none;
}

.books-tab.active {
  display: block;
}

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

/* Book card */
.book-card {
  position: relative;
  transition: all 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  /* aspect-ratio: 3/4; */
  margin-bottom: 1rem;
}

.book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-img {
  transform: scale(1.05);
}

/* Book tags, categories, discounts */
.book-category, .book-tag, .book-publisher {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.5rem;
  font-size: var(--tiny-font-size);
  border-radius: 4px;
  z-index: 2;
  font-weight: var(--weight-600);
  color: var(--title-color);
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-tag {
  top: 1rem;
  right: 1rem;
  left: auto;
  max-width: 70%;
}

.book-publisher {
  top: 3rem;
  right: 1rem;
  left: auto;
  max-width: 70%;
}

.book-discount {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--first-color);
  color: var(--body-color);
  padding: 0.4rem 0.5rem;
  font-size: var(--smaller-font-size);
  border-radius: 4px;
  z-index: 2;
  font-weight: var(--weight-600);
}

/* Book overlay with actions - now from right side */
.book-overlay {
  position: absolute;
  top: 0;
  right: -60px; /* Start off-screen to the right */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  transition: all 0.3s ease;
  opacity: 0;
}

.book-card:hover .book-overlay {
  right: 0; /* Move in from the right */
  opacity: 1;
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn {
  background-color: var(--body-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
  background-color: var(--first-color);
  color: var(--body-color);
  transform: translateX(-3px);
}

.action-btn.active {
  background-color: var(--first-color); /* Change to your desired active color */
  color: var(--body-color); /* Change text/icon color if needed */
}

.action-btn ion-icon {
  font-size: 20px;
}

/* Book info */
.book-info {
  padding: 0.5rem 0;
}

.book-author {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  font-weight: var(--weight-500);
  margin-bottom: 0.25rem;
}

.book-title {
  font-size: var(--large-font-size);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.book-card:hover .book-title {
  color: var(--first-color);
}

.book-price {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/*========== SPECIAL OFFERS SECTION =============*/
.special-offers {
  background: url('../img/bg-img-special-offer.jpg') no-repeat center center;
  position: relative;
  overflow: hidden;
}

.special-offers__container {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.special-offers__image {
  flex: .515;
  position: relative;
  display: flex;
  align-items: center;
}

.special-offers__content {
  flex: 1;
  padding: 8rem 2rem;
  max-width: 600px;
}

.special-offers__subtitle {
  font-size: var(--h2-font-size);
  font-weight: var(--weight-600);
  color: var(--title-color);
  margin-bottom: 1rem;
  font-family: var(--body-font);
}

.special-offers__title {
  font-size: 2.75rem;
  font-weight: var(--weight-700);
  color: var(--second-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: var(--second-font);
}

.special-offers__text {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 2rem;
  max-width: 90%;
}

.special-offers__button {
  display: inline-flex;
  padding: 0.85rem 2rem;
  background-color: #000;
  color: #fff;
  font-weight: var(--weight-600);
  font-size: var(--normal-font-size);
  transition: all 0.3s ease;
  border-radius: 0;
}

.special-offers__button:hover {
  background-color: var(--first-color);
}

/************ Product Listing & Filter Styles ************/ 

.product-detail{
  padding: 3rem 0;
}
.products-section {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
}

/* Filter Sidebar */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-alt);
  padding-bottom: 0.5rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 1rem;
}

.filter-group-title {
  font-size: var(--normal-font-size);
  font-weight: var(--weight-600);
}

.filter-group-toggle {
  transition: transform 0.3s;
}

.filter-group-toggle.active {
  transform: rotate(180deg);
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.filter-checkbox {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.filter-checkbox-label {
  font-size: var(--small-font-size);
  cursor: pointer;
}

.filter-count {
  color: var(--text-color-light);
}

/* Product Grid */
.product-content {
  flex: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-buttons {
  display: flex;
  gap: 0.5rem;
}

.view-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--body-color);
  border: 1px solid var(--border-color-alt);
  transition: all 0.3s;
}

.view-button.active {
  background-color: var(--second-color);
  color: white;
}

.sort-container {
  display: flex;
  align-items: center;
}

.sort-dropdown {
  position: relative;
}

.sort-button {
  padding: 0.75rem 1.5rem;
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 156px;
  font-size: var(--small-font-size);
}

.sort-button i {
  margin-left: 0.5rem;
}

.sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background-color: white;
  border: 1px solid var(--border-color-alt);
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sort-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: var(--small-font-size);
}

.sort-option:hover {
  background-color: var(--container-color);
}

.products-count {
  font-size: var(--normal-font-size);
  font-weight: var(--weight-500);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  border: 1px solid transparent;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  margin-bottom: 1rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--weight-600);
}

.product-author {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.product-title {
  font-size: var(--normal-font-size);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: var(--weight-600);
}

.product-price {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.current-price {
  font-weight: var(--weight-600);
}

.old-price {
  text-decoration: line-through;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.pagination-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--first-color);
  color: var(--body-color);
  border: none;
  padding: 0.44rem 0.6rem;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pagination-button:hover {
  background-color: hsl(176, 88%, 22%);
}

.pagination-numbers {
  display: flex;
  align-items: center;
}

.pagination-number {
  background-color: transparent;
  border: 1px solid var(--first-color);
  color: var(--first-color);
  padding: 0.58rem 1rem;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.pagination-number.active {
  background-color: var(--first-color);
  color: white;
}

.pagination-number:hover {
  background-color: var(--first-color);
  color: white;
}

/* Additional styles for the product page */
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
}

.product-image-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.image-thumbnails {
  display: flex;
  gap: 1rem;
}

.thumbnail {
  width: 100px;
  height: 150px;
  cursor: pointer;
}

.product-info h2:nth-child(1) {
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
}

.product-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  align-items: center;
  gap: 1rem;
}

.meta-label {
  font-weight: var(--weight-600);
}

.format-options, .language-options, .publication-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.option-btn {
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  background-color: var(--container-color);
  font-size: var(--small-font-size);
}

.option-btn.active {
  background-color: var(--second-color);
  color: var(--body-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}



.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quantity-input {
  width: 50px;
  height: 30px;
  border: 1px solid var(--border-color-alt);
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.share,
.delivery-info {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  color: var(--text-color);
  cursor: pointer;
}
.share span{
  margin-top: .5rem;
}

.sidebar {
  /* border-right: 1px solid var(--border-color-alt); */
  padding-right: 1.5rem;
}

.bestseller-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.bestseller-image {
  width: 90px;
  height: 120px;
  object-fit: cover;
}

.bestseller-info h3 {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.price {
  font-size: 1.5rem; 
  font-weight: var(--weight-700); 
  color: var(--first-color); 
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
  letter-spacing: 1px; 
}

.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.product-subtitle {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/****************** Cart Overlay Styles  ******************/
.cart-overlay {
  position: fixed;
  top: 0;
  right: -450px; /* Start off-screen */
  width: 450px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cart-overlay.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
  margin: 0;
  font-size: var(--h3-font-size);
}

.cart-close {
  cursor: pointer;
  color: var(--title-color);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  padding: 1.5rem 0rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child{
  border-bottom: none;
}

.cart-item-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-weight: var(--weight-600);
  font-size: var(--h4-font-size);
  margin-bottom: 0.25rem;
}

.cart-item-author {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.cart-item-meta {
  font-size: var(--large-font-size);
  color: var(--text-color);
  margin-bottom: 0.25rem;
}
.cart-detail-meta{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cart-item-price {
  font-weight: var(--weight-600);
  font-size: var(--large-font-size);
  margin: 1rem 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: fit-content;
}

.cart-item-actions{
  display: flex;
  gap: .5rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  border: none;
  cursor: pointer;
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  color: var(--second-color);
  cursor: pointer;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: var(--weight-600);
  align-items: center;
}

.cart-subtotal-price{
  font-size: var(--h4-font-size);
}

.cart-shipping-info {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

.cart-footer .cart-actions {
  display: flex;
  gap: 1rem;
}

.cart-action-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: var(--weight-600);
  border: none;
  cursor: pointer;
  text-align: center;
}

.view-cart-btn {
  background-color: var(--first-color);
  color: var(--body-color);
}

.checkout-btn {
  background-color: var(--first-color);
  color: var(--body-color);
}

.overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay-backdrop.active {
  display: block;
}

.cart-dropdown {
  position: relative;
  display: inline-block;
}

.special-instructions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  cursor: pointer;
  color: var(--title-color);
  border-top: 1px solid #f5f5f5;
  margin-top: 1rem;
}

.special-instructions ion-icon {
  font-size: 16px;
}



/************ Product description styles ******************/

.product-description {
  padding: 2rem 0;
}

/* Tab styles */
.tabs {
  display: flex;
  gap: .65rem;
}

.tab-btn {
  padding: 1.2rem 2rem;
  font-family: var(--body-font);
  font-weight: var(--weight-500);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.tab-btn.active {
  background-color: #d74a39;
  color: white;
}

.tab-btn:not(.active) {
  background-color: var(--second-color);
  color: white;
}

/* Tab content */
.tab-content {
  display: none;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.tab-content:last-child {
  padding: 2rem 9rem;
}

.tab-content.active {
  display: block;
}

/* Description content styling */
.section-title {
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  margin-bottom: 1rem;
}

.description-text {
  margin-bottom: 1.5rem;
}

/* Book details list styling */
.book-details {
  margin: 1.5rem 0;
}

.book-details li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
}

.book-details li::before {
  content: "•";
  margin-right: 0.5rem;
  color: #d74a39;
}

/* Recently viewed dropdown */
.recently-viewed {
  position: relative;
  display: inline-block;
  float: right;
}

.recently-viewed-btn {
  background-color: #d74a39;
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  border-radius: 0.25rem;
}

.recently-viewed-btn ion-icon {
  margin-left: 0.5rem;
}

/* Terms of sale */
.terms-title {
  font-weight: var(--weight-600);
  margin-bottom: 0.75rem;
}

/* Reviews Content Styling */
.reviews-container {
  padding: 2rem 0;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.reviews-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 2rem;
}

.rating-overview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rating-stars {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
}

.rating-total {
  font-size: 1.25rem;
  font-weight: var(--weight-600);
  margin-bottom: 0.5rem;
}

.rating-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verification-icon {
  color: var(--first-color);
}

.rating-breakdown {
  width: 35%;
}

.rating-level {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rating-stars-small {
  font-size: 1rem;
  color: #FFD700;
  width: 120px;
}

.progress-bar {
  flex: 1;
  height: 10px;
  background-color: #f0f0f0;
  margin: 0 0.5rem;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #d74a39;
  width: 100%;
}

.progress-empty {
  width: 0%;
}

.rating-count-small {
  width: 20px;
  text-align: right;
}

.dropdown-container {
  margin-left: auto;
}

.sort-dropdown {
  position: relative;
}

.dropdown-toggle {
  background-color: #d74a39;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.review-action {
  margin-left: 2rem;
}

.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: var(--weight-600);
  cursor: pointer;
  text-align: center;
  display: inline-block;
}


.btn--md{
  font-family: var(--body-font);
  background-color: var(--first-color);
  color: var(--body-color); 
  border: 1px solid var(--first-color);
  transition: all 0.3s ease;
}

.btn--md:hover{
  background-color: var(--body-color);
  color: var(--first-color);
}


.btn-primary {
  background-color: #d74a39;
  color: white;
}

/* Individual Review Styling */
.review-list {
  margin-top: 2rem;
}

.review-item {
  border-bottom: 1px solid var(--border-color-alt);
  padding: 1.5rem 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.author-icon {
  font-size: 1.5rem;
  color: var(--text-color-light);
}

.author-name {
  color: #d74a39;
  font-weight: var(--weight-600);
}

.review-date {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.review-title {
  font-weight: var(--weight-600);
  margin-bottom: 0.5rem;
}

.review-content {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Write a Review Form Styles */
.write-review-form {
  margin: 2rem 0;
}

.form-title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--weight-500);
}

.rating-selector {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.rating-selector .star {
  font-size: 2.5rem;
  color: #FFD700;
  margin: 0 0.25rem;
  cursor: pointer;
}

.form__input {
  width: 100%;
  border: 1px solid var(--border-color-alt);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: var(--normal-font-size);
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/********* Login Forem *************/

/* Login Form Specific Styles */
.login-container {
  width: 100%;
  max-width: 700px;
  background-color: #f3f3f3;
  padding: 2.5rem;
  margin: 4rem auto;
}

.login-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  font-family: var(--body-font);  
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  height: 45px;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: var(--body-color);
  font-family: var(--body-font);
}

.btn-container{
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  background-color: var(--first-color);
  color: var(--body-color);
  border: 1px solid var(--first-color);
  padding: 0.8rem 1.8rem;
  font-weight: var(--weight-600);
  transition: color, background-color 0.3s;
}

.btn-primary:hover {
  color: var(--first-color);
  background-color: var(--body-color);
}

.login-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-footer a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #333;
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  transition: color 0.3s;
}

.login-footer a:hover {
  color: var(--first-color);
}


.divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 1.5rem 0;
}


/************** Checkout Page Specific Styles ****************/
.checkout-container {
  display: flex;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  min-height: 100vh;
  margin-top: 4rem;
}

.checkout-form {
  width: 55%;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
}

.checkout-summary {
  width: 45%;
  padding: 2rem;
  background-color: #f8f9fa;
  border-left: 1px solid #e9ecef;
  position: sticky;
  top: 8rem;
  align-self: flex-start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-control {
  width: 100%;
  height: 45px;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  background-color: white;
}

.form-control:focus {
  border-color: #aaa;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.shipping-method {
  margin-top: 2rem;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
  background-color: white;
}

.shipping-option.selected {
  border-color: #007bff;
}

.payment-section {
  margin-top: 2rem;
}

.payment-notice {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.payment-method {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

.payment-body {
  padding: 1rem;
  background-color: white;
}

.payment-body .form-group:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 30px;
  height: 30px;
  background-color: #f8b133;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-weight: bold;
}

/* Checkout Summary Styles */
.order-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.item-image {
  width: 60px;
  height: 80px;
  background-color: #e9ecef;
  margin-right: 1rem;
  position: relative;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-quantity {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  background-color: var(--second-color);
  color: var(--body-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.item-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.item-details p {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.order-summary {
  margin-top: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  font-weight: bold;
  font-size: 1.1rem;
}

.currency {
  font-weight: normal;
  font-size: 0.85rem;
}



/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  cursor: pointer;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.checkmark:after {
  content: "";
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Security icons */
.security-icon {
  color: #6c757d;
  margin-left: 0.5rem;
}

.pay_now{
  width: 100%;
  background-color: var(--first-color);
  border: 1px solid var(--first-color);
  padding: 0.8rem 1.5rem;
  font-weight: var(--weight-600);
  transition: color, background-color 0.3s;
  color: var(--body-color);
  font-size: var(--large-font-size);
}

.pay_now:hover{
  background-color: var(--body-color);
  color: var(--first-color);
}

/************** ACCOUNTS SECTION ****************/

.accounts__container{
  grid-template-columns: 3fr 9fr;
}

.account__tabs{
  border: 1px solid var(--border-color-alt);
  border-radius: .25rem;
  height: fit-content;
}

.account__tab{
  font-size: var(--small-font-size);
  color: var(--title-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  column-gap: 0.625rem;
  cursor: pointer;
  transition: all 0.2s var(--transition);
}

/*
.account__tab:hover{
  background-color: hsl(176deg 74.72% 37.68%);
  color: var(--body-color);
}
*/

.account__tab.active-tab{
  background-color: var(--first-color);
  color: var(--body-color);
}

.account__tab.not(:last-child){
  border-bottom: 1px solid var(--border-color-alt);
}

.tab__content:not(.active-tab){
  display: none;
}

.tab__content{
  border: 1px solid var(--border-color-alt);
}

.tab__header{
  background-color: var(--container-color);
  border-bottom: 1px solid var(--border-color-alt);
  padding: 1rem;
  font-size: var(--small-font-size);
}

.tab__body{
  padding: 1rem;
}

.tab__description{
  margin-bottom: 1rem;
}

.placed__order-table tr th{
  color: var(--title-color);
  text-align: left;
}

.placed__order-table tr th,
.placed__order-table tr td{
  border: 1px solid var(--border-color-alt);
  padding: 0.5rem;
  font-size: var(--small-font-size);
}

.view__order,
.edit{
  color: var(--first-color);
}

.address{
  font-style: normal;
  font-size: var(--small-font-size);
  line-height: 1.5rem;
}

.city{
  margin-bottom: 0.25rem;
}

.edit{
  font-size: var(--small-font-size);
}

.dashboard__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard__greeting {
  background-color: #f7f7f7;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard__greeting .tab__description {
  color: #555;
  line-height: 1.6;
}

.dashboard__summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.summary__item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.summary__item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--first-color);
}

.item__details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.item__label {
  font-size: 0.9rem;
  color: #888;
}

.item__value {
  font-size: 1rem;
  font-weight: 600;
}

.dashboard__activity {
  background-color: #f7f7f7;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.activity__heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.activity__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity__item {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.activity__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity__date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.activity__text {
  font-size: 1rem;
  color: #444;
}


/************** Order Details ****************/

.table__container{
  overflow-x: auto;
}

.table{
  table-layout: fixed;
  margin-bottom: 2rem;
}

.table tr{
  border-top: 1px solid var(--border-color-alt);
}

.table tr:last-child{
  border-bottom: 1px solid var(--border-color-alt);
}

.table tr th:nth-child(1),
.table tr td:nth-child(1){
  width: 216px;
}

.table tr th:nth-child(2),
.table tr td:nth-child(2){
  width: 400px;
}

.table tr th:nth-child(3),
.table tr td:nth-child(3){
  width: 108px;
}
.table tr th:nth-child(4),
.table tr td:nth-child(4){
  width: 220px;
}
.table tr th:nth-child(5),
.table tr td:nth-child(5){
  width: 200px;
}
.table tr th:nth-child(6),
.table tr td:nth-child(6){
  width: 152px;
}

.table__img{
  width: 80px;
}

.table tr th,
.table tr td{
  padding: .5rem;
  text-align: center;
}

.table__title,
.table__description,
.table__price,
.table__subtotal,
.table__trash,
.table__stock{
  font-size: var(--small-font-size);
}

.table__title,
.table__stock{
  color: var(--first-color);
}

.table__description{
  max-width: 250px;
  margin-inline: auto;
}

.table__trash{
  color: var(--text-color-light);
}

.cart__actions{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* .divider{
  position: relative;
  text-align: center;
  margin-block: 3rem;
}

.divider::before{
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 2px solid var(--border-color-alt);
} */

/* .divider i{
  color: var(--text-color-light);
  background-color: var(--body-color);
  font-size: 1.25rem;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 10;
} */

.cart__group{
  grid-template-columns: repeat(2, 1fr);
  align-items: flex-start;
}

.cart__shipping .section__title,
.cart__coupon .section__title,
.cart__total .section__title{
  font-size: var(--large-font-size);
  margin-bottom: 1rem;
}

/************** Footer ************************/



.footer {
  margin-top: 4rem;
  background-color: #222222;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-container {
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr; /* Adjusted to give the third column more width */
  gap: 2rem;
}

.footer-brand h3 {
  color: #e05e39;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-brand p {
  color: var(--body-color);
  margin-bottom: 0.5rem;
  font-size: var(--small-font-size);
}

.footer-title {
  color: var(--body-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--body-color);
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
}
.footer-links a:hover {
  padding-left: 2px;
  color: var(--first-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  color: var(--body-color);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.3s;
}

.social-icon:hover {
  background-color: rgba(255,255,255,0.1);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--small-font-size);
}

.copyright {
  color: rgba(255,255,255,0.7);
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
}

.payment-methods img {
  height: 24px;
}


.footer-categories ul {
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
}

.footer-categories li {
  margin-bottom: 20px; /* Space between items */
}

.footer-categories a {
  text-decoration: none; /* Remove underline */
  color: var(--body-color); /* Link color */
}


/* Decorative circles */
.circle-decoration {
  position: absolute;
  border-radius: 50%;
  background-color: #e05e39;
}

.circle-top-left {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
}

.circle-bottom-right {
  width: 250px;
  height: 250px;
  bottom: -125px;
  right: -125px;
}

.mobile-view-more,
.nav__menu{
  display: none;
}
.bottom-nav{
  display:none;
}
/*========================= Responsive Mobile ===================================*/

@media screen and (max-width: 768px) {

  .logo img {
    width: 100px;
    height: auto;
  }
  .nav__menu{
    display: block;
  }
  .top-banner{
    display: none;
  }
  .header-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
  .search-box{
    margin-left: 0;
  }
  .header-actions,
  .breadcrumb{
    display: none;
  }

  .header .container{
    gap: 0;
  }

  .slide{
    padding-inline: 2rem;
  }

  .slide h2{
    line-height: 2.5rem;
  }

  .slider{
    height: 86%;
  }

  .section--lg{
    margin-block: 2rem;
  }

  .footer{
    display: none;
  }

  /* Bottom Navigation Bar */
.bottom-nav {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0rem 0.875rem;
  border-radius: 1rem 1rem 0 0;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  font-size: var(--small-font-size);
  text-decoration: none;
  padding: 0.5rem 0;
}

.bottom-nav__item img {
  width: 22px;
  height: 22px;
  margin-bottom: 0.25rem;
}

.bottom-nav__item span {
  font-size: var(--small-font-size);
  font-weight: var(--weight-600);
}

.bottom-nav .bottom-nav__item .counter-adjust{
padding: 0.625rem 0.625rem 0;
position: relative;
}

.bottom-nav .bottom-nav__item .counter-adjust .count{
position: absolute;
top: 0;
right: 0;
}

.header__search-mobile {
display: none;
width: 100%;
margin: 1rem 0;
position: relative;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;   
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
}

/* Hide the original navigation items in the header for mobile */
.header__user-actions {
    display: none;   
}
.bottom-nav__item.active {
  color: var(--first-color);
}
.bottom-nav__item {
transition: color 0.3s ease;
}
.bottom-nav__item:hover {
color: var(--first-color);
}


.nav__menu{
  position:fixed;
  right: -100%;
  top: 0;
  background-color: var(--body-color);
  max-width: 400px;
  width: 80%;
  height: 100%;
  z-index: 1000;
  padding: 1.25rem 2rem;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 2rem;
  box-shadow: 0 0 15px hsla(0, 0%, 0%, 0.1);
  margin-right: 0;
  transition: all .25s var(--transition);
  border-radius: 1rem;
}

.show-menu{
  right: 0;
}

.nav__list{
  order: 1;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 1.5rem;
}

.nav__link{
  font-size: var(--large-font-size);
}

.header__search .form__input{
  border-color: var(--first-color);
}

.nav__menu-top,
.nav__toggle{
  display: flex;
}

.nav__menu-top{
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.25rem;
}

.nav__menu-logo img{
  width: 160px;
}

.nav__close {
  font-size: var(--h2-font-size);
  line-height: 1rem;
}

/************ Shop Page Specific Styles ****************/
.product-grid{
  grid-template-columns: repeat(2, 1fr);
}

.icon-container {
  width: 100%;
  position: fixed; /* Fixed position */
  top: 0; /* Distance from the top */
  left: 0; /* Distance from the left */
  display: flex; /* Flexbox for alignment */
  justify-content: space-between;
  align-items: center;
  z-index: 10; /* Ensure it stays on top */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition */
  padding: 13px 15px; 
}

.icon-container .left-side{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.icon-container .middle-side{
  font-size: var(--h4-font-size);
  font-weight: var(--weight-700);
}
.icon-container .right-side{
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.icon-circle {
  font-size: 22px;
}

.dropdown-menu {
  display: none; /* Hidden by default */
  position: absolute; /* Position relative to the icon */
  top: 50px; /* Position below the icons */
  right: -40px; /* Align with the left */
  left: auto;
  background-color: white; /* Background color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Shadow for dropdown */
  border-radius: 2px; /* Rounded corners */
  z-index: 1000; /* Ensure it stays on top */
  padding: 8px 14px 8px 0; /* Padding around the menu */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

.dropdown-menu ul {
  list-style: none; /* Remove default list styling */
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
}

.dropdown-menu li {
  margin: 0; /* Remove margin */
}

.dropdown-menu a {
  display: block; /* Make the link fill the list item */
  padding: 8px 20px; /* Padding for links */
  color: #333; /* Text color */
  text-decoration: none; /* Remove underline */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.icon-container.scrolled {
    background-color: rgba(255, 255, 255, 1); /* Background color on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow on scroll */
}

.header__action-btn{
  position: relative;
}

.header__action-btn ion-icon{
  font-size: 22px;
}

.header__action-btn .count{
  position: absolute;
  top: -0.625rem;
  right: -0.625rem;
  background-color: var(--first-color);
  color: var(--body-color);
  height: 18px;
  width: 18px;
  border-radius: 50%;
  line-height: 18px;
  text-align: center;
  font-size: var(--small-font-size);
}

.mobile-view-more{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

}

/* Responsive */
@media screen and (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}



@media (max-width: 768px) {
  .dashboard__summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* At least 2 columns */
    gap: 1rem; /* Space between items */
    justify-items: center;
  }

  .summary__item {
    width: 100%;
      padding: 1rem;
  }

  .summary__item i {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
  }

  .item__value {
      font-size: 1rem;
  }
}



/* Responsive styles */
@media (max-width: 992px) {
  .checkout-container {
    flex-direction: column;
  }
  
  .checkout-form, .checkout-summary {
    width: 100%;
  }
  
  .checkout-summary {
    border-left: none;
    border-top: 1px solid #e9ecef;
    position: relative;
    top: 0;
  }
}

@media screen and (max-width: 768px) {
.reviews-summary {
  flex-direction: column;
  gap: 2rem;
}

.rating-breakdown {
  width: 100%;
}
}

@media screen and (max-width: 768px) {
  .reviews-summary {
    flex-direction: column;
    gap: 2rem;
  }
  
  .rating-breakdown {
    width: 100%;
  }
}

/* Responsive */
@media screen and (max-width: 576px) {
  .cart-overlay {
    width: 100%;
    right: -100%;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .special-offers__container {
    flex-direction: column;
  }
  
  .special-offers__image {
    width: 100%;
    min-height: 300px;
  }
  
  .special-offers__content {
    width: 100%;
    padding: 3rem 2rem;
  }
  
  .special-offers__title {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 768px) {
  .special-offers__title {
    font-size: 1.75rem;
  }
  
  .special-offers__image {
    display: none;
    min-height: 250px;
    max-height: 300px;
  }
  
  .special-offers__content {
    padding: 2rem 1.5rem;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 576px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .category-btn {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
  }
  
  .action-btn {
    width: 35px;
    height: 35px;
  }
  
  .book-title {
    font-size: var(--normal-font-size);
  }
}

/* Responsive Breakpoints */
@media screen and (max-width: 1200px) {
  .bestsellers__card {
      flex: 0 0 calc(100% / 5);
      min-width: calc(100% / 5);
  }
  .bestsellers__scrollbar-container {
      width: 60%;
  }
}

@media screen and (max-width: 992px) {
  .bestsellers__card {
      flex: 0 0 calc(100% / 4);
      min-width: calc(100% / 4);
  }
  .bestsellers__scrollbar-container {
      width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .bestsellers__card {
      flex: 0 0 calc(100% / 3);
      min-width: calc(100% / 3);
  }
  .bestsellers__scrollbar-container {
      width: 80%;
  }
}

@media screen and (max-width: 576px) {
  .bestsellers__card {
      flex: 0 0 calc(100% / 2);
      min-width: calc(100% / 2);
  }
  .bestsellers__scrollbar-container {
      width: 90%;
  }
}



@media screen and (max-width: 768px) {
  .slide {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .slide-content {
    width: 100%;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .slide-image {
    width: 100%;
  }

  .slide-image-container {
    height: 180px;
  }

  .hero-banner {
    height: 500px;
  }
}

@media (min-width: 768px) {
  .header .container {
    flex-wrap: nowrap;
  }

  .nav-links {
    margin-top: 0;
    width: auto;
    margin-left: auto;
  }

  .bottom-container,
  .icon-container{
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

