* {
  font-family: "Poppins", sans-serif;
}

#preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.book-loader {
  width: 90px;
  height: 70px;
  position: relative;
  border: 3px solid #e09a3f;
  border-radius: 6px;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.book-loader .page {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 12px;
  background: repeating-linear-gradient(#27303f 0 3px, transparent 3px 6px);
  transform-origin: left center;
  backface-visibility: hidden;
  animation: turn 1.2s ease-in-out infinite;
}

.book-loader .page:nth-child(2) {
  animation-delay: 0.15s;
  opacity: 0.9;
}

.book-loader .page:nth-child(3) {
  animation-delay: 0.3s;
  opacity: 0.8;
}

@keyframes turn {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(-90deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

.hero-section {
  background-color: #0b113b;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-pattern {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(255, 255, 255, 0.03) 21%,
    transparent 22%
  );
  background-size: 150px 150px;
  pointer-events: none;
}

.hero-line-accent {
  border-left: 2px solid #f0a75b;
  padding-left: 20px;
  margin: 24px 0;
}

.floating-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #1e1e1e;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-5px);
}

.sticky-icons {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.sticky-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.sticky-icon:hover {
  transform: scale(1.1);
}

.dots-pattern {
  display: grid;
  grid-template-columns: repeat(4, 6px);
  gap: 8px;
  opacity: 0.3;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
}

.hero-gradient {
  background: linear-gradient(135deg, #0b113b 0%, #15206b 100%);
}

.book-tab {
  width: 48px;
  height: 36px;
  border: 2px solid #e09a3f;
  border-radius: 4px;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  position: relative;
  cursor: pointer;
}

.book-tab::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  background: repeating-linear-gradient(#27303f 0 3px, transparent 3px 6px);
  opacity: 0.8;
}

.book-tab.active {
  border-color: #55b905;
  box-shadow: 0 0 0 3px rgba(85, 185, 5, 0.25);
}

.nav-link-active {
  color: #55b905 !important;
}

.nav-link-hover:hover {
  color: #55b905;
}

header {
  transition: all 0.3s ease;
}

.carousel-slide {
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 10;
}

.carousel-slide.hidden {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

.add-to-cart-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-to-cart-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background-color: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:active {
  transform: translateY(0) scale(0.98);
}

.featured-dot.active {
  background-color: #e09a3f;
  width: 1.5rem;
}

/* Mobile Sidebar Redesign */
#mobileSidebar {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileSidebar.open {
  transform: translateX(0);
}

#mobileBackdrop {
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#mobileBackdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger Animation */
#mobileMenuBtn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform-origin: center;
}

#mobileMenuBtn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobileMenuBtn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#mobileMenuBtn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e09a3f;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover::after {
  transform: translateX(0);
}

/* Fixed Components Expansion */
.fixed-btn-expand {
  width: 44px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.fixed-btn-expand:hover {
  width: 130px;
}

.fixed-btn-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.fixed-btn-expand:hover .fixed-btn-text {
  opacity: 1;
  transform: translateX(0);
}
