* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  background-color: #f8f8f8;
  font-family: "Montserrat", sans-serif;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.swipe-hint {
  position: absolute;
  top: 30px;
  max-width: 400px;
  width: 100%;
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  pointer-events: none;
  margin-bottom: 10px;
  opacity: 0;
  transition: 0.4s;
}

.swipe-hint.show {
  opacity: 1;
}

#book-wrapper {
  position: relative;
  /* Centering offset will be handled by margin-left for maximum stability */
  transition: margin-left 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

#book-wrapper::after {
  content: "";
  position: absolute;
  top: 5%;
  right: -10px;
  width: 400px;
  height: 97%;
  pointer-events: none;
  background: linear-gradient(
              135deg,
              rgba(0, 0, 0, 0.2) 0%,
              rgba(0, 0, 0, 0.03) 50%,
              rgba(0, 0, 0, 0.2) 100%
  );
  filter: blur(15px);
}

.flip-book {
  background-color: transparent !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}
/* 
#book-wrapper.hide-left .stf__item--left,
#book-wrapper.hide-left .stf__page--left {
  display: none !important;
} */

/* Improved Page-Based Spine Shadow for Realism */

.page-content::after {
  content: "";
  position: absolute;
  top: 0;
  width: 35px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Shadow for Left Pages (Page 1, 3, 5, 7 - even index in DOM) */
.page:nth-child(even):not(.page-cover) .page-content::after {
  right: 0;
  left: auto;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.03) 35%,
    rgba(0, 0, 0, 0.01) 65%,
    transparent 100%
  );
}

/* Shadow for Right Pages (Page 2, 4, 6, 8 - odd index in DOM) */
.page:nth-child(odd):not(.page-cover) .page-content::after {
  left: 0;
  right: auto;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.03) 35%,
    rgba(0, 0, 0, 0.01) 65%,
    transparent 100%
  );
}

.page-cover .page-content::after {
  left: 0;
  right: auto;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.03) 35%,
    rgba(0, 0, 0, 0.01) 65%,
    transparent 100%
  );
}

/* For Mobile: ALL internal pages have left-side shadow ONLY */
@media (max-width: 768px) {
  /* .page-content::after {
        display: none !important;
    } */

  /* Force consistent left-side shadow for ALL menu pages (1-8) */
  .page:not(.page-cover) .page-content::after {
    display: block !important;
    left: 0 !important;
    right: auto !important;
    width: 25px !important;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.03) 35%,
      rgba(0, 0, 0, 0.01) 65%,
      transparent 100%
    ) !important;
  }
}

.st-page-flip {
  background-color: transparent !important;
  margin: 0 auto !important;
}

.page {
  background-color: transparent;
  overflow: hidden;
  padding: 0 !important;
  height: 100%;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* padding: 50px 60px; */
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.image-page {
  padding: 0 !important;
  margin: 0 ip !important;
  width: 100%;
  height: 100%;
  display: block !important;
  overflow: hidden;
}

.image-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-cover .image-page img {
  object-fit: cover !important;
}

.nav-buttons button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.nav-buttons button:hover {
  transform: scale(1.1);
}

.nav-btn {
  color: black;
  align-items: center;
  position: fixed;
  font-size: 2rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0.4;
  transition: 0.3s;
  text-decoration: none;
}

.nav-btn:hover {
  transform: scale(1.1);
}

.prev {
  left: 240px;
}

.next {
  right: 240px;
}

/* Remove outer shadow from covers */
.page-cover .page-content {
  background-color: #1a1a1a;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
  border: none;
  margin: 0;
  height: 100%;
  width: 100%;
  /* padding: 60px; */
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (max-width: 768px) {
  .page-content {
    box-shadow: none;
  }

  .nav-btn {
    bottom: 30px;
  }

  .prev {
    left: 40px;
  }

  .next {
    right: 40px;
  }
}

/* .page-cover .page-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid #d4af37;
    pointer-events: none;
} */

/* .logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 6px;
    margin-bottom: 20px;
    color: #d4af37;
} */

/* .title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: 2px;
} */

/* .subtitle {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #aaa;
} */

.footer-text {
  font-size: 0.6rem;
  letter-spacing: 2px;
  position: absolute;
  bottom: 35px;
  width: 100%;
  left: 0;
  text-align: center;
}

/* .category-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
} */

/* .featured-img {
    width: 100%;
    max-height: 30%;
    margin-bottom: 25px;
    object-fit: cover;
}

.description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
    padding: 0 15px;
} */

/* .menu-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    padding: 0 15px;
}

.menu-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.details h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.price {
    color: #d4af37;
    font-weight: 600;
    margin-left: 15px;
}

.details p {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
} */

.page-number {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  left: 0;
  font-size: 0.7rem;
  color: #ccc;
  letter-spacing: 1px;
}

.contact-info {
  margin-top: 50px;
  line-height: 2.2;
  font-size: 0.9rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #book-wrapper {
    transform: scale(0.9);
    transform-origin: center;
  }

  .nav-btn {
    bottom: 170px;
  }

  .prev {
    left: 40px;
  }

  .next {
    right: 40px;
  }

  .swipe-hint {
    position: absolute;
    top: 200px;
    max-width: 400px;
    width: 100%;
    text-align: right;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    margin-bottom: 10px;
    opacity: 0;
    transition: 0.4s;
}

.swipe-hint.show {
    opacity: 1;
}


  /* .container {
        padding: 40px 100px;
    }

    .page-content {
        padding: 40px 45px;
    }

    .page-cover .page-content {
        padding: 30px;
    }

    .logo {
        font-size: 2rem;
    }

    .title {
        font-size: 1.6rem;
    } */
}

@media (max-width: 768px) {
  /* .container {
        padding: 10px;
    }

    .page-content {
        padding: 40px 30px; 
    } */

  .page-cover .page-content {
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    /* padding: 40px; */
  }

  .page-cover .page-content::before {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .nav-btn {
    bottom: 20px;
  }

  .prev {
    left: 40px;
  }

  .next {
    right: 40px;
  }

  .swipe-hint {
    position: absolute;
    top: 40px;
    right: 10px;
    max-width: 400px;
    width: 100%;
    text-align: right;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    margin-bottom: 10px;
    opacity: 0;
    transition: 0.4s;
  }

  .swipe-hint.show {
    opacity: 1;
  }

  /* .logo {
        font-size: 1.6rem;
    }

    .title {
        font-size: 1.4rem;
    } */
}

@media (max-width: 205px) {
    .swipe-hint.show {
        opacity: 0;
    }

    .nav-btn {
        opacity: 0;
    }

    #book-wrapper {
        transform: scale(0.68);
    }

    .page-number {
        opacity: 0;
    }
}
