/* assets/css/style.css - Global Styles and Layout Systems */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Brand Colors & Aesthetics */
:root {
  --primary-blue: #2454A6;
  --deep-navy: #162F5C;
  --vermilion: #D83A32;
  --warm-orange: #F28A24;
  --soft-ivory: #FFF9F2;
  --cream: #F8F1E8;
  --soft-blue: #EAF4FF;
  --soft-peach: #FFF0E6;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  
  --shadow-sm: 0 2px 4px rgba(22, 47, 92, 0.04);
  --shadow-md: 0 8px 16px rgba(22, 47, 92, 0.06);
  --shadow-lg: 0 16px 32px rgba(22, 47, 92, 0.08);
  --border-color: rgba(22, 47, 92, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
}

body {
  background-color: var(--soft-ivory);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Animated Background Container */
.bg-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(234, 244, 255, 0.6) 0%, rgba(255, 249, 242, 0.6) 90%);
}

.glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatBubble 25s infinite alternate ease-in-out;
}

.glow-bubble-1 {
  background: var(--soft-blue);
  width: 500px;
  height: 500px;
  top: -10%;
  left: -10%;
}

.glow-bubble-2 {
  background: var(--soft-peach);
  width: 600px;
  height: 600px;
  bottom: -15%;
  right: -10%;
  animation-delay: -5s;
}

.glow-bubble-3 {
  background: #FFF9F2;
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  animation-delay: -10s;
}

/* Floating literary elements - feathers & sparkles */
.floating-feather {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0.25;
  pointer-events: none;
  transform-origin: center;
  animation: floatFeather 15s infinite linear;
}

@keyframes floatBubble {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

@keyframes floatFeather {
  0% { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) translateX(100px) rotate(360deg); opacity: 0; }
}

/* Layout Elements */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--deep-navy);
  color: var(--soft-ivory);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.announcement-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.announcement-text {
  display: flex;
  gap: 20px;
  align-items: center;
}

.announcement-text span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-offers-btn {
  background-color: var(--warm-orange);
  color: #white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 11px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.view-offers-btn:hover {
  background-color: var(--vermilion);
  transform: translateY(-1px);
}

/* Primary Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo Area */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--deep-navy);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--vermilion);
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 600;
  margin-top: -2px;
}

/* Search bar styling */
.search-wrapper {
  flex-grow: 1;
  max-width: 600px;
  position: relative;
}

.search-form {
  display: flex;
  background-color: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(36, 84, 166, 0.1);
  background-color: #fff;
}

.search-select {
  border: none;
  background: transparent;
  padding: 0 15px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
  border-right: 1px solid var(--border-color);
  outline: none;
  cursor: pointer;
}

.search-input {
  border: none;
  background: transparent;
  padding: 12px 20px;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background-color: var(--vermilion);
  border: none;
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--deep-navy);
}

/* Autocomplete Suggestion Drawer */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: var(--radius-md);
  margin-top: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--soft-blue);
}

.suggestion-cover {
  width: 40px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.suggestion-info {
  display: flex;
  flex-direction: column;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.suggestion-author {
  font-size: 12px;
  color: var(--text-muted);
}

/* Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--deep-navy);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  cursor: pointer;
}

.action-icon {
  font-size: 22px;
  color: var(--primary-blue);
  transition: var(--transition);
}

.action-item:hover .action-icon {
  color: var(--vermilion);
  transform: translateY(-2px);
}

.badge-counter {
  position: absolute;
  top: -8px;
  left: 14px;
  background-color: var(--vermilion);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50%;
  border: 2px solid #fff;
  min-width: 18px;
  text-align: center;
}

.action-details {
  display: flex;
  flex-direction: column;
}

.action-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Main Navigation */
.nav-bar {
  background-color: var(--deep-navy);
  color: var(--soft-ivory);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
  border-bottom: 2px solid var(--warm-orange);
}

.nav-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
}

.nav-links > li:hover > a,
.nav-links > li.active > a {
  color: var(--warm-orange);
  border-bottom-color: var(--warm-orange);
  background-color: rgba(255, 255, 255, 0.03);
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
  border: 1px solid var(--border-color);
  padding: 10px 0;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 500;
}

.nav-dropdown li a:hover {
  background-color: var(--soft-blue);
  color: var(--primary-blue);
  padding-left: 25px;
}

.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--soft-ivory);
  cursor: pointer;
  padding: 10px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: radial-gradient(120% 120% at top left, var(--soft-blue) 0%, var(--soft-ivory) 40%, var(--soft-peach) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 138, 36, 0.15) 0%, rgba(255,255,255,0) 70%);
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-tagline {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 20px;
  color: var(--vermilion);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tagline::after {
  content: '';
  height: 2px;
  width: 60px;
  background-color: var(--vermilion);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--deep-navy);
  line-height: 1.15;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--warm-orange) 0%, var(--vermilion) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(216, 58, 50, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(216, 58, 50, 0.35);
}

.btn-secondary {
  background-color: var(--deep-navy);
  color: var(--soft-ivory);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Hero Right: Book Podium Layout */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-books-podium {
  position: relative;
  width: 450px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1000px;
}

.podium-base {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, var(--cream) 0%, #E8DCCB 100%);
  border-radius: 50% / 20px;
  box-shadow: 0 15px 30px rgba(22, 22, 22, 0.15);
  border: 1px solid var(--border-color);
  z-index: 1;
}

.podium-glow {
  position: absolute;
  bottom: 30px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(242, 138, 36, 0.25) 0%, rgba(255,255,255,0) 70%);
  filter: blur(20px);
  z-index: 0;
}

/* Layered Books in Hero */
.podium-book {
  position: absolute;
  width: 130px;
  height: 190px;
  bottom: 40px;
  transform-style: preserve-3d;
  transition: var(--transition);
  z-index: 2;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.podium-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border-left: 3px solid rgba(0,0,0,0.15);
}

.podium-book-1 {
  transform: rotateY(-20deg) rotateX(10deg) translateZ(-50px) translateX(-90px);
}

.podium-book-2 {
  width: 150px;
  height: 220px;
  bottom: 45px;
  z-index: 4;
  transform: rotateY(0deg) translateZ(30px);
}

.podium-book-3 {
  transform: rotateY(20deg) rotateX(10deg) translateZ(-50px) translateX(90px);
  z-index: 3;
}

.podium-book:hover {
  transform: translateY(-15px) scale(1.05) translateZ(50px);
  z-index: 5;
  box-shadow: 15px 20px 30px rgba(0, 0, 0, 0.4);
}

/* Promo discount circle on Hero */
.hero-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--vermilion);
  color: #fff;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(216, 58, 50, 0.3);
  transform: rotate(15deg);
  z-index: 5;
  border: 2px dashed #fff;
}

.hero-discount-badge span {
  font-size: 10px;
  font-weight: 500;
}

/* Sections Global Styling */
.section-wrapper {
  padding: 70px 0;
  position: relative;
}

.section-alt {
  background-color: var(--cream);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--vermilion);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--deep-navy);
}

.view-all-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all-link:hover {
  color: var(--vermilion);
  transform: translateX(3px);
}

/* Category Cards Layout */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.category-icon-wrapper {
  width: 55px;
  height: 55px;
  background-color: var(--soft-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-blue);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  background-color: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--vermilion);
  color: #fff;
}

.category-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-navy);
}

/* Product Card / Book Card Design */
.books-carousel-wrapper {
  position: relative;
  width: 100%;
}

.books-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px;
}

.books-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar but keep functionality */
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.book-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(36, 84, 166, 0.2);
}

.discount-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--vermilion);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

.book-img-wrapper {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.book-card:hover .book-cover {
  transform: scale(1.08);
}

.wishlist-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: none;
  transition: var(--transition);
  color: var(--text-muted);
}

.wishlist-toggle:hover {
  background-color: #fff;
  color: var(--vermilion);
  transform: scale(1.1);
}

.wishlist-toggle.active {
  color: var(--vermilion);
}

.book-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title-bg {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-title-en {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-author {
  font-size: 13px;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #FFB000;
  margin-top: auto;
  margin-bottom: 10px;
}

.book-rating span {
  color: var(--text-muted);
  margin-left: 5px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-selling {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.price-mrp {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--warm-orange);
}

.add-to-cart-btn {
  background-color: var(--soft-blue);
  color: var(--primary-blue);
  border: 1px solid rgba(36, 84, 166, 0.15);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

/* Slider navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  color: var(--deep-navy);
}

.slider-arrow:hover {
  background-color: var(--primary-blue);
  color: #white;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
  left: -20px;
}

.slider-arrow-next {
  right: -20px;
}

/* Promotional Banner Block */
.promo-banner-section {
  padding: 40px 0;
}

.promo-banner-card {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: var(--soft-ivory);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promo-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at right, rgba(242, 138, 36, 0.25) 0%, rgba(255,255,255,0) 80%);
  z-index: 0;
}

.promo-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 30px;
}

.promo-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.promo-badge {
  background-color: var(--warm-orange);
  color: #white;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.promo-desc {
  font-size: 15px;
  opacity: 0.85;
  max-width: 500px;
}

.promo-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.promo-book-stack {
  width: 250px;
  height: 180px;
  position: relative;
}

/* Collections & Catalogues Section */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.collection-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(22, 47, 92, 0.2) 30%, rgba(22, 47, 92, 0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  transition: var(--transition);
}

.collection-card:hover .collection-img {
  transform: scale(1.08);
}

.collection-card:hover .collection-overlay {
  background: linear-gradient(180deg, rgba(22, 47, 92, 0) 10%, rgba(22, 47, 92, 0.95) 85%);
}

.collection-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.collection-books-count {
  font-size: 12px;
  opacity: 0.8;
}

/* Authors Section */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 30px;
}

.author-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 15px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.author-photo-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--cream);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.author-card:hover .author-photo-wrapper {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 5px;
}

.author-view-btn {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-card:hover .author-view-btn {
  color: var(--vermilion);
}

/* About Kothakhahon Prakashani section on home */
.about-prakashani-section {
  background-color: var(--cream);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-prakashani-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.about-prakashani-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-prakashani-tagline {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--vermilion);
}

.about-prakashani-desc {
  font-size: 15px;
  color: var(--text-dark);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background-color: var(--soft-peach);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-orange);
  font-size: 18px;
}

.benefit-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-navy);
}

.about-prakashani-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feather-artwork {
  max-width: 80%;
  opacity: 0.85;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
  color: var(--soft-ivory);
  padding: 50px 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 30px;
}

.newsletter-title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.newsletter-icon {
  font-size: 36px;
  color: var(--warm-orange);
}

.newsletter-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
}

.newsletter-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  font-size: 14px;
  outline: none;
}

.newsletter-btn {
  background-color: var(--warm-orange);
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background-color: var(--vermilion);
}

/* Footer Styling */
.site-footer {
  background-color: var(--deep-navy);
  color: #D1D5DB;
  padding: 70px 0 30px;
  font-size: 14px;
  border-top: 3px solid var(--vermilion);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  align-self: flex-start;
}

.footer-tagline {
  font-family: 'Hind Siliguri', sans-serif;
  color: var(--soft-peach);
  font-weight: 600;
  font-size: 13px;
  margin-top: -10px;
}

.footer-about {
  line-height: 1.5;
  font-size: 13px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--warm-orange);
  transform: translateY(-3px);
}

.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--warm-orange);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 18px;
  color: var(--warm-orange);
  margin-top: 2px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.contact-details span:first-child {
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.payment-gateways {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-badge {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Toast Message Notifications System */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #fff;
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
  padding: 15px 25px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.toast.success {
  border-left-color: #10B981;
}

.toast.error {
  border-left-color: var(--vermilion);
}

.toast.warning {
  border-left-color: var(--warm-orange);
}

@keyframes slideInRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Page Headers Global */
.page-header {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--primary-blue) 100%);
  color: var(--soft-ivory);
  padding: 50px 0;
  text-align: center;
  border-bottom: 2px solid var(--warm-orange);
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 64px;
  color: var(--text-muted);
  opacity: 0.4;
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--deep-navy);
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
}
